{
  "counting_policy": {
    "candidates": "Call method names in relevant files; excluded from direct native API totals, including inferred receivers.",
    "columns": "Zero-based UTF-8 byte offsets from Python AST; lines are one-based.",
    "direct_api": "One maximal resolved symbol expression: api_call for a Call.func, otherwise api_reference (including attribute loads, stores and deletes); mutually exclusive.",
    "imports": "One imported alias; broad selective-module imports retained only when targeted APIs occur in the same file.",
    "syntax": "Each AST node; async_def excludes async_generator_def. async_yield separately records yield nodes inside async generators.",
    "unit": "static source occurrence, never runtime executions"
  },
  "limitations": [
    "Static lexical import resolution, not execution, type checking, or full data-flow analysis.",
    "Function parameters/local assignments shadow imported bindings; conflicting reassigned import names are conservatively unresolved.",
    "Imports in conditional branches are not proven reachable; cross-module re-exports, star imports, dynamic imports and getattr are not resolved.",
    "Assignments and known factories provide candidate evidence only; branches, mutations, containers, parameter flow and runtime monkey-patching are not proven.",
    "Candidate names may belong to third-party/custom objects; their presence never establishes native ownership. Already resolved non-target imported APIs are excluded from candidates.",
    "Only tracked .py files are parsed; Markdown/shell/notebook examples, untracked files, string-contained code and installed dependencies are outside this inventory.",
    "A pinned GitHub URL describes HEAD; if tracked_python_changes_from_head is nonempty, local snapshots and hashes describe the scanned working tree instead."
  ],
  "occurrences": [
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 20
      },
      "end_col": 14,
      "end_line": 20,
      "expression": "import asyncio",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000001",
      "kind": "import",
      "line": 20,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L20",
      "symbol": "<module>"
    },
    {
      "category": "async-typing",
      "col": 28,
      "details": {
        "local_binding": "AsyncIterator",
        "selective_module_import": false,
        "statement_line": 27
      },
      "end_col": 41,
      "end_line": 27,
      "expression": "from collections.abc import AsyncIterator",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000002",
      "kind": "import",
      "line": 27,
      "module": "examples.coding_agent_rl.generate",
      "name": "collections.abc.AsyncIterator",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "from collections.abc import AsyncIterator",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L27",
      "symbol": "<module>"
    },
    {
      "category": "contextlib-async",
      "col": 23,
      "details": {
        "local_binding": "asynccontextmanager",
        "selective_module_import": false,
        "statement_line": 28
      },
      "end_col": 42,
      "end_line": 28,
      "expression": "from contextlib import asynccontextmanager",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000003",
      "kind": "import",
      "line": 28,
      "module": "examples.coding_agent_rl.generate",
      "name": "contextlib.asynccontextmanager",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "from contextlib import asynccontextmanager",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L28",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 92,
      "expression": "asyncio.Semaphore",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000004",
      "kind": "api_call",
      "line": 92,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "_BOOT_SEM = asyncio.Semaphore(CONFIG.boot_concurrency)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L92",
      "symbol": "<module>"
    },
    {
      "category": "contextlib-async",
      "col": 1,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 95,
      "expression": "asynccontextmanager",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000005",
      "kind": "api_reference",
      "line": 95,
      "module": "examples.coding_agent_rl.generate",
      "name": "contextlib.asynccontextmanager",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "@asynccontextmanager",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L95",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 44,
      "end_line": 134,
      "expression": "async def boot_agent_sandbox(image: str, instance_id: str) -> AsyncIterator[E2BSandbox]:",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000006",
      "kind": "async_generator_def",
      "line": 96,
      "module": "examples.coding_agent_rl.generate",
      "name": "boot_agent_sandbox",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "async def boot_agent_sandbox(image: str, instance_id: str) -> AsyncIterator[E2BSandbox]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L96-L134",
      "symbol": "<module>"
    },
    {
      "category": "async-typing",
      "col": 62,
      "details": {
        "access": "load"
      },
      "end_col": 75,
      "end_line": 96,
      "expression": "AsyncIterator",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000007",
      "kind": "api_reference",
      "line": 96,
      "module": "examples.coding_agent_rl.generate",
      "name": "collections.abc.AsyncIterator",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "async def boot_agent_sandbox(image: str, instance_id: str) -> AsyncIterator[E2BSandbox]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L96",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 25,
      "end_line": 114,
      "expression": "            async with _BOOT_SEM:",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000008",
      "kind": "async_with",
      "line": 108,
      "module": "examples.coding_agent_rl.generate",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            async with _BOOT_SEM:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L108-L114",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 39,
      "end_line": 109,
      "expression": "await cand.__aenter__()",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000009",
      "kind": "await",
      "line": 109,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                await cand.__aenter__()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L109",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "cand",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 109,
      "expression": "cand.__aenter__",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000010",
      "kind": "instance_candidate",
      "line": 109,
      "module": "examples.coding_agent_rl.generate",
      "name": "__aenter__",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                await cand.__aenter__()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L109",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 57,
      "end_line": 111,
      "expression": "await HARNESS_CLS().install_cli(cand)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000011",
      "kind": "await",
      "line": 111,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                    await HARNESS_CLS().install_cli(cand)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L111",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 58,
      "end_line": 113,
      "expression": "await cand.__aexit__(None, None, None)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000012",
      "kind": "await",
      "line": 113,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                    await cand.__aexit__(None, None, None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L113",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "cand",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 113,
      "expression": "cand.__aexit__",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000013",
      "kind": "instance_candidate",
      "line": 113,
      "module": "examples.coding_agent_rl.generate",
      "name": "__aexit__",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                    await cand.__aexit__(None, None, None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L113",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 62,
      "end_line": 127,
      "expression": "await asyncio.sleep(1 + attempt + random.random())",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000014",
      "kind": "await",
      "line": 127,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            await asyncio.sleep(1 + attempt + random.random())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L127",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 127,
      "expression": "asyncio.sleep",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000015",
      "kind": "api_call",
      "line": 127,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            await asyncio.sleep(1 + attempt + random.random())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L127",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 16,
      "end_line": 132,
      "expression": "yield sb",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000016",
      "kind": "async_yield",
      "line": 132,
      "module": "examples.coding_agent_rl.generate",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        yield sb",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L132",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 44,
      "end_line": 134,
      "expression": "await sb.__aexit__(None, None, None)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000017",
      "kind": "await",
      "line": 134,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        await sb.__aexit__(None, None, None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L134",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "sb",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 134,
      "expression": "sb.__aexit__",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000018",
      "kind": "instance_candidate",
      "line": 134,
      "module": "examples.coding_agent_rl.generate",
      "name": "__aexit__",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        await sb.__aexit__(None, None, None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L134",
      "symbol": "boot_agent_sandbox"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 31,
      "end_line": 283,
      "expression": "async def generate(args, base_sample: Sample, sampling_params: dict[str, Any], evaluation: bool = False):",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000019",
      "kind": "async_def",
      "line": 182,
      "module": "examples.coding_agent_rl.generate",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "async def generate(args, base_sample: Sample, sampling_params: dict[str, Any], evaluation: bool = False):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L182-L283",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 26,
      "end_line": 268,
      "expression": "        async with asyncio.timeout(CONFIG.rollout_guard_sec):",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000020",
      "kind": "async_with",
      "line": 202,
      "module": "examples.coding_agent_rl.generate",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        async with asyncio.timeout(CONFIG.rollout_guard_sec):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L202-L268",
      "symbol": "generate"
    },
    {
      "category": "asyncio",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 202,
      "expression": "asyncio.timeout",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000021",
      "kind": "api_call",
      "line": 202,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.timeout",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        async with asyncio.timeout(CONFIG.rollout_guard_sec):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L202",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 65,
      "end_line": 213,
      "expression": "            async with boot_agent_sandbox(md[\"image\"], instance_id) as sb:",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000022",
      "kind": "async_with",
      "line": 203,
      "module": "examples.coding_agent_rl.generate",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            async with boot_agent_sandbox(md[\"image\"], instance_id) as sb:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L203-L213",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 66,
      "end_line": 204,
      "expression": "await swe.prepare_workspace(sb, md[\"workdir\"], md)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000023",
      "kind": "await",
      "line": 204,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                await swe.prepare_workspace(sb, md[\"workdir\"], md)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L204",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 34,
      "details": {},
      "end_col": 17,
      "end_line": 212,
      "expression": "await HARNESS_CLS().run(\n                    sb,\n                    workdir=md[\"workdir\"],\n                    session_id=session_id,\n                    adapter_url=state.adapter_url,\n                    time_budget_sec=CONFIG.agent_time_budget_sec,\n                    prompt=swe.SWE_PROMPT,\n                )",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000024",
      "kind": "await",
      "line": 205,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                agent_exit_code = await HARNESS_CLS().run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L205-L212",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 28,
      "details": {},
      "end_col": 65,
      "end_line": 213,
      "expression": "await swe.git_diff(sb, md[\"workdir\"])",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000025",
      "kind": "await",
      "line": 213,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "                diff_text = await swe.git_diff(sb, md[\"workdir\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L213",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 38,
      "details": {},
      "end_col": 13,
      "end_line": 219,
      "expression": "await swe.run_evaluation(\n                md,\n                diff_text=diff_text,\n                timeout_sec=CONFIG.eval_timeout_sec,\n            )",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000026",
      "kind": "await",
      "line": 215,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            reward, applied_cleanly = await swe.run_evaluation(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L215-L219",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 13,
      "end_line": 245,
      "expression": "await state.adapter.finish_session(\n                session_id,\n                base_sample=base_sample,\n                reward=float(reward),\n                extra_metadata={\n                    \"grading_solved\": float(reward) == 1.0,\n                    \"instance_id\": instance_id,\n                },\n            )",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000027",
      "kind": "await",
      "line": 237,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "            samples = await state.adapter.finish_session(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L237-L245",
      "symbol": "generate"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 270,
      "expression": "asyncio.TimeoutError",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000028",
      "kind": "api_reference",
      "line": 270,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.TimeoutError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "    except asyncio.TimeoutError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L270",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 69,
      "end_line": 282,
      "expression": "await state.adapter.drop_session(session_id, wait_timeout=30)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000029",
      "kind": "await",
      "line": 282,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        await state.adapter.drop_session(session_id, wait_timeout=30)  # cleanup only, idempotent",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L282",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 31,
      "end_line": 283,
      "expression": "await asyncio.sleep(10)",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000030",
      "kind": "await",
      "line": 283,
      "module": "examples.coding_agent_rl.generate",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        await asyncio.sleep(10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L283",
      "symbol": "generate"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 283,
      "expression": "asyncio.sleep",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000031",
      "kind": "api_call",
      "line": 283,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        await asyncio.sleep(10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L283",
      "symbol": "generate"
    },
    {
      "category": "asyncio",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 47,
      "end_line": 290,
      "expression": "asyncio.all_tasks",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000032",
      "kind": "api_call",
      "line": 290,
      "module": "examples.coding_agent_rl.generate",
      "name": "asyncio.all_tasks",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        pending = [t for t in asyncio.all_tasks() if not t.done()]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L290",
      "symbol": "_log_timeout_diagnostic"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 63,
      "end_line": 290,
      "expression": "t.done",
      "file": "examples/coding_agent_rl/generate.py",
      "id": "occ-000033",
      "kind": "instance_candidate",
      "line": 290,
      "module": "examples.coding_agent_rl.generate",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/generate.py.txt",
      "source_line": "        pending = [t for t in asyncio.all_tasks() if not t.done()]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/generate.py#L290",
      "symbol": "_log_timeout_diagnostic.<comprehension>"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 27
      },
      "end_col": 14,
      "end_line": 27,
      "expression": "import asyncio",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000034",
      "kind": "import",
      "line": 27,
      "module": "examples.coding_agent_rl.swe",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L27",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 91,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000035",
      "kind": "instance_candidate",
      "line": 91,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    rem = m.get(\"remote_env_info\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L91",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 93,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000036",
      "kind": "instance_candidate",
      "line": 93,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    swepro = m.get(\"swepro\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L93",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 94,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000037",
      "kind": "instance_candidate",
      "line": 94,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    eval_cmd = m.get(\"eval_cmd\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L94",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 95,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000038",
      "kind": "instance_candidate",
      "line": 95,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    f2p_script = rem.get(\"f2p_script\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L95",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 96,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000039",
      "kind": "instance_candidate",
      "line": 96,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    looks_swebench = bool(rem.get(\"test_patch\")) and not (swepro or eval_cmd or f2p_script)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L96",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 99,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000040",
      "kind": "instance_candidate",
      "line": 99,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"instance_id\": m.get(\"instance_id\") or rem.get(\"instance_id\") or label or \"unknown\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L99",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 47,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 54,
      "end_line": 99,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000041",
      "kind": "instance_candidate",
      "line": 99,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"instance_id\": m.get(\"instance_id\") or rem.get(\"instance_id\") or label or \"unknown\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L99",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 100,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000042",
      "kind": "instance_candidate",
      "line": 100,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"image\": m.get(\"image\") or rem.get(\"image_url\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L100",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 35,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 100,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000043",
      "kind": "instance_candidate",
      "line": 100,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"image\": m.get(\"image\") or rem.get(\"image_url\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L100",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 101,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000044",
      "kind": "instance_candidate",
      "line": 101,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"workdir\": m.get(\"workdir\") or rem.get(\"workdir\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L101",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 101,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000045",
      "kind": "instance_candidate",
      "line": 101,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"workdir\": m.get(\"workdir\") or rem.get(\"workdir\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L101",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 102,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000046",
      "kind": "instance_candidate",
      "line": 102,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"problem_statement\": m.get(\"problem_statement\") or _coerce_prompt(sample.prompt),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L102",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 108,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000047",
      "kind": "instance_candidate",
      "line": 108,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            \"pre_commands\": m.get(\"pre_commands\") or rem.get(\"pre_commands\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L108",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 53,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 60,
      "end_line": 108,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000048",
      "kind": "instance_candidate",
      "line": 108,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            \"pre_commands\": m.get(\"pre_commands\") or rem.get(\"pre_commands\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L108",
      "symbol": "_metadata_scaleswe"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 117,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000049",
      "kind": "instance_candidate",
      "line": 117,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    rem = m.get(\"remote_env_info\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L117",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 119,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000050",
      "kind": "instance_candidate",
      "line": 119,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"instance_id\": rem.get(\"instance_id\") or \"unknown\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L119",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 120,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000051",
      "kind": "instance_candidate",
      "line": 120,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"repo\": rem.get(\"repo\") or \"\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L120",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 121,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000052",
      "kind": "instance_candidate",
      "line": 121,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"version\": rem.get(\"version\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L121",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 122,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000053",
      "kind": "instance_candidate",
      "line": 122,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"base_commit\": rem.get(\"base_commit\") or \"\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L122",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 123,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000054",
      "kind": "instance_candidate",
      "line": 123,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"problem_statement\": rem.get(\"problem_statement\") or _coerce_prompt(sample.prompt),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L123",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 124,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000055",
      "kind": "instance_candidate",
      "line": 124,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"hints_text\": rem.get(\"hints_text\") or \"\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L124",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 125,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000056",
      "kind": "instance_candidate",
      "line": 125,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"test_patch\": rem.get(\"test_patch\") or \"\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L125",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 126,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000057",
      "kind": "instance_candidate",
      "line": 126,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"FAIL_TO_PASS\": rem.get(\"FAIL_TO_PASS\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L126",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 127,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000058",
      "kind": "instance_candidate",
      "line": 127,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"PASS_TO_PASS\": rem.get(\"PASS_TO_PASS\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L127",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 128,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000059",
      "kind": "instance_candidate",
      "line": 128,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"environment_setup_commit\": rem.get(\"environment_setup_commit\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L128",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 133,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000060",
      "kind": "instance_candidate",
      "line": 133,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"image\": rem.get(\"image\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L133",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "rem",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 134,
      "expression": "rem.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000061",
      "kind": "instance_candidate",
      "line": 134,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        \"workdir\": rem.get(\"workdir\") or \"/testbed\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L134",
      "symbol": "_metadata_swebench"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 146,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000062",
      "kind": "instance_candidate",
      "line": 146,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            if isinstance(m, dict) and m.get(\"role\") == \"user\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L146",
      "symbol": "_coerce_prompt"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 147,
      "expression": "m.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000063",
      "kind": "instance_candidate",
      "line": 147,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "                return flatten_content(m.get(\"content\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L147",
      "symbol": "_coerce_prompt"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 13,
      "end_line": 152,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000064",
      "kind": "instance_candidate",
      "line": 152,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if md.get(\"protocol\") == PROTOCOL_SWEBENCH:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L152",
      "symbol": "evaluability_check"
    },
    {
      "category": "candidates",
      "col": 53,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 59,
      "end_line": 154,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000065",
      "kind": "instance_candidate",
      "line": 154,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    return \"protocol_row_mismatch:looks_swebench\" if md.get(\"looks_swebench\") else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L154",
      "symbol": "evaluability_check"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "md.get(\"grading\", {})",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 160,
      "expression": "md.get(\"grading\", {}).get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000066",
      "kind": "instance_candidate",
      "line": 160,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    inst = md.get(\"grading\", {}).get(\"sweb_instance\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L160",
      "symbol": "_evaluability_check_swebench"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 160,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000067",
      "kind": "instance_candidate",
      "line": 160,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    inst = md.get(\"grading\", {}).get(\"sweb_instance\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L160",
      "symbol": "_evaluability_check_swebench"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "inst",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 161,
      "expression": "inst.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000068",
      "kind": "instance_candidate",
      "line": 161,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if not inst.get(\"repo\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L161",
      "symbol": "_evaluability_check_swebench"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "inst",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 163,
      "expression": "inst.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000069",
      "kind": "instance_candidate",
      "line": 163,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if not inst.get(\"base_commit\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L163",
      "symbol": "_evaluability_check_swebench"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "inst",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 165,
      "expression": "inst.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000070",
      "kind": "instance_candidate",
      "line": 165,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if not (inst.get(\"test_patch\") or \"\").strip():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L165",
      "symbol": "_evaluability_check_swebench"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 198,
      "expression": "async def prepare_workspace(sb: Sandbox, workdir: str, md: dict) -> None:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000071",
      "kind": "async_def",
      "line": 177,
      "module": "examples.coding_agent_rl.swe",
      "name": "prepare_workspace",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def prepare_workspace(sb: Sandbox, workdir: str, md: dict) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L177-L198",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 54,
      "end_line": 185,
      "expression": "await agent_sandbox.ensure_agent_user(sb, workdir)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000072",
      "kind": "await",
      "line": 185,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await agent_sandbox.ensure_agent_user(sb, workdir)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L185",
      "symbol": "prepare_workspace"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 13,
      "end_line": 186,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000073",
      "kind": "instance_candidate",
      "line": 186,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if md.get(\"protocol\") == PROTOCOL_SCALESWE:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L186",
      "symbol": "prepare_workspace"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 187,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000074",
      "kind": "instance_candidate",
      "line": 187,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        grading = md.get(\"grading\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L187",
      "symbol": "prepare_workspace"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 188,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000075",
      "kind": "instance_candidate",
      "line": 188,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        swepro = grading.get(\"swepro\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L188",
      "symbol": "prepare_workspace"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 64,
      "end_line": 190,
      "expression": "await apply_before_repo_set_cmd(sb, workdir, swepro)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000076",
      "kind": "await",
      "line": 190,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await apply_before_repo_set_cmd(sb, workdir, swepro)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L190",
      "symbol": "prepare_workspace"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 191,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000077",
      "kind": "instance_candidate",
      "line": 191,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        pre_commands = grading.get(\"pre_commands\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L191",
      "symbol": "prepare_workspace"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 63,
      "end_line": 193,
      "expression": "await apply_pre_commands(sb, workdir, pre_commands)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000078",
      "kind": "await",
      "line": 193,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await apply_pre_commands(sb, workdir, pre_commands)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L193",
      "symbol": "prepare_workspace"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 198,
      "expression": "await sb.write_file(\n        f\"{workdir}/PROBLEM_STATEMENT.md\",\n        md.get(\"problem_statement\") or \"\",\n        user=\"agent\",\n    )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000079",
      "kind": "await",
      "line": 194,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.write_file(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L194-L198",
      "symbol": "prepare_workspace"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 14,
      "end_line": 196,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000080",
      "kind": "instance_candidate",
      "line": 196,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        md.get(\"problem_statement\") or \"\",",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L196",
      "symbol": "prepare_workspace"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 99,
      "end_line": 211,
      "expression": "async def apply_before_repo_set_cmd(sb: Sandbox, workdir: str, swepro: dict) -> None:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000081",
      "kind": "async_def",
      "line": 201,
      "module": "examples.coding_agent_rl.swe",
      "name": "apply_before_repo_set_cmd",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def apply_before_repo_set_cmd(sb: Sandbox, workdir: str, swepro: dict) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L201-L211",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "swepro",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 203,
      "expression": "swepro.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000082",
      "kind": "instance_candidate",
      "line": 203,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    before = swepro.get(\"before_repo_set_cmd\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L203",
      "symbol": "apply_before_repo_set_cmd"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 209,
      "expression": "await sb.exec(\n        \"mkdir -p /workspace/swepro_setup && chown agent:agent /workspace/swepro_setup\", user=\"root\", check=True\n    )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000083",
      "kind": "await",
      "line": 207,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L207-L209",
      "symbol": "apply_before_repo_set_cmd"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 83,
      "end_line": 210,
      "expression": "await sb.write_file(\"/workspace/swepro_setup/before.sh\", payload, user=\"agent\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000084",
      "kind": "await",
      "line": 210,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.write_file(\"/workspace/swepro_setup/before.sh\", payload, user=\"agent\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L210",
      "symbol": "apply_before_repo_set_cmd"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 99,
      "end_line": 211,
      "expression": "await sb.exec(\"bash /workspace/swepro_setup/before.sh\", user=\"agent\", check=False, timeout=600)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000085",
      "kind": "await",
      "line": 211,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.exec(\"bash /workspace/swepro_setup/before.sh\", user=\"agent\", check=False, timeout=600)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L211",
      "symbol": "apply_before_repo_set_cmd"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 109,
      "end_line": 224,
      "expression": "async def apply_pre_commands(sb: Sandbox, workdir: str, pre: list[str] | str) -> None:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000086",
      "kind": "async_def",
      "line": 214,
      "module": "examples.coding_agent_rl.swe",
      "name": "apply_pre_commands",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def apply_pre_commands(sb: Sandbox, workdir: str, pre: list[str] | str) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L214-L224",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 222,
      "expression": "\"\\n\".join",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000087",
      "kind": "instance_candidate",
      "line": 222,
      "module": "examples.coding_agent_rl.swe",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        body = \"\\n\".join(c for c in (pre or []) if c)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L222",
      "symbol": "apply_pre_commands"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 62,
      "end_line": 223,
      "expression": "await sb.write_file(_PRE, \"set -e\\n\" + body, user=\"agent\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000088",
      "kind": "await",
      "line": 223,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.write_file(_PRE, \"set -e\\n\" + body, user=\"agent\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L223",
      "symbol": "apply_pre_commands"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 109,
      "end_line": 224,
      "expression": "await sb.exec(f\"chmod 755 {_PRE} && cd {workdir} && bash {_PRE}\", user=\"agent\", check=False, timeout=600)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000089",
      "kind": "await",
      "line": 224,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await sb.exec(f\"chmod 755 {_PRE} && cd {workdir} && bash {_PRE}\", user=\"agent\", check=False, timeout=600)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L224",
      "symbol": "apply_pre_commands"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 14,
      "end_line": 233,
      "expression": "async def git_diff(sb: Sandbox, workdir: str) -> str:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000090",
      "kind": "async_def",
      "line": 230,
      "module": "examples.coding_agent_rl.swe",
      "name": "git_diff",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def git_diff(sb: Sandbox, workdir: str) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L230-L233",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 61,
      "end_line": 232,
      "expression": "await sb.exec(cmd, user=\"agent\", timeout=120)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000091",
      "kind": "await",
      "line": 232,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    _, out, _ = await sb.exec(cmd, user=\"agent\", timeout=120)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L232",
      "symbol": "git_diff"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 60,
      "end_line": 247,
      "expression": "async def run_evaluation(md: dict, *, diff_text: str, timeout_sec: int) -> EvalResult:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000092",
      "kind": "async_def",
      "line": 239,
      "module": "examples.coding_agent_rl.swe",
      "name": "run_evaluation",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def run_evaluation(md: dict, *, diff_text: str, timeout_sec: int) -> EvalResult:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L239-L247",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 13,
      "end_line": 245,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000093",
      "kind": "instance_candidate",
      "line": 245,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if md.get(\"protocol\") == PROTOCOL_SWEBENCH:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L245",
      "symbol": "run_evaluation"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 64,
      "end_line": 246,
      "expression": "await _grade_swebench(md, diff_text, timeout_sec)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000094",
      "kind": "await",
      "line": 246,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        return await _grade_swebench(md, diff_text, timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L246",
      "symbol": "run_evaluation"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 60,
      "end_line": 247,
      "expression": "await _grade_scaleswe(md, diff_text, timeout_sec)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000095",
      "kind": "await",
      "line": 247,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    return await _grade_scaleswe(md, diff_text, timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L247",
      "symbol": "run_evaluation"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 287,
      "expression": "async def _grade_scaleswe(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000096",
      "kind": "async_def",
      "line": 253,
      "module": "examples.coding_agent_rl.swe",
      "name": "_grade_scaleswe",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _grade_scaleswe(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L253-L287",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "md",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 259,
      "expression": "md.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000097",
      "kind": "instance_candidate",
      "line": 259,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    grading = md.get(\"grading\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L259",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 260,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000098",
      "kind": "instance_candidate",
      "line": 260,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    swepro = grading.get(\"swepro\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L260",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 261,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000099",
      "kind": "instance_candidate",
      "line": 261,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    eval_cmd = grading.get(\"eval_cmd\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L261",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 262,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000100",
      "kind": "instance_candidate",
      "line": 262,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    f2p_script = grading.get(\"f2p_script\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L262",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "grading",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 263,
      "expression": "grading.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000101",
      "kind": "instance_candidate",
      "line": 263,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    pre_commands = grading.get(\"pre_commands\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L263",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 34,
      "end_line": 287,
      "expression": "    async with E2BSandbox(image) as ev:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000102",
      "kind": "async_with",
      "line": 269,
      "module": "examples.coding_agent_rl.swe",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    async with E2BSandbox(image) as ev:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L269-L287",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 58,
      "end_line": 270,
      "expression": "await agent_sandbox.ensure_agent_user(ev, workdir)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000103",
      "kind": "await",
      "line": 270,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        await agent_sandbox.ensure_agent_user(ev, workdir)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L270",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 50,
      "end_line": 272,
      "expression": "await _setup_swepro_assets(ev, swepro)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000104",
      "kind": "await",
      "line": 272,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await _setup_swepro_assets(ev, swepro)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L272",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 64,
      "end_line": 273,
      "expression": "await apply_before_repo_set_cmd(ev, workdir, swepro)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000105",
      "kind": "await",
      "line": 273,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await apply_before_repo_set_cmd(ev, workdir, swepro)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L273",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 63,
      "end_line": 275,
      "expression": "await apply_pre_commands(ev, workdir, pre_commands)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000106",
      "kind": "await",
      "line": 275,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await apply_pre_commands(ev, workdir, pre_commands)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L275",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 59,
      "end_line": 277,
      "expression": "await _apply_diff(ev, workdir, diff_text)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000107",
      "kind": "await",
      "line": 277,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        applied = await _apply_diff(ev, workdir, diff_text)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L277",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 67,
      "end_line": 282,
      "expression": "await _run_swepro(ev, workdir, swepro, timeout_sec)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000108",
      "kind": "await",
      "line": 282,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            r = await _run_swepro(ev, workdir, swepro, timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L282",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 71,
      "end_line": 284,
      "expression": "await _run_eval_cmd(ev, workdir, eval_cmd, timeout_sec)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000109",
      "kind": "await",
      "line": 284,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            r = await _run_eval_cmd(ev, workdir, eval_cmd, timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L284",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 75,
      "end_line": 286,
      "expression": "await _run_f2p_script(ev, workdir, f2p_script, timeout_sec)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000110",
      "kind": "await",
      "line": 286,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            r = await _run_f2p_script(ev, workdir, f2p_script, timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L286",
      "symbol": "_grade_scaleswe"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 110,
      "end_line": 296,
      "expression": "async def _setup_swepro_assets(ev: Sandbox, swepro: dict) -> None:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000111",
      "kind": "async_def",
      "line": 290,
      "module": "examples.coding_agent_rl.swe",
      "name": "_setup_swepro_assets",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _setup_swepro_assets(ev: Sandbox, swepro: dict) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L290-L296",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 96,
      "end_line": 291,
      "expression": "await ev.exec(f\"mkdir -p {_SWEPRO_DIR} && chmod 777 {_SWEPRO_DIR}\", user=\"root\", check=True)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000112",
      "kind": "await",
      "line": 291,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.exec(f\"mkdir -p {_SWEPRO_DIR} && chmod 777 {_SWEPRO_DIR}\", user=\"root\", check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L291",
      "symbol": "_setup_swepro_assets"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "swepro",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 293,
      "expression": "swepro.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000113",
      "kind": "instance_candidate",
      "line": 293,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        host_p = swepro.get(k)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L293",
      "symbol": "_setup_swepro_assets"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 82,
      "end_line": 295,
      "expression": "await ev.write_file(f\"{_SWEPRO_DIR}/{dst}\", Path(host_p), user=\"root\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000114",
      "kind": "await",
      "line": 295,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "            await ev.write_file(f\"{_SWEPRO_DIR}/{dst}\", Path(host_p), user=\"root\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L295",
      "symbol": "_setup_swepro_assets"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 110,
      "end_line": 296,
      "expression": "await ev.exec(f\"chmod 755 {_SWEPRO_DIR}/* && chown -R agent:agent {_SWEPRO_DIR}\", user=\"root\", check=True)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000115",
      "kind": "await",
      "line": 296,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.exec(f\"chmod 755 {_SWEPRO_DIR}/* && chown -R agent:agent {_SWEPRO_DIR}\", user=\"root\", check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L296",
      "symbol": "_setup_swepro_assets"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 18,
      "end_line": 313,
      "expression": "async def _apply_diff(ev: Sandbox, workdir: str, diff_text: str) -> bool:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000116",
      "kind": "async_def",
      "line": 299,
      "module": "examples.coding_agent_rl.swe",
      "name": "_apply_diff",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _apply_diff(ev: Sandbox, workdir: str, diff_text: str) -> bool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L299-L313",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 56,
      "end_line": 302,
      "expression": "await ev.write_file(_PATCH, diff_text, user=\"agent\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000117",
      "kind": "await",
      "line": 302,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.write_file(_PATCH, diff_text, user=\"agent\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L302",
      "symbol": "_apply_diff"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "\" || \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 304,
      "expression": "\" || \".join",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000118",
      "kind": "instance_candidate",
      "line": 304,
      "module": "examples.coding_agent_rl.swe",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ladder = \" || \".join(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L304",
      "symbol": "_apply_diff"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 99,
      "end_line": 312,
      "expression": "await ev.exec(f\"cd {workdir} && ({ladder})\", user=\"agent\", check=False, timeout=120)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000119",
      "kind": "await",
      "line": 312,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ec, _, _ = await ev.exec(f\"cd {workdir} && ({ladder})\", user=\"agent\", check=False, timeout=120)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L312",
      "symbol": "_apply_diff"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 33,
      "end_line": 338,
      "expression": "async def _run_swepro(ev: Sandbox, workdir: str, swepro: dict, timeout: int) -> float:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000120",
      "kind": "async_def",
      "line": 316,
      "module": "examples.coding_agent_rl.swe",
      "name": "_run_swepro",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _run_swepro(ev: Sandbox, workdir: str, swepro: dict, timeout: int) -> float:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L316-L338",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 317,
      "expression": "\",\".join",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000121",
      "kind": "instance_candidate",
      "line": 317,
      "module": "examples.coding_agent_rl.swe",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    test_arg = \",\".join(swepro.get(\"selected_test_files\") or [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L317",
      "symbol": "_run_swepro"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "swepro",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 317,
      "expression": "swepro.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000122",
      "kind": "instance_candidate",
      "line": 317,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    test_arg = \",\".join(swepro.get(\"selected_test_files\") or [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L317",
      "symbol": "_run_swepro"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 326,
      "expression": "await ev.exec(\n        f\"cd {workdir} && bash {_SWEPRO_DIR}/run_script.sh {json.dumps(test_arg)} > {stdout_f} 2> {stderr_f} || true\",\n        user=\"agent\",\n        check=False,\n        timeout=timeout,\n    )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000123",
      "kind": "await",
      "line": 321,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L321-L326",
      "symbol": "_run_swepro"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 332,
      "expression": "await ev.exec(\n        f\"python3 {_SWEPRO_DIR}/parser.py {stdout_f} {stderr_f} {result_f}\",\n        user=\"agent\",\n        check=False,\n        timeout=120,\n    )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000124",
      "kind": "await",
      "line": 327,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L327-L332",
      "symbol": "_run_swepro"
    },
    {
      "category": "syntax",
      "col": 10,
      "details": {},
      "end_col": 52,
      "end_line": 333,
      "expression": "await ev.read_file(result_f, user=\"agent\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000125",
      "kind": "await",
      "line": 333,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    raw = await ev.read_file(result_f, user=\"agent\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L333",
      "symbol": "_run_swepro"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "parsed",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 335,
      "expression": "parsed.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000126",
      "kind": "instance_candidate",
      "line": 335,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    passed = {t[\"name\"] for t in parsed.get(\"tests\", []) if t.get(\"status\") == \"PASSED\"}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L335",
      "symbol": "_run_swepro"
    },
    {
      "category": "candidates",
      "col": 60,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 65,
      "end_line": 335,
      "expression": "t.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000127",
      "kind": "instance_candidate",
      "line": 335,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    passed = {t[\"name\"] for t in parsed.get(\"tests\", []) if t.get(\"status\") == \"PASSED\"}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L335",
      "symbol": "_run_swepro.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "swepro",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 336,
      "expression": "swepro.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000128",
      "kind": "instance_candidate",
      "line": 336,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    required = set(swepro.get(\"fail_to_pass\") or []) | set(swepro.get(\"pass_to_pass\") or [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L336",
      "symbol": "_run_swepro"
    },
    {
      "category": "candidates",
      "col": 59,
      "details": {
        "receiver": "swepro",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 69,
      "end_line": 336,
      "expression": "swepro.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000129",
      "kind": "instance_candidate",
      "line": 336,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    required = set(swepro.get(\"fail_to_pass\") or []) | set(swepro.get(\"pass_to_pass\") or [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L336",
      "symbol": "_run_swepro"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 343,
      "expression": "async def _run_eval_cmd(ev: Sandbox, workdir: str, cmd: str, timeout: int) -> float:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000130",
      "kind": "async_def",
      "line": 341,
      "module": "examples.coding_agent_rl.swe",
      "name": "_run_eval_cmd",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _run_eval_cmd(ev: Sandbox, workdir: str, cmd: str, timeout: int) -> float:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L341-L343",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 98,
      "end_line": 342,
      "expression": "await ev.exec(f\"cd {workdir} && {cmd}\", user=\"agent\", check=False, timeout=timeout)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000131",
      "kind": "await",
      "line": 342,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ec, _, _ = await ev.exec(f\"cd {workdir} && {cmd}\", user=\"agent\", check=False, timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L342",
      "symbol": "_run_eval_cmd"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 352,
      "expression": "async def _run_f2p_script(ev: Sandbox, workdir: str, script: str, timeout: int) -> float:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000132",
      "kind": "async_def",
      "line": 346,
      "module": "examples.coding_agent_rl.swe",
      "name": "_run_f2p_script",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _run_f2p_script(ev: Sandbox, workdir: str, script: str, timeout: int) -> float:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L346-L352",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 51,
      "end_line": 350,
      "expression": "await ev.write_file(_F2P, script, user=\"agent\")",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000133",
      "kind": "await",
      "line": 350,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    await ev.write_file(_F2P, script, user=\"agent\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L350",
      "symbol": "_run_f2p_script"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 106,
      "end_line": 351,
      "expression": "await ev.exec(f\"cd {workdir} && python {_F2P}\", user=\"agent\", check=False, timeout=timeout)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000134",
      "kind": "await",
      "line": 351,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ec, _, _ = await ev.exec(f\"cd {workdir} && python {_F2P}\", user=\"agent\", check=False, timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L351",
      "symbol": "_run_f2p_script"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 18,
      "end_line": 374,
      "expression": "async def _apply_model_patch(ev: Sandbox, workdir: str) -> bool:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000135",
      "kind": "async_def",
      "line": 364,
      "module": "examples.coding_agent_rl.swe",
      "name": "_apply_model_patch",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _apply_model_patch(ev: Sandbox, workdir: str) -> bool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L364-L374",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "\" || \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 368,
      "expression": "\" || \".join",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000136",
      "kind": "instance_candidate",
      "line": 368,
      "module": "examples.coding_agent_rl.swe",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ladder = \" || \".join(f\"{cmd} /tmp/patch.diff\" for cmd in _GIT_APPLY_CMDS)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L368",
      "symbol": "_apply_model_patch"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 72,
      "end_line": 373,
      "expression": "await ev.exec(cmd, user=\"root\", check=False, timeout=120)",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000137",
      "kind": "await",
      "line": 373,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ec, _, _ = await ev.exec(cmd, user=\"root\", check=False, timeout=120)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L373",
      "symbol": "_apply_model_patch"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "tmp",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 388,
      "expression": "tmp.write",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000138",
      "kind": "instance_candidate",
      "line": 388,
      "module": "examples.coding_agent_rl.swe",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        tmp.write(log)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L388",
      "symbol": "_eval_report_from_log"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "tmp",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 390,
      "expression": "tmp.close",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000139",
      "kind": "instance_candidate",
      "line": 390,
      "module": "examples.coding_agent_rl.swe",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        tmp.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L390",
      "symbol": "_eval_report_from_log"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "d",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 411,
      "expression": "d.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000140",
      "kind": "instance_candidate",
      "line": 411,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    passed, failed = d.get(\"success\", []), d.get(\"failure\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L411",
      "symbol": "_ratio"
    },
    {
      "category": "candidates",
      "col": 43,
      "details": {
        "receiver": "d",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 48,
      "end_line": 411,
      "expression": "d.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000141",
      "kind": "instance_candidate",
      "line": 411,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    passed, failed = d.get(\"success\", []), d.get(\"failure\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L411",
      "symbol": "_ratio"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 419,
      "expression": "info.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000142",
      "kind": "instance_candidate",
      "line": 419,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    if info.get(\"resolved\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L419",
      "symbol": "_log_swebench_result"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 422,
      "expression": "info.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000143",
      "kind": "instance_candidate",
      "line": 422,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    ts_status = info.get(\"tests_status\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L422",
      "symbol": "_log_swebench_result"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "ts_status",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 423,
      "expression": "ts_status.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000144",
      "kind": "instance_candidate",
      "line": 423,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    f2p_pass, f2p_total = _ratio(ts_status.get(\"FAIL_TO_PASS\", {}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L423",
      "symbol": "_log_swebench_result"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "ts_status",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 424,
      "expression": "ts_status.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000145",
      "kind": "instance_candidate",
      "line": 424,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    p2p_pass, p2p_total = _ratio(ts_status.get(\"PASS_TO_PASS\", {}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L424",
      "symbol": "_log_swebench_result"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 431,
      "expression": "info.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000146",
      "kind": "instance_candidate",
      "line": 431,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        bool(info.get(\"patch_successfully_applied\")),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L431",
      "symbol": "_log_swebench_result"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 105,
      "end_line": 492,
      "expression": "async def _grade_swebench(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000147",
      "kind": "async_def",
      "line": 440,
      "module": "examples.coding_agent_rl.swe",
      "name": "_grade_swebench",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "async def _grade_swebench(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L440-L492",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 9,
      "end_line": 477,
      "expression": "    async with E2BSandbox(image) as ev:",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000148",
      "kind": "async_with",
      "line": 465,
      "module": "examples.coding_agent_rl.swe",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    async with E2BSandbox(image) as ev:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L465-L477",
      "symbol": "_grade_swebench"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 469,
      "expression": "await asyncio.gather(\n            ev.write_file(\"/tmp/patch.diff\", diff_text or \"\", user=\"root\"),\n            ev.write_file(\"/tmp/eval.sh\", eval_sh, user=\"root\"),\n        )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000149",
      "kind": "await",
      "line": 466,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        await asyncio.gather(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L466-L469",
      "symbol": "_grade_swebench"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 466,
      "expression": "asyncio.gather",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000150",
      "kind": "api_call",
      "line": 466,
      "module": "examples.coding_agent_rl.swe",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        await asyncio.gather(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L466",
      "symbol": "_grade_swebench"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 58,
      "end_line": 472,
      "expression": "await _apply_model_patch(ev, md[\"workdir\"])",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000151",
      "kind": "await",
      "line": 472,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        if not await _apply_model_patch(ev, md[\"workdir\"]):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L472",
      "symbol": "_grade_swebench"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 9,
      "end_line": 477,
      "expression": "await exec_and_wait(\n            ev, cmd=\"bash /tmp/eval.sh\", user=\"root\", time_budget_sec=timeout_sec, tag=\"eval\", want_output=True\n        )",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000152",
      "kind": "await",
      "line": 475,
      "module": "examples.coding_agent_rl.swe",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "        exit_code, log = await exec_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L475-L477",
      "symbol": "_grade_swebench"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "report",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 490,
      "expression": "report.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000153",
      "kind": "instance_candidate",
      "line": 490,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    info = report.get(instance_id, {})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L490",
      "symbol": "_grade_swebench"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 492,
      "expression": "info.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000154",
      "kind": "instance_candidate",
      "line": 492,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    return EvalResult(1.0 if info.get(\"resolved\") else 0.0, bool(info.get(\"patch_successfully_applied\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L492",
      "symbol": "_grade_swebench"
    },
    {
      "category": "candidates",
      "col": 65,
      "details": {
        "receiver": "info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 73,
      "end_line": 492,
      "expression": "info.get",
      "file": "examples/coding_agent_rl/swe.py",
      "id": "occ-000155",
      "kind": "instance_candidate",
      "line": 492,
      "module": "examples.coding_agent_rl.swe",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/coding_agent_rl/swe.py.txt",
      "source_line": "    return EvalResult(1.0 if info.get(\"resolved\") else 0.0, bool(info.get(\"patch_successfully_applied\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/coding_agent_rl/swe.py#L492",
      "symbol": "_grade_swebench"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 66,
      "expression": "metadata.get",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000156",
      "kind": "instance_candidate",
      "line": 66,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "    tools = metadata.get(\"tools\") if metadata else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L66",
      "symbol": "_encode_observation_for_generation"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "multimodal_inputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 110,
      "expression": "multimodal_inputs.get",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000157",
      "kind": "instance_candidate",
      "line": 110,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "    if multimodal_inputs and multimodal_inputs.get(\"images\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L110",
      "symbol": "_encode_observation_for_generation"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "sample.multimodal_inputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 165,
      "expression": "sample.multimodal_inputs.get",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000158",
      "kind": "instance_candidate",
      "line": 165,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "    if sample.multimodal_inputs and sample.multimodal_inputs.get(\"images\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L165",
      "symbol": "_prepare_initial_inputs"
    },
    {
      "category": "candidates",
      "col": 9,
      "details": {
        "receiver": "sampling_params",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 187,
      "expression": "sampling_params.get",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000159",
      "kind": "instance_candidate",
      "line": 187,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "    elif sampling_params.get(\"max_new_tokens\") is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L187",
      "symbol": "_prepare_start_state"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 85,
      "end_line": 209,
      "expression": "async def _run_inference_step(url: str, tokens: list[int], sampling_params: dict, image_data, tokenizer):",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000160",
      "kind": "async_def",
      "line": 192,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "_run_inference_step",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "async def _run_inference_step(url: str, tokens: list[int], sampling_params: dict, image_data, tokenizer):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L192-L209",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 13,
      "details": {},
      "end_col": 37,
      "end_line": 201,
      "expression": "await post(url, payload)",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000161",
      "kind": "await",
      "line": 201,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "    output = await post(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L201",
      "symbol": "_run_inference_step"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 16,
      "end_line": 387,
      "expression": "async def generate(args: Any, sample: Sample, sampling_params) -> Sample:",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000162",
      "kind": "async_def",
      "line": 315,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "async def generate(args: Any, sample: Sample, sampling_params) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L315-L387",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "env",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 325,
      "expression": "env.reset",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000163",
      "kind": "instance_candidate",
      "line": 325,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "        env.reset()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L325",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 119,
      "end_line": 336,
      "expression": "await _run_inference_step(url, sample.tokens, cur_sampling_params, current_image_data, state.tokenizer)",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000164",
      "kind": "await",
      "line": 336,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "                await _run_inference_step(url, sample.tokens, cur_sampling_params, current_image_data, state.tokenizer)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L336",
      "symbol": "generate"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "env",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 385,
      "expression": "env.close",
      "file": "examples/geo3k_vlm_multi_turn/rollout.py",
      "id": "occ-000165",
      "kind": "instance_candidate",
      "line": 385,
      "module": "examples.geo3k_vlm_multi_turn.rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/geo3k_vlm_multi_turn/rollout.py.txt",
      "source_line": "            env.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/geo3k_vlm_multi_turn/rollout.py#L385",
      "symbol": "generate"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000166",
      "kind": "import",
      "line": 1,
      "module": "examples.multi_agent.agent_system",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 3
      },
      "end_col": 11,
      "end_line": 3,
      "expression": "import time",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000167",
      "kind": "import",
      "line": 3,
      "module": "examples.multi_agent.agent_system",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 86,
      "expression": "async def generate_response(args, prompt, key):",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000168",
      "kind": "async_def",
      "line": 14,
      "module": "examples.multi_agent.agent_system",
      "name": "generate_response",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "async def generate_response(args, prompt, key):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L14-L86",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 41,
      "end_line": 37,
      "expression": "await post(url, payload)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000169",
      "kind": "await",
      "line": 37,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "        output = await post(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L37",
      "symbol": "generate_response"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 105,
      "expression": "    async def run(self, args, prompt, max_retries: int = 1, key: str = None) -> str:",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000170",
      "kind": "async_def",
      "line": 95,
      "module": "examples.multi_agent.agent_system",
      "name": "run",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    async def run(self, args, prompt, max_retries: int = 1, key: str = None) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L95-L105",
      "symbol": "Agent"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 73,
      "end_line": 99,
      "expression": "await generate_response(args, prompt, key=key)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000171",
      "kind": "await",
      "line": 99,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "                response = await generate_response(args, prompt, key=key)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L99",
      "symbol": "Agent.run"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 103,
      "expression": "time.sleep",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000172",
      "kind": "api_call",
      "line": 103,
      "module": "examples.multi_agent.agent_system",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "                time.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L103",
      "symbol": "Agent.run"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 72,
      "end_line": 117,
      "expression": "    async def generate_initial_solution(self, args, problem_statement) -> str:",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000173",
      "kind": "async_def",
      "line": 114,
      "module": "examples.multi_agent.agent_system",
      "name": "generate_initial_solution",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    async def generate_initial_solution(self, args, problem_statement) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L114-L117",
      "symbol": "SolverAgent"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 72,
      "end_line": 117,
      "expression": "await self.run(args, prompt, max_retries=3, key=\"solver\")",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000174",
      "kind": "await",
      "line": 117,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "        return await self.run(args, prompt, max_retries=3, key=\"solver\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L117",
      "symbol": "SolverAgent.generate_initial_solution"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 74,
      "end_line": 138,
      "expression": "    async def rewrite(self, args, problem_statement, previous_solutions: list[str]) -> str:",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000175",
      "kind": "async_def",
      "line": 126,
      "module": "examples.multi_agent.agent_system",
      "name": "rewrite",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    async def rewrite(self, args, problem_statement, previous_solutions: list[str]) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L126-L138",
      "symbol": "RewriterAgent"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 74,
      "end_line": 138,
      "expression": "await self.run(args, prompt, max_retries=1, key=\"rewriter\")",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000176",
      "kind": "await",
      "line": 138,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "        return await self.run(args, prompt, max_retries=1, key=\"rewriter\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L138",
      "symbol": "RewriterAgent.rewrite"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 75,
      "end_line": 159,
      "expression": "    async def select(self, args, problem_statement, candidate_solutions: list[str]) -> str:",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000177",
      "kind": "async_def",
      "line": 147,
      "module": "examples.multi_agent.agent_system",
      "name": "select",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    async def select(self, args, problem_statement, candidate_solutions: list[str]) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L147-L159",
      "symbol": "SelectorAgent"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 75,
      "end_line": 159,
      "expression": "await self.run(args, prompt, max_retries=10, key=\"selector\")",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000178",
      "kind": "await",
      "line": 159,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "        return await self.run(args, prompt, max_retries=10, key=\"selector\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L159",
      "symbol": "SelectorAgent.select"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 23,
      "end_line": 179,
      "expression": "async def rewrite_worker(args, previous_solutions, problem_statement, worker_id):",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000179",
      "kind": "async_def",
      "line": 176,
      "module": "examples.multi_agent.agent_system",
      "name": "rewrite_worker",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "async def rewrite_worker(args, previous_solutions, problem_statement, worker_id):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L176-L179",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 86,
      "end_line": 178,
      "expression": "await rewriter.rewrite(args, problem_statement, previous_solutions)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000180",
      "kind": "await",
      "line": 178,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    new_solution = await rewriter.rewrite(args, problem_statement, previous_solutions)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L178",
      "symbol": "rewrite_worker"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 195,
      "expression": "async def solver_worker(args, problem_statement, worker_id):",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000181",
      "kind": "async_def",
      "line": 182,
      "module": "examples.multi_agent.agent_system",
      "name": "solver_worker",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "async def solver_worker(args, problem_statement, worker_id):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L182-L195",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 90,
      "end_line": 189,
      "expression": "await solver.generate_initial_solution(args, problem_statement)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000182",
      "kind": "await",
      "line": 189,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "        current_solution = await solver.generate_initial_solution(args, problem_statement)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L189",
      "symbol": "solver_worker"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 109,
      "end_line": 296,
      "expression": "async def run_agent_system(args, sample):",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000183",
      "kind": "async_def",
      "line": 198,
      "module": "examples.multi_agent.agent_system",
      "name": "run_agent_system",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "async def run_agent_system(args, sample):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L198-L296",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 66,
      "end_line": 222,
      "expression": "await asyncio.gather(*tasks, return_exceptions=True)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000184",
      "kind": "await",
      "line": 222,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    results = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L222",
      "symbol": "run_agent_system"
    },
    {
      "category": "asyncio",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 222,
      "expression": "asyncio.gather",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000185",
      "kind": "api_call",
      "line": 222,
      "module": "examples.multi_agent.agent_system",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    results = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L222",
      "symbol": "run_agent_system"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 71,
      "end_line": 224,
      "expression": "await batched_async_rm(args, args.results_dict[\"solver\"])",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000186",
      "kind": "await",
      "line": 224,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    rewards = await batched_async_rm(args, args.results_dict[\"solver\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L224",
      "symbol": "run_agent_system"
    },
    {
      "category": "syntax",
      "col": 29,
      "details": {},
      "end_col": 81,
      "end_line": 244,
      "expression": "await asyncio.gather(*tasks, return_exceptions=True)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000187",
      "kind": "await",
      "line": 244,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    rewrited_solutions_raw = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L244",
      "symbol": "run_agent_system"
    },
    {
      "category": "asyncio",
      "col": 35,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 244,
      "expression": "asyncio.gather",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000188",
      "kind": "api_call",
      "line": 244,
      "module": "examples.multi_agent.agent_system",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    rewrited_solutions_raw = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L244",
      "symbol": "run_agent_system"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 73,
      "end_line": 252,
      "expression": "await batched_async_rm(args, args.results_dict[\"rewriter\"])",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000189",
      "kind": "await",
      "line": 252,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    rewards = await batched_async_rm(args, args.results_dict[\"rewriter\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L252",
      "symbol": "run_agent_system"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 81,
      "end_line": 263,
      "expression": "await selector.select(args, problem_statement, rewrited_solutions)",
      "file": "examples/multi_agent/agent_system.py",
      "id": "occ-000190",
      "kind": "await",
      "line": 263,
      "module": "examples.multi_agent.agent_system",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/agent_system.py.txt",
      "source_line": "    response = await selector.select(args, problem_statement, rewrited_solutions)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/agent_system.py#L263",
      "symbol": "run_agent_system"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 18,
      "end_line": 33,
      "expression": "async def generate_with_multi_agents(args, sample: Sample, sampling_params, evaluation=False) -> list[Sample]:",
      "file": "examples/multi_agent/rollout_with_multi_agents.py",
      "id": "occ-000191",
      "kind": "async_def",
      "line": 16,
      "module": "examples.multi_agent.rollout_with_multi_agents",
      "name": "generate_with_multi_agents",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/rollout_with_multi_agents.py.txt",
      "source_line": "async def generate_with_multi_agents(args, sample: Sample, sampling_params, evaluation=False) -> list[Sample]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/rollout_with_multi_agents.py#L16-L33",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 57,
      "end_line": 29,
      "expression": "await custom_multi_agent_func(args, sample)",
      "file": "examples/multi_agent/rollout_with_multi_agents.py",
      "id": "occ-000192",
      "kind": "await",
      "line": 29,
      "module": "examples.multi_agent.rollout_with_multi_agents",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/multi_agent/rollout_with_multi_agents.py.txt",
      "source_line": "    samples = await custom_multi_agent_func(args, sample)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/multi_agent/rollout_with_multi_agents.py#L29",
      "symbol": "generate_with_multi_agents"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "tool_call_data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 120,
      "expression": "tool_call_data.get",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000193",
      "kind": "instance_candidate",
      "line": 120,
      "module": "examples.retool.generate_with_retool",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "            tool_name = tool_call_data.get(\"name\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L120",
      "symbol": "postprocess_predictions"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "tool_call_data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 121,
      "expression": "tool_call_data.get",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000194",
      "kind": "instance_candidate",
      "line": 121,
      "module": "examples.retool.generate_with_retool",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "            arguments = tool_call_data.get(\"arguments\", {})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L121",
      "symbol": "postprocess_predictions"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "arguments",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 124,
      "expression": "arguments.get",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000195",
      "kind": "instance_candidate",
      "line": 124,
      "module": "examples.retool.generate_with_retool",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "                code = arguments.get(\"code\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L124",
      "symbol": "postprocess_predictions"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 212,
      "expression": "async def execute_predictions(prediction: str) -> str:",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000196",
      "kind": "async_def",
      "line": 183,
      "module": "examples.retool.generate_with_retool",
      "name": "execute_predictions",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "async def execute_predictions(prediction: str) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L183-L212",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 93,
      "end_line": 193,
      "expression": "            async with SEMAPHORE:",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000197",
      "kind": "async_with",
      "line": 192,
      "module": "examples.retool.generate_with_retool",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "            async with SEMAPHORE:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L192-L193",
      "symbol": "execute_predictions"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 93,
      "end_line": 193,
      "expression": "await tool_registry.execute_tool(\"code_interpreter\", {\"code\": code})",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000198",
      "kind": "await",
      "line": 193,
      "module": "examples.retool.generate_with_retool",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "                result = await tool_registry.execute_tool(\"code_interpreter\", {\"code\": code})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L193",
      "symbol": "execute_predictions"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 404,
      "expression": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000199",
      "kind": "async_def",
      "line": 215,
      "module": "examples.retool.generate_with_retool",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L215-L404",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "sampling_params",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 266,
      "expression": "sampling_params.get",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000200",
      "kind": "instance_candidate",
      "line": 266,
      "module": "examples.retool.generate_with_retool",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "            sampling_params.get(\"max_new_tokens\", remaining_budget),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L266",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 41,
      "end_line": 299,
      "expression": "await post(url, payload)",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000201",
      "kind": "await",
      "line": 299,
      "module": "examples.retool.generate_with_retool",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "        output = await post(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L299",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 64,
      "end_line": 335,
      "expression": "await execute_predictions(cur_response)",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000202",
      "kind": "await",
      "line": 335,
      "module": "examples.retool.generate_with_retool",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "        next_obs, done = await execute_predictions(cur_response)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L335",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 432,
      "expression": "async def reward_func(args, sample, **kwargs):",
      "file": "examples/retool/generate_with_retool.py",
      "id": "occ-000203",
      "kind": "async_def",
      "line": 407,
      "module": "examples.retool.generate_with_retool",
      "name": "reward_func",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/generate_with_retool.py.txt",
      "source_line": "async def reward_func(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/generate_with_retool.py#L407-L432",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 14,
      "end_line": 10,
      "expression": "import asyncio",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000204",
      "kind": "import",
      "line": 10,
      "module": "examples.retool.tool_sandbox",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 14
      },
      "end_col": 17,
      "end_line": 14,
      "expression": "import subprocess",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000205",
      "kind": "import",
      "line": 14,
      "module": "examples.retool.tool_sandbox",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L14",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 38,
      "expression": "asyncio.Semaphore",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000206",
      "kind": "api_call",
      "line": 38,
      "module": "examples.retool.tool_sandbox",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "SEMAPHORE = asyncio.Semaphore(TOOL_CONFIGS[\"tool_concurrency\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L38",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 297,
      "expression": "    async def execute_code(self, code: str) -> str:",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000207",
      "kind": "async_def",
      "line": 193,
      "module": "examples.retool.tool_sandbox",
      "name": "execute_code",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "    async def execute_code(self, code: str) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L193-L297",
      "symbol": "PythonSandbox"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 209,
      "expression": "\"\\n\".join",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000208",
      "kind": "instance_candidate",
      "line": 209,
      "module": "examples.retool.tool_sandbox",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "        indented_code = \"\\n\".join(\"    \" + line for line in code.split(\"\\n\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L209",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 263,
      "expression": "f.write",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000209",
      "kind": "instance_candidate",
      "line": 263,
      "module": "examples.retool.tool_sandbox",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                f.write(wrapped_code)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L263",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "subprocess",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 267,
      "expression": "subprocess.Popen",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000210",
      "kind": "api_call",
      "line": 267,
      "module": "examples.retool.tool_sandbox",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                process = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L267",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "subprocess",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 269,
      "expression": "subprocess.PIPE",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000211",
      "kind": "api_reference",
      "line": 269,
      "module": "examples.retool.tool_sandbox",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                    stdout=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L269",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "subprocess",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 270,
      "expression": "subprocess.PIPE",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000212",
      "kind": "api_reference",
      "line": 270,
      "module": "examples.retool.tool_sandbox",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                    stderr=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L270",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                    [\"python3\", script_path],\n                    stdout=subprocess.PIPE,\n                    stderr=subprocess.PIPE,\n                    env=env,\n                    cwd=temp_dir,\n                    text=True,\n                )",
          "line": 267,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 56,
      "end_line": 278,
      "expression": "process.communicate",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000213",
      "kind": "instance_candidate",
      "line": 278,
      "module": "examples.retool.tool_sandbox",
      "name": "communicate",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                    stdout, stderr = process.communicate(timeout=self.timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L278",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 285,
      "expression": "subprocess.TimeoutExpired",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000214",
      "kind": "api_reference",
      "line": 285,
      "module": "examples.retool.tool_sandbox",
      "name": "subprocess.TimeoutExpired",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                except subprocess.TimeoutExpired:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L285",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                    [\"python3\", script_path],\n                    stdout=subprocess.PIPE,\n                    stderr=subprocess.PIPE,\n                    env=env,\n                    cwd=temp_dir,\n                    text=True,\n                )",
          "line": 267,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 286,
      "expression": "process.kill",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000215",
      "kind": "instance_candidate",
      "line": 286,
      "module": "examples.retool.tool_sandbox",
      "name": "kill",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                    process.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L286",
      "symbol": "PythonSandbox.execute_code"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 67,
      "end_line": 346,
      "expression": "    async def execute_tool(self, tool_name: str, arguments: dict[str, Any]) -> str:",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000216",
      "kind": "async_def",
      "line": 337,
      "module": "examples.retool.tool_sandbox",
      "name": "execute_tool",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "    async def execute_tool(self, tool_name: str, arguments: dict[str, Any]) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L337-L346",
      "symbol": "ToolRegistry"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 67,
      "end_line": 346,
      "expression": "        async with SEMAPHORE:",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000217",
      "kind": "async_with",
      "line": 342,
      "module": "examples.retool.tool_sandbox",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "        async with SEMAPHORE:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L342-L346",
      "symbol": "ToolRegistry.execute_tool"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 60,
      "end_line": 344,
      "expression": "await self._execute_python(arguments)",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000218",
      "kind": "await",
      "line": 344,
      "module": "examples.retool.tool_sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "                return await self._execute_python(arguments)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L344",
      "symbol": "ToolRegistry.execute_tool"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 356,
      "expression": "    async def _execute_python(self, arguments: dict[str, Any]) -> str:",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000219",
      "kind": "async_def",
      "line": 348,
      "module": "examples.retool.tool_sandbox",
      "name": "_execute_python",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "    async def _execute_python(self, arguments: dict[str, Any]) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L348-L356",
      "symbol": "ToolRegistry"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "arguments",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 350,
      "expression": "arguments.get",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000220",
      "kind": "instance_candidate",
      "line": 350,
      "module": "examples.retool.tool_sandbox",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "        code = arguments.get(\"code\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L350",
      "symbol": "ToolRegistry._execute_python"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 61,
      "end_line": 355,
      "expression": "await self.python_sandbox.execute_code(code)",
      "file": "examples/retool/tool_sandbox.py",
      "id": "occ-000221",
      "kind": "await",
      "line": 355,
      "module": "examples.retool.tool_sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/retool/tool_sandbox.py.txt",
      "source_line": "        result = await self.python_sandbox.execute_code(code)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/retool/tool_sandbox.py#L355",
      "symbol": "ToolRegistry._execute_python"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 4
      },
      "end_col": 14,
      "end_line": 4,
      "expression": "import asyncio",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000222",
      "kind": "import",
      "line": 4,
      "module": "examples.search-r1.generate_with_search",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 41,
      "expression": "asyncio.Semaphore",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000223",
      "kind": "api_call",
      "line": 41,
      "module": "examples.search-r1.generate_with_search",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "SEMAPHORE = asyncio.Semaphore(SEARCH_R1_CONFIGS[\"search_concurrency\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L41",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 53,
      "expression": "\"\\n\".join",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000224",
      "kind": "instance_candidate",
      "line": 53,
      "module": "examples.search-r1.generate_with_search",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        text = \"\\n\".join(content.split(\"\\n\")[1:])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L53",
      "symbol": "_passages2string"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 35,
      "end_line": 90,
      "expression": "async def search(query: str) -> str:",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000225",
      "kind": "async_def",
      "line": 59,
      "module": "examples.search-r1.generate_with_search",
      "name": "search",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "async def search(query: str) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L59-L90",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 9,
      "end_line": 75,
      "expression": "await local_search(\n            local_config[\"search_url\"],\n            query,\n            SEARCH_R1_CONFIGS[\"topk\"],\n            proxy=local_config[\"proxy\"],\n        )",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000226",
      "kind": "await",
      "line": 70,
      "module": "examples.search-r1.generate_with_search",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        result = await local_search(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L70-L75",
      "symbol": "search"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 9,
      "end_line": 86,
      "expression": "await google_search(\n            google_config[\"api_key\"],\n            query,\n            SEARCH_R1_CONFIGS[\"topk\"],\n            snippet_only=google_config[\"snippet_only\"],\n            proxy=google_config[\"proxy\"],\n        )",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000227",
      "kind": "await",
      "line": 80,
      "module": "examples.search-r1.generate_with_search",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        result = await google_search(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L80-L86",
      "symbol": "search"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 142,
      "expression": "async def execute_predictions(prediction: str) -> str:",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000228",
      "kind": "async_def",
      "line": 124,
      "module": "examples.search-r1.generate_with_search",
      "name": "execute_predictions",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "async def execute_predictions(prediction: str) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L124-L142",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 55,
      "end_line": 130,
      "expression": "        async with SEMAPHORE:",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000229",
      "kind": "async_with",
      "line": 129,
      "module": "examples.search-r1.generate_with_search",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        async with SEMAPHORE:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L129-L130",
      "symbol": "execute_predictions"
    },
    {
      "category": "syntax",
      "col": 29,
      "details": {},
      "end_col": 55,
      "end_line": 130,
      "expression": "await search(search_query)",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000230",
      "kind": "await",
      "line": 130,
      "module": "examples.search-r1.generate_with_search",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "            search_results = await search(search_query)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L130",
      "symbol": "execute_predictions"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 274,
      "expression": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000231",
      "kind": "async_def",
      "line": 145,
      "module": "examples.search-r1.generate_with_search",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L145-L274",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "sampling_params",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 174,
      "expression": "sampling_params.get",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000232",
      "kind": "instance_candidate",
      "line": 174,
      "module": "examples.search-r1.generate_with_search",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "    _existing_stop = sampling_params.get(\"stop\") or []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L174",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 41,
      "end_line": 188,
      "expression": "await post(url, payload)",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000233",
      "kind": "await",
      "line": 188,
      "module": "examples.search-r1.generate_with_search",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        output = await post(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L188",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 64,
      "end_line": 235,
      "expression": "await execute_predictions(cur_response)",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000234",
      "kind": "await",
      "line": 235,
      "module": "examples.search-r1.generate_with_search",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "        next_obs, done = await execute_predictions(cur_response)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L235",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 16,
      "end_line": 293,
      "expression": "async def reward_func(args, sample, **kwargs):",
      "file": "examples/search-r1/generate_with_search.py",
      "id": "occ-000235",
      "kind": "async_def",
      "line": 277,
      "module": "examples.search-r1.generate_with_search",
      "name": "reward_func",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/generate_with_search.py.txt",
      "source_line": "async def reward_func(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/generate_with_search.py#L277-L293",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000236",
      "kind": "import",
      "line": 1,
      "module": "examples.search-r1.google_search_server",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 33,
      "expression": "result.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000237",
      "kind": "instance_candidate",
      "line": 33,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        for item in result.get(\"items\", []):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L33",
      "symbol": "filter_links"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 60,
      "expression": "async def fetch(session: aiohttp.ClientSession, url: str, semaphore: asyncio.Semaphore) -> str:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000238",
      "kind": "async_def",
      "line": 42,
      "module": "examples.search-r1.google_search_server",
      "name": "fetch",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "async def fetch(session: aiohttp.ClientSession, url: str, semaphore: asyncio.Semaphore) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L42-L60",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 69,
      "details": {
        "access": "load"
      },
      "end_col": 86,
      "end_line": 42,
      "expression": "asyncio.Semaphore",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000239",
      "kind": "api_reference",
      "line": 42,
      "module": "examples.search-r1.google_search_server",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "async def fetch(session: aiohttp.ClientSession, url: str, semaphore: asyncio.Semaphore) -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L42",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 21,
      "end_line": 60,
      "expression": "    async with semaphore:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000240",
      "kind": "async_with",
      "line": 52,
      "module": "examples.search-r1.google_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "    async with semaphore:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L52-L60",
      "symbol": "fetch"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 60,
      "end_line": 58,
      "expression": "            async with session.get(url, headers=headers) as response:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000241",
      "kind": "async_with",
      "line": 54,
      "module": "examples.search-r1.google_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            async with session.get(url, headers=headers) as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L54-L58",
      "symbol": "fetch"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "session",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 54,
      "expression": "session.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000242",
      "kind": "instance_candidate",
      "line": 54,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            async with session.get(url, headers=headers) as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L54",
      "symbol": "fetch"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 43,
      "end_line": 55,
      "expression": "await response.read()",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000243",
      "kind": "await",
      "line": 55,
      "module": "examples.search-r1.google_search_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "                raw = await response.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L55",
      "symbol": "fetch"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "response",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 55,
      "expression": "response.read",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000244",
      "kind": "instance_candidate",
      "line": 55,
      "module": "examples.search-r1.google_search_server",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "                raw = await response.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L55",
      "symbol": "fetch"
    },
    {
      "category": "asyncio",
      "col": 37,
      "details": {
        "access": "load"
      },
      "end_col": 57,
      "end_line": 59,
      "expression": "asyncio.TimeoutError",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000245",
      "kind": "api_reference",
      "line": 59,
      "module": "examples.search-r1.google_search_server",
      "name": "asyncio.TimeoutError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        except (aiohttp.ClientError, asyncio.TimeoutError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L59",
      "symbol": "fetch"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 43,
      "end_line": 70,
      "expression": "async def fetch_all(urls: list[str], limit: int = 8) -> list[str]:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000246",
      "kind": "async_def",
      "line": 63,
      "module": "examples.search-r1.google_search_server",
      "name": "fetch_all",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "async def fetch_all(urls: list[str], limit: int = 8) -> list[str]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L63-L70",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 64,
      "expression": "asyncio.Semaphore",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000247",
      "kind": "api_call",
      "line": 64,
      "module": "examples.search-r1.google_search_server",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "    semaphore = asyncio.Semaphore(limit)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L64",
      "symbol": "fetch_all"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 43,
      "end_line": 70,
      "expression": "    async with aiohttp.ClientSession(timeout=timeout, connector=connector) as session:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000248",
      "kind": "async_with",
      "line": 68,
      "module": "examples.search-r1.google_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "    async with aiohttp.ClientSession(timeout=timeout, connector=connector) as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L68-L70",
      "symbol": "fetch_all"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 43,
      "end_line": 70,
      "expression": "await asyncio.gather(*tasks)",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000249",
      "kind": "await",
      "line": 70,
      "module": "examples.search-r1.google_search_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        return await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L70",
      "symbol": "fetch_all"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 70,
      "expression": "asyncio.gather",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000250",
      "kind": "api_call",
      "line": 70,
      "module": "examples.search-r1.google_search_server",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        return await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L70",
      "symbol": "fetch_all"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 91,
      "expression": "\"\\n\".join",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000251",
      "kind": "instance_candidate",
      "line": 91,
      "module": "examples.search-r1.google_search_server",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "    return \"\\n\".join(ctx_paras)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L91",
      "symbol": "collect_context"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 149,
      "expression": "async def google_search(api_key, query, top_k=5, timeout: int = 60, proxy=None, snippet_only=False) -> list[dict]:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000252",
      "kind": "async_def",
      "line": 94,
      "module": "examples.search-r1.google_search_server",
      "name": "google_search",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "async def google_search(api_key, query, top_k=5, timeout: int = 60, proxy=None, snippet_only=False) -> list[dict]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L94-L149",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 47,
      "end_line": 116,
      "expression": "    async with aiohttp.ClientSession(**session_kwargs) as session:",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000253",
      "kind": "async_with",
      "line": 99,
      "module": "examples.search-r1.google_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "    async with aiohttp.ClientSession(**session_kwargs) as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L99-L116",
      "symbol": "google_search"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 47,
      "end_line": 116,
      "expression": "        async with session.post(",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000254",
      "kind": "async_with",
      "line": 100,
      "module": "examples.search-r1.google_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        async with session.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L100-L116",
      "symbol": "google_search"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 40,
      "end_line": 115,
      "expression": "await resp.json()",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000255",
      "kind": "await",
      "line": 115,
      "module": "examples.search-r1.google_search_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            response = await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L115",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "response",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 116,
      "expression": "response.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000256",
      "kind": "instance_candidate",
      "line": 116,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            items = response.get(\"organic\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L116",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 121,
      "expression": "item.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000257",
      "kind": "instance_candidate",
      "line": 121,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            title = item.get(\"title\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L121",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 122,
      "expression": "\" \".join",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000258",
      "kind": "instance_candidate",
      "line": 122,
      "module": "examples.search-r1.google_search_server",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            context = \" \".join(parse_snippet(item.get(\"snippet\", \"\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L122",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 45,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 122,
      "expression": "item.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000259",
      "kind": "instance_candidate",
      "line": 122,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            context = \" \".join(parse_snippet(item.get(\"snippet\", \"\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L122",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 132,
      "expression": "item.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000260",
      "kind": "instance_candidate",
      "line": 132,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        links = [item.get(\"link\", \"\") for item in items if \"link\" in item]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L132",
      "symbol": "google_search.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 45,
      "end_line": 133,
      "expression": "await fetch_all(links)",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000261",
      "kind": "await",
      "line": 133,
      "module": "examples.search-r1.google_search_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "        web_contents = await fetch_all(links)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L133",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 136,
      "expression": "item.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000262",
      "kind": "instance_candidate",
      "line": 136,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            title = item.get(\"title\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L136",
      "symbol": "google_search"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 137,
      "expression": "item.get",
      "file": "examples/search-r1/google_search_server.py",
      "id": "occ-000263",
      "kind": "instance_candidate",
      "line": 137,
      "module": "examples.search-r1.google_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/google_search_server.py.txt",
      "source_line": "            snippet = item.get(\"snippet\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/google_search_server.py#L137",
      "symbol": "google_search"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 97,
      "expression": "async def local_search(",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000264",
      "kind": "async_def",
      "line": 25,
      "module": "examples.search-r1.local_search_server",
      "name": "local_search",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "async def local_search(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L25-L97",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 42,
      "end_line": 69,
      "expression": "        async with aiohttp.ClientSession(**session_kwargs) as session:",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000265",
      "kind": "async_with",
      "line": 66,
      "module": "examples.search-r1.local_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "        async with aiohttp.ClientSession(**session_kwargs) as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L66-L69",
      "symbol": "local_search"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 42,
      "end_line": 69,
      "expression": "            async with session.post(search_url, json=payload, timeout=timeout_obj) as resp:",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000266",
      "kind": "async_with",
      "line": 67,
      "module": "examples.search-r1.local_search_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "            async with session.post(search_url, json=payload, timeout=timeout_obj) as resp:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L67-L69",
      "symbol": "local_search"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 42,
      "end_line": 69,
      "expression": "await resp.json()",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000267",
      "kind": "await",
      "line": 69,
      "module": "examples.search-r1.local_search_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "                result = await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L69",
      "symbol": "local_search"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 76,
      "expression": "result.get",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000268",
      "kind": "instance_candidate",
      "line": 76,
      "module": "examples.search-r1.local_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "    retrieval_results = result.get(\"result\", [[]])[0]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L76",
      "symbol": "local_search"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 86,
      "expression": "item.get",
      "file": "examples/search-r1/local_search_server.py",
      "id": "occ-000269",
      "kind": "instance_candidate",
      "line": 86,
      "module": "examples.search-r1.local_search_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/search-r1/local_search_server.py.txt",
      "source_line": "            content = item.get(\"contents\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/search-r1/local_search_server.py#L86",
      "symbol": "local_search"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 87,
      "expression": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "file": "examples/strands_sglang/generate_with_strands.py",
      "id": "occ-000270",
      "kind": "async_def",
      "line": 41,
      "module": "examples.strands_sglang.generate_with_strands",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/strands_sglang/generate_with_strands.py.txt",
      "source_line": "async def generate(args, sample: Sample, sampling_params) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/generate_with_strands.py#L41-L87",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 40,
      "end_line": 66,
      "expression": "await agent.invoke_async(prompt)",
      "file": "examples/strands_sglang/generate_with_strands.py",
      "id": "occ-000271",
      "kind": "await",
      "line": 66,
      "module": "examples.strands_sglang.generate_with_strands",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/strands_sglang/generate_with_strands.py.txt",
      "source_line": "        await agent.invoke_async(prompt)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/generate_with_strands.py#L66",
      "symbol": "generate"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "model",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 85,
      "expression": "model.reset",
      "file": "examples/strands_sglang/generate_with_strands.py",
      "id": "occ-000272",
      "kind": "instance_candidate",
      "line": 85,
      "module": "examples.strands_sglang.generate_with_strands",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/generate_with_strands.py.txt",
      "source_line": "    model.reset()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/generate_with_strands.py#L85",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 108,
      "expression": "async def reward_func(args, sample: Sample, **kwargs):",
      "file": "examples/strands_sglang/generate_with_strands.py",
      "id": "occ-000273",
      "kind": "async_def",
      "line": 90,
      "module": "examples.strands_sglang.generate_with_strands",
      "name": "reward_func",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/strands_sglang/generate_with_strands.py.txt",
      "source_line": "async def reward_func(args, sample: Sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/generate_with_strands.py#L90-L108",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 27
      },
      "end_col": 17,
      "end_line": 27,
      "expression": "import subprocess",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000274",
      "kind": "import",
      "line": 27,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L27",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 141,
      "expression": "f.read",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000275",
      "kind": "instance_candidate",
      "line": 141,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                source = f.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L141",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 228,
      "expression": "subprocess.Popen",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000276",
      "kind": "api_call",
      "line": 228,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            proc = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L228",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 230,
      "expression": "subprocess.PIPE",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000277",
      "kind": "api_reference",
      "line": 230,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                stdout=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L230",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 231,
      "expression": "subprocess.PIPE",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000278",
      "kind": "api_reference",
      "line": 231,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                stderr=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L231",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "proc",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                cmd,\n                stdout=subprocess.PIPE,\n                stderr=subprocess.PIPE,\n                text=True,\n                env=env,\n                shell=False,  # Never use shell=True for security\n            )",
          "line": 228,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 237,
      "expression": "proc.communicate",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000279",
      "kind": "instance_candidate",
      "line": 237,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "communicate",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            stdout, stderr = proc.communicate(timeout=self.execution_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L237",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "subprocess",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 239,
      "expression": "subprocess.TimeoutExpired",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000280",
      "kind": "api_reference",
      "line": 239,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.TimeoutExpired",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "        except subprocess.TimeoutExpired:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L239",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "proc",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                cmd,\n                stdout=subprocess.PIPE,\n                stderr=subprocess.PIPE,\n                text=True,\n                env=env,\n                shell=False,  # Never use shell=True for security\n            )",
          "line": 228,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 240,
      "expression": "proc.kill",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000281",
      "kind": "instance_candidate",
      "line": 240,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "kill",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            proc.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L240",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "proc",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                cmd,\n                stdout=subprocess.PIPE,\n                stderr=subprocess.PIPE,\n                text=True,\n                env=env,\n                shell=False,  # Never use shell=True for security\n            )",
          "line": 228,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 241,
      "expression": "proc.communicate",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000282",
      "kind": "instance_candidate",
      "line": 241,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "communicate",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            stdout, stderr = proc.communicate()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L241",
      "symbol": "SubprocessInterpreter.run_file"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 360,
      "expression": "f.write",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000283",
      "kind": "instance_candidate",
      "line": 360,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                f.write(code)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L360",
      "symbol": "SubprocessInterpreter._create_temp_file"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "', '",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 380,
      "expression": "', '.join",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000284",
      "kind": "instance_candidate",
      "line": 380,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                f\"{', '.join(self._CODE_EXTENSION_MAPPING.keys())}.\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L380",
      "symbol": "SubprocessInterpreter._check_code_type"
    },
    {
      "category": "subprocess",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 416,
      "expression": "subprocess.check_call",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000285",
      "kind": "api_call",
      "line": 416,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.check_call",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                    subprocess.check_call(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L416",
      "symbol": "SubprocessInterpreter._is_command_available"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 423,
      "expression": "subprocess.CalledProcessError",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000286",
      "kind": "api_reference",
      "line": 423,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.CalledProcessError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            except subprocess.CalledProcessError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L423",
      "symbol": "SubprocessInterpreter._is_command_available"
    },
    {
      "category": "subprocess",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 429,
      "expression": "subprocess.check_call",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000287",
      "kind": "api_call",
      "line": 429,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.check_call",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                    subprocess.check_call(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L429",
      "symbol": "SubprocessInterpreter._is_command_available"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 436,
      "expression": "subprocess.CalledProcessError",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000288",
      "kind": "api_reference",
      "line": 436,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.CalledProcessError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            except subprocess.CalledProcessError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L436",
      "symbol": "SubprocessInterpreter._is_command_available"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 467,
      "expression": "subprocess.Popen",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000289",
      "kind": "api_call",
      "line": 467,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            proc = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L467",
      "symbol": "SubprocessInterpreter.execute_command"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 469,
      "expression": "subprocess.PIPE",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000290",
      "kind": "api_reference",
      "line": 469,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                stdout=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L469",
      "symbol": "SubprocessInterpreter.execute_command"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 470,
      "expression": "subprocess.PIPE",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000291",
      "kind": "api_reference",
      "line": 470,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "                stderr=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L470",
      "symbol": "SubprocessInterpreter.execute_command"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "proc",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                command,\n                stdout=subprocess.PIPE,\n                stderr=subprocess.PIPE,\n                text=True,\n                env=env,\n                shell=True,  # Use shell=True for command execution\n            )",
          "line": 467,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 476,
      "expression": "proc.communicate",
      "file": "examples/strands_sglang/subprocess_interpreter.py",
      "id": "occ-000292",
      "kind": "instance_candidate",
      "line": 476,
      "module": "examples.strands_sglang.subprocess_interpreter",
      "name": "communicate",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/examples/strands_sglang/subprocess_interpreter.py.txt",
      "source_line": "            stdout, stderr = proc.communicate(timeout=self.execution_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/strands_sglang/subprocess_interpreter.py#L476",
      "symbol": "SubprocessInterpreter.execute_command"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "status_mapping",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 60,
      "expression": "status_mapping.get",
      "file": "examples/tau-bench/generate_with_tau.py",
      "id": "occ-000293",
      "kind": "instance_candidate",
      "line": 60,
      "module": "examples.tau-bench.generate_with_tau",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/tau-bench/generate_with_tau.py.txt",
      "source_line": "    status = status_mapping.get(res.status)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/generate_with_tau.py#L60",
      "symbol": "res_to_sample"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 153,
      "expression": "async def generate(args: dict[str, Any], sample: Sample, sampling_params: dict) -> Sample:",
      "file": "examples/tau-bench/generate_with_tau.py",
      "id": "occ-000294",
      "kind": "async_def",
      "line": 100,
      "module": "examples.tau-bench.generate_with_tau",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/generate_with_tau.py.txt",
      "source_line": "async def generate(args: dict[str, Any], sample: Sample, sampling_params: dict) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/generate_with_tau.py#L100-L153",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 103,
      "end_line": 147,
      "expression": "await agent.asolve(env, agent.rollout_args, agent.sampling_params, task_index)",
      "file": "examples/tau-bench/generate_with_tau.py",
      "id": "occ-000295",
      "kind": "await",
      "line": 147,
      "module": "examples.tau-bench.generate_with_tau",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/generate_with_tau.py.txt",
      "source_line": "    interaction_result = await agent.asolve(env, agent.rollout_args, agent.sampling_params, task_index)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/generate_with_tau.py#L147",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 102,
      "expression": "    async def _call_llm(self, url: str, payload: dict[str, Any]) -> dict[str, Any]:",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000296",
      "kind": "async_def",
      "line": 91,
      "module": "examples.tau-bench.trainable_agents",
      "name": "_call_llm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "    async def _call_llm(self, url: str, payload: dict[str, Any]) -> dict[str, Any]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L91-L102",
      "symbol": "TrainableAgentMixin"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 39,
      "end_line": 102,
      "expression": "await post(url, payload)",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000297",
      "kind": "await",
      "line": 102,
      "module": "examples.tau-bench.trainable_agents",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "        return await post(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L102",
      "symbol": "TrainableAgentMixin._call_llm"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 31,
      "end_line": 127,
      "expression": "    async def _execute_tool(self, env, action: Action):",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000298",
      "kind": "async_def",
      "line": 116,
      "module": "examples.tau-bench.trainable_agents",
      "name": "_execute_tool",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "    async def _execute_tool(self, env, action: Action):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L116-L127",
      "symbol": "TrainableAgentMixin"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "env",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 141,
      "expression": "env.reset",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000299",
      "kind": "instance_candidate",
      "line": 141,
      "module": "examples.tau-bench.trainable_agents",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "            env_reset_res = env.reset(task_index=task_index)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L141",
      "symbol": "TrainableAgentMixin._initialize_environment"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "env",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 143,
      "expression": "env.reset",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000300",
      "kind": "instance_candidate",
      "line": 143,
      "module": "examples.tau-bench.trainable_agents",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "            env_reset_res = env.reset()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L143",
      "symbol": "TrainableAgentMixin._initialize_environment"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 337,
      "expression": "    async def asolve(",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000301",
      "kind": "async_def",
      "line": 177,
      "module": "examples.tau-bench.trainable_agents",
      "name": "asolve",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "    async def asolve(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L177-L337",
      "symbol": "TrainableAgentMixin"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 55,
      "end_line": 232,
      "expression": "await self._call_llm(url, payload)",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000302",
      "kind": "await",
      "line": 232,
      "module": "examples.tau-bench.trainable_agents",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "            output = await self._call_llm(url, payload)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L232",
      "symbol": "TrainableAgentMixin.asolve"
    },
    {
      "category": "syntax",
      "col": 31,
      "details": {},
      "end_col": 68,
      "end_line": 293,
      "expression": "await self._execute_tool(env, action)",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000303",
      "kind": "await",
      "line": 293,
      "module": "examples.tau-bench.trainable_agents",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "                env_response = await self._execute_tool(env, action)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L293",
      "symbol": "TrainableAgentMixin.asolve"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 397,
      "expression": "\"\".join",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000304",
      "kind": "instance_candidate",
      "line": 397,
      "module": "examples.tau-bench.trainable_agents",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "        res.response = \"\".join([msg.get(\"content\", \"\") for msg in messages if msg[\"role\"] == \"assistant\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L397",
      "symbol": "TrainableAgentMixin._build_final_result"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 397,
      "expression": "msg.get",
      "file": "examples/tau-bench/trainable_agents.py",
      "id": "occ-000305",
      "kind": "instance_candidate",
      "line": 397,
      "module": "examples.tau-bench.trainable_agents",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/examples/tau-bench/trainable_agents.py.txt",
      "source_line": "        res.response = \"\".join([msg.get(\"content\", \"\") for msg in messages if msg[\"role\"] == \"assistant\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/examples/tau-bench/trainable_agents.py#L397",
      "symbol": "TrainableAgentMixin._build_final_result.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 59,
      "expression": "body.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000306",
      "kind": "instance_candidate",
      "line": 59,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        translated = _translate_messages(body.get(\"messages\") or [], body.get(\"system\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L59",
      "symbol": "AnthropicAdapter._translate"
    },
    {
      "category": "candidates",
      "col": 69,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 77,
      "end_line": 59,
      "expression": "body.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000307",
      "kind": "instance_candidate",
      "line": 59,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        translated = _translate_messages(body.get(\"messages\") or [], body.get(\"system\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L59",
      "symbol": "AnthropicAdapter._translate"
    },
    {
      "category": "candidates",
      "col": 44,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 52,
      "end_line": 60,
      "expression": "body.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000308",
      "kind": "instance_candidate",
      "line": 60,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        tools_schema = _tools_to_chat_tools(body.get(\"tools\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L60",
      "symbol": "AnthropicAdapter._translate"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 94,
      "end_line": 75,
      "expression": "    async def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000309",
      "kind": "async_def",
      "line": 71,
      "module": "slime.agent.adapters.anthropic",
      "name": "_respond",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    async def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L71-L75",
      "symbol": "AnthropicAdapter"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 86,
      "end_line": 74,
      "expression": "await _render_stream(request, blocks, stop_reason, in_tok, out_tok)",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000310",
      "kind": "await",
      "line": 74,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "            return await _render_stream(request, blocks, stop_reason, in_tok, out_tok)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L74",
      "symbol": "AnthropicAdapter._respond"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 89,
      "expression": "m.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000311",
      "kind": "instance_candidate",
      "line": 89,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        role, content = m.get(\"role\"), m.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L89",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 89,
      "expression": "m.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000312",
      "kind": "instance_candidate",
      "line": 89,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        role, content = m.get(\"role\"), m.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L89",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 43,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 48,
      "end_line": 93,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000313",
      "kind": "instance_candidate",
      "line": 93,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                if isinstance(b, dict) and b.get(\"type\") == \"tool_result\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L93",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 82,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 87,
      "end_line": 94,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000314",
      "kind": "instance_candidate",
      "line": 94,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    translated.append({\"role\": \"tool\", \"content\": flatten_content(b.get(\"content\"))})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L94",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 45,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 95,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000315",
      "kind": "instance_candidate",
      "line": 95,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                elif isinstance(b, dict) and b.get(\"type\") == \"text\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L95",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 66,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 71,
      "end_line": 96,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000316",
      "kind": "instance_candidate",
      "line": 96,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    translated.append({\"role\": \"user\", \"content\": b.get(\"text\", \"\")})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L96",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 105,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000317",
      "kind": "instance_candidate",
      "line": 105,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                if b.get(\"type\") == \"text\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L105",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 106,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000318",
      "kind": "instance_candidate",
      "line": 106,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    texts.append(b.get(\"text\", \"\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L106",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 107,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000319",
      "kind": "instance_candidate",
      "line": 107,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                elif b.get(\"type\") == \"thinking\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L107",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 108,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000320",
      "kind": "instance_candidate",
      "line": 108,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    thinkings.append(b.get(\"thinking\", \"\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L108",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 109,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000321",
      "kind": "instance_candidate",
      "line": 109,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                elif b.get(\"type\") == \"tool_use\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L109",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 46,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 111,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000322",
      "kind": "instance_candidate",
      "line": 111,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    tcs.append(tool_call_dict(b.get(\"name\", \"tool\"), b.get(\"input\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L111",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 69,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 74,
      "end_line": 111,
      "expression": "b.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000323",
      "kind": "instance_candidate",
      "line": 111,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    tcs.append(tool_call_dict(b.get(\"name\", \"tool\"), b.get(\"input\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L111",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 66,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 73,
      "end_line": 112,
      "expression": "\"\".join",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000324",
      "kind": "instance_candidate",
      "line": 112,
      "module": "slime.agent.adapters.anthropic",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "            mo: dict[str, Any] = {\"role\": \"assistant\", \"content\": \"\".join(texts)}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L112",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 42,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 114,
      "expression": "\"\".join",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000325",
      "kind": "instance_candidate",
      "line": 114,
      "module": "slime.agent.adapters.anthropic",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                mo[\"reasoning_content\"] = \"\".join(thinkings)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L114",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 35,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 136,
      "expression": "t.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000326",
      "kind": "instance_candidate",
      "line": 136,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    \"description\": t.get(\"description\", \"\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L136",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 34,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 137,
      "expression": "t.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000327",
      "kind": "instance_candidate",
      "line": 137,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    \"parameters\": t.get(\"input_schema\") or t.get(\"parameters\") or {\"type\": \"object\", \"properties\": {}},",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L137",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 59,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 137,
      "expression": "t.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000328",
      "kind": "instance_candidate",
      "line": 137,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                    \"parameters\": t.get(\"input_schema\") or t.get(\"parameters\") or {\"type\": \"object\", \"properties\": {}},",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L137",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "tu",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 60,
      "end_line": 168,
      "expression": "tu.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000329",
      "kind": "instance_candidate",
      "line": 168,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        manager_tcs.append(tool_call_dict(tu[\"name\"], tu.get(\"input\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L168",
      "symbol": "_build_reply_parts"
    },
    {
      "category": "candidates",
      "col": 40,
      "details": {
        "receiver": "request.headers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 59,
      "end_line": 195,
      "expression": "request.headers.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000330",
      "kind": "instance_candidate",
      "line": 195,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    return sid_from_bearer(request) or (request.headers.get(\"X-Api-Key\") or \"\").strip() or \"default\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L195",
      "symbol": "_request_session_id"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 203,
      "expression": "body.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000331",
      "kind": "instance_candidate",
      "line": 203,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        \"model\": body.get(\"model\", \"slime-actor\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L203",
      "symbol": "_render_response"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 14,
      "end_line": 274,
      "expression": "async def _render_stream(request, blocks, stop_reason, in_tok, out_tok) -> web.StreamResponse:",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000332",
      "kind": "async_def",
      "line": 211,
      "module": "slime.agent.adapters.anthropic",
      "name": "_render_stream",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "async def _render_stream(request, blocks, stop_reason, in_tok, out_tok) -> web.StreamResponse:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L211-L274",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 30,
      "end_line": 223,
      "expression": "await out.prepare(request)",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000333",
      "kind": "await",
      "line": 223,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.prepare(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L223",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 106,
      "end_line": 238,
      "expression": "await out.write(f\"event: message_start\\ndata: {json.dumps(ms_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000334",
      "kind": "await",
      "line": 238,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_start\\ndata: {json.dumps(ms_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L238",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 238,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000335",
      "kind": "instance_candidate",
      "line": 238,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_start\\ndata: {json.dumps(ms_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L238",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 117,
      "end_line": 256,
      "expression": "await out.write(f\"event: content_block_start\\ndata: {json.dumps(cbs_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000336",
      "kind": "await",
      "line": 256,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_start\\ndata: {json.dumps(cbs_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L256",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 256,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000337",
      "kind": "instance_candidate",
      "line": 256,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_start\\ndata: {json.dumps(cbs_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L256",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 117,
      "end_line": 259,
      "expression": "await out.write(f\"event: content_block_delta\\ndata: {json.dumps(cbd_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000338",
      "kind": "await",
      "line": 259,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_delta\\ndata: {json.dumps(cbd_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L259",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 259,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000339",
      "kind": "instance_candidate",
      "line": 259,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_delta\\ndata: {json.dumps(cbd_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L259",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 116,
      "end_line": 262,
      "expression": "await out.write(f\"event: content_block_stop\\ndata: {json.dumps(cbe_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000340",
      "kind": "await",
      "line": 262,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_stop\\ndata: {json.dumps(cbe_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L262",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 262,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000341",
      "kind": "instance_candidate",
      "line": 262,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        await out.write(f\"event: content_block_stop\\ndata: {json.dumps(cbe_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L262",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 106,
      "end_line": 269,
      "expression": "await out.write(f\"event: message_delta\\ndata: {json.dumps(md_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000342",
      "kind": "await",
      "line": 269,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_delta\\ndata: {json.dumps(md_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L269",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 269,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000343",
      "kind": "instance_candidate",
      "line": 269,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_delta\\ndata: {json.dumps(md_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L269",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 106,
      "end_line": 272,
      "expression": "await out.write(f\"event: message_stop\\ndata: {json.dumps(mst_data, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000344",
      "kind": "await",
      "line": 272,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_stop\\ndata: {json.dumps(mst_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L272",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 272,
      "expression": "out.write",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000345",
      "kind": "instance_candidate",
      "line": 272,
      "module": "slime.agent.adapters.anthropic",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await out.write(f\"event: message_stop\\ndata: {json.dumps(mst_data, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L272",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 49,
      "end_line": 281,
      "expression": "async def _count_tokens(request: web.Request) -> web.Response:",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000346",
      "kind": "async_def",
      "line": 279,
      "module": "slime.agent.adapters.anthropic",
      "name": "_count_tokens",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "async def _count_tokens(request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L279-L281",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 24,
      "end_line": 280,
      "expression": "await request.read()",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000347",
      "kind": "await",
      "line": 280,
      "module": "slime.agent.adapters.anthropic",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await request.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L280",
      "symbol": "_count_tokens"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "request",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 280,
      "expression": "request.read",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000348",
      "kind": "instance_candidate",
      "line": 280,
      "module": "slime.agent.adapters.anthropic",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    await request.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L280",
      "symbol": "_count_tokens"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "body_obj",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 301,
      "expression": "body_obj.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000349",
      "kind": "instance_candidate",
      "line": 301,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    msgs = body_obj.get(\"messages\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L301",
      "symbol": "_fold_mid_list_system_into_user"
    },
    {
      "category": "candidates",
      "col": 75,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 80,
      "end_line": 305,
      "expression": "m.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000350",
      "kind": "instance_candidate",
      "line": 305,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "    system_idx = [i for i, m in enumerate(msgs) if isinstance(m, dict) and m.get(\"role\") == \"system\" and i > 0]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L305",
      "symbol": "_fold_mid_list_system_into_user.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 310,
      "expression": "msg.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000351",
      "kind": "instance_candidate",
      "line": 310,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        c = msg.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L310",
      "symbol": "_fold_mid_list_system_into_user._promote_to_list"
    },
    {
      "category": "candidates",
      "col": 40,
      "details": {
        "receiver": "sys_msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 326,
      "expression": "sys_msg.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000352",
      "kind": "instance_candidate",
      "line": 326,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "        wrapped = _wrap(flatten_content(sys_msg.get(\"content\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L326",
      "symbol": "_fold_mid_list_system_into_user"
    },
    {
      "category": "candidates",
      "col": 42,
      "details": {
        "receiver": "cand",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 330,
      "expression": "cand.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000353",
      "kind": "instance_candidate",
      "line": 330,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "            if isinstance(cand, dict) and cand.get(\"role\") == \"user\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L330",
      "symbol": "_fold_mid_list_system_into_user"
    },
    {
      "category": "candidates",
      "col": 46,
      "details": {
        "receiver": "cand",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 54,
      "end_line": 337,
      "expression": "cand.get",
      "file": "slime/agent/adapters/anthropic.py",
      "id": "occ-000354",
      "kind": "instance_candidate",
      "line": 337,
      "module": "slime.agent.adapters.anthropic",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/anthropic.py.txt",
      "source_line": "                if isinstance(cand, dict) and cand.get(\"role\") == \"user\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/anthropic.py#L337",
      "symbol": "_fold_mid_list_system_into_user"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 15
      },
      "end_col": 14,
      "end_line": 15,
      "expression": "import asyncio",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000355",
      "kind": "import",
      "line": 15,
      "module": "slime.agent.adapters.common",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L15",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 96,
      "expression": "b.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000356",
      "kind": "instance_candidate",
      "line": 96,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        t = b.get(\"type\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L96",
      "symbol": "flatten_content"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 98,
      "expression": "b.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000357",
      "kind": "instance_candidate",
      "line": 98,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            parts.append(b.get(\"text\", \"\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L98",
      "symbol": "flatten_content"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 100,
      "expression": "b.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000358",
      "kind": "instance_candidate",
      "line": 100,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            parts.append(flatten_content(b.get(\"content\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L100",
      "symbol": "flatten_content"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 104,
      "expression": "b.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000359",
      "kind": "instance_candidate",
      "line": 104,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            parts.append(flatten_content(b.get(\"content\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L104",
      "symbol": "flatten_content"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 106,
      "expression": "b.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000360",
      "kind": "instance_candidate",
      "line": 106,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            parts.append(str(b.get(\"text\") or \"\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L106",
      "symbol": "flatten_content"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 107,
      "expression": "\"\\n\".join",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000361",
      "kind": "instance_candidate",
      "line": 107,
      "module": "slime.agent.adapters.common",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    return \"\\n\".join(p for p in parts if p)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L107",
      "symbol": "flatten_content"
    },
    {
      "category": "asyncio",
      "col": 37,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 157,
      "expression": "asyncio.Task",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000362",
      "kind": "api_reference",
      "line": 157,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.Task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        self.inflight: dict[str, set[asyncio.Task]] = {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L157",
      "symbol": "BaseAdapter.__init__"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 33,
      "end_line": 206,
      "expression": "    async def _respond(",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000363",
      "kind": "async_def",
      "line": 197,
      "module": "slime.agent.adapters.common",
      "name": "_respond",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    async def _respond(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L197-L206",
      "symbol": "BaseAdapter"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 92,
      "end_line": 243,
      "expression": "    async def shutdown_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000364",
      "kind": "async_def",
      "line": 225,
      "module": "slime.agent.adapters.common",
      "name": "shutdown_session",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    async def shutdown_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L225-L243",
      "symbol": "BaseAdapter"
    },
    {
      "category": "candidates",
      "col": 62,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 68,
      "end_line": 228,
      "expression": "t.done",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000365",
      "kind": "instance_candidate",
      "line": 228,
      "module": "slime.agent.adapters.common",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        tasks = [t for t in self.inflight.pop(sid, ()) if not t.done()]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L228",
      "symbol": "BaseAdapter.shutdown_session.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 70,
      "end_line": 237,
      "expression": "        async def _drain() -> None:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000366",
      "kind": "async_def",
      "line": 232,
      "module": "slime.agent.adapters.common",
      "name": "_drain",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        async def _drain() -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L232-L237",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 72,
      "end_line": 233,
      "expression": "await asyncio.wait(tasks, timeout=wait_timeout)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000367",
      "kind": "await",
      "line": 233,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            _, pending = await asyncio.wait(tasks, timeout=wait_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L233",
      "symbol": "BaseAdapter.shutdown_session._drain"
    },
    {
      "category": "asyncio",
      "col": 31,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 233,
      "expression": "asyncio.wait",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000368",
      "kind": "api_call",
      "line": 233,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            _, pending = await asyncio.wait(tasks, timeout=wait_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L233",
      "symbol": "BaseAdapter.shutdown_session._drain"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 235,
      "expression": "task.cancel",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000369",
      "kind": "instance_candidate",
      "line": 235,
      "module": "slime.agent.adapters.common",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                task.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L235",
      "symbol": "BaseAdapter.shutdown_session._drain"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 70,
      "end_line": 237,
      "expression": "await asyncio.gather(*pending, return_exceptions=True)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000370",
      "kind": "await",
      "line": 237,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                await asyncio.gather(*pending, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L237",
      "symbol": "BaseAdapter.shutdown_session._drain"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 237,
      "expression": "asyncio.gather",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000371",
      "kind": "api_call",
      "line": 237,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                await asyncio.gather(*pending, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L237",
      "symbol": "BaseAdapter.shutdown_session._drain"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "tasks[0]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 239,
      "expression": "tasks[0].get_loop",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000372",
      "kind": "instance_candidate",
      "line": 239,
      "module": "slime.agent.adapters.common",
      "name": "get_loop",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        loop = tasks[0].get_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L239",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 87,
      "end_line": 241,
      "expression": "await asyncio.wrap_future(asyncio.run_coroutine_threadsafe(_drain(), loop))",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000373",
      "kind": "await",
      "line": 241,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            await asyncio.wrap_future(asyncio.run_coroutine_threadsafe(_drain(), loop))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L241",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 241,
      "expression": "asyncio.wrap_future",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000374",
      "kind": "api_call",
      "line": 241,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.wrap_future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            await asyncio.wrap_future(asyncio.run_coroutine_threadsafe(_drain(), loop))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L241",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "asyncio",
      "col": 38,
      "details": {
        "access": "load"
      },
      "end_col": 70,
      "end_line": 241,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000375",
      "kind": "api_call",
      "line": 241,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            await asyncio.wrap_future(asyncio.run_coroutine_threadsafe(_drain(), loop))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L241",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.logger",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 243,
      "expression": "self.logger.exception",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000376",
      "kind": "instance_candidate",
      "line": 243,
      "module": "slime.agent.adapters.common",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            self.logger.exception(\"[%s] sid=%s shutdown drain failed\", self.log_prefix, sid)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L243",
      "symbol": "BaseAdapter.shutdown_session"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 276,
      "expression": "    async def finish_session(",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000377",
      "kind": "async_def",
      "line": 245,
      "module": "slime.agent.adapters.common",
      "name": "finish_session",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    async def finish_session(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L245-L276",
      "symbol": "BaseAdapter"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 67,
      "end_line": 261,
      "expression": "await self.shutdown_session(sid, wait_timeout=wait_timeout)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000378",
      "kind": "await",
      "line": 261,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        await self.shutdown_session(sid, wait_timeout=wait_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L261",
      "symbol": "BaseAdapter.finish_session"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 38,
      "end_line": 281,
      "expression": "    async def drop_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000379",
      "kind": "async_def",
      "line": 278,
      "module": "slime.agent.adapters.common",
      "name": "drop_session",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    async def drop_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L278-L281",
      "symbol": "BaseAdapter"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 67,
      "end_line": 279,
      "expression": "await self.shutdown_session(sid, wait_timeout=wait_timeout)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000380",
      "kind": "await",
      "line": 279,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        await self.shutdown_session(sid, wait_timeout=wait_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L279",
      "symbol": "BaseAdapter.drop_session"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._sid_turn_count",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 293,
      "expression": "self._sid_turn_count.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000381",
      "kind": "instance_candidate",
      "line": 293,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        prior = self._sid_turn_count.get(sid, 0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L293",
      "symbol": "BaseAdapter._check_turn_cap"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.logger",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 316,
      "expression": "self.logger.exception",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000382",
      "kind": "instance_candidate",
      "line": 316,
      "module": "slime.agent.adapters.common",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            self.logger.exception(\"debug_callback failed (sid=%s)\", sid)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L316",
      "symbol": "BaseAdapter._run_debug_callback"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 55,
      "end_line": 393,
      "expression": "    async def _run_turn(self, request: web.Request) -> web.StreamResponse:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000383",
      "kind": "async_def",
      "line": 318,
      "module": "slime.agent.adapters.common",
      "name": "_run_turn",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    async def _run_turn(self, request: web.Request) -> web.StreamResponse:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L318-L393",
      "symbol": "BaseAdapter"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 35,
      "end_line": 325,
      "expression": "await request.json()",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000384",
      "kind": "await",
      "line": 325,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        body = await request.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L325",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 337,
      "expression": "asyncio.current_task",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000385",
      "kind": "api_call",
      "line": 337,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.current_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        task = asyncio.current_task()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L337",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 96,
      "end_line": 344,
      "expression": "await call_sglang_generate(prompt_ids, s, body, adapter=self, session_id=sid)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000386",
      "kind": "await",
      "line": 344,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            turn = await call_sglang_generate(prompt_ids, s, body, adapter=self, session_id=sid)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L344",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 357,
      "expression": "body.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000387",
      "kind": "instance_candidate",
      "line": 357,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            stream = body.get(\"stream\") is True or \"text/event-stream\" in request.headers.get(\"Accept\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L357",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "candidates",
      "col": 74,
      "details": {
        "receiver": "request.headers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 93,
      "end_line": 357,
      "expression": "request.headers.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000388",
      "kind": "instance_candidate",
      "line": 357,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            stream = body.get(\"stream\") is True or \"text/event-stream\" in request.headers.get(\"Accept\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L357",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 93,
      "end_line": 363,
      "expression": "await self._respond(request, body, reply, in_tok, out_tok, stream)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000389",
      "kind": "await",
      "line": 363,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                response = await self._respond(request, body, reply, in_tok, out_tok, stream)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L363",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "asyncio",
      "col": 42,
      "details": {
        "access": "load"
      },
      "end_col": 64,
      "end_line": 364,
      "expression": "asyncio.CancelledError",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000390",
      "kind": "api_reference",
      "line": 364,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            except (ConnectionResetError, asyncio.CancelledError) as e:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L364",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "asyncio",
      "col": 33,
      "details": {
        "access": "load"
      },
      "end_col": 55,
      "end_line": 372,
      "expression": "asyncio.CancelledError",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000391",
      "kind": "api_reference",
      "line": 372,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                if isinstance(e, asyncio.CancelledError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L372",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.inflight",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 393,
      "expression": "self.inflight.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000392",
      "kind": "instance_candidate",
      "line": 393,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            self.inflight.get(sid, set()).discard(task)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L393",
      "symbol": "BaseAdapter._run_turn"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "request.headers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 398,
      "expression": "request.headers.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000393",
      "kind": "instance_candidate",
      "line": 398,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    auth = request.headers.get(\"Authorization\", \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L398",
      "symbol": "sid_from_bearer"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 408,
      "expression": "body.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000394",
      "kind": "instance_candidate",
      "line": 408,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    metadata = body.get(\"metadata\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L408",
      "symbol": "sid_from_body"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 409,
      "expression": "metadata.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000395",
      "kind": "instance_candidate",
      "line": 409,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    if isinstance(metadata, dict) and metadata.get(\"session_id\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L409",
      "symbol": "sid_from_body"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 411,
      "expression": "body.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000396",
      "kind": "instance_candidate",
      "line": 411,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    if body.get(\"user\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L411",
      "symbol": "sid_from_body"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 426,
      "expression": "body.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000397",
      "kind": "instance_candidate",
      "line": 426,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        if body.get(key) is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L426",
      "symbol": "_sampling_params"
    },
    {
      "category": "candidates",
      "col": 43,
      "details": {
        "receiver": "sp",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 427,
      "expression": "sp.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000398",
      "kind": "instance_candidate",
      "line": 427,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            sp[\"max_new_tokens\"] = min(int(sp.get(\"max_new_tokens\", body[key])), int(body[key]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L427",
      "symbol": "_sampling_params"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 435,
      "expression": "body.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000399",
      "kind": "instance_candidate",
      "line": 435,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        if body.get(key):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L435",
      "symbol": "_sampling_params"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 514,
      "expression": "async def call_sglang_generate(",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000400",
      "kind": "async_def",
      "line": 442,
      "module": "slime.agent.adapters.common",
      "name": "call_sglang_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "async def call_sglang_generate(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L442-L514",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "sp",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 468,
      "expression": "sp.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000401",
      "kind": "instance_candidate",
      "line": 468,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        sp[\"max_new_tokens\"] = min(int(sp.get(\"max_new_tokens\", remaining_context)), remaining_context)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L468",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 2
      },
      "end_col": 50,
      "end_line": 496,
      "expression": "        async with aiohttp.ClientSession(timeout=timeout) as sess, sess.post(",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000402",
      "kind": "async_with",
      "line": 475,
      "module": "slime.agent.adapters.common",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        async with aiohttp.ClientSession(timeout=timeout) as sess, sess.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L475-L496",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 37,
      "end_line": 486,
      "expression": "await r.text()",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000403",
      "kind": "await",
      "line": 486,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                text = await r.text()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L486",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 50,
      "end_line": 496,
      "expression": "await r.json(content_type=None)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000404",
      "kind": "await",
      "line": 496,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            data = await r.json(content_type=None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L496",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 497,
      "expression": "data.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000405",
      "kind": "instance_candidate",
      "line": 497,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        meta = data.get(\"meta_info\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L497",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "meta",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 498,
      "expression": "meta.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000406",
      "kind": "instance_candidate",
      "line": 498,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        output_token_logprobs = meta.get(\"output_token_logprobs\") or []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L498",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "meta.get(\"finish_reason\") or {}",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 54,
      "end_line": 501,
      "expression": "(meta.get(\"finish_reason\") or {}).get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000407",
      "kind": "instance_candidate",
      "line": 501,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        finish = (meta.get(\"finish_reason\") or {}).get(\"type\", \"stop\") or \"stop\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L501",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "meta",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 501,
      "expression": "meta.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000408",
      "kind": "instance_candidate",
      "line": 501,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        finish = (meta.get(\"finish_reason\") or {}).get(\"type\", \"stop\") or \"stop\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L501",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 502,
      "expression": "asyncio.CancelledError",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000409",
      "kind": "api_reference",
      "line": 502,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    except (asyncio.CancelledError, aiohttp.ClientError, asyncio.TimeoutError) as e:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L502",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "asyncio",
      "col": 57,
      "details": {
        "access": "load"
      },
      "end_col": 77,
      "end_line": 502,
      "expression": "asyncio.TimeoutError",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000410",
      "kind": "api_reference",
      "line": 502,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.TimeoutError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "    except (asyncio.CancelledError, aiohttp.ClientError, asyncio.TimeoutError) as e:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L502",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 60,
      "end_line": 506,
      "expression": "await _abort_sglang_request(sglang_url, rid, logger)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000411",
      "kind": "await",
      "line": 506,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        await _abort_sglang_request(sglang_url, rid, logger)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L506",
      "symbol": "call_sglang_generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 554,
      "expression": "async def _abort_sglang_request(sglang_url: str, rid: str, logger: logging.Logger) -> None:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000412",
      "kind": "async_def",
      "line": 517,
      "module": "slime.agent.adapters.common",
      "name": "_abort_sglang_request",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "async def _abort_sglang_request(sglang_url: str, rid: str, logger: logging.Logger) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L517-L554",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 77,
      "end_line": 547,
      "expression": "        async with aiohttp.ClientSession(timeout=timeout) as session:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000413",
      "kind": "async_with",
      "line": 521,
      "module": "slime.agent.adapters.common",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "        async with aiohttp.ClientSession(timeout=timeout) as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L521-L547",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 528,
      "expression": "            async def abort_worker(url: str) -> None:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000414",
      "kind": "async_def",
      "line": 523,
      "module": "slime.agent.adapters.common",
      "name": "abort_worker",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            async def abort_worker(url: str) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L523-L528",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {
        "items": 1
      },
      "end_col": 28,
      "end_line": 526,
      "expression": "                    async with session.post(f\"{url}/abort_request\", json={\"rid\": rid}):",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000415",
      "kind": "async_with",
      "line": 525,
      "module": "slime.agent.adapters.common",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                    async with session.post(f\"{url}/abort_request\", json={\"rid\": rid}):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L525-L526",
      "symbol": "_abort_sglang_request.abort_worker"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 47,
      "end_line": 535,
      "expression": "            async with session.get(f\"{sglang_url}/workers\") as response:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000416",
      "kind": "async_with",
      "line": 530,
      "module": "slime.agent.adapters.common",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            async with session.get(f\"{sglang_url}/workers\") as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L530-L535",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "session",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 530,
      "expression": "session.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000417",
      "kind": "instance_candidate",
      "line": 530,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            async with session.get(f\"{sglang_url}/workers\") as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L530",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 50,
      "end_line": 532,
      "expression": "await abort_worker(sglang_url)",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000418",
      "kind": "await",
      "line": 532,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                    await abort_worker(sglang_url)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L532",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "syntax",
      "col": 26,
      "details": {},
      "end_col": 47,
      "end_line": 535,
      "expression": "await response.json()",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000419",
      "kind": "await",
      "line": 535,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                payload = await response.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L535",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "candidates",
      "col": 30,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 543,
      "expression": "payload.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000420",
      "kind": "instance_candidate",
      "line": 543,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                for worker in payload.get(\"workers\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L543",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "candidates",
      "col": 59,
      "details": {
        "receiver": "worker",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 69,
      "end_line": 544,
      "expression": "worker.get",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000421",
      "kind": "instance_candidate",
      "line": 544,
      "module": "slime.agent.adapters.common",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "                if isinstance(worker, dict) and isinstance(worker.get(\"url\"), str) and worker[\"url\"]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L544",
      "symbol": "_abort_sglang_request.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 77,
      "end_line": 547,
      "expression": "await asyncio.gather(*(abort_worker(url) for url in worker_urls))",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000422",
      "kind": "await",
      "line": 547,
      "module": "slime.agent.adapters.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            await asyncio.gather(*(abort_worker(url) for url in worker_urls))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L547",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 547,
      "expression": "asyncio.gather",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000423",
      "kind": "api_call",
      "line": 547,
      "module": "slime.agent.adapters.common",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "            await asyncio.gather(*(abort_worker(url) for url in worker_urls))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L547",
      "symbol": "_abort_sglang_request"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 42,
      "end_line": 559,
      "expression": "async def _health(request: web.Request) -> web.Response:",
      "file": "slime/agent/adapters/common.py",
      "id": "occ-000424",
      "kind": "async_def",
      "line": 557,
      "module": "slime.agent.adapters.common",
      "name": "_health",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/common.py.txt",
      "source_line": "async def _health(request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/common.py#L557-L559",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 54,
      "expression": "body.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000425",
      "kind": "instance_candidate",
      "line": 54,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        messages = body.get(\"messages\") or []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L54",
      "symbol": "OpenAIAdapter._translate"
    },
    {
      "category": "candidates",
      "col": 44,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 52,
      "end_line": 58,
      "expression": "body.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000426",
      "kind": "instance_candidate",
      "line": 58,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        tools_schema = _tools_to_chat_tools(body.get(\"tools\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L58",
      "symbol": "OpenAIAdapter._translate"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 100,
      "end_line": 73,
      "expression": "    async def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000427",
      "kind": "async_def",
      "line": 69,
      "module": "slime.agent.adapters.openai",
      "name": "_respond",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    async def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L69-L73",
      "symbol": "OpenAIAdapter"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 98,
      "end_line": 72,
      "expression": "await _render_stream(request, body, wire_message, wire_finish, in_tok, out_tok)",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000428",
      "kind": "await",
      "line": 72,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            return await _render_stream(request, body, wire_message, wire_finish, in_tok, out_tok)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L72",
      "symbol": "OpenAIAdapter._respond"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 120,
      "expression": "msg.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000429",
      "kind": "instance_candidate",
      "line": 120,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        role = msg.get(\"role\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L120",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 121,
      "expression": "msg.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000430",
      "kind": "instance_candidate",
      "line": 121,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        content = msg.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L121",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 135,
      "expression": "msg.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000431",
      "kind": "instance_candidate",
      "line": 135,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            reasoning = msg.get(\"reasoning_content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L135",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 138,
      "expression": "msg.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000432",
      "kind": "instance_candidate",
      "line": 138,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            tool_calls = msg.get(\"tool_calls\") or []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L138",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 27,
      "details": {
        "receiver": "call",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 143,
      "expression": "call.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000433",
      "kind": "instance_candidate",
      "line": 143,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                function = call.get(\"function\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L143",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "function",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 144,
      "expression": "function.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000434",
      "kind": "instance_candidate",
      "line": 144,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                name = function.get(\"name\") or call.get(\"name\") or \"tool\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L144",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 47,
      "details": {
        "receiver": "call",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 55,
      "end_line": 144,
      "expression": "call.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000435",
      "kind": "instance_candidate",
      "line": 144,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                name = function.get(\"name\") or call.get(\"name\") or \"tool\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L144",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "function",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 145,
      "expression": "function.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000436",
      "kind": "instance_candidate",
      "line": 145,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                arguments = function.get(\"arguments\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L145",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "call",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 147,
      "expression": "call.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000437",
      "kind": "instance_candidate",
      "line": 147,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                    arguments = call.get(\"arguments\", {})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L147",
      "symbol": "_translate_messages"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 174,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000438",
      "kind": "instance_candidate",
      "line": 174,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        if tool.get(\"type\") and tool.get(\"type\") != \"function\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L174",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 174,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000439",
      "kind": "instance_candidate",
      "line": 174,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        if tool.get(\"type\") and tool.get(\"type\") != \"function\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L174",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 176,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000440",
      "kind": "instance_candidate",
      "line": 176,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        function = tool.get(\"function\") if isinstance(tool.get(\"function\"), dict) else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L176",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 62,
      "end_line": 176,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000441",
      "kind": "instance_candidate",
      "line": 176,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        function = tool.get(\"function\") if isinstance(tool.get(\"function\"), dict) else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L176",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "function",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 178,
      "expression": "function.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000442",
      "kind": "instance_candidate",
      "line": 178,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            name = function.get(\"name\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L178",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "function",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 186,
      "expression": "function.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000443",
      "kind": "instance_candidate",
      "line": 186,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                        \"description\": function.get(\"description\", \"\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L186",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "function",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 187,
      "expression": "function.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000444",
      "kind": "instance_candidate",
      "line": 187,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                        \"parameters\": function.get(\"parameters\") or {\"type\": \"object\", \"properties\": {}},",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L187",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 192,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000445",
      "kind": "instance_candidate",
      "line": 192,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            name = tool.get(\"name\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L192",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 200,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000446",
      "kind": "instance_candidate",
      "line": 200,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                        \"description\": tool.get(\"description\", \"\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L200",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "tool",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 201,
      "expression": "tool.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000447",
      "kind": "instance_candidate",
      "line": 201,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "                        \"parameters\": tool.get(\"parameters\") or {\"type\": \"object\", \"properties\": {}},",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L201",
      "symbol": "_tools_to_chat_tools"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "tu",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 225,
      "expression": "tu.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000448",
      "kind": "instance_candidate",
      "line": 225,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        name = tu.get(\"name\", \"tool\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L225",
      "symbol": "_build_reply_parts"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "tu",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 226,
      "expression": "tu.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000449",
      "kind": "instance_candidate",
      "line": 226,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        args_dict = tu.get(\"input\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L226",
      "symbol": "_build_reply_parts"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 312,
      "expression": "body.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000450",
      "kind": "instance_candidate",
      "line": 312,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        \"model\": body.get(\"model\", \"slime-actor\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L312",
      "symbol": "_render_response"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 14,
      "end_line": 378,
      "expression": "async def _render_stream(",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000451",
      "kind": "async_def",
      "line": 324,
      "module": "slime.agent.adapters.openai",
      "name": "_render_stream",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "async def _render_stream(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L324-L378",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 30,
      "end_line": 347,
      "expression": "await out.prepare(request)",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000452",
      "kind": "await",
      "line": 347,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    await out.prepare(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L347",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 86,
      "end_line": 361,
      "expression": "    async def emit(delta: dict[str, Any], finish_reason: str | None = None, usage: dict | None = None) -> None:",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000453",
      "kind": "async_def",
      "line": 351,
      "module": "slime.agent.adapters.openai",
      "name": "emit",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    async def emit(delta: dict[str, Any], finish_reason: str | None = None, usage: dict | None = None) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L351-L361",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "body",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 356,
      "expression": "body.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000454",
      "kind": "instance_candidate",
      "line": 356,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "            \"model\": body.get(\"model\", \"slime-actor\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L356",
      "symbol": "_render_stream.emit"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 86,
      "end_line": 361,
      "expression": "await out.write(f\"data: {json.dumps(chunk, ensure_ascii=False)}\\n\\n\".encode())",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000455",
      "kind": "await",
      "line": 361,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        await out.write(f\"data: {json.dumps(chunk, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L361",
      "symbol": "_render_stream.emit"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 361,
      "expression": "out.write",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000456",
      "kind": "instance_candidate",
      "line": 361,
      "module": "slime.agent.adapters.openai",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        await out.write(f\"data: {json.dumps(chunk, ensure_ascii=False)}\\n\\n\".encode())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L361",
      "symbol": "_render_stream.emit"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 37,
      "end_line": 363,
      "expression": "await emit({\"role\": \"assistant\"})",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000457",
      "kind": "await",
      "line": 363,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    await emit({\"role\": \"assistant\"})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L363",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "wire_message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 364,
      "expression": "wire_message.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000458",
      "kind": "instance_candidate",
      "line": 364,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    reasoning = wire_message.get(\"reasoning_content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L364",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 52,
      "end_line": 366,
      "expression": "await emit({\"reasoning_content\": reasoning})",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000459",
      "kind": "await",
      "line": 366,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        await emit({\"reasoning_content\": reasoning})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L366",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "wire_message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 367,
      "expression": "wire_message.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000460",
      "kind": "instance_candidate",
      "line": 367,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    content = wire_message.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L367",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 40,
      "end_line": 369,
      "expression": "await emit({\"content\": content})",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000461",
      "kind": "await",
      "line": 369,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        await emit({\"content\": content})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L369",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "wire_message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 373,
      "expression": "wire_message.get",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000462",
      "kind": "instance_candidate",
      "line": 373,
      "module": "slime.agent.adapters.openai",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    tool_calls = wire_message.get(\"tool_calls\") or []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L373",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 99,
      "end_line": 375,
      "expression": "await emit({\"tool_calls\": [{**call, \"index\": idx} for idx, call in enumerate(tool_calls)]})",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000463",
      "kind": "await",
      "line": 375,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "        await emit({\"tool_calls\": [{**call, \"index\": idx} for idx, call in enumerate(tool_calls)]})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L375",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 76,
      "end_line": 376,
      "expression": "await emit({}, finish_reason=wire_finish, usage=_usage(in_tok, out_tok))",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000464",
      "kind": "await",
      "line": 376,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    await emit({}, finish_reason=wire_finish, usage=_usage(in_tok, out_tok))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L376",
      "symbol": "_render_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 40,
      "end_line": 377,
      "expression": "await out.write(b\"data: [DONE]\\n\\n\")",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000465",
      "kind": "await",
      "line": 377,
      "module": "slime.agent.adapters.openai",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    await out.write(b\"data: [DONE]\\n\\n\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L377",
      "symbol": "_render_stream"
    },
    {
      "category": "candidates",
      "col": 10,
      "details": {
        "receiver": "out",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 377,
      "expression": "out.write",
      "file": "slime/agent/adapters/openai.py",
      "id": "occ-000466",
      "kind": "instance_candidate",
      "line": 377,
      "module": "slime.agent.adapters.openai",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/adapters/openai.py.txt",
      "source_line": "    await out.write(b\"data: [DONE]\\n\\n\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/adapters/openai.py#L377",
      "symbol": "_render_stream"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 14,
      "end_line": 5,
      "expression": "import asyncio",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000467",
      "kind": "import",
      "line": 5,
      "module": "slime.agent.aiohttp_threaded",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 16,
      "end_line": 6,
      "expression": "import threading",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000468",
      "kind": "import",
      "line": 6,
      "module": "slime.agent.aiohttp_threaded",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 29,
      "expression": "threading.Thread",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000469",
      "kind": "api_reference",
      "line": 29,
      "module": "slime.agent.aiohttp_threaded",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    thread: threading.Thread",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L29",
      "symbol": "AppHandle"
    },
    {
      "category": "asyncio",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 30,
      "expression": "asyncio.AbstractEventLoop",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000470",
      "kind": "api_reference",
      "line": 30,
      "module": "slime.agent.aiohttp_threaded",
      "name": "asyncio.AbstractEventLoop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    loop: asyncio.AbstractEventLoop",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L30",
      "symbol": "AppHandle"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 35,
      "expression": "        async def _shutdown() -> None:",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000471",
      "kind": "async_def",
      "line": 34,
      "module": "slime.agent.aiohttp_threaded",
      "name": "_shutdown",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "        async def _shutdown() -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L34-L35",
      "symbol": "AppHandle.stop"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 35,
      "expression": "await self.runner.cleanup()",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000472",
      "kind": "await",
      "line": 35,
      "module": "slime.agent.aiohttp_threaded",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            await self.runner.cleanup()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L35",
      "symbol": "AppHandle.stop._shutdown"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 50,
      "end_line": 38,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000473",
      "kind": "api_call",
      "line": 38,
      "module": "slime.agent.aiohttp_threaded",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            fut = asyncio.run_coroutine_threadsafe(_shutdown(), self.loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L38",
      "symbol": "AppHandle.stop"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fut",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.run_coroutine_threadsafe(_shutdown(), self.loop)",
          "line": 38,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 39,
      "expression": "fut.result",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000474",
      "kind": "instance_candidate",
      "line": 39,
      "module": "slime.agent.aiohttp_threaded",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            fut.result(timeout=10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L39",
      "symbol": "AppHandle.stop"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.loop",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 42,
      "expression": "self.loop.call_soon_threadsafe",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000475",
      "kind": "instance_candidate",
      "line": 42,
      "module": "slime.agent.aiohttp_threaded",
      "name": "call_soon_threadsafe",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "        self.loop.call_soon_threadsafe(self.loop.stop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L42",
      "symbol": "AppHandle.stop"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 43,
      "expression": "self.thread.join",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000476",
      "kind": "instance_candidate",
      "line": 43,
      "module": "slime.agent.aiohttp_threaded",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "        self.thread.join(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L43",
      "symbol": "AppHandle.stop"
    },
    {
      "category": "threading",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 61,
      "expression": "threading.Event",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000477",
      "kind": "api_call",
      "line": 61,
      "module": "slime.agent.aiohttp_threaded",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    started = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L61",
      "symbol": "run_app_in_thread"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 66,
      "expression": "asyncio.new_event_loop",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000478",
      "kind": "api_call",
      "line": 66,
      "module": "slime.agent.aiohttp_threaded",
      "name": "asyncio.new_event_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "        loop = asyncio.new_event_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L66",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 67,
      "expression": "asyncio.set_event_loop",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000479",
      "kind": "api_call",
      "line": 67,
      "module": "slime.agent.aiohttp_threaded",
      "name": "asyncio.set_event_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "        asyncio.set_event_loop(loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L67",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.new_event_loop()",
          "line": 66,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 70,
      "expression": "loop.run_until_complete",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000480",
      "kind": "instance_candidate",
      "line": 70,
      "module": "slime.agent.aiohttp_threaded",
      "name": "run_until_complete",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            loop.run_until_complete(runner.setup())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L70",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.new_event_loop()",
          "line": 66,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 72,
      "expression": "loop.run_until_complete",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000481",
      "kind": "instance_candidate",
      "line": 72,
      "module": "slime.agent.aiohttp_threaded",
      "name": "run_until_complete",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            loop.run_until_complete(site.start())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L72",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "site",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 72,
      "expression": "site.start",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000482",
      "kind": "instance_candidate",
      "line": 72,
      "module": "slime.agent.aiohttp_threaded",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            loop.run_until_complete(site.start())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L72",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 61,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 80,
      "expression": "started.set",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000483",
      "kind": "instance_candidate",
      "line": 80,
      "module": "slime.agent.aiohttp_threaded",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            started.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L80",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.new_event_loop()",
          "line": 66,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 81,
      "expression": "loop.run_forever",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000484",
      "kind": "instance_candidate",
      "line": 81,
      "module": "slime.agent.aiohttp_threaded",
      "name": "run_forever",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            loop.run_forever()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L81",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 61,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 84,
      "expression": "started.set",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000485",
      "kind": "instance_candidate",
      "line": 84,
      "module": "slime.agent.aiohttp_threaded",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "            started.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L84",
      "symbol": "run_app_in_thread._run"
    },
    {
      "category": "threading",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 87,
      "expression": "threading.Thread",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000486",
      "kind": "api_call",
      "line": 87,
      "module": "slime.agent.aiohttp_threaded",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    thread = threading.Thread(target=_run, name=thread_name, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L87",
      "symbol": "run_app_in_thread"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=_run, name=thread_name, daemon=True)",
          "line": 87,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 88,
      "expression": "thread.start",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000487",
      "kind": "instance_candidate",
      "line": 88,
      "module": "slime.agent.aiohttp_threaded",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L88",
      "symbol": "run_app_in_thread"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 61,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 89,
      "expression": "started.wait",
      "file": "slime/agent/aiohttp_threaded.py",
      "id": "occ-000488",
      "kind": "instance_candidate",
      "line": 89,
      "module": "slime.agent.aiohttp_threaded",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/aiohttp_threaded.py.txt",
      "source_line": "    started.wait(timeout=start_timeout_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/aiohttp_threaded.py#L89",
      "symbol": "run_app_in_thread"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 42,
      "expression": "    async def install_cli(self, sb: Sandbox) -> None:",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000489",
      "kind": "async_def",
      "line": 36,
      "module": "slime.agent.harness.claude_code",
      "name": "install_cli",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "    async def install_cli(self, sb: Sandbox) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L36-L42",
      "symbol": "ClaudeCodeHarness"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 42,
      "expression": "await install_npm_cli(\n            sb,\n            node_runtime=Path(os.environ[self.node_tarball_env]),\n            npm_package=Path(os.environ[self.cli_tarball_env]),\n            check_cmd=\"ls -la /usr/local/bin/claude && /usr/local/bin/claude --version\",\n        )",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000490",
      "kind": "await",
      "line": 37,
      "module": "slime.agent.harness.claude_code",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "        await install_npm_cli(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L37-L42",
      "symbol": "ClaudeCodeHarness.install_cli"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 55,
      "expression": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000491",
      "kind": "async_def",
      "line": 44,
      "module": "slime.agent.harness.claude_code",
      "name": "write_config",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L44-L55",
      "symbol": "ClaudeCodeHarness"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 55,
      "expression": "await sb.exec(\n            \"mkdir -p /home/agent/.claude && \"\n            f\"echo {shlex.quote(settings)} \"\n            \"| tee /home/agent/.claude.json /home/agent/.claude/settings.json > /dev/null && \"\n            \"chown -R agent:agent /home/agent/.claude /home/agent/.claude.json\",\n            user=\"root\",\n            check=True,\n            timeout=60,\n        )",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000492",
      "kind": "await",
      "line": 47,
      "module": "slime.agent.harness.claude_code",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "        await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L47-L55",
      "symbol": "ClaudeCodeHarness.write_config"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 112,
      "end_line": 71,
      "expression": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000493",
      "kind": "async_def",
      "line": 57,
      "module": "slime.agent.harness.claude_code",
      "name": "launch_and_wait",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L57-L71",
      "symbol": "ClaudeCodeHarness"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 112,
      "end_line": 71,
      "expression": "await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)",
      "file": "slime/agent/harness/claude_code.py",
      "id": "occ-000494",
      "kind": "await",
      "line": 71,
      "module": "slime.agent.harness.claude_code",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/claude_code.py.txt",
      "source_line": "        return await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/claude_code.py#L71",
      "symbol": "ClaudeCodeHarness.launch_and_wait"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 54,
      "expression": "    async def install_cli(self, sb: Sandbox) -> None:",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000495",
      "kind": "async_def",
      "line": 48,
      "module": "slime.agent.harness.codex",
      "name": "install_cli",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "    async def install_cli(self, sb: Sandbox) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L48-L54",
      "symbol": "CodexHarness"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 54,
      "expression": "await install_npm_cli(\n            sb,\n            node_runtime=Path(os.environ[self.node_tarball_env]),\n            npm_package=Path(os.environ[self.cli_tarball_env]),\n            check_cmd=\"codex --version\",\n        )",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000496",
      "kind": "await",
      "line": 49,
      "module": "slime.agent.harness.codex",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "        await install_npm_cli(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L49-L54",
      "symbol": "CodexHarness.install_cli"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 67,
      "expression": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000497",
      "kind": "async_def",
      "line": 56,
      "module": "slime.agent.harness.codex",
      "name": "write_config",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L56-L67",
      "symbol": "CodexHarness"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 67,
      "expression": "await sb.exec(\n            \"mkdir -p /home/agent/.codex && \"\n            # base64 round-trip avoids any single-quote / heredoc shell-quoting trap\n            f\"echo {shlex.quote(toml_b64)} | base64 -d > /home/agent/.codex/config.toml && \"\n            \"chown -R agent:agent /home/agent/.codex\",\n            user=\"root\",\n            check=True,\n            timeout=60,\n        )",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000498",
      "kind": "await",
      "line": 59,
      "module": "slime.agent.harness.codex",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "        await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L59-L67",
      "symbol": "CodexHarness.write_config"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 112,
      "end_line": 86,
      "expression": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000499",
      "kind": "async_def",
      "line": 69,
      "module": "slime.agent.harness.codex",
      "name": "launch_and_wait",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L69-L86",
      "symbol": "CodexHarness"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 112,
      "end_line": 86,
      "expression": "await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)",
      "file": "slime/agent/harness/codex.py",
      "id": "occ-000500",
      "kind": "await",
      "line": 86,
      "module": "slime.agent.harness.codex",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/codex.py.txt",
      "source_line": "        return await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/codex.py#L86",
      "symbol": "CodexHarness.launch_and_wait"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 18
      },
      "end_col": 14,
      "end_line": 18,
      "expression": "import asyncio",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000501",
      "kind": "import",
      "line": 18,
      "module": "slime.agent.harness.common",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L18",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 62,
      "end_line": 66,
      "expression": "    async def install_cli(self, sb: Sandbox) -> None:",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000502",
      "kind": "async_def",
      "line": 64,
      "module": "slime.agent.harness.common",
      "name": "install_cli",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    async def install_cli(self, sb: Sandbox) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L64-L66",
      "symbol": "BaseHarness"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 70,
      "expression": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000503",
      "kind": "async_def",
      "line": 69,
      "module": "slime.agent.harness.common",
      "name": "write_config",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    async def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L69-L70",
      "symbol": "BaseHarness"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 11,
      "end_line": 79,
      "expression": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000504",
      "kind": "async_def",
      "line": 73,
      "module": "slime.agent.harness.common",
      "name": "launch_and_wait",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    async def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L73-L79",
      "symbol": "BaseHarness"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 75,
      "end_line": 104,
      "expression": "    async def run(",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000505",
      "kind": "async_def",
      "line": 81,
      "module": "slime.agent.harness.common",
      "name": "run",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    async def run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L81-L104",
      "symbol": "BaseHarness"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 53,
      "end_line": 97,
      "expression": "await _sandbox.ensure_agent_user(sb, workdir)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000506",
      "kind": "await",
      "line": 97,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "        await _sandbox.ensure_agent_user(sb, workdir)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L97",
      "symbol": "BaseHarness.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 40,
      "end_line": 103,
      "expression": "await self.write_config(sb, ctx)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000507",
      "kind": "await",
      "line": 103,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "        await self.write_config(sb, ctx)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L103",
      "symbol": "BaseHarness.run"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 75,
      "end_line": 104,
      "expression": "await self.launch_and_wait(sb, ctx, prompt, time_budget_sec)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000508",
      "kind": "await",
      "line": 104,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "        return await self.launch_and_wait(sb, ctx, prompt, time_budget_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L104",
      "symbol": "BaseHarness.run"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 122,
      "expression": "async def run_agent(sb: Sandbox, *, workdir: str, start_cmd: str, env: dict[str, str], time_budget_sec: int) -> int:",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000509",
      "kind": "async_def",
      "line": 107,
      "module": "slime.agent.harness.common",
      "name": "run_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "async def run_agent(sb: Sandbox, *, workdir: str, start_cmd: str, env: dict[str, str], time_budget_sec: int) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L107-L122",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 110,
      "end_line": 110,
      "expression": "await sb.exec(f\"mkdir -p {meta_dir} && chown agent:agent {meta_dir}\", user=\"root\", check=True, timeout=30)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000510",
      "kind": "await",
      "line": 110,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    await sb.exec(f\"mkdir -p {meta_dir} && chown agent:agent {meta_dir}\", user=\"root\", check=True, timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L110",
      "symbol": "run_agent"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 5,
      "end_line": 121,
      "expression": "await exec_and_wait(\n        sb,\n        cmd=start_cmd,\n        user=\"agent\",\n        env=env,\n        workdir=workdir,\n        out_file=f\"{meta_dir}/trajectory.jsonl\",\n        time_budget_sec=time_budget_sec,\n        tag=\"run\",\n        want_output=False,\n    )",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000511",
      "kind": "await",
      "line": 111,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    exit_code, _ = await exec_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L111-L121",
      "symbol": "run_agent"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 151,
      "expression": "async def install_npm_cli(",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000512",
      "kind": "async_def",
      "line": 125,
      "module": "slime.agent.harness.common",
      "name": "install_npm_cli",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "async def install_npm_cli(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L125-L151",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 42,
      "end_line": 135,
      "expression": "await install_node22(sb, node_runtime)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000513",
      "kind": "await",
      "line": 135,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    await install_node22(sb, node_runtime)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L135",
      "symbol": "install_npm_cli"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 60,
      "end_line": 137,
      "expression": "await sb.write_file(\"/tmp/harness-cli.tgz\", npm_package)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000514",
      "kind": "await",
      "line": 137,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    await sb.write_file(\"/tmp/harness-cli.tgz\", npm_package)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L137",
      "symbol": "install_npm_cli"
    },
    {
      "category": "syntax",
      "col": 30,
      "details": {},
      "end_col": 9,
      "end_line": 144,
      "expression": "await exec_and_wait(\n            sb, cmd=install_cmd, user=\"root\", time_budget_sec=300, tag=\"harness-npm-install\"\n        )",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000515",
      "kind": "await",
      "line": 142,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "        exit_code, last_log = await exec_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L142-L144",
      "symbol": "install_npm_cli"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 72,
      "end_line": 148,
      "expression": "await asyncio.sleep(NPM_INSTALL_BACKOFF_SEC * (attempt + 1))",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000516",
      "kind": "await",
      "line": 148,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "            await asyncio.sleep(NPM_INSTALL_BACKOFF_SEC * (attempt + 1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L148",
      "symbol": "install_npm_cli"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 148,
      "expression": "asyncio.sleep",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000517",
      "kind": "api_call",
      "line": 148,
      "module": "slime.agent.harness.common",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "            await asyncio.sleep(NPM_INSTALL_BACKOFF_SEC * (attempt + 1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L148",
      "symbol": "install_npm_cli"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 178,
      "expression": "async def install_node22(sb: Sandbox, host_tarball: Path) -> None:",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000518",
      "kind": "async_def",
      "line": 154,
      "module": "slime.agent.harness.common",
      "name": "install_node22",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "async def install_node22(sb: Sandbox, host_tarball: Path) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L154-L178",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 56,
      "end_line": 167,
      "expression": "await sb.write_file(\"/tmp/node22.tar\", host_tarball)",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000519",
      "kind": "await",
      "line": 167,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    await sb.write_file(\"/tmp/node22.tar\", host_tarball)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L167",
      "symbol": "install_node22"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 178,
      "expression": "await sb.exec(\n        \"set -e && mkdir -p /opt/node22 && \"\n        \"tar xf /tmp/node22.tar -C /opt/node22 --strip-components=1 && \"\n        \"ln -sf /opt/node22/bin/node /usr/local/bin/node && \"\n        \"ln -sf /opt/node22/bin/npm  /usr/local/bin/npm && \"\n        \"ln -sf /opt/node22/bin/npx  /usr/local/bin/npx && \"\n        \"hash -r 2>/dev/null || true && node --version && npm --version\",\n        user=\"root\",\n        timeout=180,\n        check=True,\n    )",
      "file": "slime/agent/harness/common.py",
      "id": "occ-000520",
      "kind": "await",
      "line": 168,
      "module": "slime.agent.harness.common",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/harness/common.py.txt",
      "source_line": "    await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/harness/common.py#L168-L178",
      "symbol": "install_node22"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 11
      },
      "end_col": 14,
      "end_line": 11,
      "expression": "import asyncio",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000521",
      "kind": "import",
      "line": 11,
      "module": "slime.agent.sandbox",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L11",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 46,
      "end_line": 42,
      "expression": "    async def __aenter__(self) -> Sandbox: ...",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000522",
      "kind": "async_def",
      "line": 42,
      "module": "slime.agent.sandbox",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def __aenter__(self) -> Sandbox: ...",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L42",
      "symbol": "Sandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 61,
      "end_line": 44,
      "expression": "    async def __aexit__(self, exc_type, exc, tb) -> None: ...",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000523",
      "kind": "async_def",
      "line": 44,
      "module": "slime.agent.sandbox",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def __aexit__(self, exc_type, exc, tb) -> None: ...",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L44",
      "symbol": "Sandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 55,
      "expression": "    async def exec(",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000524",
      "kind": "async_def",
      "line": 46,
      "module": "slime.agent.sandbox",
      "name": "exec",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L46-L55",
      "symbol": "Sandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 107,
      "end_line": 57,
      "expression": "    async def write_file(self, sandbox_path: str, content: FileContent, *, user: str = \"root\") -> None: ...",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000525",
      "kind": "async_def",
      "line": 57,
      "module": "slime.agent.sandbox",
      "name": "write_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def write_file(self, sandbox_path: str, content: FileContent, *, user: str = \"root\") -> None: ...",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L57",
      "symbol": "Sandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 83,
      "end_line": 59,
      "expression": "    async def read_file(self, sandbox_path: str, *, user: str = \"root\") -> str: ...",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000526",
      "kind": "async_def",
      "line": 59,
      "module": "slime.agent.sandbox",
      "name": "read_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def read_file(self, sandbox_path: str, *, user: str = \"root\") -> str: ...",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L59",
      "symbol": "Sandbox"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 36,
      "end_line": 79,
      "expression": "async def _await_done_marker(sb: Sandbox, done_file: str, *, user: str, time_budget_sec: int) -> int:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000527",
      "kind": "async_def",
      "line": 65,
      "module": "slime.agent.sandbox",
      "name": "_await_done_marker",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "async def _await_done_marker(sb: Sandbox, done_file: str, *, user: str, time_budget_sec: int) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L65-L79",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 30,
      "end_line": 75,
      "expression": "await asyncio.sleep(5)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000528",
      "kind": "await",
      "line": 75,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        await asyncio.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L75",
      "symbol": "_await_done_marker"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 75,
      "expression": "asyncio.sleep",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000529",
      "kind": "api_call",
      "line": 75,
      "module": "slime.agent.sandbox",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        await asyncio.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L75",
      "symbol": "_await_done_marker"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 113,
      "end_line": 76,
      "expression": "await sb.exec(f\"test -f {done_file} && cat {done_file}\", user=user, timeout=15, check=False)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000530",
      "kind": "await",
      "line": 76,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        ec, out, _ = await sb.exec(f\"test -f {done_file} && cat {done_file}\", user=user, timeout=15, check=False)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L76",
      "symbol": "_await_done_marker"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 32,
      "end_line": 145,
      "expression": "async def exec_and_wait(",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000531",
      "kind": "async_def",
      "line": 82,
      "module": "slime.agent.sandbox",
      "name": "exec_and_wait",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "async def exec_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L82-L145",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 59,
      "end_line": 113,
      "expression": "await sb.write_file(launcher, launcher_body, user=user)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000532",
      "kind": "await",
      "line": 113,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    await sb.write_file(launcher, launcher_body, user=user)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L113",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 128,
      "expression": "await sb.exec(\n        f\"rm -rf {lock_dir}; rm -f {out_file} {done_file}\",\n        user=user,\n        timeout=30,\n        check=True,\n        idempotent=True,\n    )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000533",
      "kind": "await",
      "line": 122,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L122-L128",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 138,
      "expression": "await sb.exec(\n        f\"chmod +x {launcher}; \"\n        f\"mkdir {lock_dir} 2>/dev/null || exit 0; \"\n        f\"setsid bash {launcher} < /dev/null > {out_file} 2>&1 &\",\n        user=user,\n        env=env,\n        timeout=30,\n        check=True,\n        idempotent=True,\n    )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000534",
      "kind": "await",
      "line": 129,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L129-L138",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 99,
      "end_line": 139,
      "expression": "await _await_done_marker(sb, done_file, user=user, time_budget_sec=time_budget_sec)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000535",
      "kind": "await",
      "line": 139,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    exit_code = await _await_done_marker(sb, done_file, user=user, time_budget_sec=time_budget_sec)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L139",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 26,
      "details": {},
      "end_col": 65,
      "end_line": 143,
      "expression": "await sb.read_file(out_file, user=user)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000536",
      "kind": "await",
      "line": 143,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        return exit_code, await sb.read_file(out_file, user=user)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L143",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 105,
      "end_line": 144,
      "expression": "await sb.exec(f\"tail -c 512 {out_file} 2>/dev/null\", user=user, timeout=15, check=False)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000537",
      "kind": "await",
      "line": 144,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    _, tail, _ = await sb.exec(f\"tail -c 512 {out_file} 2>/dev/null\", user=user, timeout=15, check=False)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L144",
      "symbol": "exec_and_wait"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 271,
      "expression": "    async def _rpc_retry(self, op_name: str, coro_factory, *, idempotent: bool = True):",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000538",
      "kind": "async_def",
      "line": 237,
      "module": "slime.agent.sandbox",
      "name": "_rpc_retry",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def _rpc_retry(self, op_name: str, coro_factory, *, idempotent: bool = True):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L237-L271",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 43,
      "end_line": 249,
      "expression": "await coro_factory()",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000539",
      "kind": "await",
      "line": 249,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                return await coro_factory()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L249",
      "symbol": "E2BSandbox._rpc_retry"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 49,
      "end_line": 257,
      "expression": "await self._reset_conn_pool()",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000540",
      "kind": "await",
      "line": 257,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                    await self._reset_conn_pool()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L257",
      "symbol": "E2BSandbox._rpc_retry"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 48,
      "end_line": 269,
      "expression": "await asyncio.sleep(backoff)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000541",
      "kind": "await",
      "line": 269,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                    await asyncio.sleep(backoff)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L269",
      "symbol": "E2BSandbox._rpc_retry"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 269,
      "expression": "asyncio.sleep",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000542",
      "kind": "api_call",
      "line": 269,
      "module": "slime.agent.sandbox",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                    await asyncio.sleep(backoff)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L269",
      "symbol": "E2BSandbox._rpc_retry"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 74,
      "end_line": 279,
      "expression": "    async def _reset_conn_pool(self) -> None:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000543",
      "kind": "async_def",
      "line": 273,
      "module": "slime.agent.sandbox",
      "name": "_reset_conn_pool",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def _reset_conn_pool(self) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L273-L279",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 31,
      "end_line": 277,
      "expression": "await pool.aclose()",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000544",
      "kind": "await",
      "line": 277,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            await pool.aclose()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L277",
      "symbol": "E2BSandbox._reset_conn_pool"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 300,
      "expression": "    async def __aenter__(self) -> E2BSandbox:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000545",
      "kind": "async_def",
      "line": 281,
      "module": "slime.agent.sandbox",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def __aenter__(self) -> E2BSandbox:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L281-L300",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 114,
      "end_line": 298,
      "expression": "await self._rpc_retry(\"create\", lambda: AsyncSandbox.create(timeout=self.timeout, metadata=md))",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000546",
      "kind": "await",
      "line": 298,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        self._sb = await self._rpc_retry(\"create\", lambda: AsyncSandbox.create(timeout=self.timeout, metadata=md))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L298",
      "symbol": "E2BSandbox.__aenter__"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 88,
      "end_line": 307,
      "expression": "    async def __aexit__(self, exc_type, exc, tb) -> None:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000547",
      "kind": "async_def",
      "line": 302,
      "module": "slime.agent.sandbox",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def __aexit__(self, exc_type, exc, tb) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L302-L307",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 37,
      "end_line": 305,
      "expression": "await self._sb.kill()",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000548",
      "kind": "await",
      "line": 305,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                await self._sb.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L305",
      "symbol": "E2BSandbox.__aexit__"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "self._sb",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 305,
      "expression": "self._sb.kill",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000549",
      "kind": "instance_candidate",
      "line": 305,
      "module": "slime.agent.sandbox",
      "name": "kill",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                await self._sb.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L305",
      "symbol": "E2BSandbox.__aexit__"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 62,
      "end_line": 340,
      "expression": "    async def exec(",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000550",
      "kind": "async_def",
      "line": 309,
      "module": "slime.agent.sandbox",
      "name": "exec",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L309-L340",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 13,
      "end_line": 333,
      "expression": "await self._rpc_retry(\n                f\"exec({cmd[:60]!r})\",\n                lambda: self._sb.commands.run(\n                    cmd,\n                    user=user,\n                    envs=env,\n                    timeout=timeout,\n                    on_stdout=lambda s: None,\n                    on_stderr=lambda s: None,\n                ),\n                idempotent=idempotent,\n            )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000551",
      "kind": "await",
      "line": 322,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            res = await self._rpc_retry(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L322-L333",
      "symbol": "E2BSandbox.exec"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 378,
      "expression": "    async def write_file(self, sandbox_path: str, content: FileContent, *, user: str = \"root\") -> None:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000552",
      "kind": "async_def",
      "line": 342,
      "module": "slime.agent.sandbox",
      "name": "write_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def write_file(self, sandbox_path: str, content: FileContent, *, user: str = \"root\") -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L342-L378",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 355,
      "expression": "            async def _do_path():",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000553",
      "kind": "async_def",
      "line": 346,
      "module": "slime.agent.sandbox",
      "name": "_do_path",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            async def _do_path():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L346-L355",
      "symbol": "E2BSandbox.write_file"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 21,
      "end_line": 355,
      "expression": "await self._sb.files.write(\n                        sandbox_path,\n                        fp,\n                        user=user,\n                        gzip=False,\n                        use_octet_stream=True,\n                        request_timeout=600,\n                    )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000554",
      "kind": "await",
      "line": 348,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                    await self._sb.files.write(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L348-L355",
      "symbol": "E2BSandbox.write_file._do_path"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "self._sb.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 348,
      "expression": "self._sb.files.write",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000555",
      "kind": "instance_candidate",
      "line": 348,
      "module": "slime.agent.sandbox",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                    await self._sb.files.write(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L348",
      "symbol": "E2BSandbox.write_file._do_path"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 94,
      "end_line": 357,
      "expression": "await self._rpc_retry(f\"write_file({sandbox_path} <- {host_path.name})\", _do_path)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000556",
      "kind": "await",
      "line": 357,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            await self._rpc_retry(f\"write_file({sandbox_path} <- {host_path.name})\", _do_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L357",
      "symbol": "E2BSandbox.write_file"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 370,
      "expression": "            async def _do_bytes():",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000557",
      "kind": "async_def",
      "line": 362,
      "module": "slime.agent.sandbox",
      "name": "_do_bytes",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            async def _do_bytes():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L362-L370",
      "symbol": "E2BSandbox.write_file"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 17,
      "end_line": 370,
      "expression": "await self._sb.files.write(\n                    sandbox_path,\n                    io.BytesIO(content),\n                    user=user,\n                    gzip=False,\n                    use_octet_stream=True,\n                    request_timeout=600,\n                )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000558",
      "kind": "await",
      "line": 363,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                await self._sb.files.write(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L363-L370",
      "symbol": "E2BSandbox.write_file._do_bytes"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "self._sb.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 363,
      "expression": "self._sb.files.write",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000559",
      "kind": "instance_candidate",
      "line": 363,
      "module": "slime.agent.sandbox",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                await self._sb.files.write(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L363",
      "symbol": "E2BSandbox.write_file._do_bytes"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 97,
      "end_line": 372,
      "expression": "await self._rpc_retry(f\"write_file({sandbox_path}, bytes={len(content)})\", _do_bytes)",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000560",
      "kind": "await",
      "line": 372,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            await self._rpc_retry(f\"write_file({sandbox_path}, bytes={len(content)})\", _do_bytes)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L372",
      "symbol": "E2BSandbox.write_file"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 378,
      "expression": "await self._rpc_retry(\n            f\"write_file({sandbox_path})\",\n            lambda: self._sb.files.write(sandbox_path, content, user=user),\n        )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000561",
      "kind": "await",
      "line": 375,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "        await self._rpc_retry(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L375-L378",
      "symbol": "E2BSandbox.write_file"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self._sb.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 377,
      "expression": "self._sb.files.write",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000562",
      "kind": "instance_candidate",
      "line": 377,
      "module": "slime.agent.sandbox",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            lambda: self._sb.files.write(sandbox_path, content, user=user),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L377",
      "symbol": "E2BSandbox.write_file.<lambda>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 387,
      "expression": "    async def read_file(self, sandbox_path: str, *, user: str = \"root\") -> str:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000563",
      "kind": "async_def",
      "line": 380,
      "module": "slime.agent.sandbox",
      "name": "read_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    async def read_file(self, sandbox_path: str, *, user: str = \"root\") -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L380-L387",
      "symbol": "E2BSandbox"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 13,
      "end_line": 385,
      "expression": "await self._rpc_retry(\n                f\"read_file({sandbox_path})\",\n                lambda: self._sb.files.read(sandbox_path, user=user),\n            )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000564",
      "kind": "await",
      "line": 382,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "            return await self._rpc_retry(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L382-L385",
      "symbol": "E2BSandbox.read_file"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "self._sb.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 384,
      "expression": "self._sb.files.read",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000565",
      "kind": "instance_candidate",
      "line": 384,
      "module": "slime.agent.sandbox",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "                lambda: self._sb.files.read(sandbox_path, user=user),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L384",
      "symbol": "E2BSandbox.read_file.<lambda>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 399,
      "expression": "async def ensure_agent_user(sb: Sandbox, workdir: str) -> None:",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000566",
      "kind": "async_def",
      "line": 390,
      "module": "slime.agent.sandbox",
      "name": "ensure_agent_user",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "async def ensure_agent_user(sb: Sandbox, workdir: str) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L390-L399",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 399,
      "expression": "await sb.exec(\n        f\"id agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent && \"\n        f\"chown -R agent:agent /home/agent {workdir} && \"\n        f\"git config --system --add safe.directory '*' && id agent\",\n        user=\"root\",\n        check=True,\n        timeout=60,\n    )",
      "file": "slime/agent/sandbox.py",
      "id": "occ-000567",
      "kind": "await",
      "line": 392,
      "module": "slime.agent.sandbox",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/agent/sandbox.py.txt",
      "source_line": "    await sb.exec(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/agent/sandbox.py#L392-L399",
      "symbol": "ensure_agent_user"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000568",
      "kind": "import",
      "line": 1,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 16,
      "end_line": 3,
      "expression": "import threading",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000569",
      "kind": "import",
      "line": 3,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 4
      },
      "end_col": 11,
      "end_line": 4,
      "expression": "import time",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000570",
      "kind": "import",
      "line": 4,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 79,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000571",
      "kind": "instance_candidate",
      "line": 79,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    return float(payload.get(\"timeout_s\") or args.megatron_server_update_timeout_s)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L79",
      "symbol": "_get_update_timeout_s"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "req",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 181,
      "expression": "req.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000572",
      "kind": "instance_candidate",
      "line": 181,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                req for req in self._pending_requests if req.get(\"request_id\") != request_id",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L181",
      "symbol": "SampleManager.cancel_request.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "req",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 187,
      "expression": "req.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000573",
      "kind": "instance_candidate",
      "line": 187,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            rid = req.get(\"request_id\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L187",
      "symbol": "SampleManager._pop_next_request"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "req",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 204,
      "expression": "req.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000574",
      "kind": "instance_candidate",
      "line": 204,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        sample_n = req.get(\"sample_n\", 0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L204",
      "symbol": "SampleManager.get_input_data"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "req",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 205,
      "expression": "req.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000575",
      "kind": "instance_candidate",
      "line": 205,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        label_token_ids = req.get(\"label_token_ids\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L205",
      "symbol": "SampleManager.get_input_data"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "output_item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 263,
      "expression": "output_item.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000576",
      "kind": "instance_candidate",
      "line": 263,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                log_probs = output_item.get(\"log_probs\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L263",
      "symbol": "SampleManager.save_log_probs"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "output_item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 264,
      "expression": "output_item.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000577",
      "kind": "instance_candidate",
      "line": 264,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                sampled_token_ids = output_item.get(\"sampled_token_ids\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L264",
      "symbol": "SampleManager.save_log_probs"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "output_item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 265,
      "expression": "output_item.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000578",
      "kind": "instance_candidate",
      "line": 265,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                sampled_log_probs = output_item.get(\"sampled_log_probs\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L265",
      "symbol": "SampleManager.save_log_probs"
    },
    {
      "category": "candidates",
      "col": 40,
      "details": {
        "receiver": "output_item",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 55,
      "end_line": 266,
      "expression": "output_item.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000579",
      "kind": "instance_candidate",
      "line": 266,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                label_token_log_probs = output_item.get(\"label_token_log_probs\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L266",
      "symbol": "SampleManager.save_log_probs"
    },
    {
      "category": "candidates",
      "col": 34,
      "details": {
        "receiver": "x",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 287,
      "expression": "x.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000580",
      "kind": "instance_candidate",
      "line": 287,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    logp_parts.sort(key=lambda x: x.get(\"dp_rank\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L287",
      "symbol": "_merge_log_probs.<lambda>"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 290,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000581",
      "kind": "instance_candidate",
      "line": 290,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        has_log_prob = part.get(\"log_prob\") is not None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L290",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 291,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000582",
      "kind": "instance_candidate",
      "line": 291,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        has_sampled = part.get(\"sampled_log_probs\") is not None or part.get(\"sampled_token_ids\") is not None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L291",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 67,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 75,
      "end_line": 291,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000583",
      "kind": "instance_candidate",
      "line": 291,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        has_sampled = part.get(\"sampled_log_probs\") is not None or part.get(\"sampled_token_ids\") is not None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L291",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 292,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000584",
      "kind": "instance_candidate",
      "line": 292,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        has_label = part.get(\"label_token_log_probs\") is not None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L292",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 297,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000585",
      "kind": "instance_candidate",
      "line": 297,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                \"log_probs\": part.get(\"log_prob\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L297",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 298,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000586",
      "kind": "instance_candidate",
      "line": 298,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                \"sampled_log_probs\": part.get(\"sampled_log_probs\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L298",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 299,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000587",
      "kind": "instance_candidate",
      "line": 299,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                \"sampled_token_ids\": part.get(\"sampled_token_ids\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L299",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "part",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 300,
      "expression": "part.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000588",
      "kind": "instance_candidate",
      "line": 300,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                \"label_token_log_probs\": part.get(\"label_token_log_probs\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L300",
      "symbol": "_merge_log_probs"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 315,
      "expression": "time.sleep",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000589",
      "kind": "api_call",
      "line": 315,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        time.sleep(interval)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L315",
      "symbol": "_run_stats_printer"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 48,
      "end_line": 356,
      "expression": "async def _ray_get(ref):",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000590",
      "kind": "async_def",
      "line": 355,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "_ray_get",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "async def _ray_get(ref):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L355-L356",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 48,
      "end_line": 356,
      "expression": "await asyncio.to_thread(ray.get, ref)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000591",
      "kind": "await",
      "line": 356,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    return await asyncio.to_thread(ray.get, ref)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L356",
      "symbol": "_ray_get"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 356,
      "expression": "asyncio.to_thread",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000592",
      "kind": "api_call",
      "line": 356,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    return await asyncio.to_thread(ray.get, ref)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L356",
      "symbol": "_ray_get"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 55,
      "end_line": 366,
      "expression": "async def _read_json_payload(request: web.Request) -> dict[str, Any]:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000593",
      "kind": "async_def",
      "line": 359,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "_read_json_payload",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "async def _read_json_payload(request: web.Request) -> dict[str, Any]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L359-L366",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 38,
      "end_line": 363,
      "expression": "await request.json()",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000594",
      "kind": "await",
      "line": 363,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        payload = await request.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L363",
      "symbol": "_read_json_payload"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 382,
      "expression": "result.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000595",
      "kind": "instance_candidate",
      "line": 382,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        \"log_probs\": _crop_sequence(result.get(\"log_probs\"), expected_len),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L382",
      "symbol": "_build_generate_response"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 385,
      "expression": "result.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000596",
      "kind": "instance_candidate",
      "line": 385,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        value = result.get(key)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L385",
      "symbol": "_build_generate_response"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 32,
      "end_line": 399,
      "expression": "async def _wait_until_idle(sample_manager, timeout_s: float) -> dict[str, Any]:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000597",
      "kind": "async_def",
      "line": 391,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "_wait_until_idle",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "async def _wait_until_idle(sample_manager, timeout_s: float) -> dict[str, Any]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L391-L399",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 65,
      "end_line": 394,
      "expression": "await _ray_get(sample_manager.get_loads.remote())",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000598",
      "kind": "await",
      "line": 394,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        loads = await _ray_get(sample_manager.get_loads.remote())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L394",
      "symbol": "_wait_until_idle"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 32,
      "end_line": 399,
      "expression": "await asyncio.sleep(0.1)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000599",
      "kind": "await",
      "line": 399,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        await asyncio.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L399",
      "symbol": "_wait_until_idle"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 399,
      "expression": "asyncio.sleep",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000600",
      "kind": "api_call",
      "line": 399,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        await asyncio.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L399",
      "symbol": "_wait_until_idle"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 403,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000601",
      "kind": "instance_candidate",
      "line": 403,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    model_path = payload.get(\"model_path\") or payload.get(\"path\") or payload.get(\"load\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L403",
      "symbol": "_get_update_model_path"
    },
    {
      "category": "candidates",
      "col": 46,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 403,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000602",
      "kind": "instance_candidate",
      "line": 403,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    model_path = payload.get(\"model_path\") or payload.get(\"path\") or payload.get(\"load\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L403",
      "symbol": "_get_update_model_path"
    },
    {
      "category": "candidates",
      "col": 69,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 80,
      "end_line": 403,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000603",
      "kind": "instance_candidate",
      "line": 403,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    model_path = payload.get(\"model_path\") or payload.get(\"path\") or payload.get(\"load\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L403",
      "symbol": "_get_update_model_path"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 429,
      "expression": "asyncio.Lock",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000604",
      "kind": "api_call",
      "line": 429,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    update_lock = asyncio.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L429",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 68,
      "end_line": 432,
      "expression": "    async def detect(_request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000605",
      "kind": "async_def",
      "line": 431,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "detect",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def detect(_request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L431-L432",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 46,
      "end_line": 435,
      "expression": "    async def healthz(_request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000606",
      "kind": "async_def",
      "line": 434,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "healthz",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def healthz(_request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L434-L435",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 63,
      "end_line": 438,
      "expression": "    async def info(_request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000607",
      "kind": "async_def",
      "line": 437,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "info",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def info(_request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L437-L438",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 83,
      "end_line": 441,
      "expression": "    async def get_loads(_request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000608",
      "kind": "async_def",
      "line": 440,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get_loads",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def get_loads(_request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L440-L441",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 33,
      "details": {},
      "end_col": 82,
      "end_line": 441,
      "expression": "await _ray_get(sample_manager.get_loads.remote())",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000609",
      "kind": "await",
      "line": 441,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        return web.json_response(await _ray_get(sample_manager.get_loads.remote()))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L441",
      "symbol": "_build_http_app.get_loads"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 59,
      "end_line": 515,
      "expression": "    async def update_from_disk(request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000610",
      "kind": "async_def",
      "line": 443,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "update_from_disk",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def update_from_disk(request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L443-L515",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 51,
      "end_line": 447,
      "expression": "await _read_json_payload(request)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000611",
      "kind": "await",
      "line": 447,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        payload = await _read_json_payload(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L447",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 33,
      "end_line": 468,
      "expression": "        async with update_lock:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000612",
      "kind": "async_with",
      "line": 452,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        async with update_lock:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L452-L468",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "asyncio",
      "col": 32,
      "details": {
        "access": "load"
      },
      "end_col": 56,
      "end_line": 464,
      "expression": "asyncio.get_running_loop",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000613",
      "kind": "api_call",
      "line": 464,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                update_future = asyncio.get_running_loop().create_future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L464",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "asyncio.get_running_loop()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 464,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 72,
      "end_line": 464,
      "expression": "asyncio.get_running_loop().create_future",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000614",
      "kind": "instance_candidate",
      "line": 464,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "create_future",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                update_future = asyncio.get_running_loop().create_future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L464",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 56,
      "end_line": 471,
      "expression": "await asyncio.shield(update_future)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000615",
      "kind": "await",
      "line": 471,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            result = await asyncio.shield(update_future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L471",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 471,
      "expression": "asyncio.shield",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000616",
      "kind": "api_call",
      "line": 471,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.shield",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            result = await asyncio.shield(update_future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L471",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 472,
      "expression": "result.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000617",
      "kind": "instance_candidate",
      "line": 472,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            if result.get(\"ok\") is True:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L472",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 476,
      "expression": "result.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000618",
      "kind": "instance_candidate",
      "line": 476,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            return _json_error(result.get(\"error\", \"update_from_disk failed\"), int(result.get(\"status\", 500)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L476",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 83,
      "details": {
        "receiver": "result",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 93,
      "end_line": 476,
      "expression": "result.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000619",
      "kind": "instance_candidate",
      "line": 476,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            return _json_error(result.get(\"error\", \"update_from_disk failed\"), int(result.get(\"status\", 500)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L476",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 76,
      "end_line": 482,
      "expression": "await _wait_until_idle(sample_manager, timeout_s)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000620",
      "kind": "await",
      "line": 482,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            before_loads = await _wait_until_idle(sample_manager, timeout_s)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L482",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 28,
      "details": {},
      "end_col": 84,
      "end_line": 483,
      "expression": "await asyncio.to_thread(update_from_disk_fn, model_path)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000621",
      "kind": "await",
      "line": 483,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            update_result = await asyncio.to_thread(update_from_disk_fn, model_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L483",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "asyncio",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 51,
      "end_line": 483,
      "expression": "asyncio.to_thread",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000622",
      "kind": "api_call",
      "line": 483,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            update_result = await asyncio.to_thread(update_from_disk_fn, model_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L483",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 26,
      "details": {},
      "end_col": 75,
      "end_line": 484,
      "expression": "await _ray_get(sample_manager.get_loads.remote())",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000623",
      "kind": "await",
      "line": 484,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            after_loads = await _ray_get(sample_manager.get_loads.remote())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L484",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 52,
      "end_line": 511,
      "expression": "            async with update_lock:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000624",
      "kind": "async_with",
      "line": 504,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            async with update_lock:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L504-L511",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "update_future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "asyncio.get_running_loop().create_future()",
          "line": 464,
          "type": "asyncio.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 506,
      "expression": "update_future.set_result",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000625",
      "kind": "instance_candidate",
      "line": 506,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "set_result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                    update_future.set_result(result)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L506",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "update_future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "asyncio.get_running_loop().create_future()",
          "line": 464,
          "type": "asyncio.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 508,
      "expression": "update_future.set_result",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000626",
      "kind": "instance_candidate",
      "line": 508,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "set_result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                    update_future.set_result(error)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L508",
      "symbol": "_build_http_app.update_from_disk"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 102,
      "end_line": 595,
      "expression": "    async def generate(request: web.Request) -> web.Response:",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000627",
      "kind": "async_def",
      "line": 517,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    async def generate(request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L517-L595",
      "symbol": "_build_http_app"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 51,
      "end_line": 521,
      "expression": "await _read_json_payload(request)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000628",
      "kind": "await",
      "line": 521,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        payload = await _read_json_payload(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L521",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 541,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000629",
      "kind": "instance_candidate",
      "line": 541,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            sample_n = _parse_sample_n(payload.get(\"sample_n\", 0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L541",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 68,
      "end_line": 543,
      "expression": "payload.get",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000630",
      "kind": "instance_candidate",
      "line": 543,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            label_token_ids = _normalize_label_token_ids(payload.get(\"label_token_ids\"), valid_response_length)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L543",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 69,
      "end_line": 548,
      "expression": "await _ray_get(sample_manager.get_stats.remote())",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000631",
      "kind": "await",
      "line": 548,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            stats = await _ray_get(sample_manager.get_stats.remote())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L548",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 13,
      "end_line": 578,
      "expression": "await _ray_get(\n                sample_manager.submit.remote(\n                    input_ids,\n                    response_length=response_length,\n                    loss_mask=loss_mask,\n                    sample_n=sample_n,\n                    label_token_ids=label_token_ids,\n                )\n            )",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000632",
      "kind": "await",
      "line": 570,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "            request_id = await _ray_get(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L570-L578",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 85,
      "end_line": 581,
      "expression": "await _ray_get(sample_manager.get_result.remote(request_id))",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000633",
      "kind": "await",
      "line": 581,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                result = await _ray_get(sample_manager.get_result.remote(request_id))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L581",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 41,
      "end_line": 584,
      "expression": "await asyncio.sleep(0.05)",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000634",
      "kind": "await",
      "line": 584,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L584",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 584,
      "expression": "asyncio.sleep",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000635",
      "kind": "api_call",
      "line": 584,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L584",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 585,
      "expression": "asyncio.CancelledError",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000636",
      "kind": "api_reference",
      "line": 585,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        except asyncio.CancelledError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L585",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 80,
      "end_line": 588,
      "expression": "await _ray_get(sample_manager.cancel_request.remote(request_id))",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000637",
      "kind": "await",
      "line": 588,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                await _ray_get(sample_manager.cancel_request.remote(request_id))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L588",
      "symbol": "_build_http_app.generate"
    },
    {
      "category": "threading",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 616,
      "expression": "threading.Thread",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000638",
      "kind": "api_call",
      "line": 616,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    stats_thread = threading.Thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L616",
      "symbol": "_start_http_server"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "stats_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(\n        target=_run_stats_printer,\n        args=(sample_manager, 5.0),\n        name=\"stats-printer\",\n        daemon=True,\n    )",
          "line": 616,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 622,
      "expression": "stats_thread.start",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000639",
      "kind": "instance_candidate",
      "line": 622,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "    stats_thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L622",
      "symbol": "_start_http_server"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "warmup_handle",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 667,
      "expression": "warmup_handle.stop",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000640",
      "kind": "instance_candidate",
      "line": 667,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "stop",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "        warmup_handle.stop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L667",
      "symbol": "_run_warmup_via_private_http"
    },
    {
      "category": "time-sleep",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 689,
      "expression": "time.sleep",
      "file": "slime/backends/megatron_utils/server/megatron_server.py",
      "id": "occ-000641",
      "kind": "api_call",
      "line": 689,
      "module": "slime.backends.megatron_utils.server.megatron_server",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/server/megatron_server.py.txt",
      "source_line": "                    time.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/server/megatron_server.py#L689",
      "symbol": "run_megatron_dp_models_loop_worker"
    },
    {
      "category": "queue",
      "col": 7,
      "details": {
        "local_binding": "queue",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 12,
      "end_line": 6,
      "expression": "import queue",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000642",
      "kind": "import",
      "line": 6,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "queue",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "import queue",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 49,
      "end_line": 10,
      "expression": "from concurrent.futures import ThreadPoolExecutor",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000643",
      "kind": "import",
      "line": 10,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._snapshot",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 124,
      "expression": "self._snapshot.clear",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000644",
      "kind": "instance_candidate",
      "line": 124,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "        self._snapshot.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L124",
      "symbol": "UpdateWeightFromDiskDelta._publish_full"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "writer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 132,
      "expression": "writer.write",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000645",
      "kind": "instance_candidate",
      "line": 132,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "                writer.write(tensors, chunk_index)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L132",
      "symbol": "UpdateWeightFromDiskDelta._publish_full"
    },
    {
      "category": "queue",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 234,
      "expression": "queue.Queue",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000646",
      "kind": "api_reference",
      "line": 234,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "queue.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "        free_q: queue.Queue = queue.Queue()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L234",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "queue",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 234,
      "expression": "queue.Queue",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000647",
      "kind": "api_call",
      "line": 234,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "queue.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "        free_q: queue.Queue = queue.Queue()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L234",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "free_q",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 234,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 238,
      "expression": "free_q.put",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000648",
      "kind": "instance_candidate",
      "line": 238,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "put",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "                free_q.put(torch.empty(max_bytes, dtype=torch.uint8, pin_memory=True))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L238",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "free_q",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 234,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 247,
      "expression": "free_q.put",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000649",
      "kind": "instance_candidate",
      "line": 247,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "put",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "                free_q.put(buf)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L247",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta.diff_and_compress"
    },
    {
      "category": "candidates",
      "col": 53,
      "details": {
        "receiver": "fut",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 63,
      "end_line": 266,
      "expression": "fut.result",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000650",
      "kind": "instance_candidate",
      "line": 266,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "            name, new, compressed, digest, changed = fut.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L266",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta.collect"
    },
    {
      "category": "executors",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 273,
      "expression": "ThreadPoolExecutor",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000651",
      "kind": "api_call",
      "line": 273,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "        pool = ThreadPoolExecutor(max_workers=NUM_WORKERS)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L273",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "free_q",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 234,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 280,
      "expression": "free_q.get",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000652",
      "kind": "instance_candidate",
      "line": 280,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "                    buf = free_q.get()  # blocks when all buffers are in flight -> backpressures the gather",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L280",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=NUM_WORKERS)",
          "line": 273,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 287,
      "expression": "pool.submit",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000653",
      "kind": "instance_candidate",
      "line": 287,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "                inflight.append(pool.submit(diff_and_compress, name, payload, nbytes, pinned))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L287",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=NUM_WORKERS)",
          "line": 273,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 293,
      "expression": "pool.shutdown",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000654",
      "kind": "instance_candidate",
      "line": 293,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "shutdown",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "            pool.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L293",
      "symbol": "UpdateWeightFromDiskDelta._encode_delta"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 320,
      "expression": "f.write",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
      "id": "occ-000655",
      "kind": "instance_candidate",
      "line": 320,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_disk_delta",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py.txt",
      "source_line": "        f.write(data)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py#L320",
      "symbol": "_atomic_write"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 4
      },
      "end_col": 11,
      "end_line": 4,
      "expression": "import time",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000656",
      "kind": "import",
      "line": 4,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "handle",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 237,
      "expression": "handle.wait",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000657",
      "kind": "instance_candidate",
      "line": 237,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "            handle.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L237",
      "symbol": "UpdateWeightFromDistributed._ep_gather_and_convert"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "named_tensors",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 239,
      "expression": "named_tensors.clear",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000658",
      "kind": "instance_candidate",
      "line": 239,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "        named_tensors.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L239",
      "symbol": "UpdateWeightFromDistributed._ep_gather_and_convert"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 260,
      "expression": "time.sleep",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000659",
      "kind": "api_call",
      "line": 260,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "            time.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L260",
      "symbol": "UpdateWeightFromDistributed._update_bucket_weights_from_distributed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "converted_named_tensors",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 272,
      "expression": "converted_named_tensors.clear",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000660",
      "kind": "instance_candidate",
      "line": 272,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "        converted_named_tensors.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L272",
      "symbol": "UpdateWeightFromDistributed._update_bucket_weights_from_distributed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "handle",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 362,
      "expression": "handle.wait",
      "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
      "id": "occ-000661",
      "kind": "instance_candidate",
      "line": 362,
      "module": "slime.backends.megatron_utils.update_weight.update_weight_from_distributed",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py.txt",
      "source_line": "        handle.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py#L362",
      "symbol": "update_weights_from_distributed"
    },
    {
      "category": "multiprocessing",
      "col": 7,
      "details": {
        "local_binding": "multiprocessing",
        "selective_module_import": false,
        "statement_line": 4
      },
      "end_col": 22,
      "end_line": 4,
      "expression": "import multiprocessing",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000662",
      "kind": "import",
      "line": 4,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "multiprocessing",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "import multiprocessing",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 6
      },
      "end_col": 11,
      "end_line": 6,
      "expression": "import time",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000663",
      "kind": "import",
      "line": 6,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 53,
      "expression": "multiprocessing.Process",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000664",
      "kind": "api_call",
      "line": 53,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "multiprocessing.Process",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "    process = multiprocessing.Process(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L53",
      "symbol": "_start_router"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "multiprocessing.Process(\n        target=run_router,\n        args=(router_args,),\n    )",
          "line": 53,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 58,
      "expression": "process.start",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000665",
      "kind": "instance_candidate",
      "line": 58,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "    process.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L58",
      "symbol": "_start_router"
    },
    {
      "category": "time-sleep",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 14,
      "end_line": 59,
      "expression": "time.sleep",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000666",
      "kind": "api_call",
      "line": 59,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "    time.sleep(3)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L59",
      "symbol": "_start_router"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "multiprocessing.Process(\n        target=run_router,\n        args=(router_args,),\n    )",
          "line": 53,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 60,
      "expression": "process.is_alive",
      "file": "slime/backends/sglang_utils/deployment.py",
      "id": "occ-000667",
      "kind": "instance_candidate",
      "line": 60,
      "module": "slime.backends.sglang_utils.deployment",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/deployment.py.txt",
      "source_line": "    assert process.is_alive()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/deployment.py#L60",
      "symbol": "_start_router"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000668",
      "kind": "import",
      "line": 1,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 21,
      "expression": "client.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000669",
      "kind": "instance_candidate",
      "line": 21,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        response = client.get(f\"{router_url}/workers\", timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L21",
      "symbol": "unregister_worker"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 67,
      "end_line": 58,
      "expression": "async def get_live_router_workers(router_url: str, *, timeout: float) -> list[dict]:",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000670",
      "kind": "async_def",
      "line": 31,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get_live_router_workers",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "async def get_live_router_workers(router_url: str, *, timeout: float) -> list[dict]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L31-L58",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 67,
      "end_line": 58,
      "expression": "    async with httpx.AsyncClient(timeout=timeout, trust_env=False) as client:",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000671",
      "kind": "async_with",
      "line": 38,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    async with httpx.AsyncClient(timeout=timeout, trust_env=False) as client:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L38-L58",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 60,
      "end_line": 39,
      "expression": "await client.get(f\"{router_url}/workers\")",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000672",
      "kind": "await",
      "line": 39,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        response = await client.get(f\"{router_url}/workers\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L39",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 39,
      "expression": "client.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000673",
      "kind": "instance_candidate",
      "line": 39,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        response = await client.get(f\"{router_url}/workers\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L39",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 54,
      "expression": "        async def check(worker):",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000674",
      "kind": "async_def",
      "line": 42,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "check",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        async def check(worker):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L42-L54",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 79,
      "end_line": 44,
      "expression": "await client.get(f\"{worker['url']}/health_generate\")",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000675",
      "kind": "await",
      "line": 44,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                response = await client.get(f\"{worker['url']}/health_generate\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L44",
      "symbol": "get_live_router_workers.check"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 44,
      "expression": "client.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000676",
      "kind": "instance_candidate",
      "line": 44,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                response = await client.get(f\"{worker['url']}/health_generate\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L44",
      "symbol": "get_live_router_workers.check"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 86,
      "end_line": 50,
      "expression": "await client.delete(f\"{router_url}/workers/{worker['id']}\")",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000677",
      "kind": "await",
      "line": 50,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                response = await client.delete(f\"{router_url}/workers/{worker['id']}\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L50",
      "symbol": "get_live_router_workers.check"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 97,
      "end_line": 57,
      "expression": "await asyncio.gather(*(check(worker) for worker in response.json()[\"workers\"]))",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000678",
      "kind": "await",
      "line": 57,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        workers = await asyncio.gather(*(check(worker) for worker in response.json()[\"workers\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L57",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "asyncio",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 57,
      "expression": "asyncio.gather",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000679",
      "kind": "api_call",
      "line": 57,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        workers = await asyncio.gather(*(check(worker) for worker in response.json()[\"workers\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L57",
      "symbol": "get_live_router_workers"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 72,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000680",
      "kind": "instance_candidate",
      "line": 72,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        value = load.get(key)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L72",
      "symbol": "num_requests_from_load"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 77,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000681",
      "kind": "instance_candidate",
      "line": 77,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        running = load.get(\"num_running_reqs\", load.get(\"total_running_reqs\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L77",
      "symbol": "num_requests_from_load"
    },
    {
      "category": "candidates",
      "col": 47,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 55,
      "end_line": 77,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000682",
      "kind": "instance_candidate",
      "line": 77,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        running = load.get(\"num_running_reqs\", load.get(\"total_running_reqs\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L77",
      "symbol": "num_requests_from_load"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 78,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000683",
      "kind": "instance_candidate",
      "line": 78,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        waiting = load.get(\"num_waiting_reqs\", load.get(\"total_waiting_reqs\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L78",
      "symbol": "num_requests_from_load"
    },
    {
      "category": "candidates",
      "col": 47,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 55,
      "end_line": 78,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000684",
      "kind": "instance_candidate",
      "line": 78,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        waiting = load.get(\"num_waiting_reqs\", load.get(\"total_waiting_reqs\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L78",
      "symbol": "num_requests_from_load"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 110,
      "expression": "load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000685",
      "kind": "instance_candidate",
      "line": 110,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    loads = load.get(\"loads\", [load])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L110",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "rank_load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 118,
      "expression": "rank_load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000686",
      "kind": "instance_candidate",
      "line": 118,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        dp_rank = rank_load.get(\"dp_rank\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L118",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "rank_load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 120,
      "expression": "rank_load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000687",
      "kind": "instance_candidate",
      "line": 120,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        inflight = rank_load.get(\"inflight\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L120",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 125,
      "expression": "queue.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000688",
      "kind": "instance_candidate",
      "line": 125,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                reqs = queue.get(\"reqs\") if isinstance(queue.get(\"reqs\"), list) else []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L125",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 55,
      "details": {
        "receiver": "queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 125,
      "expression": "queue.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000689",
      "kind": "instance_candidate",
      "line": 125,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                reqs = queue.get(\"reqs\") if isinstance(queue.get(\"reqs\"), list) else []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L125",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 126,
      "expression": "queue.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000690",
      "kind": "instance_candidate",
      "line": 126,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                count = queue.get(\"num_reqs\", len(reqs))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L126",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 63,
      "end_line": 130,
      "expression": "queue.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000691",
      "kind": "instance_candidate",
      "line": 130,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "                        {\"dp_rank\": dp_rank, \"queue\": queue.get(\"name\", \"unknown\"), \"num_reqs\": count, \"reqs\": reqs}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L130",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "rank_load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 137,
      "expression": "rank_load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000692",
      "kind": "instance_candidate",
      "line": 137,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            section = rank_load.get(section_name)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L137",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "rank_load",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 144,
      "expression": "rank_load.get",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000693",
      "kind": "instance_candidate",
      "line": 144,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            value = rank_load.get(key)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L144",
      "symbol": "non_idle_request_details"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 156,
      "expression": "async def _abort_server_once(url: str, request_timeout: float) -> None:",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000694",
      "kind": "async_def",
      "line": 152,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "_abort_server_once",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "async def _abort_server_once(url: str, request_timeout: float) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L152-L156",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 5,
      "end_line": 156,
      "expression": "await asyncio.wait_for(\n        post(f\"{url}/abort_request\", {\"abort_all\": True}, max_retries=1, timeout=request_timeout),\n        timeout=request_timeout,\n    )",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000695",
      "kind": "await",
      "line": 153,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    await asyncio.wait_for(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L153-L156",
      "symbol": "_abort_server_once"
    },
    {
      "category": "asyncio",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 153,
      "expression": "asyncio.wait_for",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000696",
      "kind": "api_call",
      "line": 153,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    await asyncio.wait_for(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L153",
      "symbol": "_abort_server_once"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 163,
      "expression": "async def _get_server_load(url: str, request_timeout: float) -> Any:",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000697",
      "kind": "async_def",
      "line": 159,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "_get_server_load",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "async def _get_server_load(url: str, request_timeout: float) -> Any:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L159-L163",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 5,
      "end_line": 163,
      "expression": "await asyncio.wait_for(\n        get(f\"{url}/v1/loads?include=core,disagg,queues\", timeout=request_timeout),\n        timeout=request_timeout,\n    )",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000698",
      "kind": "await",
      "line": 160,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    return await asyncio.wait_for(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L160-L163",
      "symbol": "_get_server_load"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 160,
      "expression": "asyncio.wait_for",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000699",
      "kind": "api_call",
      "line": 160,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    return await asyncio.wait_for(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L160",
      "symbol": "_get_server_load"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 234,
      "expression": "async def abort_server_until_idle(",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000700",
      "kind": "async_def",
      "line": 166,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "abort_server_until_idle",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "async def abort_server_until_idle(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L166-L234",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 176,
      "expression": "asyncio.get_running_loop",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000701",
      "kind": "api_call",
      "line": 176,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    loop = asyncio.get_running_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L176",
      "symbol": "abort_server_until_idle"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 62,
      "end_line": 199,
      "expression": "await _abort_server_once(url, per_request_timeout)",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000702",
      "kind": "await",
      "line": 199,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            await _abort_server_once(url, per_request_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L199",
      "symbol": "abort_server_until_idle"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 79,
      "end_line": 210,
      "expression": "await _get_server_load(url, min(request_timeout, remaining))",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000703",
      "kind": "await",
      "line": 210,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            load = await _get_server_load(url, min(request_timeout, remaining))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L210",
      "symbol": "abort_server_until_idle"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 63,
      "end_line": 233,
      "expression": "await asyncio.sleep(min(retry_interval, remaining))",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000704",
      "kind": "await",
      "line": 233,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            await asyncio.sleep(min(retry_interval, remaining))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L233",
      "symbol": "abort_server_until_idle"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 233,
      "expression": "asyncio.sleep",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000705",
      "kind": "api_call",
      "line": 233,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "            await asyncio.sleep(min(retry_interval, remaining))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L233",
      "symbol": "abort_server_until_idle"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 254,
      "expression": "async def abort_servers_until_idle(",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000706",
      "kind": "async_def",
      "line": 237,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "abort_servers_until_idle",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "async def abort_servers_until_idle(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L237-L254",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 5,
      "end_line": 248,
      "expression": "await asyncio.gather(\n        *(abort_server_until_idle(url, timeout=timeout, request_timeout=request_timeout) for url in urls),\n        return_exceptions=True,\n    )",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000707",
      "kind": "await",
      "line": 245,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    results = await asyncio.gather(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L245-L248",
      "symbol": "abort_servers_until_idle"
    },
    {
      "category": "asyncio",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 245,
      "expression": "asyncio.gather",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000708",
      "kind": "api_call",
      "line": 245,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "    results = await asyncio.gather(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L245",
      "symbol": "abort_servers_until_idle"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "\"; \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 251,
      "expression": "\"; \".join",
      "file": "slime/backends/sglang_utils/server_control.py",
      "id": "occ-000709",
      "kind": "instance_candidate",
      "line": 251,
      "module": "slime.backends.sglang_utils.server_control",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/server_control.py.txt",
      "source_line": "        detail = \"; \".join(f\"{url}: {error}\" for url, error in failures)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/server_control.py#L251",
      "symbol": "abort_servers_until_idle"
    },
    {
      "category": "multiprocessing",
      "col": 7,
      "details": {
        "local_binding": "multiprocessing",
        "selective_module_import": false,
        "statement_line": 4
      },
      "end_col": 22,
      "end_line": 4,
      "expression": "import multiprocessing",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000710",
      "kind": "import",
      "line": 4,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "multiprocessing",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "import multiprocessing",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 5
      },
      "end_col": 9,
      "end_line": 5,
      "expression": "import os",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000711",
      "kind": "import",
      "line": 5,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 6
      },
      "end_col": 11,
      "end_line": 6,
      "expression": "import time",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000712",
      "kind": "import",
      "line": 6,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 54,
      "details": {
        "access": "load"
      },
      "end_col": 77,
      "end_line": 32,
      "expression": "multiprocessing.Process",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000713",
      "kind": "api_reference",
      "line": 32,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "multiprocessing.Process",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "def launch_server_process(server_args: ServerArgs) -> multiprocessing.Process:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L32",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 49,
      "expression": "multiprocessing.set_start_method",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000714",
      "kind": "api_call",
      "line": 49,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "multiprocessing.set_start_method",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    multiprocessing.set_start_method(\"spawn\", force=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L49",
      "symbol": "launch_server_process"
    },
    {
      "category": "multiprocessing",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 51,
      "expression": "multiprocessing.Process",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000715",
      "kind": "api_call",
      "line": 51,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "multiprocessing.Process",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    p = multiprocessing.Process(target=_launch_server, args=(server_args, os.getpid()))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L51",
      "symbol": "launch_server_process"
    },
    {
      "category": "os-process",
      "col": 74,
      "details": {
        "access": "load"
      },
      "end_col": 83,
      "end_line": 51,
      "expression": "os.getpid",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000716",
      "kind": "api_call",
      "line": 51,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    p = multiprocessing.Process(target=_launch_server, args=(server_args, os.getpid()))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L51",
      "symbol": "launch_server_process"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "p",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "multiprocessing.Process(target=_launch_server, args=(server_args, os.getpid()))",
          "line": 51,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 11,
      "end_line": 52,
      "expression": "p.start",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000717",
      "kind": "instance_candidate",
      "line": 52,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    p.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L52",
      "symbol": "launch_server_process"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "p",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "multiprocessing.Process(target=_launch_server, args=(server_args, os.getpid()))",
          "line": 51,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 60,
      "expression": "p.is_alive",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000718",
      "kind": "instance_candidate",
      "line": 60,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "        is_process_alive=lambda: p.is_alive(),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L60",
      "symbol": "launch_server_process.<lambda>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "access": "load"
      },
      "end_col": 17,
      "end_line": 73,
      "expression": "os.getppid",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000719",
      "kind": "api_call",
      "line": 73,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "os.getppid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    if os.getppid() == parent_pid:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L73",
      "symbol": "_launch_server"
    },
    {
      "category": "candidates",
      "col": 27,
      "details": {
        "receiver": "session",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 86,
      "expression": "session.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000720",
      "kind": "instance_candidate",
      "line": 86,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                response = session.get(f\"{base_url}/health_generate\", headers=headers, timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L86",
      "symbol": "_wait_server_healthy"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 95,
      "expression": "time.sleep",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000721",
      "kind": "api_call",
      "line": 95,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "            time.sleep(2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L95",
      "symbol": "_wait_server_healthy"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "expect_server_args",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 173,
      "expression": "expect_server_args.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000722",
      "kind": "instance_candidate",
      "line": 173,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                expect_value = expect_server_args.get(name)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L173",
      "symbol": "SGLangEngine._init_external._sanity_check_server_args"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "actual_server_args",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 174,
      "expression": "actual_server_args.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000723",
      "kind": "instance_candidate",
      "line": 174,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                actual_value = actual_server_args.get(name)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L174",
      "symbol": "SGLangEngine._init_external._sanity_check_server_args"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "server_args_dict",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 199,
      "expression": "server_args_dict.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000724",
      "kind": "instance_candidate",
      "line": 199,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                bootstrap_port = server_args_dict.get(\"disaggregation_bootstrap_port\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L199",
      "symbol": "SGLangEngine._register_to_router"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 292,
      "expression": "time.sleep",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000725",
      "kind": "api_call",
      "line": 292,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                time.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L292",
      "symbol": "SGLangEngine.flush_cache"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 297,
      "expression": "time.sleep",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000726",
      "kind": "api_call",
      "line": 297,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "                time.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L297",
      "symbol": "SGLangEngine.flush_cache"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 529,
      "expression": "self.shutdown",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000727",
      "kind": "instance_candidate",
      "line": 529,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "        self.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L529",
      "symbol": "SGLangEngine.simulate_crash"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "normalized_overrides",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 547,
      "expression": "normalized_overrides.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000728",
      "kind": "instance_candidate",
      "line": 547,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    pp_size = int(normalized_overrides.get(\"pp_size\", args.sglang_pp_size))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L547",
      "symbol": "_compute_server_args"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "normalized_overrides",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 548,
      "expression": "normalized_overrides.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000729",
      "kind": "instance_candidate",
      "line": 548,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "    tp_size = int(normalized_overrides.get(\"tp_size\", _gpus_per_engine // pp_size))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L548",
      "symbol": "_compute_server_args"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "kwargs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 633,
      "expression": "kwargs.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000730",
      "kind": "instance_candidate",
      "line": 633,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "        and kwargs.get(\"enable_memory_saver\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L633",
      "symbol": "_compute_server_args"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "kwargs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 634,
      "expression": "kwargs.get",
      "file": "slime/backends/sglang_utils/sglang_engine.py",
      "id": "occ-000731",
      "kind": "instance_candidate",
      "line": 634,
      "module": "slime.backends.sglang_utils.sglang_engine",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/backends/sglang_utils/sglang_engine.py.txt",
      "source_line": "        and kwargs.get(\"cuda_graph_backend_prefill\") is None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/backends/sglang_utils/sglang_engine.py#L634",
      "symbol": "_compute_server_args"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "self.index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 26,
      "expression": "self.index.get",
      "file": "slime/data/archive.py",
      "id": "occ-000732",
      "kind": "instance_candidate",
      "line": 26,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        if self.index.get(\"format\") != \"slime.straw-debug\" or self.index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L26",
      "symbol": "RolloutArchive.__init__"
    },
    {
      "category": "candidates",
      "col": 62,
      "details": {
        "receiver": "self.index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 76,
      "end_line": 26,
      "expression": "self.index.get",
      "file": "slime/data/archive.py",
      "id": "occ-000733",
      "kind": "instance_candidate",
      "line": 26,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        if self.index.get(\"format\") != \"slime.straw-debug\" or self.index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L26",
      "symbol": "RolloutArchive.__init__"
    },
    {
      "category": "threading",
      "col": 19,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 56
      },
      "end_col": 28,
      "end_line": 56,
      "expression": "import threading",
      "file": "slime/data/archive.py",
      "id": "occ-000734",
      "kind": "import",
      "line": 56,
      "module": "slime.data.archive",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "            import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L56",
      "symbol": "RolloutArchive.save"
    },
    {
      "category": "threading",
      "col": 57,
      "details": {
        "access": "load"
      },
      "end_col": 72,
      "end_line": 66,
      "expression": "threading.RLock",
      "file": "slime/data/archive.py",
      "id": "occ-000735",
      "kind": "api_call",
      "line": 66,
      "module": "slime.data.archive",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "            codec, lock = SampleCodec(store, args=args), threading.RLock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L66",
      "symbol": "RolloutArchive.save"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 133,
      "expression": "store.close",
      "file": "slime/data/archive.py",
      "id": "occ-000736",
      "kind": "instance_candidate",
      "line": 133,
      "module": "slime.data.archive",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "                store.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L133",
      "symbol": "RolloutArchive.save"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 146,
      "expression": "index.get",
      "file": "slime/data/archive.py",
      "id": "occ-000737",
      "kind": "instance_candidate",
      "line": 146,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        if index.get(\"format\") != \"slime.straw-debug\" or index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L146",
      "symbol": "RolloutArchive.check_metadata"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 66,
      "end_line": 146,
      "expression": "index.get",
      "file": "slime/data/archive.py",
      "id": "occ-000738",
      "kind": "instance_candidate",
      "line": 146,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        if index.get(\"format\") != \"slime.straw-debug\" or index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L146",
      "symbol": "RolloutArchive.check_metadata"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 148,
      "expression": "index.get",
      "file": "slime/data/archive.py",
      "id": "occ-000739",
      "kind": "instance_candidate",
      "line": 148,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        metadata = index.get(\"sample_metadata\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L148",
      "symbol": "RolloutArchive.check_metadata"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 154,
      "expression": "metadata.get",
      "file": "slime/data/archive.py",
      "id": "occ-000740",
      "kind": "instance_candidate",
      "line": 154,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        if metadata.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L154",
      "symbol": "RolloutArchive.check_metadata"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "entry",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 184,
      "expression": "entry.get",
      "file": "slime/data/archive.py",
      "id": "occ-000741",
      "kind": "instance_candidate",
      "line": 184,
      "module": "slime.data.archive",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "            chunk = entry.get(\"chunk\", \"raw\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L184",
      "symbol": "RolloutArchive.load_samples"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 222,
      "expression": "self.store.release",
      "file": "slime/data/archive.py",
      "id": "occ-000742",
      "kind": "instance_candidate",
      "line": 222,
      "module": "slime.data.archive",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        self.store.release(self.index[\"storage_owner\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L222",
      "symbol": "RolloutArchive.release"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 225,
      "expression": "self.store.close",
      "file": "slime/data/archive.py",
      "id": "occ-000743",
      "kind": "instance_candidate",
      "line": 225,
      "module": "slime.data.archive",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        self.store.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L225",
      "symbol": "RolloutArchive.close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 231,
      "expression": "self.close",
      "file": "slime/data/archive.py",
      "id": "occ-000744",
      "kind": "instance_candidate",
      "line": 231,
      "module": "slime.data.archive",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/archive.py.txt",
      "source_line": "        self.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/archive.py#L231",
      "symbol": "RolloutArchive.__exit__"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 11
      },
      "end_col": 14,
      "end_line": 11,
      "expression": "import asyncio",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000745",
      "kind": "import",
      "line": 11,
      "module": "slime.data.queue_data_source",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L11",
      "symbol": "<module>"
    },
    {
      "category": "fcntl",
      "col": 7,
      "details": {
        "local_binding": "fcntl",
        "selective_module_import": true,
        "statement_line": 13
      },
      "end_col": 12,
      "end_line": 13,
      "expression": "import fcntl",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000746",
      "kind": "import",
      "line": 13,
      "module": "slime.data.queue_data_source",
      "name": "fcntl",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "import fcntl",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L13",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 16
      },
      "end_col": 16,
      "end_line": 16,
      "expression": "import threading",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000747",
      "kind": "import",
      "line": 16,
      "module": "slime.data.queue_data_source",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L16",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 17
      },
      "end_col": 11,
      "end_line": 17,
      "expression": "import time",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000748",
      "kind": "import",
      "line": 17,
      "module": "slime.data.queue_data_source",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L17",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 19
      },
      "end_col": 49,
      "end_line": 19,
      "expression": "from concurrent.futures import ThreadPoolExecutor",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000749",
      "kind": "import",
      "line": 19,
      "module": "slime.data.queue_data_source",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L19",
      "symbol": "<module>"
    },
    {
      "category": "fcntl",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 73,
      "expression": "fcntl.flock",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000750",
      "kind": "api_call",
      "line": 73,
      "module": "slime.data.queue_data_source",
      "name": "fcntl.flock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    fcntl.flock(self._checkpoint_lock.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L73",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "fcntl",
      "col": 64,
      "details": {
        "access": "load"
      },
      "end_col": 77,
      "end_line": 73,
      "expression": "fcntl.LOCK_EX",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000751",
      "kind": "api_reference",
      "line": 73,
      "module": "slime.data.queue_data_source",
      "name": "fcntl.LOCK_EX",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    fcntl.flock(self._checkpoint_lock.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L73",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "fcntl",
      "col": 80,
      "details": {
        "access": "load"
      },
      "end_col": 93,
      "end_line": 73,
      "expression": "fcntl.LOCK_NB",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000752",
      "kind": "api_reference",
      "line": 73,
      "module": "slime.data.queue_data_source",
      "name": "fcntl.LOCK_NB",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    fcntl.flock(self._checkpoint_lock.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L73",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "branch",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 84,
      "expression": "branch.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000753",
      "kind": "instance_candidate",
      "line": 84,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                if parent := branch.get(\"parent\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L84",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "threading",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 147,
      "expression": "threading.Lock",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000754",
      "kind": "api_call",
      "line": 147,
      "module": "slime.data.queue_data_source",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._producer_lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L147",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "threading",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 153,
      "expression": "threading.RLock",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000755",
      "kind": "api_call",
      "line": 153,
      "module": "slime.data.queue_data_source",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._training_lock = threading.RLock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L153",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "threading",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 154,
      "expression": "threading.Event",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000756",
      "kind": "api_call",
      "line": 154,
      "module": "slime.data.queue_data_source",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._gc_stop = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L154",
      "symbol": "RolloutQueueController.__init__"
    },
    {
      "category": "threading",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 46,
      "end_line": 184,
      "expression": "threading.Thread",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000757",
      "kind": "api_call",
      "line": 184,
      "module": "slime.data.queue_data_source",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._gc_thread = threading.Thread(target=self._gc_loop, name=\"straw-gc\", daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L184",
      "symbol": "RolloutQueueController._start_gc"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self._gc_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._gc_loop, name=\"straw-gc\", daemon=True)",
          "line": 184,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 185,
      "expression": "self._gc_thread.start",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000758",
      "kind": "instance_candidate",
      "line": 185,
      "module": "slime.data.queue_data_source",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._gc_thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L185",
      "symbol": "RolloutQueueController._start_gc"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self._gc_stop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 154,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 200,
      "expression": "self._gc_stop.wait",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000759",
      "kind": "instance_candidate",
      "line": 200,
      "module": "slime.data.queue_data_source",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        while not self._gc_stop.wait(60):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L200",
      "symbol": "RolloutQueueController._gc_loop"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._gc_stop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 154,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 205,
      "expression": "self._gc_stop.set",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000760",
      "kind": "instance_candidate",
      "line": 205,
      "module": "slime.data.queue_data_source",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                self._gc_stop.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L205",
      "symbol": "RolloutQueueController._gc_loop"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "logger",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 206,
      "expression": "logger.exception",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000761",
      "kind": "instance_candidate",
      "line": 206,
      "module": "slime.data.queue_data_source",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                logger.exception(\"straw online GC failed; retained storage must be inspected\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L206",
      "symbol": "RolloutQueueController._gc_loop"
    },
    {
      "category": "candidates",
      "col": 46,
      "details": {
        "receiver": "stream",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 263,
      "expression": "stream.read",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000762",
      "kind": "instance_candidate",
      "line": 263,
      "module": "slime.data.queue_data_source",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    for chunk in iter(lambda: stream.read(4 * 1024 * 1024), b\"\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L263",
      "symbol": "RolloutQueueController.configuration.<lambda>"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "self.queue.metrics()[\"tasks\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 56,
      "end_line": 292,
      "expression": "self.queue.metrics()[\"tasks\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000763",
      "kind": "instance_candidate",
      "line": 292,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            inflight = self.queue.metrics()[\"tasks\"].get(\"leased\", 0) > 0",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L292",
      "symbol": "RolloutQueueController.pending_snapshot"
    },
    {
      "category": "candidates",
      "col": 51,
      "details": {
        "receiver": "pending",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 62,
      "end_line": 324,
      "expression": "pending.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000764",
      "kind": "instance_candidate",
      "line": 324,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if \"producer_cursor\" not in pending or pending.get(\"inflight\", True):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L324",
      "symbol": "RolloutQueueController.fork_source"
    },
    {
      "category": "candidates",
      "col": 34,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 356,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000765",
      "kind": "instance_candidate",
      "line": 356,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                        receipt = self.result(Lease(**status[\"lease\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L356",
      "symbol": "RolloutQueueController.fork_source"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 358,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000766",
      "kind": "instance_candidate",
      "line": 358,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                        page = self.queue.acquire(\"fork-import\", 1, task_ids=[task_id])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L358",
      "symbol": "RolloutQueueController.fork_source"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "spec.metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 403,
      "expression": "spec.metadata.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000767",
      "kind": "instance_candidate",
      "line": 403,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return sum(spec.metadata.get(\"returned\", False) for spec in self.queue.pending_tasks(task_prefix=\"prompt:\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L403",
      "symbol": "RolloutQueueController.pending_count.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "saved",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 438,
      "expression": "saved.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000768",
      "kind": "instance_candidate",
      "line": 438,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                key: saved.get(key, default)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L438",
      "symbol": "RolloutQueueController.restore_pending.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 447,
      "expression": "self.release",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000769",
      "kind": "instance_candidate",
      "line": 447,
      "module": "slime.data.queue_data_source",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    self.release([Lease(**status[\"lease\"])])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L447",
      "symbol": "RolloutQueueController.restore_pending"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 448,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000770",
      "kind": "instance_candidate",
      "line": 448,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                page = self.queue.acquire(\"checkpoint-restore\", 1, task_ids=[saved[\"task_id\"]])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L448",
      "symbol": "RolloutQueueController.restore_pending"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 459,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000771",
      "kind": "instance_candidate",
      "line": 459,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                receipt = self.result(Lease(**status[\"lease\"])) if status and status[\"state\"] == \"completed\" else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L459",
      "symbol": "RolloutQueueController.restore_pending"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 463,
      "expression": "metadata.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000772",
      "kind": "instance_candidate",
      "line": 463,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                        set(metadata.get(\"source_positions\", [])) | {receipt.position}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L463",
      "symbol": "RolloutQueueController.restore_pending"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.codec.load(RecordSetRef.from_dict(state[\"state_ref\"]))",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 78,
      "end_line": 486,
      "expression": "self.codec.load(RecordSetRef.from_dict(state[\"state_ref\"])).get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000773",
      "kind": "instance_candidate",
      "line": 486,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return self.codec.load(RecordSetRef.from_dict(state[\"state_ref\"])).get(\"metadata\", {}) if state else {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L486",
      "symbol": "RolloutQueueController.reader_metadata"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 501,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000774",
      "kind": "instance_candidate",
      "line": 501,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        page = self.queue.acquire(reader_id, count, task_prefix=\"prompt:\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L501",
      "symbol": "RolloutQueueController.take"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 506,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000775",
      "kind": "instance_candidate",
      "line": 506,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            page = self.queue.acquire(reader_id, count, task_prefix=\"prompt:\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L506",
      "symbol": "RolloutQueueController.take"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 558,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000776",
      "kind": "instance_candidate",
      "line": 558,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return self.queue.acquire(reader_id, requested, task_prefix=\"prompt:\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L558",
      "symbol": "RolloutQueueController.take"
    },
    {
      "category": "candidates",
      "col": 56,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 67,
      "end_line": 564,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000777",
      "kind": "instance_candidate",
      "line": 564,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        if lease.worker_id in self._retired_readers and self.result(lease) is None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L564",
      "symbol": "RolloutQueueController.complete"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.queue.task_status(lease.task_id)[\"spec\"][\"metadata\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 81,
      "end_line": 580,
      "expression": "self.queue.task_status(lease.task_id)[\"spec\"][\"metadata\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000778",
      "kind": "instance_candidate",
      "line": 580,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        positions = self.queue.task_status(lease.task_id)[\"spec\"][\"metadata\"].get(\"source_positions\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L580",
      "symbol": "RolloutQueueController.reject"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 596,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000779",
      "kind": "instance_candidate",
      "line": 596,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return [self.result(lease) if lease else None for lease in leases]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L596",
      "symbol": "RolloutQueueController.results.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "task[\"spec\"][\"metadata\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 60,
      "end_line": 621,
      "expression": "task[\"spec\"][\"metadata\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000780",
      "kind": "instance_candidate",
      "line": 621,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                for position in task[\"spec\"][\"metadata\"].get(\"source_positions\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L621",
      "symbol": "RolloutQueueController.recover_reader_results.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "state",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 657,
      "expression": "state.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000781",
      "kind": "instance_candidate",
      "line": 657,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if state.get(\"conversion_started\") or state[\"processed_cursor\"] or state[\"processed_positions\"]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L657",
      "symbol": "RolloutQueueController.recover_pending_rollout"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "task[\"spec\"][\"metadata\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 60,
      "end_line": 665,
      "expression": "task[\"spec\"][\"metadata\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000782",
      "kind": "instance_candidate",
      "line": 665,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                for position in task[\"spec\"][\"metadata\"].get(\"source_positions\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L665",
      "symbol": "RolloutQueueController.recover_pending_rollout.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 685,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000783",
      "kind": "instance_candidate",
      "line": 685,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        page = self.queue.acquire(\"manager\", 1, task_ids=[task_id], control=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L685",
      "symbol": "RolloutQueueController.begin_collection"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 702,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000784",
      "kind": "instance_candidate",
      "line": 702,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        receipt = self.result(Lease(**task[\"lease\"])) if task[\"state\"] == \"completed\" else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L702",
      "symbol": "RolloutQueueController.batch"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 706,
      "expression": "task.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000785",
      "kind": "instance_candidate",
      "line": 706,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            \"lease\": task.get(\"lease\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L706",
      "symbol": "RolloutQueueController.batch"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 723,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000786",
      "kind": "instance_candidate",
      "line": 723,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                self.queue.acquire(\"manager\", 1, task_ids=[batch_id], control=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L723",
      "symbol": "RolloutQueueController.plan_batch"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "state",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 725,
      "expression": "state.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000787",
      "kind": "instance_candidate",
      "line": 725,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if not state.get(\"conversion_started\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L725",
      "symbol": "RolloutQueueController.plan_batch"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "task[\"spec\"][\"metadata\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 756,
      "expression": "task[\"spec\"][\"metadata\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000788",
      "kind": "instance_candidate",
      "line": 756,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            positions.update(task[\"spec\"][\"metadata\"].get(\"source_positions\", []))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L756",
      "symbol": "RolloutQueueController._advance"
    },
    {
      "category": "candidates",
      "col": 27,
      "details": {
        "receiver": "self.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 821,
      "expression": "self.queue.acquire",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000789",
      "kind": "instance_candidate",
      "line": 821,
      "module": "slime.data.queue_data_source",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    page = self.queue.acquire(\"manager\", 1, task_ids=[batch_id], control=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L821",
      "symbol": "RolloutQueueController.ready_batch"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 838,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000790",
      "kind": "instance_candidate",
      "line": 838,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            receipt = self.result(Lease(**task[\"lease\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L838",
      "symbol": "RolloutQueueController.finish_batch"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "decision",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 851,
      "expression": "decision.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000791",
      "kind": "instance_candidate",
      "line": 851,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if not decision.get(\"reason\") or any(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L851",
      "symbol": "RolloutQueueController.record_dispositions"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 903,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000792",
      "kind": "instance_candidate",
      "line": 903,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                            receipt = self.result(Lease(**lease))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L903",
      "symbol": "RolloutQueueController.restore_training_state.visit"
    },
    {
      "category": "candidates",
      "col": 46,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 907,
      "expression": "self.result",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000793",
      "kind": "instance_candidate",
      "line": 907,
      "module": "slime.data.queue_data_source",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                                    receipt = self.result(Lease(**task[\"lease\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L907",
      "symbol": "RolloutQueueController.restore_training_state.visit"
    },
    {
      "category": "candidates",
      "col": 40,
      "details": {
        "receiver": "value",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 911,
      "expression": "value.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000794",
      "kind": "instance_candidate",
      "line": 911,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                        retained.update(value.get(\"source_positions\", []))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L911",
      "symbol": "RolloutQueueController.restore_training_state.visit"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self._gc_stop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 154,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 970,
      "expression": "self._gc_stop.set",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000795",
      "kind": "instance_candidate",
      "line": 970,
      "module": "slime.data.queue_data_source",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            self._gc_stop.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L970",
      "symbol": "RolloutQueueController.close"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._gc_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._gc_loop, name=\"straw-gc\", daemon=True)",
          "line": 184,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 972,
      "expression": "self._gc_thread.join",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000796",
      "kind": "instance_candidate",
      "line": 972,
      "module": "slime.data.queue_data_source",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                self._gc_thread.join()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L972",
      "symbol": "RolloutQueueController.close"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 974,
      "expression": "self._queue.close",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000797",
      "kind": "instance_candidate",
      "line": 974,
      "module": "slime.data.queue_data_source",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                self._queue.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L974",
      "symbol": "RolloutQueueController.close"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._checkpoint_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 983,
      "expression": "self._checkpoint_lock.close",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000798",
      "kind": "instance_candidate",
      "line": 983,
      "module": "slime.data.queue_data_source",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                self._checkpoint_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L983",
      "symbol": "RolloutQueueController.close"
    },
    {
      "category": "threading",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 1034,
      "expression": "threading.RLock",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000799",
      "kind": "api_call",
      "line": 1034,
      "module": "slime.data.queue_data_source",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._lock = threading.RLock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1034",
      "symbol": "QueueReader.__init__"
    },
    {
      "category": "executors",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 1035,
      "expression": "ThreadPoolExecutor",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000800",
      "kind": "api_call",
      "line": 1035,
      "module": "slime.data.queue_data_source",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._reader = ThreadPoolExecutor(max_workers=1, thread_name_prefix=\"queue-input\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1035",
      "symbol": "QueueReader.__init__"
    },
    {
      "category": "threading",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 1036,
      "expression": "threading.Event",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000801",
      "kind": "api_call",
      "line": 1036,
      "module": "slime.data.queue_data_source",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._stop = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1036",
      "symbol": "QueueReader.__init__"
    },
    {
      "category": "threading",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 1044,
      "expression": "threading.Thread",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000802",
      "kind": "api_call",
      "line": 1044,
      "module": "slime.data.queue_data_source",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._heartbeats = threading.Thread(target=self._heartbeat_loop, name=\"queue-leases\", daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1044",
      "symbol": "QueueReader.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._heartbeats",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._heartbeat_loop, name=\"queue-leases\", daemon=True)",
          "line": 1044,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 1045,
      "expression": "self._heartbeats.start",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000803",
      "kind": "instance_candidate",
      "line": 1045,
      "module": "slime.data.queue_data_source",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._heartbeats.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1045",
      "symbol": "QueueReader.__init__"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self._stop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 1036,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 1049,
      "expression": "self._stop.wait",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000804",
      "kind": "instance_candidate",
      "line": 1049,
      "module": "slime.data.queue_data_source",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        while not self._stop.wait(interval):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1049",
      "symbol": "QueueReader._heartbeat_loop"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "self._leases",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 1058,
      "expression": "self._leases.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000805",
      "kind": "instance_candidate",
      "line": 1058,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                            if self._leases.get(lease.task_id) != lease:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1058",
      "symbol": "QueueReader._heartbeat_loop"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 1093,
      "expression": "time.sleep",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000806",
      "kind": "api_call",
      "line": 1093,
      "module": "slime.data.queue_data_source",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                time.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1093",
      "symbol": "QueueReader.get_samples"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "assignment.task.metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 85,
      "end_line": 1107,
      "expression": "assignment.task.metadata.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000807",
      "kind": "instance_candidate",
      "line": 1107,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                        sample._queue_source_positions = assignment.task.metadata.get(\"source_positions\", [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1107",
      "symbol": "QueueReader.get_samples"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 108,
      "end_line": 1115,
      "expression": "    async def get_samples_async(self, num_samples):",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000808",
      "kind": "async_def",
      "line": 1113,
      "module": "slime.data.queue_data_source",
      "name": "get_samples_async",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "    async def get_samples_async(self, num_samples):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1113-L1115",
      "symbol": "QueueReader"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 108,
      "end_line": 1115,
      "expression": "await asyncio.get_running_loop().run_in_executor(self._reader, self.get_samples, num_samples)",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000809",
      "kind": "await",
      "line": 1115,
      "module": "slime.data.queue_data_source",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return await asyncio.get_running_loop().run_in_executor(self._reader, self.get_samples, num_samples)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1115",
      "symbol": "QueueReader.get_samples_async"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 45,
      "end_line": 1115,
      "expression": "asyncio.get_running_loop",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000810",
      "kind": "api_call",
      "line": 1115,
      "module": "slime.data.queue_data_source",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return await asyncio.get_running_loop().run_in_executor(self._reader, self.get_samples, num_samples)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1115",
      "symbol": "QueueReader.get_samples_async"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "asyncio.get_running_loop()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 1115,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 63,
      "end_line": 1115,
      "expression": "asyncio.get_running_loop().run_in_executor",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000811",
      "kind": "instance_candidate",
      "line": 1115,
      "module": "slime.data.queue_data_source",
      "name": "run_in_executor",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        return await asyncio.get_running_loop().run_in_executor(self._reader, self.get_samples, num_samples)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1115",
      "symbol": "QueueReader.get_samples_async"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "self._leases",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 1146,
      "expression": "self._leases.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000812",
      "kind": "instance_candidate",
      "line": 1146,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                    if self._leases.get(lease.task_id) == lease:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1146",
      "symbol": "QueueReader.add_samples"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "self._leases",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 1210,
      "expression": "self._leases.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000813",
      "kind": "instance_candidate",
      "line": 1210,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "                if lease and self._leases.get(lease.task_id) == lease:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1210",
      "symbol": "QueueReader.add_samples"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._reader",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=1, thread_name_prefix=\"queue-input\")",
          "line": 1035,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 1284,
      "expression": "self._reader.shutdown",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000814",
      "kind": "instance_candidate",
      "line": 1284,
      "module": "slime.data.queue_data_source",
      "name": "shutdown",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._reader.shutdown(wait=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1284",
      "symbol": "QueueReader.close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._stop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 1036,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 1288,
      "expression": "self._stop.set",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000815",
      "kind": "instance_candidate",
      "line": 1288,
      "module": "slime.data.queue_data_source",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._stop.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1288",
      "symbol": "QueueReader.close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._heartbeats",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._heartbeat_loop, name=\"queue-leases\", daemon=True)",
          "line": 1044,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 1289,
      "expression": "self._heartbeats.join",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000816",
      "kind": "instance_candidate",
      "line": 1289,
      "module": "slime.data.queue_data_source",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        self._heartbeats.join(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1289",
      "symbol": "QueueReader.close"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "state[\"configuration\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 1417,
      "expression": "state[\"configuration\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000817",
      "kind": "instance_candidate",
      "line": 1417,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if state[\"configuration\"].get(\"dataset\") != self.data_config.get(\"dataset\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1417",
      "symbol": "QueueDataSource.load"
    },
    {
      "category": "candidates",
      "col": 56,
      "details": {
        "receiver": "self.data_config",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 76,
      "end_line": 1417,
      "expression": "self.data_config.get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000818",
      "kind": "instance_candidate",
      "line": 1417,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if state[\"configuration\"].get(\"dataset\") != self.data_config.get(\"dataset\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1417",
      "symbol": "QueueDataSource.load"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "state[\"configuration\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 1424,
      "expression": "state[\"configuration\"].get",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000819",
      "kind": "instance_candidate",
      "line": 1424,
      "module": "slime.data.queue_data_source",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            if state[\"configuration\"].get(\"queue_id\", self.data_config[\"queue_id\"]) != self.data_config[\"queue_id\"]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1424",
      "symbol": "QueueDataSource.load"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "consumer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 1438,
      "expression": "consumer.close",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000820",
      "kind": "instance_candidate",
      "line": 1438,
      "module": "slime.data.queue_data_source",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "            consumer.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1438",
      "symbol": "QueueDataSource.close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "super()",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 1439,
      "expression": "super().close",
      "file": "slime/data/queue_data_source.py",
      "id": "occ-000821",
      "kind": "instance_candidate",
      "line": 1439,
      "module": "slime.data.queue_data_source",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/queue_data_source.py.txt",
      "source_line": "        super().close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/queue_data_source.py#L1439",
      "symbol": "QueueDataSource.close"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 14,
      "end_line": 5,
      "expression": "import asyncio",
      "file": "slime/data/transport.py",
      "id": "occ-000822",
      "kind": "import",
      "line": 5,
      "module": "slime.data.transport",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 7
      },
      "end_col": 9,
      "end_line": 7,
      "expression": "import os",
      "file": "slime/data/transport.py",
      "id": "occ-000823",
      "kind": "import",
      "line": 7,
      "module": "slime.data.transport",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 8
      },
      "end_col": 16,
      "end_line": 8,
      "expression": "import threading",
      "file": "slime/data/transport.py",
      "id": "occ-000824",
      "kind": "import",
      "line": 8,
      "module": "slime.data.transport",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L8",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 25,
      "expression": "threading.Lock",
      "file": "slime/data/transport.py",
      "id": "occ-000825",
      "kind": "api_call",
      "line": 25,
      "module": "slime.data.transport",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "_writers_lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L25",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 49,
      "expression": "\"\".join",
      "file": "slime/data/transport.py",
      "id": "occ-000826",
      "kind": "instance_candidate",
      "line": 49,
      "module": "slime.data.transport",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            pattern = \"\".join(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L49",
      "symbol": "resolve_rollout_data_dir"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 59,
      "expression": "index.get",
      "file": "slime/data/transport.py",
      "id": "occ-000827",
      "kind": "instance_candidate",
      "line": 59,
      "module": "slime.data.transport",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        if index.get(\"format\") != \"slime.straw-debug\" or index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L59",
      "symbol": "resolve_rollout_data_dir"
    },
    {
      "category": "candidates",
      "col": 57,
      "details": {
        "receiver": "index",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 66,
      "end_line": 59,
      "expression": "index.get",
      "file": "slime/data/transport.py",
      "id": "occ-000828",
      "kind": "instance_candidate",
      "line": 59,
      "module": "slime.data.transport",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        if index.get(\"format\") != \"slime.straw-debug\" or index.get(\"version\") != 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L59",
      "symbol": "resolve_rollout_data_dir"
    },
    {
      "category": "os-process",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 90,
      "expression": "os.getpid",
      "file": "slime/data/transport.py",
      "id": "occ-000829",
      "kind": "api_call",
      "line": 90,
      "module": "slime.data.transport",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "    key = (os.getpid(), root, run_id, profile, segment_mib, online_gc, json.dumps(declaration, sort_keys=True))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L90",
      "symbol": "rollout_store"
    },
    {
      "category": "threading",
      "col": 36,
      "details": {
        "access": "load"
      },
      "end_col": 51,
      "end_line": 105,
      "expression": "threading.RLock",
      "file": "slime/data/transport.py",
      "id": "occ-000830",
      "kind": "api_call",
      "line": 105,
      "module": "slime.data.transport",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            _writers[key] = (store, threading.RLock())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L105",
      "symbol": "rollout_store"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 84,
      "end_line": 367,
      "expression": "async def publish_rollout_async(value, args, rollout_id, *, group=False, controller=None):",
      "file": "slime/data/transport.py",
      "id": "occ-000831",
      "kind": "async_def",
      "line": 364,
      "module": "slime.data.transport",
      "name": "publish_rollout_async",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "async def publish_rollout_async(value, args, rollout_id, *, group=False, controller=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L364-L367",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 109,
      "end_line": 366,
      "expression": "await run_rollout_io(args, pack_rollout_group, value, args, rollout_id, controller=controller)",
      "file": "slime/data/transport.py",
      "id": "occ-000832",
      "kind": "await",
      "line": 366,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        return await run_rollout_io(args, pack_rollout_group, value, args, rollout_id, controller=controller)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L366",
      "symbol": "publish_rollout_async"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 84,
      "end_line": 367,
      "expression": "await run_rollout_io(args, pack_rollout_payload, value, args, rollout_id)",
      "file": "slime/data/transport.py",
      "id": "occ-000833",
      "kind": "await",
      "line": 367,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "    return await run_rollout_io(args, pack_rollout_payload, value, args, rollout_id)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L367",
      "symbol": "publish_rollout_async"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 389,
      "expression": "async def run_rollout_io(args, function, *values, **kwargs):",
      "file": "slime/data/transport.py",
      "id": "occ-000834",
      "kind": "async_def",
      "line": 370,
      "module": "slime.data.transport",
      "name": "run_rollout_io",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "async def run_rollout_io(args, function, *values, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L370-L389",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 372,
      "expression": "asyncio.get_running_loop",
      "file": "slime/data/transport.py",
      "id": "occ-000835",
      "kind": "api_call",
      "line": 372,
      "module": "slime.data.transport",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "    loop = asyncio.get_running_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L372",
      "symbol": "run_rollout_io"
    },
    {
      "category": "os-process",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 373,
      "expression": "os.getpid",
      "file": "slime/data/transport.py",
      "id": "occ-000836",
      "kind": "api_call",
      "line": 373,
      "module": "slime.data.transport",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "    key = (os.getpid(), loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L373",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 29,
      "details": {
        "access": "load"
      },
      "end_col": 46,
      "end_line": 375,
      "expression": "asyncio.Semaphore",
      "file": "slime/data/transport.py",
      "id": "occ-000837",
      "kind": "api_call",
      "line": 375,
      "module": "slime.data.transport",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        _async_limits[key] = asyncio.Semaphore(getattr(args, \"rollout_io_concurrency\", 4))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L375",
      "symbol": "run_rollout_io"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 17,
      "end_line": 389,
      "expression": "    async with _async_limits[key]:",
      "file": "slime/data/transport.py",
      "id": "occ-000838",
      "kind": "async_with",
      "line": 376,
      "module": "slime.data.transport",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "    async with _async_limits[key]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L376-L389",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 377,
      "expression": "asyncio.create_task",
      "file": "slime/data/transport.py",
      "id": "occ-000839",
      "kind": "api_call",
      "line": 377,
      "module": "slime.data.transport",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        pending = asyncio.create_task(asyncio.to_thread(function, *values, **kwargs))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L377",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 38,
      "details": {
        "access": "load"
      },
      "end_col": 55,
      "end_line": 377,
      "expression": "asyncio.to_thread",
      "file": "slime/data/transport.py",
      "id": "occ-000840",
      "kind": "api_call",
      "line": 377,
      "module": "slime.data.transport",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        pending = asyncio.create_task(asyncio.to_thread(function, *values, **kwargs))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L377",
      "symbol": "run_rollout_io"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 48,
      "end_line": 379,
      "expression": "await asyncio.shield(pending)",
      "file": "slime/data/transport.py",
      "id": "occ-000841",
      "kind": "await",
      "line": 379,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            return await asyncio.shield(pending)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L379",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 379,
      "expression": "asyncio.shield",
      "file": "slime/data/transport.py",
      "id": "occ-000842",
      "kind": "api_call",
      "line": 379,
      "module": "slime.data.transport",
      "name": "asyncio.shield",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            return await asyncio.shield(pending)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L379",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 380,
      "expression": "asyncio.CancelledError",
      "file": "slime/data/transport.py",
      "id": "occ-000843",
      "kind": "api_reference",
      "line": 380,
      "module": "slime.data.transport",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        except asyncio.CancelledError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L380",
      "symbol": "run_rollout_io"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "pending",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(asyncio.to_thread(function, *values, **kwargs))",
          "line": 377,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 383,
      "expression": "pending.done",
      "file": "slime/data/transport.py",
      "id": "occ-000844",
      "kind": "instance_candidate",
      "line": 383,
      "module": "slime.data.transport",
      "name": "done",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            while not pending.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L383",
      "symbol": "run_rollout_io"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 49,
      "end_line": 385,
      "expression": "await asyncio.shield(pending)",
      "file": "slime/data/transport.py",
      "id": "occ-000845",
      "kind": "await",
      "line": 385,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "                    await asyncio.shield(pending)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L385",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 385,
      "expression": "asyncio.shield",
      "file": "slime/data/transport.py",
      "id": "occ-000846",
      "kind": "api_call",
      "line": 385,
      "module": "slime.data.transport",
      "name": "asyncio.shield",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "                    await asyncio.shield(pending)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L385",
      "symbol": "run_rollout_io"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 45,
      "end_line": 386,
      "expression": "asyncio.CancelledError",
      "file": "slime/data/transport.py",
      "id": "occ-000847",
      "kind": "api_reference",
      "line": 386,
      "module": "slime.data.transport",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "                except asyncio.CancelledError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L386",
      "symbol": "run_rollout_io"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "pending",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(asyncio.to_thread(function, *values, **kwargs))",
          "line": 377,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 388,
      "expression": "pending.result",
      "file": "slime/data/transport.py",
      "id": "occ-000848",
      "kind": "instance_candidate",
      "line": 388,
      "module": "slime.data.transport",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "            pending.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L388",
      "symbol": "run_rollout_io"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 13,
      "end_line": 422,
      "expression": "async def unpack_published_payload(value):",
      "file": "slime/data/transport.py",
      "id": "occ-000849",
      "kind": "async_def",
      "line": 410,
      "module": "slime.data.transport",
      "name": "unpack_published_payload",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "async def unpack_published_payload(value):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L410-L422",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 69,
      "end_line": 413,
      "expression": "await asyncio.to_thread(unpack_rollout_payload, value)",
      "file": "slime/data/transport.py",
      "id": "occ-000850",
      "kind": "await",
      "line": 413,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        return await asyncio.to_thread(unpack_rollout_payload, value)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L413",
      "symbol": "unpack_published_payload"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 413,
      "expression": "asyncio.to_thread",
      "file": "slime/data/transport.py",
      "id": "occ-000851",
      "kind": "api_call",
      "line": 413,
      "module": "slime.data.transport",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        return await asyncio.to_thread(unpack_rollout_payload, value)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L413",
      "symbol": "unpack_published_payload"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 69,
      "end_line": 419,
      "expression": "await asyncio.to_thread(unpack_rollout_payload, value)",
      "file": "slime/data/transport.py",
      "id": "occ-000852",
      "kind": "await",
      "line": 419,
      "module": "slime.data.transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        return await asyncio.to_thread(unpack_rollout_payload, value)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L419",
      "symbol": "unpack_published_payload"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 419,
      "expression": "asyncio.to_thread",
      "file": "slime/data/transport.py",
      "id": "occ-000853",
      "kind": "api_call",
      "line": 419,
      "module": "slime.data.transport",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        return await asyncio.to_thread(unpack_rollout_payload, value)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L419",
      "symbol": "unpack_published_payload"
    },
    {
      "category": "candidates",
      "col": 30,
      "details": {
        "receiver": "node[\"Resources\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 483,
      "expression": "node[\"Resources\"].get",
      "file": "slime/data/transport.py",
      "id": "occ-000854",
      "kind": "instance_candidate",
      "line": 483,
      "module": "slime.data.transport",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        if node[\"Alive\"] and (node[\"Resources\"].get(\"CPU\", 0) or node[\"Resources\"].get(\"GPU\", 0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L483",
      "symbol": "check_rollout_storage.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 65,
      "details": {
        "receiver": "node[\"Resources\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 86,
      "end_line": 483,
      "expression": "node[\"Resources\"].get",
      "file": "slime/data/transport.py",
      "id": "occ-000855",
      "kind": "instance_candidate",
      "line": 483,
      "module": "slime.data.transport",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/data/transport.py.txt",
      "source_line": "        if node[\"Alive\"] and (node[\"Resources\"].get(\"CPU\", 0) or node[\"Resources\"].get(\"GPU\", 0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/data/transport.py#L483",
      "symbol": "check_rollout_storage.<comprehension>"
    },
    {
      "category": "contextvars",
      "col": 7,
      "details": {
        "local_binding": "contextvars",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 18,
      "end_line": 3,
      "expression": "import contextvars",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000856",
      "kind": "import",
      "line": 3,
      "module": "slime.observability.trace_utils",
      "name": "contextvars",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "import contextvars",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "inspect-async",
      "col": 7,
      "details": {
        "local_binding": "inspect",
        "selective_module_import": true,
        "statement_line": 5
      },
      "end_col": 14,
      "end_line": 5,
      "expression": "import inspect",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000857",
      "kind": "import",
      "line": 5,
      "module": "slime.observability.trace_utils",
      "name": "inspect",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "import inspect",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 47,
      "expression": "contextvars.ContextVar",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000858",
      "kind": "api_reference",
      "line": 47,
      "module": "slime.observability.trace_utils",
      "name": "contextvars.ContextVar",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "_TRACE_STACK: contextvars.ContextVar[tuple[tuple[str, str], ...]] = contextvars.ContextVar(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L47",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 68,
      "details": {
        "access": "load"
      },
      "end_col": 90,
      "end_line": 47,
      "expression": "contextvars.ContextVar",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000859",
      "kind": "api_call",
      "line": 47,
      "module": "slime.observability.trace_utils",
      "name": "contextvars.ContextVar",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "_TRACE_STACK: contextvars.ContextVar[tuple[tuple[str, str], ...]] = contextvars.ContextVar(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L47",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 51,
      "expression": "contextvars.ContextVar",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000860",
      "kind": "api_reference",
      "line": 51,
      "module": "slime.observability.trace_utils",
      "name": "contextvars.ContextVar",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "_TRACE_HANDLE_STACK: contextvars.ContextVar[tuple[tuple[TraceHandle, ...], ...]] = contextvars.ContextVar(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L51",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 83,
      "details": {
        "access": "load"
      },
      "end_col": 105,
      "end_line": 51,
      "expression": "contextvars.ContextVar",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000861",
      "kind": "api_call",
      "line": 51,
      "module": "slime.observability.trace_utils",
      "name": "contextvars.ContextVar",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "_TRACE_HANDLE_STACK: contextvars.ContextVar[tuple[tuple[TraceHandle, ...], ...]] = contextvars.ContextVar(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L51",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "meta",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 144,
      "expression": "meta.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000862",
      "kind": "instance_candidate",
      "line": 144,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        finish_reason = meta.get(\"finish_reason\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L144",
      "symbol": "build_sglang_meta_trace_attrs"
    },
    {
      "category": "candidates",
      "col": 47,
      "details": {
        "receiver": "finish_reason",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 145,
      "expression": "finish_reason.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000863",
      "kind": "instance_candidate",
      "line": 145,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        if isinstance(finish_reason, dict) and finish_reason.get(\"type\") is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L145",
      "symbol": "build_sglang_meta_trace_attrs"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "meta",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 150,
      "expression": "meta.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000864",
      "kind": "instance_candidate",
      "line": 150,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        if meta.get(\"id\") is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L150",
      "symbol": "build_sglang_meta_trace_attrs"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "carrier",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 234,
      "expression": "carrier.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000865",
      "kind": "instance_candidate",
      "line": 234,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "    carrier[\"attempt\"] = int(carrier.get(\"attempt\", attempt))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L234",
      "symbol": "_ensure_trace_carrier"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "sample.trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 248,
      "expression": "sample.trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000866",
      "kind": "instance_candidate",
      "line": 248,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            sample_id=sample.trace.get(\"sample_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L248",
      "symbol": "bind_trace"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "sample.trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 249,
      "expression": "sample.trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000867",
      "kind": "instance_candidate",
      "line": 249,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            group_id=sample.trace.get(\"group_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L249",
      "symbol": "bind_trace"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "sample.trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 250,
      "expression": "sample.trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000868",
      "kind": "instance_candidate",
      "line": 250,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            attempt=int(sample.trace.get(\"attempt\", 0)),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L250",
      "symbol": "bind_trace"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 277,
      "expression": "trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000869",
      "kind": "instance_candidate",
      "line": 277,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            sample_id=trace.get(\"sample_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L277",
      "symbol": "bind_trace_carrier"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 278,
      "expression": "trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000870",
      "kind": "instance_candidate",
      "line": 278,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            group_id=trace.get(\"group_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L278",
      "symbol": "bind_trace_carrier"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "trace",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 279,
      "expression": "trace.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000871",
      "kind": "instance_candidate",
      "line": 279,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            attempt=int(trace.get(\"attempt\", 0)),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L279",
      "symbol": "bind_trace_carrier"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 315,
      "expression": "payload.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000872",
      "kind": "instance_candidate",
      "line": 315,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            trace_id=payload.get(\"trace_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L315",
      "symbol": "import_trace"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 316,
      "expression": "payload.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000873",
      "kind": "instance_candidate",
      "line": 316,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            sample_id=payload.get(\"sample_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L316",
      "symbol": "import_trace"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 317,
      "expression": "payload.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000874",
      "kind": "instance_candidate",
      "line": 317,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            group_id=payload.get(\"group_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L317",
      "symbol": "import_trace"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 318,
      "expression": "payload.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000875",
      "kind": "instance_candidate",
      "line": 318,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            attempt=int(payload.get(\"attempt\", 0)),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L318",
      "symbol": "import_trace"
    },
    {
      "category": "candidates",
      "col": 27,
      "details": {
        "receiver": "payload",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 319,
      "expression": "payload.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000876",
      "kind": "instance_candidate",
      "line": 319,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            parent_span_id=payload.get(\"parent_span_id\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L319",
      "symbol": "import_trace"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "_TRACE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_stack\",\n    default=(),\n)",
          "line": 47,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 363,
      "expression": "_TRACE_STACK.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000877",
      "kind": "instance_candidate",
      "line": 363,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "    stack_before = _TRACE_STACK.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L363",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "_TRACE_HANDLE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_handle_stack\",\n    default=(),\n)",
          "line": 51,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 364,
      "expression": "_TRACE_HANDLE_STACK.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000878",
      "kind": "instance_candidate",
      "line": 364,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "    handle_stack_before = _TRACE_HANDLE_STACK.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L364",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "_TRACE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_stack\",\n    default=(),\n)",
          "line": 47,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 383,
      "expression": "_TRACE_STACK.set",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000879",
      "kind": "instance_candidate",
      "line": 383,
      "module": "slime.observability.trace_utils",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        token = _TRACE_STACK.set(stack_before + tuple(new_entries))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L383",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "_TRACE_HANDLE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_handle_stack\",\n    default=(),\n)",
          "line": 51,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 384,
      "expression": "_TRACE_HANDLE_STACK.set",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000880",
      "kind": "instance_candidate",
      "line": 384,
      "module": "slime.observability.trace_utils",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        handle_token = _TRACE_HANDLE_STACK.set(handle_stack_before + (tuple(handles),))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L384",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "_TRACE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_stack\",\n    default=(),\n)",
          "line": 47,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 419,
      "expression": "_TRACE_STACK.reset",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000881",
      "kind": "instance_candidate",
      "line": 419,
      "module": "slime.observability.trace_utils",
      "name": "reset",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            _TRACE_STACK.reset(token)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L419",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "_TRACE_HANDLE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_handle_stack\",\n    default=(),\n)",
          "line": 51,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 423,
      "expression": "_TRACE_HANDLE_STACK.reset",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000882",
      "kind": "instance_candidate",
      "line": 423,
      "module": "slime.observability.trace_utils",
      "name": "reset",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            _TRACE_HANDLE_STACK.reset(handle_token)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L423",
      "symbol": "trace_span"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "handle.carrier",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 436,
      "expression": "handle.carrier.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000883",
      "kind": "instance_candidate",
      "line": 436,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            next_attempt = int(handle.carrier.get(\"attempt\", 0)) + 1",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L436",
      "symbol": "trace_next_attempt"
    },
    {
      "category": "inspect-async",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 460,
      "expression": "inspect.iscoroutinefunction",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000884",
      "kind": "api_call",
      "line": 460,
      "module": "slime.observability.trace_utils",
      "name": "inspect.iscoroutinefunction",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        if inspect.iscoroutinefunction(fn):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L460",
      "symbol": "trace_function.decorator"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "async_protocol": false
      },
      "end_col": 52,
      "end_line": 475,
      "expression": "            async def async_wrapper(*args, **kwargs):",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000885",
      "kind": "async_def",
      "line": 463,
      "module": "slime.observability.trace_utils",
      "name": "async_wrapper",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            async def async_wrapper(*args, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L463-L475",
      "symbol": "trace_function.decorator"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 52,
      "end_line": 472,
      "expression": "await fn(*args, **kwargs)",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000886",
      "kind": "await",
      "line": 472,
      "module": "slime.observability.trace_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "                    return await fn(*args, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L472",
      "symbol": "trace_function.decorator.async_wrapper"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 52,
      "end_line": 475,
      "expression": "await fn(*args, **kwargs)",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000887",
      "kind": "await",
      "line": 475,
      "module": "slime.observability.trace_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "                    return await fn(*args, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L475",
      "symbol": "trace_function.decorator.async_wrapper"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 535,
      "expression": "child.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000888",
      "kind": "instance_candidate",
      "line": 535,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        child_type = child.get(\"type\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L535",
      "symbol": "_append_trace_children"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 536,
      "expression": "child.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000889",
      "kind": "instance_candidate",
      "line": 536,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        child_name = child.get(\"name\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L536",
      "symbol": "_append_trace_children"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 541,
      "expression": "child.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000890",
      "kind": "instance_candidate",
      "line": 541,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        attrs = child.get(\"attrs\") if isinstance(child.get(\"attrs\"), dict) else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L541",
      "symbol": "_append_trace_children"
    },
    {
      "category": "candidates",
      "col": 49,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 58,
      "end_line": 541,
      "expression": "child.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000891",
      "kind": "instance_candidate",
      "line": 541,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        attrs = child.get(\"attrs\") if isinstance(child.get(\"attrs\"), dict) else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L541",
      "symbol": "_append_trace_children"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 573,
      "expression": "child.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000892",
      "kind": "instance_candidate",
      "line": 573,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "            child.get(\"children\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L573",
      "symbol": "_append_trace_children"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "handle.carrier",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 604,
      "expression": "handle.carrier.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000893",
      "kind": "instance_candidate",
      "line": 604,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        \"attempt\": int(handle.carrier.get(\"attempt\", handle.attempt)),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L604",
      "symbol": "_append_event"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "_TRACE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_stack\",\n    default=(),\n)",
          "line": 47,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 635,
      "expression": "_TRACE_STACK.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000894",
      "kind": "instance_candidate",
      "line": 635,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "    stack = _TRACE_STACK.get() if stack is None else stack",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L635",
      "symbol": "_get_current_parent_span_id"
    },
    {
      "category": "candidates",
      "col": 43,
      "details": {
        "receiver": "bound.arguments",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 62,
      "end_line": 664,
      "expression": "bound.arguments.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000895",
      "kind": "instance_candidate",
      "line": 664,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "        resolved = _normalize_trace_target(bound.arguments.get(target))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L664",
      "symbol": "_resolve_trace_function_target"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "_TRACE_HANDLE_STACK",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "contextvars.ContextVar(\n    \"slime_trace_handle_stack\",\n    default=(),\n)",
          "line": 51,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 755,
      "expression": "_TRACE_HANDLE_STACK.get",
      "file": "slime/observability/trace_utils.py",
      "id": "occ-000896",
      "kind": "instance_candidate",
      "line": 755,
      "module": "slime.observability.trace_utils",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/observability/trace_utils.py.txt",
      "source_line": "    handle_stack = _TRACE_HANDLE_STACK.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/observability/trace_utils.py#L755",
      "symbol": "_get_current_trace_target"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 4
      },
      "end_col": 11,
      "end_line": 4,
      "expression": "import time",
      "file": "slime/ray/actor_group.py",
      "id": "occ-000897",
      "kind": "import",
      "line": 4,
      "module": "slime.ray.actor_group",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/ray/actor_group.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/actor_group.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 189,
      "expression": "self.release",
      "file": "slime/ray/actor_group.py",
      "id": "occ-000898",
      "kind": "instance_candidate",
      "line": 189,
      "module": "slime.ray.actor_group",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/actor_group.py.txt",
      "source_line": "            self.release()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/actor_group.py#L189",
      "symbol": "RayTrainGroup.update_weights"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 203,
      "expression": "time.sleep",
      "file": "slime/ray/actor_group.py",
      "id": "occ-000899",
      "kind": "api_call",
      "line": 203,
      "module": "slime.ray.actor_group",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/ray/actor_group.py.txt",
      "source_line": "            time.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/actor_group.py#L203",
      "symbol": "RayTrainGroup.release"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "\", \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 63,
      "end_line": 291,
      "expression": "\", \".join",
      "file": "slime/ray/actor_group.py",
      "id": "occ-000900",
      "kind": "instance_candidate",
      "line": 291,
      "module": "slime.ray.actor_group",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/actor_group.py.txt",
      "source_line": "                    f\"Expected: {weight_version}; \" + \", \".join(mismatches)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/actor_group.py#L291",
      "symbol": "RayTrainGroup._reload_rollout_weights_from_disk"
    },
    {
      "category": "multiprocessing",
      "col": 7,
      "details": {
        "local_binding": "multiprocessing",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 22,
      "end_line": 10,
      "expression": "import multiprocessing",
      "file": "slime/ray/serving.py",
      "id": "occ-000901",
      "kind": "import",
      "line": 10,
      "module": "slime.ray.serving",
      "name": "multiprocessing",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "import multiprocessing",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 56,
      "details": {
        "access": "load"
      },
      "end_col": 87,
      "end_line": 57,
      "expression": "multiprocessing.active_children",
      "file": "slime/ray/serving.py",
      "id": "occ-000902",
      "kind": "api_call",
      "line": 57,
      "module": "slime.ray.serving",
      "name": "multiprocessing.active_children",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "        existing_children = {process.pid for process in multiprocessing.active_children()}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L57",
      "symbol": "ServingCluster.__init__"
    },
    {
      "category": "multiprocessing",
      "col": 43,
      "details": {
        "access": "load"
      },
      "end_col": 74,
      "end_line": 68,
      "expression": "multiprocessing.active_children",
      "file": "slime/ray/serving.py",
      "id": "occ-000903",
      "kind": "api_call",
      "line": 68,
      "module": "slime.ray.serving",
      "name": "multiprocessing.active_children",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "                    process for process in multiprocessing.active_children() if process.pid not in existing_children",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L68",
      "symbol": "ServingCluster.__init__"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "logging.getLogger(__name__)",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 76,
      "expression": "logging.getLogger(__name__).exception",
      "file": "slime/ray/serving.py",
      "id": "occ-000904",
      "kind": "instance_candidate",
      "line": 76,
      "module": "slime.ray.serving",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "                logging.getLogger(__name__).exception(\"Failed to dispose partial serving deployment\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L76",
      "symbol": "ServingCluster.__init__"
    },
    {
      "category": "candidates",
      "col": 99,
      "details": {
        "receiver": "\", \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 108,
      "end_line": 115,
      "expression": "\", \".join",
      "file": "slime/ray/serving.py",
      "id": "occ-000905",
      "kind": "instance_candidate",
      "line": 115,
      "module": "slime.ray.serving",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "            raise ValueError(\"Retained serving requires unchanged rollout/model configuration: \" + \", \".join(changed))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L115",
      "symbol": "ServingCluster.validate_attachment"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "monitor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 168,
      "expression": "monitor.stop",
      "file": "slime/ray/serving.py",
      "id": "occ-000906",
      "kind": "instance_candidate",
      "line": 168,
      "module": "slime.ray.serving",
      "name": "stop",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "            monitor.stop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L168",
      "symbol": "ServingCluster.attach_training"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "monitor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 173,
      "expression": "monitor.start",
      "file": "slime/ray/serving.py",
      "id": "occ-000907",
      "kind": "instance_candidate",
      "line": 173,
      "module": "slime.ray.serving",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "                monitor.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L173",
      "symbol": "ServingCluster.attach_training"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "router",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 318,
      "expression": "router.is_alive",
      "file": "slime/ray/serving.py",
      "id": "occ-000908",
      "kind": "instance_candidate",
      "line": 318,
      "module": "slime.ray.serving",
      "name": "is_alive",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "                if router.is_alive():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L318",
      "symbol": "ServingCluster.dispose"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "router",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 321,
      "expression": "router.is_alive",
      "file": "slime/ray/serving.py",
      "id": "occ-000909",
      "kind": "instance_candidate",
      "line": 321,
      "module": "slime.ray.serving",
      "name": "is_alive",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/ray/serving.py.txt",
      "source_line": "                    if router.is_alive():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/ray/serving.py#L321",
      "symbol": "ServingCluster.dispose"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000910",
      "kind": "import",
      "line": 3,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 16,
      "end_line": 6,
      "expression": "import threading",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000911",
      "kind": "import",
      "line": 6,
      "module": "slime.rollout.fully_async_distributed",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 60,
      "expression": "threading.Condition",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000912",
      "kind": "api_call",
      "line": 60,
      "module": "slime.rollout.fully_async_distributed",
      "name": "threading.Condition",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        self.condition = threading.Condition()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L60",
      "symbol": "RolloutScheduler.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 91,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000913",
      "kind": "instance_candidate",
      "line": 91,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L91",
      "symbol": "RolloutScheduler._retire_worker"
    },
    {
      "category": "candidates",
      "col": 73,
      "details": {
        "receiver": "configurations",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 91,
      "end_line": 108,
      "expression": "configurations.get",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000914",
      "kind": "instance_candidate",
      "line": 108,
      "module": "slime.rollout.fully_async_distributed",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                        if not self.capacities[i] or i in configuring or configurations.get(i) == desired:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L108",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 126,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000915",
      "kind": "instance_candidate",
      "line": 126,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                        self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L126",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 127,
      "expression": "self.condition.wait",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000916",
      "kind": "instance_candidate",
      "line": 127,
      "module": "slime.rollout.fully_async_distributed",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                        self.condition.wait(timeout=0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L127",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 147,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000917",
      "kind": "instance_candidate",
      "line": 147,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L147",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 151,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000918",
      "kind": "instance_candidate",
      "line": 151,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L151",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.controls",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 156,
      "expression": "self.controls.clear",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000919",
      "kind": "instance_candidate",
      "line": 156,
      "module": "slime.rollout.fully_async_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.controls.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L156",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.pending",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 157,
      "expression": "self.pending.clear",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000920",
      "kind": "instance_candidate",
      "line": 157,
      "module": "slime.rollout.fully_async_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.pending.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L157",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.running_workers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 158,
      "expression": "self.running_workers.clear",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000921",
      "kind": "instance_candidate",
      "line": 158,
      "module": "slime.rollout.fully_async_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.running_workers.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L158",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 159,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000922",
      "kind": "instance_candidate",
      "line": 159,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L159",
      "symbol": "RolloutScheduler._run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.collecting",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 171,
      "expression": "self.collecting.clear",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000923",
      "kind": "instance_candidate",
      "line": 171,
      "module": "slime.rollout.fully_async_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.collecting.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L171",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "threading",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 46,
      "end_line": 177,
      "expression": "threading.Thread",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000924",
      "kind": "api_call",
      "line": 177,
      "module": "slime.rollout.fully_async_distributed",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.thread = threading.Thread(target=self._run, name=\"rollout-collect\", daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L177",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._run, name=\"rollout-collect\", daemon=True)",
          "line": 177,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 178,
      "expression": "self.thread.start",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000925",
      "kind": "instance_candidate",
      "line": 178,
      "module": "slime.rollout.fully_async_distributed",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L178",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 179,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000926",
      "kind": "instance_candidate",
      "line": 179,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L179",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 184,
      "expression": "self.condition.wait",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000927",
      "kind": "instance_candidate",
      "line": 184,
      "module": "slime.rollout.fully_async_distributed",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    self.condition.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L184",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 198,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000928",
      "kind": "instance_candidate",
      "line": 198,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L198",
      "symbol": "RolloutScheduler.generate"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 211,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000929",
      "kind": "instance_candidate",
      "line": 211,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L211",
      "symbol": "RolloutScheduler.pause"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.configurations",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 214,
      "expression": "self.configurations.get",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000930",
      "kind": "instance_candidate",
      "line": 214,
      "module": "slime.rollout.fully_async_distributed",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    self.configurations.get(worker) != (True, self.rollout_id) for worker in self.running_workers",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L214",
      "symbol": "RolloutScheduler.pause.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 220,
      "expression": "self.condition.wait",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000931",
      "kind": "instance_candidate",
      "line": 220,
      "module": "slime.rollout.fully_async_distributed",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.condition.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L220",
      "symbol": "RolloutScheduler.pause"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 228,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000932",
      "kind": "instance_candidate",
      "line": 228,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L228",
      "symbol": "RolloutScheduler.resume"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 60,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 248,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000933",
      "kind": "instance_candidate",
      "line": 248,
      "module": "slime.rollout.fully_async_distributed",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L248",
      "symbol": "RolloutScheduler.close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._run, name=\"rollout-collect\", daemon=True)",
          "line": 177,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 250,
      "expression": "self.thread.join",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000934",
      "kind": "instance_candidate",
      "line": 250,
      "module": "slime.rollout.fully_async_distributed",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.thread.join()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L250",
      "symbol": "RolloutScheduler.close"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 41,
      "end_line": 281,
      "expression": "    async def start(self, rollout_id):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000935",
      "kind": "async_def",
      "line": 279,
      "module": "slime.rollout.fully_async_distributed",
      "name": "start",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def start(self, rollout_id):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L279-L281",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 280,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000936",
      "kind": "api_call",
      "line": 280,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.run_coroutine_threadsafe(self._start(rollout_id), get_async_loop().loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L280",
      "symbol": "_GenerationActor.start"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 41,
      "end_line": 281,
      "expression": "await asyncio.wrap_future(future)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000937",
      "kind": "await",
      "line": 281,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L281",
      "symbol": "_GenerationActor.start"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 281,
      "expression": "asyncio.wrap_future",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000938",
      "kind": "api_call",
      "line": 281,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.wrap_future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L281",
      "symbol": "_GenerationActor.start"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 64,
      "end_line": 292,
      "expression": "    async def _start(self, rollout_id):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000939",
      "kind": "async_def",
      "line": 283,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_start",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _start(self, rollout_id):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L283-L292",
      "symbol": "_GenerationActor"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "self.producer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 54,
      "end_line": 286,
      "expression": "self.producer.done",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000940",
      "kind": "instance_candidate",
      "line": 286,
      "module": "slime.rollout.fully_async_distributed",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        if self.producer is None or self.producer.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L286",
      "symbol": "_GenerationActor._start"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.producer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 288,
      "expression": "self.producer.result",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000941",
      "kind": "instance_candidate",
      "line": 288,
      "module": "slime.rollout.fully_async_distributed",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                self.producer.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L288",
      "symbol": "_GenerationActor._start"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 291,
      "expression": "asyncio.Queue",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000942",
      "kind": "api_call",
      "line": 291,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.outputs = asyncio.Queue(maxsize=1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L291",
      "symbol": "_GenerationActor._start"
    },
    {
      "category": "asyncio",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 47,
      "end_line": 292,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000943",
      "kind": "api_call",
      "line": 292,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.producer = asyncio.create_task(self._produce())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L292",
      "symbol": "_GenerationActor._start"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 41,
      "end_line": 296,
      "expression": "    async def pause(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000944",
      "kind": "async_def",
      "line": 294,
      "module": "slime.rollout.fully_async_distributed",
      "name": "pause",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def pause(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L294-L296",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 295,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000945",
      "kind": "api_call",
      "line": 295,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.run_coroutine_threadsafe(self._pause(), get_async_loop().loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L295",
      "symbol": "_GenerationActor.pause"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 41,
      "end_line": 296,
      "expression": "await asyncio.wrap_future(future)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000946",
      "kind": "await",
      "line": 296,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L296",
      "symbol": "_GenerationActor.pause"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 296,
      "expression": "asyncio.wrap_future",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000947",
      "kind": "api_call",
      "line": 296,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.wrap_future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L296",
      "symbol": "_GenerationActor.pause"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 28,
      "end_line": 299,
      "expression": "    async def _pause(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000948",
      "kind": "async_def",
      "line": 298,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_pause",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _pause(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L298-L299",
      "symbol": "_GenerationActor"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 48,
      "end_line": 303,
      "expression": "    async def next(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000949",
      "kind": "async_def",
      "line": 301,
      "module": "slime.rollout.fully_async_distributed",
      "name": "next",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def next(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L301-L303",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 302,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000950",
      "kind": "api_call",
      "line": 302,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.run_coroutine_threadsafe(self._next(), get_async_loop().loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L302",
      "symbol": "_GenerationActor.next"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 48,
      "end_line": 303,
      "expression": "await asyncio.wrap_future(future)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000951",
      "kind": "await",
      "line": 303,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        return await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L303",
      "symbol": "_GenerationActor.next"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 303,
      "expression": "asyncio.wrap_future",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000952",
      "kind": "api_call",
      "line": 303,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.wrap_future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        return await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L303",
      "symbol": "_GenerationActor.next"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 62,
      "end_line": 317,
      "expression": "    async def _next(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000953",
      "kind": "async_def",
      "line": 305,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_next",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _next(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L305-L317",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 306,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000954",
      "kind": "api_call",
      "line": 306,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        take = asyncio.create_task(self.outputs.get())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L306",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 35,
      "details": {
        "receiver": "self.outputs",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Queue(maxsize=1)",
          "line": 291,
          "type": "asyncio.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 306,
      "expression": "self.outputs.get",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000955",
      "kind": "instance_candidate",
      "line": 306,
      "module": "slime.rollout.fully_async_distributed",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        take = asyncio.create_task(self.outputs.get())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L306",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 90,
      "end_line": 308,
      "expression": "await asyncio.wait((take, self.producer), return_when=asyncio.FIRST_COMPLETED)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000956",
      "kind": "await",
      "line": 308,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.wait((take, self.producer), return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L308",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 308,
      "expression": "asyncio.wait",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000957",
      "kind": "api_call",
      "line": 308,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.wait((take, self.producer), return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L308",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "asyncio",
      "col": 66,
      "details": {
        "access": "load"
      },
      "end_col": 89,
      "end_line": 308,
      "expression": "asyncio.FIRST_COMPLETED",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000958",
      "kind": "api_reference",
      "line": 308,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.FIRST_COMPLETED",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.wait((take, self.producer), return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L308",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "take",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(self.outputs.get())",
          "line": 306,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 309,
      "expression": "take.done",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000959",
      "kind": "instance_candidate",
      "line": 309,
      "module": "slime.rollout.fully_async_distributed",
      "name": "done",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            if take.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L309",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "take",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(self.outputs.get())",
          "line": 306,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 310,
      "expression": "take.result",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000960",
      "kind": "instance_candidate",
      "line": 310,
      "module": "slime.rollout.fully_async_distributed",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                return take.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L310",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.producer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(self._produce())",
          "line": 292,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 311,
      "expression": "self.producer.result",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000961",
      "kind": "instance_candidate",
      "line": 311,
      "module": "slime.rollout.fully_async_distributed",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.producer.result()  # Propagate custom generation errors.",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L311",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self.outputs",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Queue(maxsize=1)",
          "line": 291,
          "type": "asyncio.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 312,
      "expression": "self.outputs.empty",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000962",
      "kind": "instance_candidate",
      "line": 312,
      "module": "slime.rollout.fully_async_distributed",
      "name": "empty",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            if not self.outputs.empty():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L312",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 33,
      "end_line": 313,
      "expression": "await take",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000963",
      "kind": "await",
      "line": 313,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                return await take",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L313",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "take",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(self.outputs.get())",
          "line": 306,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 316,
      "expression": "take.cancel",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000964",
      "kind": "instance_candidate",
      "line": 316,
      "module": "slime.rollout.fully_async_distributed",
      "name": "cancel",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            take.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L316",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 62,
      "end_line": 317,
      "expression": "await asyncio.gather(take, return_exceptions=True)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000965",
      "kind": "await",
      "line": 317,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(take, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L317",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 317,
      "expression": "asyncio.gather",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000966",
      "kind": "api_call",
      "line": 317,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(take, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L317",
      "symbol": "_GenerationActor._next"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 64,
      "end_line": 342,
      "expression": "    async def _produce(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000967",
      "kind": "async_def",
      "line": 319,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_produce",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _produce(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L319-L342",
      "symbol": "_GenerationActor"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 326,
      "expression": "        async def generate_slot(group):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000968",
      "kind": "async_def",
      "line": 320,
      "module": "slime.rollout.fully_async_distributed",
      "name": "generate_slot",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        async def generate_slot(group):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L320-L326",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 75,
      "end_line": 322,
      "expression": "await self._generate_group(self.rollout_id, group)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000969",
      "kind": "await",
      "line": 322,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                output = await self._generate_group(self.rollout_id, group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L322",
      "symbol": "_GenerationActor._produce.generate_slot"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 50,
      "end_line": 325,
      "expression": "await self.outputs.put(output)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000970",
      "kind": "await",
      "line": 325,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    await self.outputs.put(output)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L325",
      "symbol": "_GenerationActor._produce.generate_slot"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "self.outputs",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Queue(maxsize=1)",
          "line": 291,
          "type": "asyncio.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 325,
      "expression": "self.outputs.put",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000971",
      "kind": "instance_candidate",
      "line": 325,
      "module": "slime.rollout.fully_async_distributed",
      "name": "put",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    await self.outputs.put(output)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L325",
      "symbol": "_GenerationActor._produce.generate_slot"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 98,
      "end_line": 333,
      "expression": "await self.data_source.get_samples_async(min(64, self.capacity - offset))",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000972",
      "kind": "await",
      "line": 333,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                groups = await self.data_source.get_samples_async(min(64, self.capacity - offset))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L333",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "asyncio",
      "col": 29,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 334,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000973",
      "kind": "api_call",
      "line": 334,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                tasks.extend(asyncio.create_task(generate_slot(group)) for group in groups)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L334",
      "symbol": "_GenerationActor._produce.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 42,
      "end_line": 337,
      "expression": "await asyncio.sleep(0.001)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000974",
      "kind": "await",
      "line": 337,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                await asyncio.sleep(0.001)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L337",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 337,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000975",
      "kind": "api_call",
      "line": 337,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                await asyncio.sleep(0.001)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L337",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 40,
      "end_line": 338,
      "expression": "await asyncio.gather(*tasks)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000976",
      "kind": "await",
      "line": 338,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L338",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 338,
      "expression": "asyncio.gather",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000977",
      "kind": "api_call",
      "line": 338,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L338",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 341,
      "expression": "task.cancel",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000978",
      "kind": "instance_candidate",
      "line": 341,
      "module": "slime.rollout.fully_async_distributed",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                task.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L341",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 64,
      "end_line": 342,
      "expression": "await asyncio.gather(*tasks, return_exceptions=True)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000979",
      "kind": "await",
      "line": 342,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L342",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 342,
      "expression": "asyncio.gather",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000980",
      "kind": "api_call",
      "line": 342,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L342",
      "symbol": "_GenerationActor._produce"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 29,
      "end_line": 395,
      "expression": "    async def _generate_group(self, rollout_id, group=None):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000981",
      "kind": "async_def",
      "line": 344,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_generate_group",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _generate_group(self, rollout_id, group=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L344-L395",
      "symbol": "_GenerationActor"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 64,
      "end_line": 348,
      "expression": "await self.data_source.get_samples_async(1)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000982",
      "kind": "await",
      "line": 348,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            group = (await self.data_source.get_samples_async(1))[0]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L348",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 352,
      "expression": "await self._rebuffer(group)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000983",
      "kind": "await",
      "line": 352,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await self._rebuffer(group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L352",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 104,
      "end_line": 360,
      "expression": "await generate_and_rm_group(self.args, group, self.state.sampling_params.copy())",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000984",
      "kind": "await",
      "line": 360,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                group = await generate_and_rm_group(self.args, group, self.state.sampling_params.copy())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L360",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 364,
      "expression": "await self._rebuffer(group)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000985",
      "kind": "await",
      "line": 364,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await self._rebuffer(group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L364",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 13,
      "end_line": 379,
      "expression": "await asyncio.to_thread(\n                discard_rollout_group,\n                group,\n                self.args,\n                verdict.reason or \"dynamic_filter\",\n                controller=self.data_source.controller,\n            )",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000986",
      "kind": "await",
      "line": 373,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L373-L379",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 373,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000987",
      "kind": "api_call",
      "line": 373,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L373",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 13,
      "end_line": 384,
      "expression": "await publish_rollout_async(\n                group, self.args, rollout_id, group=True, controller=self.data_source.controller\n            )",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000988",
      "kind": "await",
      "line": 382,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            group = await publish_rollout_async(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L382-L384",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 17,
      "end_line": 389,
      "expression": "await publish_rollout_async(\n                    group, self.args, rollout_id, group=True, controller=self.data_source.controller\n                )",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000989",
      "kind": "await",
      "line": 387,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                accepted = await publish_rollout_async(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L387-L389",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 88,
      "end_line": 394,
      "expression": "await asyncio.to_thread(self.data_source.materialize_samples, group)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000990",
      "kind": "await",
      "line": 394,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            group = await asyncio.to_thread(self.data_source.materialize_samples, group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L394",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 394,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000991",
      "kind": "api_call",
      "line": 394,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            group = await asyncio.to_thread(self.data_source.materialize_samples, group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L394",
      "symbol": "_GenerationActor._generate_group"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 36,
      "end_line": 405,
      "expression": "    async def _rebuffer(self, group):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000992",
      "kind": "async_def",
      "line": 397,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_rebuffer",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _rebuffer(self, group):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L397-L405",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 401,
      "expression": "asyncio.get_running_loop",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000993",
      "kind": "api_call",
      "line": 401,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.get_running_loop().create_future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L401",
      "symbol": "_GenerationActor._rebuffer"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "asyncio.get_running_loop()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 401,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 401,
      "expression": "asyncio.get_running_loop().create_future",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000994",
      "kind": "instance_candidate",
      "line": 401,
      "module": "slime.rollout.fully_async_distributed",
      "name": "create_future",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.get_running_loop().create_future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L401",
      "symbol": "_GenerationActor._rebuffer"
    },
    {
      "category": "asyncio",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 53,
      "end_line": 404,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000995",
      "kind": "api_call",
      "line": 404,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self._rebuffer_task = asyncio.create_task(self._flush_rebuffers())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L404",
      "symbol": "_GenerationActor._rebuffer"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 405,
      "expression": "await asyncio.shield(future)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000996",
      "kind": "await",
      "line": 405,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.shield(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L405",
      "symbol": "_GenerationActor._rebuffer"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 405,
      "expression": "asyncio.shield",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000997",
      "kind": "api_call",
      "line": 405,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.shield",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.shield(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L405",
      "symbol": "_GenerationActor._rebuffer"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 38,
      "end_line": 422,
      "expression": "    async def _flush_rebuffers(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000998",
      "kind": "async_def",
      "line": 407,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_flush_rebuffers",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _flush_rebuffers(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L407-L422",
      "symbol": "_GenerationActor"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 409,
      "expression": "await asyncio.sleep(0.01)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-000999",
      "kind": "await",
      "line": 409,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L409",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 409,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001000",
      "kind": "api_call",
      "line": 409,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L409",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 104,
      "end_line": 413,
      "expression": "await asyncio.to_thread(self.data_source.add_samples, [group for group, _ in batch])",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001001",
      "kind": "await",
      "line": 413,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    await asyncio.to_thread(self.data_source.add_samples, [group for group, _ in batch])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L413",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 413,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001002",
      "kind": "api_call",
      "line": 413,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    await asyncio.to_thread(self.data_source.add_samples, [group for group, _ in batch])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L413",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 416,
      "expression": "future.set_exception",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001003",
      "kind": "instance_candidate",
      "line": 416,
      "module": "slime.rollout.fully_async_distributed",
      "name": "set_exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                        future.set_exception(error)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L416",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self._pending_rebuffers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 417,
      "expression": "self._pending_rebuffers.clear",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001004",
      "kind": "instance_candidate",
      "line": 417,
      "module": "slime.rollout.fully_async_distributed",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    self._pending_rebuffers.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L417",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 420,
      "expression": "future.set_result",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001005",
      "kind": "instance_candidate",
      "line": 420,
      "module": "slime.rollout.fully_async_distributed",
      "name": "set_result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "                    future.set_result(None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L420",
      "symbol": "_GenerationActor._flush_rebuffers"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "state",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 48,
      "end_line": 429,
      "expression": "state.get",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001006",
      "kind": "instance_candidate",
      "line": 429,
      "module": "slime.rollout.fully_async_distributed",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        if isinstance(state, dict) and state.get(\"worker_state\") == 1:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L429",
      "symbol": "_GenerationActor.load_state_dict"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 41,
      "end_line": 436,
      "expression": "    async def close(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001007",
      "kind": "async_def",
      "line": 434,
      "module": "slime.rollout.fully_async_distributed",
      "name": "close",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def close(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L434-L436",
      "symbol": "_GenerationActor"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 435,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001008",
      "kind": "api_call",
      "line": 435,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        future = asyncio.run_coroutine_threadsafe(self._close(), get_async_loop().loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L435",
      "symbol": "_GenerationActor.close"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 41,
      "end_line": 436,
      "expression": "await asyncio.wrap_future(future)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001009",
      "kind": "await",
      "line": 436,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L436",
      "symbol": "_GenerationActor.close"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 436,
      "expression": "asyncio.wrap_future",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001010",
      "kind": "api_call",
      "line": 436,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.wrap_future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.wrap_future(future)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L436",
      "symbol": "_GenerationActor.close"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 37,
      "end_line": 451,
      "expression": "    async def _close(self):",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001011",
      "kind": "async_def",
      "line": 438,
      "module": "slime.rollout.fully_async_distributed",
      "name": "_close",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "    async def _close(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L438-L451",
      "symbol": "_GenerationActor"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.producer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(self._produce())",
          "line": 292,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 441,
      "expression": "self.producer.cancel",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001012",
      "kind": "instance_candidate",
      "line": 441,
      "module": "slime.rollout.fully_async_distributed",
      "name": "cancel",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            self.producer.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L441",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 71,
      "end_line": 442,
      "expression": "await asyncio.gather(self.producer, return_exceptions=True)",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001013",
      "kind": "await",
      "line": 442,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(self.producer, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L442",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 442,
      "expression": "asyncio.gather",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001014",
      "kind": "api_call",
      "line": 442,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await asyncio.gather(self.producer, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L442",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 444,
      "expression": "await self._rebuffer_task",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001015",
      "kind": "await",
      "line": 444,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            await self._rebuffer_task",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L444",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 68,
      "end_line": 447,
      "expression": "await asyncio.get_running_loop().shutdown_default_executor()",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001016",
      "kind": "await",
      "line": 447,
      "module": "slime.rollout.fully_async_distributed",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.get_running_loop().shutdown_default_executor()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L447",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 447,
      "expression": "asyncio.get_running_loop",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001017",
      "kind": "api_call",
      "line": 447,
      "module": "slime.rollout.fully_async_distributed",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.get_running_loop().shutdown_default_executor()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L447",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "asyncio.get_running_loop()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 447,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 66,
      "end_line": 447,
      "expression": "asyncio.get_running_loop().shutdown_default_executor",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001018",
      "kind": "instance_candidate",
      "line": 447,
      "module": "slime.rollout.fully_async_distributed",
      "name": "shutdown_default_executor",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        await asyncio.get_running_loop().shutdown_default_executor()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L447",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.data_source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 448,
      "expression": "self.data_source.close",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001019",
      "kind": "instance_candidate",
      "line": 448,
      "module": "slime.rollout.fully_async_distributed",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        self.data_source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L448",
      "symbol": "_GenerationActor._close"
    },
    {
      "category": "candidates",
      "col": 63,
      "details": {
        "receiver": "node[\"Resources\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 84,
      "end_line": 502,
      "expression": "node[\"Resources\"].get",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001020",
      "kind": "instance_candidate",
      "line": 502,
      "module": "slime.rollout.fully_async_distributed",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "            (node for node in ray.nodes() if node[\"Alive\"] and node[\"Resources\"].get(\"CPU\", 0) >= 1),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L502",
      "symbol": "DistributedRollout.__init__.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "super()",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 576,
      "expression": "super().close",
      "file": "slime/rollout/fully_async_distributed.py",
      "id": "occ-001021",
      "kind": "instance_candidate",
      "line": 576,
      "module": "slime.rollout.fully_async_distributed",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_distributed.py.txt",
      "source_line": "        super().close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_distributed.py#L576",
      "symbol": "DistributedRollout.close"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 31
      },
      "end_col": 14,
      "end_line": 31,
      "expression": "import asyncio",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001022",
      "kind": "import",
      "line": 31,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L31",
      "symbol": "<module>"
    },
    {
      "category": "queue",
      "col": 7,
      "details": {
        "local_binding": "queue",
        "selective_module_import": false,
        "statement_line": 33
      },
      "end_col": 12,
      "end_line": 33,
      "expression": "import queue",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001023",
      "kind": "import",
      "line": 33,
      "module": "slime.rollout.fully_async_rollout",
      "name": "queue",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "import queue",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L33",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 34
      },
      "end_col": 16,
      "end_line": 34,
      "expression": "import threading",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001024",
      "kind": "import",
      "line": 34,
      "module": "slime.rollout.fully_async_rollout",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L34",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "data_buffer.consumers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 59,
      "expression": "data_buffer.consumers.get",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001025",
      "kind": "instance_candidate",
      "line": 59,
      "module": "slime.rollout.fully_async_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "    worker = data_buffer.consumers.get(\"fully_async\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L59",
      "symbol": "_get_worker"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "worker",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 74,
      "expression": "worker.start",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001026",
      "kind": "instance_candidate",
      "line": 74,
      "module": "slime.rollout.fully_async_rollout",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            worker.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L74",
      "symbol": "_get_worker"
    },
    {
      "category": "threading",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 88,
      "expression": "threading.Condition",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001027",
      "kind": "api_call",
      "line": 88,
      "module": "slime.rollout.fully_async_rollout",
      "name": "threading.Condition",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        self.condition = threading.Condition()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L88",
      "symbol": "AsyncRolloutWorker.__init__"
    },
    {
      "category": "queue",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 97,
      "expression": "queue.Queue",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001028",
      "kind": "api_reference",
      "line": 97,
      "module": "slime.rollout.fully_async_rollout",
      "name": "queue.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        self.output_queue: queue.Queue[tuple[int, list[Sample]]] = queue.Queue()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L97",
      "symbol": "AsyncRolloutWorker.__init__"
    },
    {
      "category": "queue",
      "col": 67,
      "details": {
        "access": "load"
      },
      "end_col": 78,
      "end_line": 97,
      "expression": "queue.Queue",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001029",
      "kind": "api_call",
      "line": 97,
      "module": "slime.rollout.fully_async_rollout",
      "name": "queue.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        self.output_queue: queue.Queue[tuple[int, list[Sample]]] = queue.Queue()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L97",
      "symbol": "AsyncRolloutWorker.__init__"
    },
    {
      "category": "threading",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 99,
      "expression": "threading.Thread",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001030",
      "kind": "api_reference",
      "line": 99,
      "module": "slime.rollout.fully_async_rollout",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        self.worker_thread: threading.Thread | None = None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L99",
      "symbol": "AsyncRolloutWorker.__init__"
    },
    {
      "category": "candidates",
      "col": 45,
      "details": {
        "receiver": "self.worker_thread",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 72,
      "end_line": 105,
      "expression": "self.worker_thread.is_alive",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001031",
      "kind": "instance_candidate",
      "line": 105,
      "module": "slime.rollout.fully_async_rollout",
      "name": "is_alive",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        if self.worker_thread is None or not self.worker_thread.is_alive():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L105",
      "symbol": "AsyncRolloutWorker.start"
    },
    {
      "category": "threading",
      "col": 33,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 106,
      "expression": "threading.Thread",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001032",
      "kind": "api_call",
      "line": 106,
      "module": "slime.rollout.fully_async_rollout",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            self.worker_thread = threading.Thread(target=self._thread_main, name=\"fully-async-rollout\", daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L106",
      "symbol": "AsyncRolloutWorker.start"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.worker_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._thread_main, name=\"fully-async-rollout\", daemon=True)",
          "line": 106,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 107,
      "expression": "self.worker_thread.start",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001033",
      "kind": "instance_candidate",
      "line": 107,
      "module": "slime.rollout.fully_async_rollout",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            self.worker_thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L107",
      "symbol": "AsyncRolloutWorker.start"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 88,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 114,
      "expression": "self.condition.wait",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001034",
      "kind": "instance_candidate",
      "line": 114,
      "module": "slime.rollout.fully_async_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                self.condition.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L114",
      "symbol": "AsyncRolloutWorker.pause"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.output_queue",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 97,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 133,
      "expression": "self.output_queue.put",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001035",
      "kind": "instance_candidate",
      "line": 133,
      "module": "slime.rollout.fully_async_rollout",
      "name": "put",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            self.output_queue.put(result)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L133",
      "symbol": "AsyncRolloutWorker.load_state_dict"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.worker_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._thread_main, name=\"fully-async-rollout\", daemon=True)",
          "line": 106,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 138,
      "expression": "self.worker_thread.join",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001036",
      "kind": "instance_candidate",
      "line": 138,
      "module": "slime.rollout.fully_async_rollout",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            self.worker_thread.join(timeout=35)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L138",
      "symbol": "AsyncRolloutWorker.close"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.worker_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._thread_main, name=\"fully-async-rollout\", daemon=True)",
          "line": 106,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 139,
      "expression": "self.worker_thread.is_alive",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001037",
      "kind": "instance_candidate",
      "line": 139,
      "module": "slime.rollout.fully_async_rollout",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            if self.worker_thread.is_alive():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L139",
      "symbol": "AsyncRolloutWorker.close"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "self.output_queue",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 97,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 61,
      "end_line": 153,
      "expression": "self.output_queue.get_nowait",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001038",
      "kind": "instance_candidate",
      "line": 153,
      "module": "slime.rollout.fully_async_rollout",
      "name": "get_nowait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                completed.append(self.output_queue.get_nowait())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L153",
      "symbol": "AsyncRolloutWorker.get_completed_groups"
    },
    {
      "category": "queue",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 154,
      "expression": "queue.Empty",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001039",
      "kind": "api_reference",
      "line": 154,
      "module": "slime.rollout.fully_async_rollout",
      "name": "queue.Empty",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            except queue.Empty:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L154",
      "symbol": "AsyncRolloutWorker.get_completed_groups"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.output_queue",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 97,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 159,
      "expression": "self.output_queue.qsize",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001040",
      "kind": "instance_candidate",
      "line": 159,
      "module": "slime.rollout.fully_async_rollout",
      "name": "qsize",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        return self.output_queue.qsize()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L159",
      "symbol": "AsyncRolloutWorker.queue_size"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 165,
      "expression": "asyncio.run",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001041",
      "kind": "api_call",
      "line": 165,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            asyncio.run(self._loop())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L165",
      "symbol": "AsyncRolloutWorker._thread_main"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 88,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 171,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001042",
      "kind": "instance_candidate",
      "line": 171,
      "module": "slime.rollout.fully_async_rollout",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L171",
      "symbol": "AsyncRolloutWorker._thread_main"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 239,
      "expression": "    async def _loop(self) -> None:",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001043",
      "kind": "async_def",
      "line": 173,
      "module": "slime.rollout.fully_async_rollout",
      "name": "_loop",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "    async def _loop(self) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L173-L239",
      "symbol": "AsyncRolloutWorker"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 174,
      "expression": "asyncio.Task",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001044",
      "kind": "api_reference",
      "line": 174,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.Task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        active_tasks: set[asyncio.Task] = set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L174",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "candidates",
      "col": 55,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 61,
      "end_line": 182,
      "expression": "t.done",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001045",
      "kind": "instance_candidate",
      "line": 182,
      "module": "slime.rollout.fully_async_rollout",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                    done = {t for t in active_tasks if t.done()}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L182",
      "symbol": "AsyncRolloutWorker._loop.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "t",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 185,
      "expression": "t.result",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001046",
      "kind": "instance_candidate",
      "line": 185,
      "module": "slime.rollout.fully_async_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                            t.result()  # results already handled in callback",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L185",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 46,
      "end_line": 192,
      "expression": "await asyncio.sleep(0)",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001047",
      "kind": "await",
      "line": 192,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                        await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L192",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "asyncio",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 192,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001048",
      "kind": "api_call",
      "line": 192,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                        await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L192",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "self.output_queue",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 97,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 199,
      "expression": "self.output_queue.qsize",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001049",
      "kind": "instance_candidate",
      "line": 199,
      "module": "slime.rollout.fully_async_rollout",
      "name": "qsize",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                    and self.output_queue.qsize() < max_concurrent",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L199",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "asyncio",
      "col": 31,
      "details": {
        "access": "load"
      },
      "end_col": 50,
      "end_line": 209,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001050",
      "kind": "api_call",
      "line": 209,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                        task = asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L209",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "task",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(\n                            generate_and_rm_group(\n                                self.args,\n                                group,\n                                sampling_params=self.state.sampling_params.copy(),\n                                evaluation=False,\n                            )\n                        )",
          "line": 209,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 217,
      "expression": "task.add_done_callback",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001051",
      "kind": "instance_candidate",
      "line": 217,
      "module": "slime.rollout.fully_async_rollout",
      "name": "add_done_callback",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                        task.add_done_callback(self._make_done_cb(gid))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L217",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 88,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 223,
      "expression": "self.condition.notify_all",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001052",
      "kind": "instance_candidate",
      "line": 223,
      "module": "slime.rollout.fully_async_rollout",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                    self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L223",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 55,
      "end_line": 226,
      "expression": "await asyncio.sleep(self.poll_interval)",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001053",
      "kind": "await",
      "line": 226,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                await asyncio.sleep(self.poll_interval)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L226",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 226,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001054",
      "kind": "api_call",
      "line": 226,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                await asyncio.sleep(self.poll_interval)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L226",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 60,
      "end_line": 237,
      "expression": "await asyncio.wait(active_tasks, timeout=30)",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001055",
      "kind": "await",
      "line": 237,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                await asyncio.wait(active_tasks, timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L237",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 237,
      "expression": "asyncio.wait",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001056",
      "kind": "api_call",
      "line": 237,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                await asyncio.wait(active_tasks, timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L237",
      "symbol": "AsyncRolloutWorker._loop"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 242,
      "expression": "asyncio.Task",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001057",
      "kind": "api_reference",
      "line": 242,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.Task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        def _cb(done_task: asyncio.Task) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L242",
      "symbol": "AsyncRolloutWorker._make_done_cb"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "done_task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 244,
      "expression": "done_task.result",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001058",
      "kind": "instance_candidate",
      "line": 244,
      "module": "slime.rollout.fully_async_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                result = done_task.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L244",
      "symbol": "AsyncRolloutWorker._make_done_cb._cb"
    },
    {
      "category": "asyncio",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 245,
      "expression": "asyncio.CancelledError",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001059",
      "kind": "api_reference",
      "line": 245,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            except asyncio.CancelledError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L245",
      "symbol": "AsyncRolloutWorker._make_done_cb._cb"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "logger",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 261,
      "expression": "logger.exception",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001060",
      "kind": "instance_candidate",
      "line": 261,
      "module": "slime.rollout.fully_async_rollout",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                    logger.exception(\"fully-async: failed to requeue aborted group\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L261",
      "symbol": "AsyncRolloutWorker._make_done_cb._cb"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.output_queue",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "queue.Queue()",
          "line": 97,
          "type": "queue.Queue"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 263,
      "expression": "self.output_queue.put",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001061",
      "kind": "instance_candidate",
      "line": 263,
      "module": "slime.rollout.fully_async_rollout",
      "name": "put",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            self.output_queue.put((gid, result))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L263",
      "symbol": "AsyncRolloutWorker._make_done_cb._cb"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 98,
      "end_line": 365,
      "expression": "async def _generate_rollout_async(args, rollout_id: int, data_buffer) -> RolloutFnTrainOutput | list[list[Sample]]:",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001062",
      "kind": "async_def",
      "line": 268,
      "module": "slime.rollout.fully_async_rollout",
      "name": "_generate_rollout_async",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "async def _generate_rollout_async(args, rollout_id: int, data_buffer) -> RolloutFnTrainOutput | list[list[Sample]]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L268-L365",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 28,
      "details": {},
      "end_col": 21,
      "end_line": 308,
      "expression": "await publish_rollout_async(\n                        group, args, rollout_id, group=True, controller=getattr(data_buffer, \"controller\", None)\n                    )",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001063",
      "kind": "await",
      "line": 306,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "                    group = await publish_rollout_async(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L306-L308",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 13,
      "end_line": 318,
      "expression": "await asyncio.to_thread(\n                discard_rollout_group,\n                group,\n                args,\n                verdict.reason or \"dynamic_filter\",\n                controller=getattr(data_buffer, \"controller\", None),\n            )",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001064",
      "kind": "await",
      "line": 312,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L312-L318",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 312,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001065",
      "kind": "api_call",
      "line": 312,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L312",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "candidates",
      "col": 35,
      "details": {
        "receiver": "drop_reasons",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 321,
      "expression": "drop_reasons.get",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001066",
      "kind": "instance_candidate",
      "line": 321,
      "module": "slime.rollout.fully_async_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            drop_reasons[reason] = drop_reasons.get(reason, 0) + 1",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L321",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 324,
      "expression": "await asyncio.sleep(0.05)",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001067",
      "kind": "await",
      "line": 324,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L324",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 324,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001068",
      "kind": "api_call",
      "line": 324,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L324",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 9,
      "end_line": 364,
      "expression": "await asyncio.to_thread(\n            finalize_rollout_groups,\n            args,\n            rollout_id,\n            collected,\n            metrics if filters_enabled else None,\n            controller=getattr(data_buffer, \"controller\", None),\n        )",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001069",
      "kind": "await",
      "line": 357,
      "module": "slime.rollout.fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        output = await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L357-L364",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 357,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/fully_async_rollout.py",
      "id": "occ-001070",
      "kind": "api_call",
      "line": 357,
      "module": "slime.rollout.fully_async_rollout",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/fully_async_rollout.py.txt",
      "source_line": "        output = await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/fully_async_rollout.py#L357",
      "symbol": "_generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 36,
      "end_line": 29,
      "expression": "async def reward_func(args, sample, **kwargs):",
      "file": "slime/rollout/on_policy_distillation.py",
      "id": "occ-001071",
      "kind": "async_def",
      "line": 8,
      "module": "slime.rollout.on_policy_distillation",
      "name": "reward_func",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/on_policy_distillation.py.txt",
      "source_line": "async def reward_func(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/on_policy_distillation.py#L8-L29",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "sample.multimodal_inputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 64,
      "end_line": 21,
      "expression": "sample.multimodal_inputs.get",
      "file": "slime/rollout/on_policy_distillation.py",
      "id": "occ-001072",
      "kind": "instance_candidate",
      "line": 21,
      "module": "slime.rollout.on_policy_distillation",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/on_policy_distillation.py.txt",
      "source_line": "    if sample.multimodal_inputs and sample.multimodal_inputs.get(\"images\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/on_policy_distillation.py#L21",
      "symbol": "reward_func"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 36,
      "end_line": 29,
      "expression": "    async with aiohttp.ClientSession(**session_kwargs) as session:",
      "file": "slime/rollout/on_policy_distillation.py",
      "id": "occ-001073",
      "kind": "async_with",
      "line": 26,
      "module": "slime.rollout.on_policy_distillation",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/on_policy_distillation.py.txt",
      "source_line": "    async with aiohttp.ClientSession(**session_kwargs) as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/on_policy_distillation.py#L26-L29",
      "symbol": "reward_func"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 36,
      "end_line": 29,
      "expression": "        async with session.post(args.rm_url, json=payload) as resp:",
      "file": "slime/rollout/on_policy_distillation.py",
      "id": "occ-001074",
      "kind": "async_with",
      "line": 27,
      "module": "slime.rollout.on_policy_distillation",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/on_policy_distillation.py.txt",
      "source_line": "        async with session.post(args.rm_url, json=payload) as resp:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/on_policy_distillation.py#L27-L29",
      "symbol": "reward_func"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 36,
      "end_line": 29,
      "expression": "await resp.json()",
      "file": "slime/rollout/on_policy_distillation.py",
      "id": "occ-001075",
      "kind": "await",
      "line": 29,
      "module": "slime.rollout.on_policy_distillation",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/on_policy_distillation.py.txt",
      "source_line": "            return await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/on_policy_distillation.py#L29",
      "symbol": "reward_func"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001076",
      "kind": "import",
      "line": 1,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 40,
      "end_line": 52,
      "expression": "async def remote_rm(args, sample: Sample, max_retries: int = 10):",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001077",
      "kind": "async_def",
      "line": 34,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "remote_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "async def remote_rm(args, sample: Sample, max_retries: int = 10):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L34-L52",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 40,
      "end_line": 45,
      "expression": "            async with session.post(args.rm_url, json=payload) as resp:",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001078",
      "kind": "async_with",
      "line": 43,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "            async with session.post(args.rm_url, json=payload) as resp:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L43-L45",
      "symbol": "remote_rm"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 40,
      "end_line": 45,
      "expression": "await resp.json()",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001079",
      "kind": "await",
      "line": 45,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "                return await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L45",
      "symbol": "remote_rm"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 40,
      "end_line": 52,
      "expression": "await asyncio.sleep(backoff)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001080",
      "kind": "await",
      "line": 52,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "            await asyncio.sleep(backoff)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L52",
      "symbol": "remote_rm"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 52,
      "expression": "asyncio.sleep",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001081",
      "kind": "api_call",
      "line": 52,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "            await asyncio.sleep(backoff)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L52",
      "symbol": "remote_rm"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 73,
      "end_line": 96,
      "expression": "async def async_rm(args, sample: Sample, **kwargs):",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001082",
      "kind": "async_def",
      "line": 55,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "async_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "async def async_rm(args, sample: Sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L55-L96",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 56,
      "end_line": 59,
      "expression": "await rm_function(args, sample, **kwargs)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001083",
      "kind": "await",
      "line": 59,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "        return await rm_function(args, sample, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L59",
      "symbol": "async_rm"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 56,
      "end_line": 63,
      "expression": "await rm_function(args, sample, **kwargs)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001084",
      "kind": "await",
      "line": 63,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "        return await rm_function(args, sample, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L63",
      "symbol": "async_rm"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 66,
      "expression": "metadata.get",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001085",
      "kind": "instance_candidate",
      "line": 66,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "    rm_type = (metadata.get(\"rm_type\") or args.rm_type or \"\").strip()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L66",
      "symbol": "async_rm"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 44,
      "end_line": 76,
      "expression": "await remote_rm(args, sample)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001086",
      "kind": "await",
      "line": 76,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "        return await remote_rm(args, sample)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L76",
      "symbol": "async_rm"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 18,
      "end_line": 110,
      "expression": "async def batched_async_rm(",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001087",
      "kind": "async_def",
      "line": 99,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "batched_async_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "async def batched_async_rm(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L99-L110",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 57,
      "end_line": 107,
      "expression": "await rm_function(args, samples, **kwargs)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001088",
      "kind": "await",
      "line": 107,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "        return await rm_function(args, samples, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L107",
      "symbol": "batched_async_rm"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 42,
      "end_line": 109,
      "expression": "await asyncio.gather(*tasks)",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001089",
      "kind": "await",
      "line": 109,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "    rewards = await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L109",
      "symbol": "batched_async_rm"
    },
    {
      "category": "asyncio",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 109,
      "expression": "asyncio.gather",
      "file": "slime/rollout/rm_hub/__init__.py",
      "id": "occ-001090",
      "kind": "api_call",
      "line": 109,
      "module": "slime.rollout.rm_hub.__init__",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/__init__.py.txt",
      "source_line": "    rewards = await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/__init__.py#L109",
      "symbol": "batched_async_rm"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 17,
      "end_line": 6,
      "expression": "import subprocess",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001091",
      "kind": "import",
      "line": 6,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 27,
      "expression": "subprocess.run",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001092",
      "kind": "api_call",
      "line": 27,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "            subprocess.run(clone_cmd, check=True, capture_output=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L27",
      "symbol": "_ensure_ifbench_repo"
    },
    {
      "category": "subprocess",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 62,
      "expression": "subprocess.run",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001093",
      "kind": "api_call",
      "line": 62,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "        subprocess.run(install_cmd, check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L62",
      "symbol": "_ensure_ifbench_dependencies"
    },
    {
      "category": "candidates",
      "col": 49,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 61,
      "end_line": 132,
      "expression": "metadata.get",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001094",
      "kind": "instance_candidate",
      "line": 132,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "    instruction_ids = _normalize_instruction_ids(metadata.get(\"instruction_id_list\") or [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L132",
      "symbol": "_build_input_example"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 137,
      "expression": "metadata.get",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001095",
      "kind": "instance_candidate",
      "line": 137,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "    prompt_text = metadata.get(\"prompt_text\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L137",
      "symbol": "_build_input_example"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 143,
      "expression": "metadata.get",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001096",
      "kind": "instance_candidate",
      "line": 143,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "    raw_kwargs = metadata.get(\"kwargs\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L143",
      "symbol": "_build_input_example"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 147,
      "expression": "metadata.get",
      "file": "slime/rollout/rm_hub/ifbench.py",
      "id": "occ-001097",
      "kind": "instance_candidate",
      "line": 147,
      "module": "slime.rollout.rm_hub.ifbench",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/ifbench.py.txt",
      "source_line": "        key=int(metadata.get(\"record_id\") or 0),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/ifbench.py#L147",
      "symbol": "_build_input_example"
    },
    {
      "category": "signal",
      "col": 7,
      "details": {
        "local_binding": "signal",
        "selective_module_import": false,
        "statement_line": 17
      },
      "end_col": 13,
      "end_line": 17,
      "expression": "import signal",
      "file": "slime/rollout/rm_hub/math_dapo_utils.py",
      "id": "occ-001098",
      "kind": "import",
      "line": 17,
      "module": "slime.rollout.rm_hub.math_dapo_utils",
      "name": "signal",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/math_dapo_utils.py.txt",
      "source_line": "import signal",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/math_dapo_utils.py#L17",
      "symbol": "<module>"
    },
    {
      "category": "signal",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 21,
      "end_line": 75,
      "expression": "signal.signal",
      "file": "slime/rollout/rm_hub/math_dapo_utils.py",
      "id": "occ-001099",
      "kind": "api_call",
      "line": 75,
      "module": "slime.rollout.rm_hub.math_dapo_utils",
      "name": "signal.signal",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/math_dapo_utils.py.txt",
      "source_line": "        signal.signal(signal.SIGALRM, self.handle_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/math_dapo_utils.py#L75",
      "symbol": "timeout.__enter__"
    },
    {
      "category": "signal",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 75,
      "expression": "signal.SIGALRM",
      "file": "slime/rollout/rm_hub/math_dapo_utils.py",
      "id": "occ-001100",
      "kind": "api_reference",
      "line": 75,
      "module": "slime.rollout.rm_hub.math_dapo_utils",
      "name": "signal.SIGALRM",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/math_dapo_utils.py.txt",
      "source_line": "        signal.signal(signal.SIGALRM, self.handle_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/math_dapo_utils.py#L75",
      "symbol": "timeout.__enter__"
    },
    {
      "category": "signal",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 76,
      "expression": "signal.alarm",
      "file": "slime/rollout/rm_hub/math_dapo_utils.py",
      "id": "occ-001101",
      "kind": "api_call",
      "line": 76,
      "module": "slime.rollout.rm_hub.math_dapo_utils",
      "name": "signal.alarm",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/math_dapo_utils.py.txt",
      "source_line": "        signal.alarm(self.seconds)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/math_dapo_utils.py#L76",
      "symbol": "timeout.__enter__"
    },
    {
      "category": "signal",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 79,
      "expression": "signal.alarm",
      "file": "slime/rollout/rm_hub/math_dapo_utils.py",
      "id": "occ-001102",
      "kind": "api_call",
      "line": 79,
      "module": "slime.rollout.rm_hub.math_dapo_utils",
      "name": "signal.alarm",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/rm_hub/math_dapo_utils.py.txt",
      "source_line": "        signal.alarm(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/rm_hub/math_dapo_utils.py#L79",
      "symbol": "timeout.__exit__"
    },
    {
      "category": "inspect-async",
      "col": 7,
      "details": {
        "local_binding": "inspect",
        "selective_module_import": true,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import inspect",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001103",
      "kind": "import",
      "line": 3,
      "module": "slime.rollout.sample_hooks",
      "name": "inspect",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "import inspect",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 24,
      "details": {
        "local_binding": "ContextVar",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 34,
      "end_line": 5,
      "expression": "from contextvars import ContextVar",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001104",
      "kind": "import",
      "line": 5,
      "module": "slime.rollout.sample_hooks",
      "name": "contextvars.ContextVar",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "from contextvars import ContextVar",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "contextvars",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 12,
      "expression": "ContextVar",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001105",
      "kind": "api_call",
      "line": 12,
      "module": "slime.rollout.sample_hooks",
      "name": "contextvars.ContextVar",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "_task_rollout_id = ContextVar(\"rollout_sample_hook_id\", default=None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "_task_rollout_id",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ContextVar(\"rollout_sample_hook_id\", default=None)",
          "line": 12,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 23,
      "expression": "_task_rollout_id.set",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001106",
      "kind": "instance_candidate",
      "line": 23,
      "module": "slime.rollout.sample_hooks",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "    token = _task_rollout_id.set(rollout_id)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L23",
      "symbol": "rollout_context"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "_task_rollout_id",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ContextVar(\"rollout_sample_hook_id\", default=None)",
          "line": 12,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 27,
      "expression": "_task_rollout_id.reset",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001107",
      "kind": "instance_candidate",
      "line": 27,
      "module": "slime.rollout.sample_hooks",
      "name": "reset",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "        _task_rollout_id.reset(token)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L27",
      "symbol": "rollout_context"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 49,
      "expression": "async def _apply_to_sample(args, sample: Sample, paths: list[str], **kwargs) -> Sample:",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001108",
      "kind": "async_def",
      "line": 37,
      "module": "slime.rollout.sample_hooks",
      "name": "_apply_to_sample",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "async def _apply_to_sample(args, sample: Sample, paths: list[str], **kwargs) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L37-L49",
      "symbol": "<module>"
    },
    {
      "category": "inspect-async",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 41,
      "expression": "inspect.isawaitable",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001109",
      "kind": "api_call",
      "line": 41,
      "module": "slime.rollout.sample_hooks",
      "name": "inspect.isawaitable",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "        if inspect.isawaitable(result):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L41",
      "symbol": "_apply_to_sample"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 33,
      "end_line": 42,
      "expression": "await result",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001110",
      "kind": "await",
      "line": 42,
      "module": "slime.rollout.sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "            result = await result",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L42",
      "symbol": "_apply_to_sample"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 97,
      "end_line": 64,
      "expression": "async def apply_rollout_sample_hooks(args, value, **kwargs):",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001111",
      "kind": "async_def",
      "line": 52,
      "module": "slime.rollout.sample_hooks",
      "name": "apply_rollout_sample_hooks",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "async def apply_rollout_sample_hooks(args, value, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L52-L64",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "_task_rollout_id",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ContextVar(\"rollout_sample_hook_id\", default=None)",
          "line": 12,
          "type": "contextvars.ContextVar"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 58,
      "expression": "_task_rollout_id.get",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001112",
      "kind": "instance_candidate",
      "line": 58,
      "module": "slime.rollout.sample_hooks",
      "name": "get",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "    rollout_id = _task_rollout_id.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L58",
      "symbol": "apply_rollout_sample_hooks"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 67,
      "end_line": 61,
      "expression": "await _apply_to_sample(args, value, paths, **kwargs)",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001113",
      "kind": "await",
      "line": 61,
      "module": "slime.rollout.sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "        return await _apply_to_sample(args, value, paths, **kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L61",
      "symbol": "apply_rollout_sample_hooks"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 70,
      "end_line": 63,
      "expression": "await apply_rollout_sample_hooks(args, item, **kwargs)",
      "file": "slime/rollout/sample_hooks.py",
      "id": "occ-001114",
      "kind": "await",
      "line": 63,
      "module": "slime.rollout.sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sample_hooks.py.txt",
      "source_line": "        return [await apply_rollout_sample_hooks(args, item, **kwargs) for item in value]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sample_hooks.py#L63",
      "symbol": "apply_rollout_sample_hooks.<comprehension>"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001115",
      "kind": "import",
      "line": 1,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "async-typing",
      "col": 28,
      "details": {
        "local_binding": "Awaitable",
        "selective_module_import": false,
        "statement_line": 8
      },
      "end_col": 37,
      "end_line": 8,
      "expression": "from collections.abc import Awaitable, Callable",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001116",
      "kind": "import",
      "line": 8,
      "module": "slime.rollout.sglang_rollout",
      "name": "collections.abc.Awaitable",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "from collections.abc import Awaitable, Callable",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L8",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 95,
      "expression": "asyncio.Semaphore",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001117",
      "kind": "api_call",
      "line": 95,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        self.semaphore = asyncio.Semaphore(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L95",
      "symbol": "GenerateState.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 121,
      "expression": "self.reset",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001118",
      "kind": "instance_candidate",
      "line": 121,
      "module": "slime.rollout.sglang_rollout",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        self.reset()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L121",
      "symbol": "GenerateState.__init__"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 145,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001119",
      "kind": "api_call",
      "line": 145,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L145",
      "symbol": "GenerateState.submit_generate_tasks"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 255,
      "expression": "async def generate(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001120",
      "kind": "async_def",
      "line": 158,
      "module": "slime.rollout.sglang_rollout",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def generate(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L158-L255",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "sample.multimodal_inputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 201,
      "expression": "sample.multimodal_inputs.get",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001121",
      "kind": "instance_candidate",
      "line": 201,
      "module": "slime.rollout.sglang_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    images = sample.multimodal_inputs.get(\"images\") if sample.multimodal_inputs else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L201",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 9,
      "end_line": 229,
      "expression": "await post(\n            url,\n            payload,\n            headers=headers,\n            score_centering_top_k=(\n                (0 if args.rollout_top_p < 1 else args.score_centering_top_k)\n                if getattr(args, \"use_score_centering\", False)\n                else None\n            ),\n        )",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001122",
      "kind": "await",
      "line": 220,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        output = await post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L220-L229",
      "symbol": "generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 45,
      "end_line": 274,
      "expression": "async def _run_request_abortable_generate(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001123",
      "kind": "async_def",
      "line": 258,
      "module": "slime.rollout.sglang_rollout",
      "name": "_run_request_abortable_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def _run_request_abortable_generate(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L258-L274",
      "symbol": "<module>"
    },
    {
      "category": "async-typing",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 261,
      "expression": "Awaitable",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001124",
      "kind": "api_reference",
      "line": 261,
      "module": "slime.rollout.sglang_rollout",
      "name": "collections.abc.Awaitable",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    generate_call: Awaitable[Sample | list[Sample]],",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L261",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 263,
      "expression": "asyncio.current_task",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001125",
      "kind": "api_call",
      "line": 263,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.current_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    task = asyncio.current_task()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L263",
      "symbol": "_run_request_abortable_generate"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 34,
      "end_line": 267,
      "expression": "await generate_call",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001126",
      "kind": "await",
      "line": 267,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        return await generate_call",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L267",
      "symbol": "_run_request_abortable_generate"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 268,
      "expression": "asyncio.CancelledError",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001127",
      "kind": "api_reference",
      "line": 268,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    except asyncio.CancelledError:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L268",
      "symbol": "_run_request_abortable_generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 44,
      "end_line": 285,
      "expression": "async def _run_server_abort_generate(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001128",
      "kind": "async_def",
      "line": 277,
      "module": "slime.rollout.sglang_rollout",
      "name": "_run_server_abort_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def _run_server_abort_generate(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L277-L285",
      "symbol": "<module>"
    },
    {
      "category": "async-typing",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 279,
      "expression": "Awaitable",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001129",
      "kind": "api_reference",
      "line": 279,
      "module": "slime.rollout.sglang_rollout",
      "name": "collections.abc.Awaitable",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    generate_call: Awaitable[Sample | list[Sample]],",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L279",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 34,
      "end_line": 283,
      "expression": "await generate_call",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001130",
      "kind": "await",
      "line": 283,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        return await generate_call",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L283",
      "symbol": "_run_server_abort_generate"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 376,
      "expression": "async def generate_and_rm(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001131",
      "kind": "async_def",
      "line": 289,
      "module": "slime.rollout.sglang_rollout",
      "name": "generate_and_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def generate_and_rm(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L289-L376",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 79,
      "end_line": 347,
      "expression": "    async with state.semaphore:",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001132",
      "kind": "async_with",
      "line": 329,
      "module": "slime.rollout.sglang_rollout",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    async with state.semaphore:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L329-L347",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 43,
      "end_line": 330,
      "expression": "await state.generation_pacer.wait()",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001133",
      "kind": "await",
      "line": 330,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        await state.generation_pacer.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L330",
      "symbol": "generate_and_rm"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "state.generation_pacer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 330,
      "expression": "state.generation_pacer.wait",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001134",
      "kind": "instance_candidate",
      "line": 330,
      "module": "slime.rollout.sglang_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        await state.generation_pacer.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L330",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 92,
      "end_line": 345,
      "expression": "await _run_request_abortable_generate(state, sample, generate_call)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001135",
      "kind": "await",
      "line": 345,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                sample = await _run_request_abortable_generate(state, sample, generate_call)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L345",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 79,
      "end_line": 347,
      "expression": "await _run_server_abort_generate(state, generate_call)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001136",
      "kind": "await",
      "line": 347,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                sample = await _run_server_abort_generate(state, generate_call)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L347",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 13,
      "details": {},
      "end_col": 82,
      "end_line": 350,
      "expression": "await apply_rollout_sample_hooks(args, sample, evaluation=evaluation)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001137",
      "kind": "await",
      "line": 350,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    sample = await apply_rollout_sample_hooks(args, sample, evaluation=evaluation)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L350",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 71,
      "end_line": 364,
      "expression": "await batched_async_rm(args, samples_need_reward)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001138",
      "kind": "await",
      "line": 364,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            rewards = await batched_async_rm(args, samples_need_reward)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L364",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 32,
      "details": {},
      "end_col": 60,
      "end_line": 374,
      "expression": "await async_rm(args, sample)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001139",
      "kind": "await",
      "line": 374,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                sample.reward = await async_rm(args, sample)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L374",
      "symbol": "generate_and_rm"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 16,
      "end_line": 423,
      "expression": "async def generate_and_rm_group(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001140",
      "kind": "async_def",
      "line": 384,
      "module": "slime.rollout.sglang_rollout",
      "name": "generate_and_rm_group",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def generate_and_rm_group(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L384-L423",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 411,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001141",
      "kind": "api_call",
      "line": 411,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            asyncio.create_task(generate_and_rm(args, sample, current_sampling_params, evaluation=evaluation))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L411",
      "symbol": "generate_and_rm_group"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 40,
      "end_line": 414,
      "expression": "await asyncio.gather(*tasks)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001142",
      "kind": "await",
      "line": 414,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    group = await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L414",
      "symbol": "generate_and_rm_group"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 414,
      "expression": "asyncio.gather",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001143",
      "kind": "api_call",
      "line": 414,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    group = await asyncio.gather(*tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L414",
      "symbol": "generate_and_rm_group"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 57,
      "end_line": 419,
      "expression": "await batched_async_rm(args, group)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001144",
      "kind": "await",
      "line": 419,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            rewards = await batched_async_rm(args, group)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L419",
      "symbol": "generate_and_rm_group"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 473,
      "expression": "async def abort(args: Namespace, rollout_id: int) -> list[list[Sample]]:",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001145",
      "kind": "async_def",
      "line": 426,
      "module": "slime.rollout.sglang_rollout",
      "name": "abort",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def abort(args: Namespace, rollout_id: int) -> list[list[Sample]]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L426-L473",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 436,
      "expression": "task.cancel",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001146",
      "kind": "instance_candidate",
      "line": 436,
      "module": "slime.rollout.sglang_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        task.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L436",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 57,
      "end_line": 441,
      "expression": "await get(f\"{router_url}/workers\")",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001147",
      "kind": "await",
      "line": 441,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            workers = (await get(f\"{router_url}/workers\"))[\"workers\"]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L441",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 106,
      "end_line": 445,
      "expression": "await get_live_router_workers(router_url, timeout=args.rollout_health_check_timeout)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001148",
      "kind": "await",
      "line": 445,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            workers = await get_live_router_workers(router_url, timeout=args.rollout_health_check_timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L445",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 44,
      "end_line": 447,
      "expression": "await abort_servers_until_idle(urls)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001149",
      "kind": "await",
      "line": 447,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        await abort_servers_until_idle(urls)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L447",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 68,
      "end_line": 449,
      "expression": "await asyncio.gather(*cancellable_tasks, return_exceptions=True)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001150",
      "kind": "await",
      "line": 449,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    await asyncio.gather(*cancellable_tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L449",
      "symbol": "abort"
    },
    {
      "category": "asyncio",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 449,
      "expression": "asyncio.gather",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001151",
      "kind": "api_call",
      "line": 449,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    await asyncio.gather(*cancellable_tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L449",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 31,
      "details": {},
      "end_col": 102,
      "end_line": 454,
      "expression": "await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001152",
      "kind": "await",
      "line": 454,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L454",
      "symbol": "abort"
    },
    {
      "category": "asyncio",
      "col": 37,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 454,
      "expression": "asyncio.wait",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001153",
      "kind": "api_call",
      "line": 454,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L454",
      "symbol": "abort"
    },
    {
      "category": "asyncio",
      "col": 78,
      "details": {
        "access": "load"
      },
      "end_col": 101,
      "end_line": 454,
      "expression": "asyncio.FIRST_COMPLETED",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001154",
      "kind": "api_reference",
      "line": 454,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.FIRST_COMPLETED",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L454",
      "symbol": "abort"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 461,
      "expression": "task.result",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001155",
      "kind": "instance_candidate",
      "line": 461,
      "module": "slime.rollout.sglang_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            group = task.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L461",
      "symbol": "abort"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 597,
      "expression": "async def generate_rollout_async(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001156",
      "kind": "async_def",
      "line": 476,
      "module": "slime.rollout.sglang_rollout",
      "name": "generate_rollout_async",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def generate_rollout_async(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L476-L597",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 26,
      "details": {},
      "end_col": 87,
      "end_line": 517,
      "expression": "await reader.get_samples_async(args.over_sampling_batch_size)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001157",
      "kind": "await",
      "line": 517,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                samples = await reader.get_samples_async(args.over_sampling_batch_size)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L517",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 31,
      "details": {},
      "end_col": 102,
      "end_line": 523,
      "expression": "await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001158",
      "kind": "await",
      "line": 523,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L523",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 37,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 523,
      "expression": "asyncio.wait",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001159",
      "kind": "api_call",
      "line": 523,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L523",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 78,
      "details": {
        "access": "load"
      },
      "end_col": 101,
      "end_line": 523,
      "expression": "asyncio.FIRST_COMPLETED",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001160",
      "kind": "api_reference",
      "line": 523,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.FIRST_COMPLETED",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        done, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L523",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "candidates",
      "col": 34,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 525,
      "expression": "task.result",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001161",
      "kind": "instance_candidate",
      "line": 525,
      "module": "slime.rollout.sglang_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            group: list[Sample] = task.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L525",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 21,
      "end_line": 551,
      "expression": "await asyncio.to_thread(\n                        discard_rollout_group,\n                        group,\n                        args,\n                        dynamic_filter_output.reason or \"dynamic_filter\",\n                        controller=controller,\n                    )",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001162",
      "kind": "await",
      "line": 545,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                    await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L545-L551",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 545,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001163",
      "kind": "api_call",
      "line": 545,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                    await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L545",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 28,
      "details": {},
      "end_col": 115,
      "end_line": 561,
      "expression": "await publish_rollout_async(group, args, rollout_id, group=True, controller=controller)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001164",
      "kind": "await",
      "line": 561,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                    group = await publish_rollout_async(group, args, rollout_id, group=True, controller=controller)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L561",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "pbar",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 14,
      "end_line": 565,
      "expression": "pbar.close",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001165",
      "kind": "instance_candidate",
      "line": 565,
      "module": "slime.rollout.sglang_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    pbar.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L565",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 51,
      "end_line": 571,
      "expression": "await abort(args, rollout_id)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001166",
      "kind": "await",
      "line": 571,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    aborted_samples = await abort(args, rollout_id)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L571",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "state",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 575,
      "expression": "state.reset",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001167",
      "kind": "instance_candidate",
      "line": 575,
      "module": "slime.rollout.sglang_rollout",
      "name": "reset",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    state.reset()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L575",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 103,
      "end_line": 585,
      "expression": "await publish_rollout_async(group, args, rollout_id, group=True, controller=controller)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001168",
      "kind": "await",
      "line": 585,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                await publish_rollout_async(group, args, rollout_id, group=True, controller=controller)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L585",
      "symbol": "generate_rollout_async.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 70,
      "end_line": 588,
      "expression": "await publish_rollout_async(data, args, rollout_id)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001169",
      "kind": "await",
      "line": 588,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "            data = await publish_rollout_async(data, args, rollout_id)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L588",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 9,
      "end_line": 596,
      "expression": "await asyncio.to_thread(\n            finalize_rollout_groups, args, rollout_id, data, metric_gatherer.collect(), controller=controller\n        )",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001170",
      "kind": "await",
      "line": 594,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        output = await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L594-L596",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 594,
      "expression": "asyncio.to_thread",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001171",
      "kind": "api_call",
      "line": 594,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        output = await asyncio.to_thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L594",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 48,
      "end_line": 613,
      "expression": "async def eval_rollout(args: Namespace, rollout_id: int) -> tuple[dict[str, dict[str, list[Any]]], list[list[Sample]]]:",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001172",
      "kind": "async_def",
      "line": 603,
      "module": "slime.rollout.sglang_rollout",
      "name": "eval_rollout",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def eval_rollout(args: Namespace, rollout_id: int) -> tuple[dict[str, dict[str, list[Any]]], list[list[Sample]]]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L603-L613",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 47,
      "end_line": 609,
      "expression": "await asyncio.gather(*coros)",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001173",
      "kind": "await",
      "line": 609,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    results_list = await asyncio.gather(*coros)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L609",
      "symbol": "eval_rollout"
    },
    {
      "category": "asyncio",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 609,
      "expression": "asyncio.gather",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001174",
      "kind": "api_call",
      "line": 609,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    results_list = await asyncio.gather(*coros)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L609",
      "symbol": "eval_rollout"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 751,
      "expression": "async def eval_rollout_single_dataset(",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001175",
      "kind": "async_def",
      "line": 616,
      "module": "slime.rollout.sglang_rollout",
      "name": "eval_rollout_single_dataset",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "async def eval_rollout_single_dataset(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L616-L751",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 712,
      "expression": "asyncio.create_task",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001176",
      "kind": "api_call",
      "line": 712,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "                asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L712",
      "symbol": "eval_rollout_single_dataset"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 725,
      "expression": "asyncio.as_completed",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001177",
      "kind": "api_call",
      "line": 725,
      "module": "slime.rollout.sglang_rollout",
      "name": "asyncio.as_completed",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    for coro in asyncio.as_completed(tasks):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L725",
      "symbol": "eval_rollout_single_dataset"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 27,
      "end_line": 726,
      "expression": "await coro",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001178",
      "kind": "await",
      "line": 726,
      "module": "slime.rollout.sglang_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "        sample = await coro",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L726",
      "symbol": "eval_rollout_single_dataset"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "pbar",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 14,
      "end_line": 740,
      "expression": "pbar.close",
      "file": "slime/rollout/sglang_rollout.py",
      "id": "occ-001179",
      "kind": "instance_candidate",
      "line": 740,
      "module": "slime.rollout.sglang_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_rollout.py.txt",
      "source_line": "    pbar.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_rollout.py#L740",
      "symbol": "eval_rollout_single_dataset"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 180,
      "expression": "async def generate_streaming(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001180",
      "kind": "async_def",
      "line": 48,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "generate_streaming",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "async def generate_streaming(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L48-L180",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "sample.multimodal_inputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 87,
      "expression": "sample.multimodal_inputs.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001181",
      "kind": "instance_candidate",
      "line": 87,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "    images = sample.multimodal_inputs.get(\"images\") if sample.multimodal_inputs else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L87",
      "symbol": "generate_streaming"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 29,
      "end_line": 163,
      "expression": "            async with client.stream(\"POST\", url, json=payload, headers=headers) as response:",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001182",
      "kind": "async_with",
      "line": 125,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "            async with client.stream(\"POST\", url, json=payload, headers=headers) as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L125-L163",
      "symbol": "generate_streaming"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 29,
      "end_line": 163,
      "expression": "                async for raw_line in response.aiter_lines():",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001183",
      "kind": "async_for",
      "line": 127,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "async for",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "                async for raw_line in response.aiter_lines():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L127-L163",
      "symbol": "generate_streaming"
    },
    {
      "category": "candidates",
      "col": 50,
      "details": {
        "receiver": "last_meta_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 68,
      "end_line": 159,
      "expression": "last_meta_info.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001184",
      "kind": "instance_candidate",
      "line": 159,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "                        update_terminal_info=bool(last_meta_info.get(\"finish_reason\")),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L159",
      "symbol": "generate_streaming"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "last_meta_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 165,
      "expression": "last_meta_info.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001185",
      "kind": "instance_candidate",
      "line": 165,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "            if last_meta_info.get(\"finish_reason\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L165",
      "symbol": "generate_streaming"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "sampling_params",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 55,
      "end_line": 171,
      "expression": "sampling_params.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001186",
      "kind": "instance_candidate",
      "line": 171,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "                skip_special_tokens=sampling_params.get(\"skip_special_tokens\", True),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L171",
      "symbol": "generate_streaming.<lambda>"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "last_meta_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 175,
      "expression": "last_meta_info.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001187",
      "kind": "instance_candidate",
      "line": 175,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "    if state.aborted and not last_meta_info.get(\"finish_reason\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L175",
      "symbol": "generate_streaming"
    },
    {
      "category": "candidates",
      "col": 13,
      "details": {
        "receiver": "last_meta_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 177,
      "expression": "last_meta_info.get",
      "file": "slime/rollout/sglang_streaming_rollout.py",
      "id": "occ-001188",
      "kind": "instance_candidate",
      "line": 177,
      "module": "slime.rollout.sglang_streaming_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/rollout/sglang_streaming_rollout.py.txt",
      "source_line": "    elif not last_meta_info.get(\"finish_reason\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sglang_streaming_rollout.py#L177",
      "symbol": "generate_streaming"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 2
      },
      "end_col": 11,
      "end_line": 2,
      "expression": "import time",
      "file": "slime/rollout/sleep_rollout.py",
      "id": "occ-001189",
      "kind": "import",
      "line": 2,
      "module": "slime.rollout.sleep_rollout",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/rollout/sleep_rollout.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sleep_rollout.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 10,
      "expression": "time.sleep",
      "file": "slime/rollout/sleep_rollout.py",
      "id": "occ-001190",
      "kind": "api_call",
      "line": 10,
      "module": "slime.rollout.sleep_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/rollout/sleep_rollout.py.txt",
      "source_line": "        time.sleep(3600)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/rollout/sleep_rollout.py#L10",
      "symbol": "sleep"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 14
      },
      "end_col": 16,
      "end_line": 14,
      "expression": "import threading",
      "file": "slime/utils/accelerator/__init__.py",
      "id": "occ-001191",
      "kind": "import",
      "line": 14,
      "module": "slime.utils.accelerator.__init__",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/accelerator/__init__.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/accelerator/__init__.py#L14",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 39,
      "expression": "threading.RLock",
      "file": "slime/utils/accelerator/__init__.py",
      "id": "occ-001192",
      "kind": "api_call",
      "line": 39,
      "module": "slime.utils.accelerator.__init__",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/accelerator/__init__.py.txt",
      "source_line": "_SELECTION_LOCK = threading.RLock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/accelerator/__init__.py#L39",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "_REGISTRY",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 276,
      "expression": "_REGISTRY.get",
      "file": "slime/utils/accelerator/__init__.py",
      "id": "occ-001193",
      "kind": "instance_candidate",
      "line": 276,
      "module": "slime.utils.accelerator.__init__",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/accelerator/__init__.py.txt",
      "source_line": "    entry = _REGISTRY.get(name)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/accelerator/__init__.py#L276",
      "symbol": "_make_selected"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "\", \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 278,
      "expression": "\", \".join",
      "file": "slime/utils/accelerator/__init__.py",
      "id": "occ-001194",
      "kind": "instance_candidate",
      "line": 278,
      "module": "slime.utils.accelerator.__init__",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/accelerator/__init__.py.txt",
      "source_line": "        available = \", \".join(sorted(_REGISTRY))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/accelerator/__init__.py#L278",
      "symbol": "_make_selected"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "\", \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 332,
      "expression": "\", \".join",
      "file": "slime/utils/accelerator/__init__.py",
      "id": "occ-001195",
      "kind": "instance_candidate",
      "line": 332,
      "module": "slime.utils.accelerator.__init__",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/accelerator/__init__.py.txt",
      "source_line": "        registered = \", \".join(sorted(_REGISTRY))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/accelerator/__init__.py#L332",
      "symbol": "get_accelerator"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001196",
      "kind": "import",
      "line": 1,
      "module": "slime.utils.async_utils",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 2
      },
      "end_col": 16,
      "end_line": 2,
      "expression": "import threading",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001197",
      "kind": "import",
      "line": 2,
      "module": "slime.utils.async_utils",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 31,
      "expression": "    async def wait(self):",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001198",
      "kind": "async_def",
      "line": 24,
      "module": "slime.utils.async_utils",
      "name": "wait",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "    async def wait(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L24-L31",
      "symbol": "AsyncPacer"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 25,
      "expression": "asyncio.get_running_loop",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001199",
      "kind": "api_call",
      "line": 25,
      "module": "slime.utils.async_utils",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        loop = asyncio.get_running_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L25",
      "symbol": "AsyncPacer.wait"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 25,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 26,
      "expression": "loop.create_future",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001200",
      "kind": "instance_candidate",
      "line": 26,
      "module": "slime.utils.async_utils",
      "name": "create_future",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        future = loop.create_future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L26",
      "symbol": "AsyncPacer.wait"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 25,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 30,
      "expression": "loop.call_soon",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001201",
      "kind": "instance_candidate",
      "line": 30,
      "module": "slime.utils.async_utils",
      "name": "call_soon",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "            loop.call_soon(self._release)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L30",
      "symbol": "AsyncPacer.wait"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 20,
      "end_line": 31,
      "expression": "await future",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001202",
      "kind": "await",
      "line": 31,
      "module": "slime.utils.async_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        await future",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L31",
      "symbol": "AsyncPacer.wait"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 36,
      "expression": "future.done",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001203",
      "kind": "instance_candidate",
      "line": 36,
      "module": "slime.utils.async_utils",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "            if not future.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L36",
      "symbol": "AsyncPacer._release"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 37,
      "expression": "future.set_result",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001204",
      "kind": "instance_candidate",
      "line": 37,
      "module": "slime.utils.async_utils",
      "name": "set_result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "                future.set_result(None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L37",
      "symbol": "AsyncPacer._release"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 40,
      "expression": "asyncio.get_running_loop",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001205",
      "kind": "api_call",
      "line": 40,
      "module": "slime.utils.async_utils",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "            asyncio.get_running_loop().call_later(0.001, self._release)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L40",
      "symbol": "AsyncPacer._release"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "asyncio.get_running_loop()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 40,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 40,
      "expression": "asyncio.get_running_loop().call_later",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001206",
      "kind": "instance_candidate",
      "line": 40,
      "module": "slime.utils.async_utils",
      "name": "call_later",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "            asyncio.get_running_loop().call_later(0.001, self._release)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L40",
      "symbol": "AsyncPacer._release"
    },
    {
      "category": "asyncio",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 48,
      "expression": "asyncio.new_event_loop",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001207",
      "kind": "api_call",
      "line": 48,
      "module": "slime.utils.async_utils",
      "name": "asyncio.new_event_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        self.loop = asyncio.new_event_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L48",
      "symbol": "AsyncLoopThread.__init__"
    },
    {
      "category": "threading",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 49,
      "expression": "threading.Thread",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001208",
      "kind": "api_call",
      "line": 49,
      "module": "slime.utils.async_utils",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        self._thread = threading.Thread(target=self._start_loop, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L49",
      "symbol": "AsyncLoopThread.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self._start_loop, daemon=True)",
          "line": 49,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 50,
      "expression": "self._thread.start",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001209",
      "kind": "instance_candidate",
      "line": 50,
      "module": "slime.utils.async_utils",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        self._thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L50",
      "symbol": "AsyncLoopThread.__init__"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 53,
      "expression": "asyncio.set_event_loop",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001210",
      "kind": "api_call",
      "line": 53,
      "module": "slime.utils.async_utils",
      "name": "asyncio.set_event_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        asyncio.set_event_loop(self.loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L53",
      "symbol": "AsyncLoopThread._start_loop"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.new_event_loop()",
          "line": 48,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 54,
      "expression": "self.loop.run_forever",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001211",
      "kind": "instance_candidate",
      "line": 54,
      "module": "slime.utils.async_utils",
      "name": "run_forever",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        self.loop.run_forever()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L54",
      "symbol": "AsyncLoopThread._start_loop"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 47,
      "end_line": 58,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001212",
      "kind": "api_call",
      "line": 58,
      "module": "slime.utils.async_utils",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        return asyncio.run_coroutine_threadsafe(coro, self.loop).result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L58",
      "symbol": "AsyncLoopThread.run"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "asyncio.run_coroutine_threadsafe(coro, self.loop)",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.run_coroutine_threadsafe(coro, self.loop)",
          "line": 58,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 71,
      "end_line": 58,
      "expression": "asyncio.run_coroutine_threadsafe(coro, self.loop).result",
      "file": "slime/utils/async_utils.py",
      "id": "occ-001213",
      "kind": "instance_candidate",
      "line": 58,
      "module": "slime.utils.async_utils",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/async_utils.py.txt",
      "source_line": "        return asyncio.run_coroutine_threadsafe(coro, self.loop).result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/async_utils.py#L58",
      "symbol": "AsyncLoopThread.run"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 9
      },
      "end_col": 17,
      "end_line": 9,
      "expression": "import subprocess",
      "file": "slime/utils/external_utils/command_utils.py",
      "id": "occ-001214",
      "kind": "import",
      "line": 9,
      "module": "slime.utils.external_utils.command_utils",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/external_utils/command_utils.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/external_utils/command_utils.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 117,
      "expression": "subprocess.run",
      "file": "slime/utils/external_utils/command_utils.py",
      "id": "occ-001215",
      "kind": "api_call",
      "line": 117,
      "module": "slime.utils.external_utils.command_utils",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/external_utils/command_utils.py.txt",
      "source_line": "            subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/external_utils/command_utils.py#L117",
      "symbol": "execute_train"
    },
    {
      "category": "subprocess",
      "col": 42,
      "details": {
        "access": "load"
      },
      "end_col": 60,
      "end_line": 118,
      "expression": "subprocess.DEVNULL",
      "file": "slime/utils/external_utils/command_utils.py",
      "id": "occ-001216",
      "kind": "api_reference",
      "line": 118,
      "module": "slime.utils.external_utils.command_utils",
      "name": "subprocess.DEVNULL",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/external_utils/command_utils.py.txt",
      "source_line": "                [\"ray\", \"status\"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/external_utils/command_utils.py#L118",
      "symbol": "execute_train"
    },
    {
      "category": "subprocess",
      "col": 69,
      "details": {
        "access": "load"
      },
      "end_col": 87,
      "end_line": 118,
      "expression": "subprocess.DEVNULL",
      "file": "slime/utils/external_utils/command_utils.py",
      "id": "occ-001217",
      "kind": "api_reference",
      "line": 118,
      "module": "slime.utils.external_utils.command_utils",
      "name": "subprocess.DEVNULL",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/external_utils/command_utils.py.txt",
      "source_line": "                [\"ray\", \"status\"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/external_utils/command_utils.py#L118",
      "symbol": "execute_train"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 2
      },
      "end_col": 16,
      "end_line": 2,
      "expression": "import threading",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001218",
      "kind": "import",
      "line": 2,
      "module": "slime.utils.health_monitor",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 27,
      "expression": "threading.Event",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001219",
      "kind": "api_call",
      "line": 27,
      "module": "slime.utils.health_monitor",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._stop_event = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L27",
      "symbol": "RolloutHealthMonitor.__init__"
    },
    {
      "category": "threading",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 28,
      "expression": "threading.Event",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001220",
      "kind": "api_call",
      "line": 28,
      "module": "slime.utils.health_monitor",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._pause_event = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L28",
      "symbol": "RolloutHealthMonitor.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 29,
      "expression": "self._pause_event.set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001221",
      "kind": "instance_candidate",
      "line": 29,
      "module": "slime.utils.health_monitor",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._pause_event.set()  # Engines may be offloaded before the first rollout.",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L29",
      "symbol": "RolloutHealthMonitor.__init__"
    },
    {
      "category": "threading",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 34,
      "expression": "threading.Lock",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001222",
      "kind": "api_call",
      "line": 34,
      "module": "slime.utils.health_monitor",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._check_lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L34",
      "symbol": "RolloutHealthMonitor.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 50,
      "expression": "self._stop_event.clear",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001223",
      "kind": "instance_candidate",
      "line": 50,
      "module": "slime.utils.health_monitor",
      "name": "clear",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._stop_event.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L50",
      "symbol": "RolloutHealthMonitor.start"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 51,
      "expression": "self._pause_event.set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001224",
      "kind": "instance_candidate",
      "line": 51,
      "module": "slime.utils.health_monitor",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._pause_event.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L51",
      "symbol": "RolloutHealthMonitor.start"
    },
    {
      "category": "threading",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 53,
      "expression": "threading.Thread",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001225",
      "kind": "api_call",
      "line": 53,
      "module": "slime.utils.health_monitor",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._thread = threading.Thread(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L53",
      "symbol": "RolloutHealthMonitor.start"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(\n            target=self._health_monitor_loop,\n            name=\"RolloutHealthMonitor\",\n            daemon=True,\n        )",
          "line": 53,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 58,
      "expression": "self._thread.start",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001226",
      "kind": "instance_candidate",
      "line": 58,
      "module": "slime.utils.health_monitor",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L58",
      "symbol": "RolloutHealthMonitor.start"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 68,
      "expression": "self._stop_event.set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001227",
      "kind": "instance_candidate",
      "line": 68,
      "module": "slime.utils.health_monitor",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._stop_event.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L68",
      "symbol": "RolloutHealthMonitor.stop"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(\n            target=self._health_monitor_loop,\n            name=\"RolloutHealthMonitor\",\n            daemon=True,\n        )",
          "line": 53,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 71,
      "expression": "self._thread.join",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001228",
      "kind": "instance_candidate",
      "line": 71,
      "module": "slime.utils.health_monitor",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._thread.join(timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L71",
      "symbol": "RolloutHealthMonitor.stop"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "self._thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(\n            target=self._health_monitor_loop,\n            name=\"RolloutHealthMonitor\",\n            daemon=True,\n        )",
          "line": 53,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 72,
      "expression": "self._thread.is_alive",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001229",
      "kind": "instance_candidate",
      "line": 72,
      "module": "slime.utils.health_monitor",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        if self._thread.is_alive():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L72",
      "symbol": "RolloutHealthMonitor.stop"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 82,
      "expression": "self._pause_event.set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001230",
      "kind": "instance_candidate",
      "line": 82,
      "module": "slime.utils.health_monitor",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._pause_event.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L82",
      "symbol": "RolloutHealthMonitor.pause"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self._check_lock",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Lock()",
          "line": 34,
          "type": "threading.Lock"
        },
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 84,
      "expression": "self._check_lock.acquire",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001231",
      "kind": "instance_candidate",
      "line": 84,
      "module": "slime.utils.health_monitor",
      "name": "acquire",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        if not self._check_lock.acquire(timeout=self._check_timeout if timeout is None else timeout):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L84",
      "symbol": "RolloutHealthMonitor.pause"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._check_lock",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Lock()",
          "line": 34,
          "type": "threading.Lock"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 86,
      "expression": "self._check_lock.release",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001232",
      "kind": "instance_candidate",
      "line": 86,
      "module": "slime.utils.health_monitor",
      "name": "release",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._check_lock.release()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L86",
      "symbol": "RolloutHealthMonitor.pause"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 92,
      "expression": "self._pause_event.clear",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001233",
      "kind": "instance_candidate",
      "line": 92,
      "module": "slime.utils.health_monitor",
      "name": "clear",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        self._pause_event.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L92",
      "symbol": "RolloutHealthMonitor.resume"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 95,
      "expression": "self._stop_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001234",
      "kind": "instance_candidate",
      "line": 95,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "        while not self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L95",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 97,
      "expression": "self._pause_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001235",
      "kind": "instance_candidate",
      "line": 97,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            while self._pause_event.is_set() and not self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L97",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 53,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 76,
      "end_line": 97,
      "expression": "self._stop_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001236",
      "kind": "instance_candidate",
      "line": 97,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            while self._pause_event.is_set() and not self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L97",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 98,
      "expression": "self._stop_event.wait",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001237",
      "kind": "instance_candidate",
      "line": 98,
      "module": "slime.utils.health_monitor",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "                self._stop_event.wait(timeout=0.5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L98",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 100,
      "expression": "self._stop_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001238",
      "kind": "instance_candidate",
      "line": 100,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L100",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 106,
      "expression": "self._stop_event.wait",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001239",
      "kind": "instance_candidate",
      "line": 106,
      "module": "slime.utils.health_monitor",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "                if self._stop_event.wait(self._check_first_wait):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L106",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 109,
      "expression": "self._pause_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001240",
      "kind": "instance_candidate",
      "line": 109,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "                if self._pause_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L109",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 116,
      "expression": "self._pause_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001241",
      "kind": "instance_candidate",
      "line": 116,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if not self._pause_event.is_set() and not self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L116",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 77,
      "end_line": 116,
      "expression": "self._stop_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001242",
      "kind": "instance_candidate",
      "line": 116,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if not self._pause_event.is_set() and not self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L116",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "logger",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 120,
      "expression": "logger.exception",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001243",
      "kind": "instance_candidate",
      "line": 120,
      "module": "slime.utils.health_monitor",
      "name": "exception",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "                    logger.exception(\"Failed to unregister an unhealthy worker; retaining it for the next check\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L120",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 123,
      "expression": "self._stop_event.wait",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001244",
      "kind": "instance_candidate",
      "line": 123,
      "module": "slime.utils.health_monitor",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if self._stop_event.wait(self._check_interval):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L123",
      "symbol": "RolloutHealthMonitor._health_monitor_loop"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self._stop_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 27,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 134,
      "expression": "self._stop_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001245",
      "kind": "instance_candidate",
      "line": 134,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if self._stop_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L134",
      "symbol": "RolloutHealthMonitor._run_health_checks"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "self._pause_event",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 28,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 53,
      "end_line": 136,
      "expression": "self._pause_event.is_set",
      "file": "slime/utils/health_monitor.py",
      "id": "occ-001246",
      "kind": "instance_candidate",
      "line": 136,
      "module": "slime.utils.health_monitor",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/health_monitor.py.txt",
      "source_line": "            if not force and self._pause_event.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/health_monitor.py#L136",
      "symbol": "RolloutHealthMonitor._run_health_checks"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001247",
      "kind": "import",
      "line": 1,
      "module": "slime.utils.http_utils",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 60,
      "end_line": 183,
      "expression": "    async def handle_async_request(self, request):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001248",
      "kind": "async_def",
      "line": 180,
      "module": "slime.utils.http_utils",
      "name": "handle_async_request",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    async def handle_async_request(self, request):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L180-L183",
      "symbol": "_ShardedHTTPTransport"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 60,
      "end_line": 183,
      "expression": "await transport.handle_async_request(request)",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001249",
      "kind": "await",
      "line": 183,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        return await transport.handle_async_request(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L183",
      "symbol": "_ShardedHTTPTransport.handle_async_request"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 85,
      "end_line": 186,
      "expression": "    async def aclose(self):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001250",
      "kind": "async_def",
      "line": 185,
      "module": "slime.utils.http_utils",
      "name": "aclose",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    async def aclose(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L185-L186",
      "symbol": "_ShardedHTTPTransport"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 85,
      "end_line": 186,
      "expression": "await asyncio.gather(*(transport.aclose() for transport in self._transports))",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001251",
      "kind": "await",
      "line": 186,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        await asyncio.gather(*(transport.aclose() for transport in self._transports))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L186",
      "symbol": "_ShardedHTTPTransport.aclose"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 186,
      "expression": "asyncio.gather",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001252",
      "kind": "api_call",
      "line": 186,
      "module": "slime.utils.http_utils",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        await asyncio.gather(*(transport.aclose() for transport in self._transports))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L186",
      "symbol": "_ShardedHTTPTransport.aclose"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 230,
      "expression": "async def _post(client, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001253",
      "kind": "async_def",
      "line": 189,
      "module": "slime.utils.http_utils",
      "name": "_post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "async def _post(client, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L189-L230",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 63,
      "end_line": 197,
      "expression": "await client.post(url, **request_kwargs)",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001254",
      "kind": "await",
      "line": 197,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "            response = await client.post(url, **request_kwargs)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L197",
      "symbol": "_post"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 44,
      "end_line": 199,
      "expression": "await response.aread()",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001255",
      "kind": "await",
      "line": 199,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "            content = await response.aread()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L199",
      "symbol": "_post"
    },
    {
      "category": "syntax",
      "col": 29,
      "details": {},
      "end_col": 117,
      "end_line": 204,
      "expression": "await asyncio.to_thread(decode_score_centering_response, content, score_centering_top_k)",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001256",
      "kind": "await",
      "line": 204,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "                    output = await asyncio.to_thread(decode_score_centering_response, content, score_centering_top_k)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L204",
      "symbol": "_post"
    },
    {
      "category": "asyncio",
      "col": 35,
      "details": {
        "access": "load"
      },
      "end_col": 52,
      "end_line": 204,
      "expression": "asyncio.to_thread",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001257",
      "kind": "api_call",
      "line": 204,
      "module": "slime.utils.http_utils",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "                    output = await asyncio.to_thread(decode_score_centering_response, content, score_centering_top_k)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L204",
      "symbol": "_post"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 34,
      "end_line": 223,
      "expression": "await asyncio.sleep(1)",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001258",
      "kind": "await",
      "line": 223,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "            await asyncio.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L223",
      "symbol": "_post"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 223,
      "expression": "asyncio.sleep",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001259",
      "kind": "api_call",
      "line": 223,
      "module": "slime.utils.http_utils",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "            await asyncio.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L223",
      "symbol": "_post"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 39,
      "end_line": 227,
      "expression": "await response.aclose()",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001260",
      "kind": "await",
      "line": 227,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "                await response.aclose()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L227",
      "symbol": "_post"
    },
    {
      "category": "candidates",
      "col": 39,
      "details": {
        "receiver": "n",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 282,
      "expression": "n.get",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001261",
      "kind": "instance_candidate",
      "line": 282,
      "module": "slime.utils.http_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    nodes = [n for n in ray.nodes() if n.get(\"Alive\")]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L282",
      "symbol": "_init_ray_distributed_post.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 13,
      "end_line": 306,
      "expression": "        async def do_post(self, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001262",
      "kind": "async_def",
      "line": 297,
      "module": "slime.utils.http_utils",
      "name": "do_post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        async def do_post(self, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L297-L306",
      "symbol": "_init_ray_distributed_post._HttpPosterActor"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 13,
      "end_line": 306,
      "expression": "await _post(\n                self._client,\n                url,\n                payload,\n                max_retries,\n                headers=headers,\n                timeout=timeout,\n                score_centering_top_k=score_centering_top_k,\n            )",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001263",
      "kind": "await",
      "line": 298,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "            return await _post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L298-L306",
      "symbol": "_init_ray_distributed_post._HttpPosterActor.do_post"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 364,
      "expression": "async def post(url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001264",
      "kind": "async_def",
      "line": 331,
      "module": "slime.utils.http_utils",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "async def post(url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L331-L364",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 36,
      "end_line": 351,
      "expression": "await obj_ref",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001265",
      "kind": "await",
      "line": 351,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "                return await obj_ref",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L351",
      "symbol": "post"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 5,
      "end_line": 364,
      "expression": "await _post(\n        _http_client,\n        url,\n        payload,\n        max_retries,\n        headers=headers,\n        timeout=timeout,\n        score_centering_top_k=score_centering_top_k,\n    )",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001266",
      "kind": "await",
      "line": 356,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    return await _post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L356-L364",
      "symbol": "post"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 31,
      "end_line": 374,
      "expression": "async def get(url, *, timeout=None):",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001267",
      "kind": "async_def",
      "line": 367,
      "module": "slime.utils.http_utils",
      "name": "get",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "async def get(url, *, timeout=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L367-L374",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 59,
      "end_line": 368,
      "expression": "await _http_client.get(url, timeout=timeout)",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001268",
      "kind": "await",
      "line": 368,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    response = await _http_client.get(url, timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L368",
      "symbol": "get"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "_http_client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 368,
      "expression": "_http_client.get",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001269",
      "kind": "instance_candidate",
      "line": 368,
      "module": "slime.utils.http_utils",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "    response = await _http_client.get(url, timeout=timeout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L368",
      "symbol": "get"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 40,
      "end_line": 371,
      "expression": "await response.aread()",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001270",
      "kind": "await",
      "line": 371,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        content = await response.aread()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L371",
      "symbol": "get"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 31,
      "end_line": 374,
      "expression": "await response.aclose()",
      "file": "slime/utils/http_utils.py",
      "id": "occ-001271",
      "kind": "await",
      "line": 374,
      "module": "slime.utils.http_utils",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime/utils/http_utils.py.txt",
      "source_line": "        await response.aclose()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/http_utils.py#L374",
      "symbol": "get"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 2
      },
      "end_col": 17,
      "end_line": 2,
      "expression": "import subprocess",
      "file": "slime/utils/misc.py",
      "id": "occ-001272",
      "kind": "import",
      "line": 2,
      "module": "slime.utils.misc",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/misc.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/misc.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 83,
      "expression": "subprocess.run",
      "file": "slime/utils/misc.py",
      "id": "occ-001273",
      "kind": "api_call",
      "line": 83,
      "module": "slime.utils.misc",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/misc.py.txt",
      "source_line": "        result = subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/misc.py#L83",
      "symbol": "exec_command"
    },
    {
      "category": "subprocess",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 90,
      "expression": "subprocess.CalledProcessError",
      "file": "slime/utils/misc.py",
      "id": "occ-001274",
      "kind": "api_reference",
      "line": 90,
      "module": "slime.utils.misc",
      "name": "subprocess.CalledProcessError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/misc.py.txt",
      "source_line": "    except subprocess.CalledProcessError as e:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/misc.py#L90",
      "symbol": "exec_command"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 2
      },
      "end_col": 9,
      "end_line": 2,
      "expression": "import os",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001275",
      "kind": "import",
      "line": 2,
      "module": "slime.utils.reloadable_process_group",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 44,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001276",
      "kind": "api_call",
      "line": 44,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L44",
      "symbol": "register_default_process_group"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "default_process_group_states",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 79,
      "expression": "default_process_group_states.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001277",
      "kind": "instance_candidate",
      "line": 79,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L79",
      "symbol": "_destroy_default_accelerator_process_group"
    },
    {
      "category": "os-process",
      "col": 45,
      "details": {
        "access": "load"
      },
      "end_col": 54,
      "end_line": 79,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001278",
      "kind": "api_call",
      "line": 79,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L79",
      "symbol": "_destroy_default_accelerator_process_group"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "default_process_group_states",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 109,
      "expression": "default_process_group_states.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001279",
      "kind": "instance_candidate",
      "line": 109,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L109",
      "symbol": "_reload_default_process_group"
    },
    {
      "category": "os-process",
      "col": 45,
      "details": {
        "access": "load"
      },
      "end_col": 54,
      "end_line": 109,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001280",
      "kind": "api_call",
      "line": 109,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L109",
      "symbol": "_reload_default_process_group"
    },
    {
      "category": "os-process",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 146,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001281",
      "kind": "api_call",
      "line": 146,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L146",
      "symbol": "monkey_patch_torch_dist"
    },
    {
      "category": "candidates",
      "col": 58,
      "details": {
        "receiver": "kwargs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 68,
      "end_line": 158,
      "expression": "kwargs.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001282",
      "kind": "instance_candidate",
      "line": 158,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        explicit_backend = args[2] if len(args) >= 3 else kwargs.get(\"backend\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L158",
      "symbol": "monkey_patch_torch_dist.new_group"
    },
    {
      "category": "os-process",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 300,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001283",
      "kind": "api_call",
      "line": 300,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L300",
      "symbol": "ReloadableProcessGroup.__init__"
    },
    {
      "category": "os-process",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 310,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001284",
      "kind": "api_call",
      "line": 310,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L310",
      "symbol": "ReloadableProcessGroup.destroy_process_groups"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "ReloadableProcessGroup.GROUPS",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 65,
      "end_line": 311,
      "expression": "ReloadableProcessGroup.GROUPS.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001285",
      "kind": "instance_candidate",
      "line": 311,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        for reloadable_group in ReloadableProcessGroup.GROUPS.get(pid, []):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L311",
      "symbol": "ReloadableProcessGroup.destroy_process_groups"
    },
    {
      "category": "os-process",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 328,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001286",
      "kind": "api_call",
      "line": 328,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L328",
      "symbol": "ReloadableProcessGroup.invalidate_process_groups"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "ReloadableProcessGroup.GROUPS",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 65,
      "end_line": 329,
      "expression": "ReloadableProcessGroup.GROUPS.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001287",
      "kind": "instance_candidate",
      "line": 329,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        for reloadable_group in ReloadableProcessGroup.GROUPS.get(pid, []):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L329",
      "symbol": "ReloadableProcessGroup.invalidate_process_groups"
    },
    {
      "category": "os-process",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 334,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001288",
      "kind": "api_call",
      "line": 334,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        pid = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L334",
      "symbol": "ReloadableProcessGroup.reload_process_groups"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "ReloadableProcessGroup.GROUPS",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 61,
      "end_line": 335,
      "expression": "ReloadableProcessGroup.GROUPS.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001289",
      "kind": "instance_candidate",
      "line": 335,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        reloadable_groups = ReloadableProcessGroup.GROUPS.get(pid, [])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L335",
      "symbol": "ReloadableProcessGroup.reload_process_groups"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "backend_counts",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 56,
      "end_line": 339,
      "expression": "backend_counts.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001290",
      "kind": "instance_candidate",
      "line": 339,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "            backend_counts[backend] = backend_counts.get(backend, 0) + 1",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L339",
      "symbol": "ReloadableProcessGroup.reload_process_groups"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "old_new_group_dict",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 346,
      "expression": "old_new_group_dict.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001291",
      "kind": "instance_candidate",
      "line": 346,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "        old_new_group = old_new_group_dict.get(pid)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L346",
      "symbol": "ReloadableProcessGroup.reload_process_groups"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.group",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 367,
      "expression": "self.group.shutdown",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001292",
      "kind": "instance_candidate",
      "line": 367,
      "module": "slime.utils.reloadable_process_group",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "            self.group.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L367",
      "symbol": "ReloadableProcessGroup.shutdown"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.group",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 371,
      "expression": "self.group.abort",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001293",
      "kind": "instance_candidate",
      "line": 371,
      "module": "slime.utils.reloadable_process_group",
      "name": "abort",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "            self.group.abort()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L371",
      "symbol": "ReloadableProcessGroup.abort"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "default_process_group_states",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 470,
      "expression": "default_process_group_states.get",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001294",
      "kind": "instance_candidate",
      "line": 470,
      "module": "slime.utils.reloadable_process_group",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L470",
      "symbol": "destroy_process_groups"
    },
    {
      "category": "os-process",
      "col": 45,
      "details": {
        "access": "load"
      },
      "end_col": 54,
      "end_line": 470,
      "expression": "os.getpid",
      "file": "slime/utils/reloadable_process_group.py",
      "id": "occ-001295",
      "kind": "api_call",
      "line": 470,
      "module": "slime.utils.reloadable_process_group",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/reloadable_process_group.py.txt",
      "source_line": "    state = default_process_group_states.get(os.getpid())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/reloadable_process_group.py#L470",
      "symbol": "destroy_process_groups"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 4
      },
      "end_col": 16,
      "end_line": 4,
      "expression": "import threading",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001296",
      "kind": "import",
      "line": 4,
      "module": "slime.utils.routed_experts",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "Future",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 37,
      "end_line": 5,
      "expression": "from concurrent.futures import Future, ThreadPoolExecutor",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001297",
      "kind": "import",
      "line": 5,
      "module": "slime.utils.routed_experts",
      "name": "concurrent.futures.Future",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "from concurrent.futures import Future, ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 39,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 57,
      "end_line": 5,
      "expression": "from concurrent.futures import Future, ThreadPoolExecutor",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001298",
      "kind": "import",
      "line": 5,
      "module": "slime.utils.routed_experts",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "from concurrent.futures import Future, ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 149,
      "expression": "ThreadPoolExecutor",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001299",
      "kind": "api_call",
      "line": 149,
      "module": "slime.utils.routed_experts",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "            ThreadPoolExecutor(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L149",
      "symbol": "RoutedExpertsMicrobatchPrefetcher.__init__"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 174,
      "expression": "self.start",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001300",
      "kind": "instance_candidate",
      "line": 174,
      "module": "slime.utils.routed_experts",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "        self.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L174",
      "symbol": "RoutedExpertsMicrobatchPrefetcher.begin_pass"
    },
    {
      "category": "executors",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 181,
      "expression": "ThreadPoolExecutor",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001301",
      "kind": "api_reference",
      "line": 181,
      "module": "slime.utils.routed_experts",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "    def executor(self) -> ThreadPoolExecutor | None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L181",
      "symbol": "RoutedExpertsMicrobatchPrefetcher"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self._executor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 189,
      "expression": "self._executor.shutdown",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001302",
      "kind": "instance_candidate",
      "line": 189,
      "module": "slime.utils.routed_experts",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "            self._executor.shutdown(wait=True, cancel_futures=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L189",
      "symbol": "RoutedExpertsMicrobatchPrefetcher.close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 191,
      "expression": "source.release",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001303",
      "kind": "instance_candidate",
      "line": 191,
      "module": "slime.utils.routed_experts",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "            source.release()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L191",
      "symbol": "RoutedExpertsMicrobatchPrefetcher.close"
    },
    {
      "category": "executors",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 211,
      "expression": "Future",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001304",
      "kind": "api_reference",
      "line": 211,
      "module": "slime.utils.routed_experts",
      "name": "concurrent.futures.Future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "        self._future: Future | None = None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L211",
      "symbol": "RoutedExpertsMicrobatch.__init__"
    },
    {
      "category": "threading",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 213,
      "expression": "threading.Lock",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001305",
      "kind": "api_call",
      "line": 213,
      "module": "slime.utils.routed_experts",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "        self._lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L213",
      "symbol": "RoutedExpertsMicrobatch.__init__"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "executor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 235,
      "expression": "executor.submit",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001306",
      "kind": "instance_candidate",
      "line": 235,
      "module": "slime.utils.routed_experts",
      "name": "submit",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "                self._future = executor.submit(self._load_and_prepare)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L235",
      "symbol": "RoutedExpertsMicrobatch.prefetch"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 242,
      "expression": "future.result",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001307",
      "kind": "instance_candidate",
      "line": 242,
      "module": "slime.utils.routed_experts",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "            tensor = future.result() if future is not None else self._load_and_prepare()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L242",
      "symbol": "RoutedExpertsMicrobatch._get_cpu_tensor"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 262,
      "expression": "self.release",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001308",
      "kind": "instance_candidate",
      "line": 262,
      "module": "slime.utils.routed_experts",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "                self.release()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L262",
      "symbol": "RoutedExpertsMicrobatch.layer_to_cuda"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 270,
      "expression": "future.done",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001309",
      "kind": "instance_candidate",
      "line": 270,
      "module": "slime.utils.routed_experts",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "        if future is not None and not future.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L270",
      "symbol": "RoutedExpertsMicrobatch.release"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 271,
      "expression": "future.cancel",
      "file": "slime/utils/routed_experts.py",
      "id": "occ-001310",
      "kind": "instance_candidate",
      "line": 271,
      "module": "slime.utils.routed_experts",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime/utils/routed_experts.py.txt",
      "source_line": "            future.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime/utils/routed_experts.py#L271",
      "symbol": "RoutedExpertsMicrobatch.release"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 16,
      "end_line": 6,
      "expression": "import threading",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001311",
      "kind": "import",
      "line": 6,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 116,
      "expression": "async def set_body_size(request: Request, call_next):",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001312",
      "kind": "async_def",
      "line": 113,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "set_body_size",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "async def set_body_size(request: Request, call_next):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L113-L116",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 39,
      "end_line": 115,
      "expression": "await call_next(request)",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001313",
      "kind": "await",
      "line": 115,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "    response = await call_next(request)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L115",
      "symbol": "set_body_size"
    },
    {
      "category": "threading",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 232,
      "expression": "threading.RLock",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001314",
      "kind": "api_call",
      "line": 232,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "threading.RLock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        self.lock = threading.RLock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L232",
      "symbol": "RolloutBuffer.__init__"
    },
    {
      "category": "threading",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 233,
      "expression": "threading.Condition",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001315",
      "kind": "api_call",
      "line": 233,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "threading.Condition",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        self.not_empty = threading.Condition(self.lock)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L233",
      "symbol": "RolloutBuffer.__init__"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.not_empty",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition(self.lock)",
          "line": 233,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 242,
      "expression": "self.not_empty.notify_all",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001316",
      "kind": "instance_candidate",
      "line": 242,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "            self.not_empty.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L242",
      "symbol": "RolloutBuffer.write"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "self.buffer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 251,
      "expression": "self.buffer.get",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001317",
      "kind": "instance_candidate",
      "line": 251,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "            result = self.buffer.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L251",
      "symbol": "RolloutBuffer.read"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 85,
      "end_line": 274,
      "expression": "async def write_to_buffer(request: Request):",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001318",
      "kind": "async_def",
      "line": 260,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "write_to_buffer",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "async def write_to_buffer(request: Request):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L260-L274",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 35,
      "end_line": 262,
      "expression": "await request.json()",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001319",
      "kind": "await",
      "line": 262,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        data = await request.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L262",
      "symbol": "write_to_buffer"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "buffer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 263,
      "expression": "buffer.write",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001320",
      "kind": "instance_candidate",
      "line": 263,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        item = buffer.write(data)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L263",
      "symbol": "write_to_buffer"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 5,
      "end_line": 295,
      "expression": "async def get_rollout_data(request: Request):",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001321",
      "kind": "async_def",
      "line": 278,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "get_rollout_data",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "async def get_rollout_data(request: Request):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L278-L295",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "buffer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 279,
      "expression": "buffer.read",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001322",
      "kind": "instance_candidate",
      "line": 279,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "    items = buffer.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L279",
      "symbol": "get_rollout_data"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "generator_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 315,
      "expression": "generator_info.get",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001323",
      "kind": "instance_candidate",
      "line": 315,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        transform_group_func=generator_info.get(\"transform_group\", None),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L315",
      "symbol": "run_rollout"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "generator_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 316,
      "expression": "generator_info.get",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001324",
      "kind": "instance_candidate",
      "line": 316,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        is_valid_group_func=generator_info.get(\"is_valid_group\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L316",
      "symbol": "run_rollout"
    },
    {
      "category": "candidates",
      "col": 38,
      "details": {
        "receiver": "generator_info",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 56,
      "end_line": 317,
      "expression": "generator_info.get",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001325",
      "kind": "instance_candidate",
      "line": 317,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "        get_group_data_meta_info_func=generator_info.get(\"get_group_data_meta_info\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L317",
      "symbol": "run_rollout"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 41,
      "end_line": 329,
      "expression": "async def start_rollout(request: Request, background: BackgroundTasks):",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001326",
      "kind": "async_def",
      "line": 326,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "start_rollout",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "async def start_rollout(request: Request, background: BackgroundTasks):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L326-L329",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 14,
      "details": {},
      "end_col": 34,
      "end_line": 327,
      "expression": "await request.json()",
      "file": "slime_plugins/rollout_buffer/buffer.py",
      "id": "occ-001327",
      "kind": "await",
      "line": 327,
      "module": "slime_plugins.rollout_buffer.buffer",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/buffer.py.txt",
      "source_line": "    payload = await request.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/buffer.py#L327",
      "symbol": "start_rollout"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 4
      },
      "end_col": 11,
      "end_line": 4,
      "expression": "import time",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001328",
      "kind": "import",
      "line": 4,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 28,
      "details": {
        "local_binding": "Process",
        "selective_module_import": false,
        "statement_line": 7
      },
      "end_col": 35,
      "end_line": 7,
      "expression": "from multiprocessing import Process, Queue",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001329",
      "kind": "import",
      "line": 7,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Process",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "from multiprocessing import Process, Queue",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "multiprocessing",
      "col": 37,
      "details": {
        "local_binding": "Queue",
        "selective_module_import": false,
        "statement_line": 7
      },
      "end_col": 42,
      "end_line": 7,
      "expression": "from multiprocessing import Process, Queue",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001330",
      "kind": "import",
      "line": 7,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Queue",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "from multiprocessing import Process, Queue",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 17,
      "details": {
        "local_binding": "sleep",
        "selective_module_import": false,
        "statement_line": 8
      },
      "end_col": 22,
      "end_line": 8,
      "expression": "from time import sleep",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001331",
      "kind": "import",
      "line": 8,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "time.sleep",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "from time import sleep",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L8",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 86,
      "expression": "sleep",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001332",
      "kind": "api_call",
      "line": 86,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "                    sleep(10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L86",
      "symbol": "query_single_turn"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "done_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 138,
      "expression": "done_queue.put",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001333",
      "kind": "instance_candidate",
      "line": 138,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        done_queue.put(output_item)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L138",
      "symbol": "worker_process"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "done_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 140,
      "expression": "done_queue.put",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001334",
      "kind": "instance_candidate",
      "line": 140,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "    done_queue.put(\"COMPLETE\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L140",
      "symbol": "worker_process"
    },
    {
      "category": "multiprocessing",
      "col": 33,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 193,
      "expression": "Queue",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001335",
      "kind": "api_call",
      "line": 193,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        task_queue, done_queue = Queue(maxsize=self.queue_size), Queue(maxsize=self.queue_size)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L193",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "multiprocessing",
      "col": 65,
      "details": {
        "access": "load"
      },
      "end_col": 70,
      "end_line": 193,
      "expression": "Queue",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001336",
      "kind": "api_call",
      "line": 193,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Queue",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        task_queue, done_queue = Queue(maxsize=self.queue_size), Queue(maxsize=self.queue_size)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L193",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "task_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 224,
      "expression": "task_queue.put",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001337",
      "kind": "instance_candidate",
      "line": 224,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "                        task_queue.put(item_repeat)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L224",
      "symbol": "BaseGenerator.run.read_data_into_queue"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 226,
      "expression": "time.sleep",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001338",
      "kind": "api_call",
      "line": 226,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "                time.sleep(300)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L226",
      "symbol": "BaseGenerator.run.read_data_into_queue"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "task_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 235,
      "expression": "task_queue.put",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001339",
      "kind": "instance_candidate",
      "line": 235,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "                task_queue.put(\"STOP\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L235",
      "symbol": "BaseGenerator.run.read_data_into_queue"
    },
    {
      "category": "multiprocessing",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 241,
      "expression": "Process",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001340",
      "kind": "api_call",
      "line": 241,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Process",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "            process = Process(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L241",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "Process(\n                target=partial(worker_process, client=self.client, sampling_params=SAMPLING_PARAMS),\n                args=(task_queue, done_queue, rollout_func, reward_func),\n            )",
          "line": 241,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 245,
      "expression": "process.start",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001341",
      "kind": "instance_candidate",
      "line": 245,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "            process.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L245",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "multiprocessing",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 248,
      "expression": "Process",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001342",
      "kind": "api_call",
      "line": 248,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "multiprocessing.Process",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        process = Process(target=read_data_into_queue)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L248",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "Process(target=read_data_into_queue)",
          "line": 248,
          "type": "multiprocessing.Process"
        },
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 249,
      "expression": "process.start",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001343",
      "kind": "instance_candidate",
      "line": 249,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        process.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L249",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "done_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 254,
      "expression": "done_queue.get",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001344",
      "kind": "instance_candidate",
      "line": 254,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "            item = done_queue.get()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L254",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "progress_bar",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 263,
      "expression": "progress_bar.close",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001345",
      "kind": "instance_candidate",
      "line": 263,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        progress_bar.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L263",
      "symbol": "BaseGenerator.run"
    },
    {
      "category": "time-sleep",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 14,
      "end_line": 280,
      "expression": "time.sleep",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001346",
      "kind": "api_call",
      "line": 280,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "    time.sleep(10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L280",
      "symbol": "run_rollout"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 292,
      "expression": "data.get",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001347",
      "kind": "instance_candidate",
      "line": 292,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        num_process=int(data.get(\"num_process\", 100)),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L292",
      "symbol": "run_rollout"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 294,
      "expression": "data.get",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001348",
      "kind": "instance_candidate",
      "line": 294,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "        skip_instance_ids=data.get(\"skip_instance_ids\", None),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L294",
      "symbol": "run_rollout"
    },
    {
      "category": "candidates",
      "col": 71,
      "details": {
        "receiver": "data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 79,
      "end_line": 297,
      "expression": "data.get",
      "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
      "id": "occ-001349",
      "kind": "instance_candidate",
      "line": 297,
      "module": "slime_plugins.rollout_buffer.generator.base_generator",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/generator/base_generator.py.txt",
      "source_line": "    generator.entry(data[\"input_file\"], rollout_func, reward_func, int(data.get(\"num_epoch\", 1)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/generator/base_generator.py#L297",
      "symbol": "run_rollout"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001350",
      "kind": "import",
      "line": 1,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 2
      },
      "end_col": 11,
      "end_line": 2,
      "expression": "import time",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001351",
      "kind": "import",
      "line": 2,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 30,
      "end_line": 170,
      "expression": "async def get_rollout_data(api_base_url: str) -> tuple[list[dict[str, Any]], dict[str, Any]]:",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001352",
      "kind": "async_def",
      "line": 138,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "get_rollout_data",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "async def get_rollout_data(api_base_url: str) -> tuple[list[dict[str, Any]], dict[str, Any]]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L138-L170",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 30,
      "end_line": 170,
      "expression": "    async with aiohttp.ClientSession() as session:",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001353",
      "kind": "async_with",
      "line": 140,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "    async with aiohttp.ClientSession() as session:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L140-L170",
      "symbol": "get_rollout_data"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 25,
      "end_line": 148,
      "expression": "            async with session.post(",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001354",
      "kind": "async_with",
      "line": 142,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "            async with session.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L142-L148",
      "symbol": "get_rollout_data"
    },
    {
      "category": "syntax",
      "col": 28,
      "details": {},
      "end_col": 49,
      "end_line": 146,
      "expression": "await response.json()",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001355",
      "kind": "await",
      "line": 146,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "                resp_json = await response.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L146",
      "symbol": "get_rollout_data"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 34,
      "end_line": 149,
      "expression": "await asyncio.sleep(3)",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001356",
      "kind": "await",
      "line": 149,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "            await asyncio.sleep(3)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L149",
      "symbol": "get_rollout_data"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 149,
      "expression": "asyncio.sleep",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001357",
      "kind": "api_call",
      "line": 149,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "            await asyncio.sleep(3)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L149",
      "symbol": "get_rollout_data"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 31,
      "end_line": 302,
      "expression": "async def generate_rollout_async(args, rollout_id: int, data_buffer, evaluation: bool = False) -> dict[str, Any]:",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001358",
      "kind": "async_def",
      "line": 207,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "generate_rollout_async",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "async def generate_rollout_async(args, rollout_id: int, data_buffer, evaluation: bool = False) -> dict[str, Any]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L207-L302",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 243,
      "expression": "time.sleep",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001359",
      "kind": "api_call",
      "line": 243,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "                time.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L243",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "syntax",
      "col": 34,
      "details": {},
      "end_col": 79,
      "end_line": 244,
      "expression": "await get_rollout_data(api_base_url=base_url)",
      "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
      "id": "occ-001360",
      "kind": "await",
      "line": 244,
      "module": "slime_plugins.rollout_buffer.rollout_buffer_example",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/slime_plugins/rollout_buffer/rollout_buffer_example.py.txt",
      "source_line": "                data, meta_info = await get_rollout_data(api_base_url=base_url)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/slime_plugins/rollout_buffer/rollout_buffer_example.py#L244",
      "symbol": "generate_rollout_async"
    },
    {
      "category": "fcntl",
      "col": 7,
      "details": {
        "local_binding": "fcntl",
        "selective_module_import": true,
        "statement_line": 3
      },
      "end_col": 12,
      "end_line": 3,
      "expression": "import fcntl",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001361",
      "kind": "import",
      "line": 3,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "import fcntl",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 4
      },
      "end_col": 9,
      "end_line": 4,
      "expression": "import os",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001362",
      "kind": "import",
      "line": 4,
      "module": "tests.ci.gpu_lock_exec",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "signal",
      "col": 7,
      "details": {
        "local_binding": "signal",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 13,
      "end_line": 6,
      "expression": "import signal",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001363",
      "kind": "import",
      "line": 6,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "import signal",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 7
      },
      "end_col": 17,
      "end_line": 7,
      "expression": "import subprocess",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001364",
      "kind": "import",
      "line": 7,
      "module": "tests.ci.gpu_lock_exec",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 9
      },
      "end_col": 11,
      "end_line": 9,
      "expression": "import time",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001365",
      "kind": "import",
      "line": 9,
      "module": "tests.ci.gpu_lock_exec",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 26,
      "expression": "\",\".join",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001366",
      "kind": "instance_candidate",
      "line": 26,
      "module": "tests.ci.gpu_lock_exec",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    dev_list = \",\".join(str(x.gpu_id) for x in fd_locks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L26",
      "symbol": "main"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fd_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 34,
      "expression": "fd_lock.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001367",
      "kind": "instance_candidate",
      "line": 34,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            fd_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L34",
      "symbol": "main"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 43,
      "expression": "subprocess.Popen",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001368",
      "kind": "api_call",
      "line": 43,
      "module": "tests.ci.gpu_lock_exec",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    child = subprocess.Popen(cmd, start_new_session=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L43",
      "symbol": "_run_command"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 46,
      "expression": "child.poll",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001369",
      "kind": "instance_candidate",
      "line": 46,
      "module": "tests.ci.gpu_lock_exec",
      "name": "poll",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        if child.poll() is None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L46",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 47,
      "expression": "child.terminate",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001370",
      "kind": "instance_candidate",
      "line": 47,
      "module": "tests.ci.gpu_lock_exec",
      "name": "terminate",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            child.terminate()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L47",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 49,
      "expression": "child.wait",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001371",
      "kind": "instance_candidate",
      "line": 49,
      "module": "tests.ci.gpu_lock_exec",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                child.wait(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L49",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 51,
      "expression": "subprocess.TimeoutExpired",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001372",
      "kind": "api_reference",
      "line": 51,
      "module": "tests.ci.gpu_lock_exec",
      "name": "subprocess.TimeoutExpired",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            except subprocess.TimeoutExpired:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L51",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "os-process",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 55,
      "expression": "os.killpg",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001373",
      "kind": "api_call",
      "line": 55,
      "module": "tests.ci.gpu_lock_exec",
      "name": "os.killpg",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                os.killpg(child.pid, signum)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L55",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 59,
      "expression": "child.wait",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001374",
      "kind": "instance_candidate",
      "line": 59,
      "module": "tests.ci.gpu_lock_exec",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                child.wait(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L59",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "subprocess",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 60,
      "expression": "subprocess.TimeoutExpired",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001375",
      "kind": "api_reference",
      "line": 60,
      "module": "tests.ci.gpu_lock_exec",
      "name": "subprocess.TimeoutExpired",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            except subprocess.TimeoutExpired:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L60",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "os-process",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 62,
      "expression": "os.killpg",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001376",
      "kind": "api_call",
      "line": 62,
      "module": "tests.ci.gpu_lock_exec",
      "name": "os.killpg",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                    os.killpg(child.pid, signal.SIGKILL)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L62",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "signal",
      "col": 41,
      "details": {
        "access": "load"
      },
      "end_col": 55,
      "end_line": 62,
      "expression": "signal.SIGKILL",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001377",
      "kind": "api_reference",
      "line": 62,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.SIGKILL",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                    os.killpg(child.pid, signal.SIGKILL)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L62",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 65,
      "expression": "child.wait",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001378",
      "kind": "instance_candidate",
      "line": 65,
      "module": "tests.ci.gpu_lock_exec",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                child.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L65",
      "symbol": "_run_command.terminate_child"
    },
    {
      "category": "signal",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 69,
      "expression": "signal.SIGINT",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001379",
      "kind": "api_reference",
      "line": 69,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.SIGINT",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    for signum in (signal.SIGINT, signal.SIGTERM, signal.SIGHUP):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L69",
      "symbol": "_run_command"
    },
    {
      "category": "signal",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 69,
      "expression": "signal.SIGTERM",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001380",
      "kind": "api_reference",
      "line": 69,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.SIGTERM",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    for signum in (signal.SIGINT, signal.SIGTERM, signal.SIGHUP):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L69",
      "symbol": "_run_command"
    },
    {
      "category": "signal",
      "col": 50,
      "details": {
        "access": "load"
      },
      "end_col": 63,
      "end_line": 69,
      "expression": "signal.SIGHUP",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001381",
      "kind": "api_reference",
      "line": 69,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.SIGHUP",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    for signum in (signal.SIGINT, signal.SIGTERM, signal.SIGHUP):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L69",
      "symbol": "_run_command"
    },
    {
      "category": "signal",
      "col": 36,
      "details": {
        "access": "load"
      },
      "end_col": 52,
      "end_line": 70,
      "expression": "signal.getsignal",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001382",
      "kind": "api_call",
      "line": 70,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.getsignal",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        previous_handlers[signum] = signal.getsignal(signum)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L70",
      "symbol": "_run_command"
    },
    {
      "category": "signal",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 21,
      "end_line": 71,
      "expression": "signal.signal",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001383",
      "kind": "api_call",
      "line": 71,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.signal",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        signal.signal(signum, terminate_child)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L71",
      "symbol": "_run_command"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "child",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, start_new_session=True)",
          "line": 43,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 75,
      "expression": "child.poll",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001384",
      "kind": "instance_candidate",
      "line": 75,
      "module": "tests.ci.gpu_lock_exec",
      "name": "poll",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            returncode = child.poll()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L75",
      "symbol": "_run_command"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 78,
      "expression": "time.sleep",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001385",
      "kind": "api_call",
      "line": 78,
      "module": "tests.ci.gpu_lock_exec",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            time.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L78",
      "symbol": "_run_command"
    },
    {
      "category": "signal",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 81,
      "expression": "signal.signal",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001386",
      "kind": "api_call",
      "line": 81,
      "module": "tests.ci.gpu_lock_exec",
      "name": "signal.signal",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            signal.signal(signum, handler)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L81",
      "symbol": "_run_command"
    },
    {
      "category": "fcntl",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 127,
      "expression": "fcntl.flock",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001387",
      "kind": "api_call",
      "line": 127,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl.flock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                fcntl.flock(fd_lock.fd, fcntl.LOCK_UN)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L127",
      "symbol": "_execute_print_only"
    },
    {
      "category": "fcntl",
      "col": 40,
      "details": {
        "access": "load"
      },
      "end_col": 53,
      "end_line": 127,
      "expression": "fcntl.LOCK_UN",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001388",
      "kind": "api_reference",
      "line": 127,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl.LOCK_UN",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                fcntl.flock(fd_lock.fd, fcntl.LOCK_UN)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L127",
      "symbol": "_execute_print_only"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fd_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 131,
      "expression": "fd_lock.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001389",
      "kind": "instance_candidate",
      "line": 131,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            fd_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L131",
      "symbol": "_execute_print_only"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 135,
      "expression": "\",\".join",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001390",
      "kind": "instance_candidate",
      "line": 135,
      "module": "tests.ci.gpu_lock_exec",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "    print(\"Free GPUs:\", \",\".join(str(x) for x in free), flush=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L135",
      "symbol": "_execute_print_only"
    },
    {
      "category": "time-sleep",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 161,
      "expression": "time.sleep",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001391",
      "kind": "api_call",
      "line": 161,
      "module": "tests.ci.gpu_lock_exec",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                    time.sleep(SLEEP_BACKOFF * random.random())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L161",
      "symbol": "_try_acquire_specific"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fd_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 167,
      "expression": "fd_lock.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001392",
      "kind": "instance_candidate",
      "line": 167,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            fd_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L167",
      "symbol": "_try_acquire_specific"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "fd_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 182,
      "expression": "fd_lock.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001393",
      "kind": "instance_candidate",
      "line": 182,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "                fd_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L182",
      "symbol": "_try_acquire_count"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fd_lock",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 191,
      "expression": "fd_lock.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001394",
      "kind": "instance_candidate",
      "line": 191,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            fd_lock.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L191",
      "symbol": "_try_acquire_count"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 198,
      "expression": "time.sleep",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001395",
      "kind": "api_call",
      "line": 198,
      "module": "tests.ci.gpu_lock_exec",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        time.sleep(SLEEP_BACKOFF * random.random())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L198",
      "symbol": "_try_acquire_count"
    },
    {
      "category": "fcntl",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 213,
      "expression": "fcntl.flock",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001396",
      "kind": "api_call",
      "line": 213,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl.flock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L213",
      "symbol": "FdLock.lock"
    },
    {
      "category": "fcntl",
      "col": 29,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 213,
      "expression": "fcntl.LOCK_EX",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001397",
      "kind": "api_reference",
      "line": 213,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl.LOCK_EX",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L213",
      "symbol": "FdLock.lock"
    },
    {
      "category": "fcntl",
      "col": 45,
      "details": {
        "access": "load"
      },
      "end_col": 58,
      "end_line": 213,
      "expression": "fcntl.LOCK_NB",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001398",
      "kind": "api_reference",
      "line": 213,
      "module": "tests.ci.gpu_lock_exec",
      "name": "fcntl.LOCK_NB",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "        fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L213",
      "symbol": "FdLock.lock"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.fd",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 218,
      "expression": "self.fd.close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001399",
      "kind": "instance_candidate",
      "line": 218,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            self.fd.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L218",
      "symbol": "FdLock.close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "open(p, \"a\")",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 231,
      "expression": "open(p, \"a\").close",
      "file": "tests/ci/gpu_lock_exec.py",
      "id": "occ-001400",
      "kind": "instance_candidate",
      "line": 231,
      "module": "tests.ci.gpu_lock_exec",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/ci/gpu_lock_exec.py.txt",
      "source_line": "            open(p, \"a\").close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/ci/gpu_lock_exec.py#L231",
      "symbol": "_ensure_lock_files"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 70,
      "expression": "async def compact_generate(args, sample, sampling_params):",
      "file": "tests/fanout_test_helpers.py",
      "id": "occ-001401",
      "kind": "async_def",
      "line": 39,
      "module": "tests.fanout_test_helpers",
      "name": "compact_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/fanout_test_helpers.py.txt",
      "source_line": "async def compact_generate(args, sample, sampling_params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/fanout_test_helpers.py#L39-L70",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 52,
      "expression": "f.write",
      "file": "tests/fanout_test_helpers.py",
      "id": "occ-001402",
      "kind": "instance_candidate",
      "line": 52,
      "module": "tests.fanout_test_helpers",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/fanout_test_helpers.py.txt",
      "source_line": "                f.write(f\"{sample.index}\\n\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/fanout_test_helpers.py#L52",
      "symbol": "compact_generate"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 63,
      "end_line": 57,
      "expression": "await generate(args, sample, sampling_params)",
      "file": "tests/fanout_test_helpers.py",
      "id": "occ-001403",
      "kind": "await",
      "line": 57,
      "module": "tests.fanout_test_helpers",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/fanout_test_helpers.py.txt",
      "source_line": "    base_sample = await generate(args, sample, sampling_params)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/fanout_test_helpers.py#L57",
      "symbol": "compact_generate"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 16,
      "end_line": 5,
      "expression": "import threading",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001404",
      "kind": "import",
      "line": 5,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 8
      },
      "end_col": 49,
      "end_line": 8,
      "expression": "from concurrent.futures import ThreadPoolExecutor",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001405",
      "kind": "import",
      "line": 8,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L8",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 38,
      "expression": "async def reward(args, sample, **kwargs):",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001406",
      "kind": "async_def",
      "line": 21,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "reward",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "async def reward(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L21-L38",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 46,
      "expression": "threading.Condition",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001407",
      "kind": "api_call",
      "line": 46,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "threading.Condition",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.condition = threading.Condition()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L46",
      "symbol": "GenerationProbe.__init__"
    },
    {
      "category": "threading",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 49,
      "expression": "threading.Thread",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001408",
      "kind": "api_call",
      "line": 49,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.thread = threading.Thread(target=self.run, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L49",
      "symbol": "GenerationProbe.__init__"
    },
    {
      "category": "candidates",
      "col": 49,
      "details": {
        "receiver": "meta",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 57,
      "end_line": 76,
      "expression": "meta.get",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001409",
      "kind": "instance_candidate",
      "line": 76,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "                                \"finish_reason\": meta.get(\"finish_reason\"),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L76",
      "symbol": "GenerationProbe.run"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 46,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 80,
      "expression": "self.condition.notify_all",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001410",
      "kind": "instance_candidate",
      "line": 80,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "                        self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L80",
      "symbol": "GenerationProbe.run"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 46,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 86,
      "expression": "self.condition.notify_all",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001411",
      "kind": "instance_candidate",
      "line": 86,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "notify_all",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "                self.condition.notify_all()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L86",
      "symbol": "GenerationProbe.run"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "self.condition",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Condition()",
          "line": 46,
          "type": "threading.Condition"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 90,
      "expression": "self.condition.wait_for",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001412",
      "kind": "instance_candidate",
      "line": 90,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "wait_for",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "            ready = self.condition.wait_for(lambda: self.error or self.done or predicate(self.events), timeout=180)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L90",
      "symbol": "GenerationProbe.wait"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 97,
      "expression": "self.wait",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001413",
      "kind": "instance_candidate",
      "line": 97,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L97",
      "symbol": "GenerationProbe.verify"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self.run, daemon=True)",
          "line": 49,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 110,
      "expression": "self.thread.join",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001414",
      "kind": "instance_candidate",
      "line": 110,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.thread.join(timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L110",
      "symbol": "GenerationProbe.verify"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self.run, daemon=True)",
          "line": 49,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 111,
      "expression": "self.thread.is_alive",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001415",
      "kind": "instance_candidate",
      "line": 111,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        assert not self.thread.is_alive()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L111",
      "symbol": "GenerationProbe.verify"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 115,
      "expression": "self.wait",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001416",
      "kind": "instance_candidate",
      "line": 115,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.wait(lambda events: bool(events) and events[-1][\"finish_reason\"] is not None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L115",
      "symbol": "GenerationProbe.verify_flush"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self.run, daemon=True)",
          "line": 49,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 116,
      "expression": "self.thread.join",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001417",
      "kind": "instance_candidate",
      "line": 116,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        self.thread.join(timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L116",
      "symbol": "GenerationProbe.verify_flush"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "self.thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=self.run, daemon=True)",
          "line": 49,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 117,
      "expression": "self.thread.is_alive",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001418",
      "kind": "instance_candidate",
      "line": 117,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        assert not self.thread.is_alive()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L117",
      "symbol": "GenerationProbe.verify_flush"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "_probes",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 132,
      "expression": "_probes.clear",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001419",
      "kind": "instance_candidate",
      "line": 132,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "    _probes.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L132",
      "symbol": "start_probes"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "probe.thread",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 136,
      "expression": "probe.thread.start",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001420",
      "kind": "instance_candidate",
      "line": 136,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        probe.thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L136",
      "symbol": "start_probes"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "probe",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 138,
      "expression": "probe.wait",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001421",
      "kind": "instance_candidate",
      "line": 138,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        probe.wait(lambda events: bool(events) and events[-1][\"tokens\"] >= 16)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L138",
      "symbol": "start_probes"
    },
    {
      "category": "executors",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 159,
      "expression": "ThreadPoolExecutor",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001422",
      "kind": "api_call",
      "line": 159,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        with ThreadPoolExecutor(max_workers=len(_probes)) as pool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L159",
      "symbol": "before_train_step"
    },
    {
      "category": "candidates",
      "col": 42,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=len(_probes))",
          "line": 159,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 160,
      "expression": "pool.map",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001423",
      "kind": "instance_candidate",
      "line": 160,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "map",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "            _records[\"continuous\"] = list(pool.map(lambda probe: probe.verify(), _probes))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L160",
      "symbol": "before_train_step"
    },
    {
      "category": "executors",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 164,
      "expression": "ThreadPoolExecutor",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001424",
      "kind": "api_call",
      "line": 164,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "        with ThreadPoolExecutor(max_workers=len(_probes)) as pool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L164",
      "symbol": "before_train_step"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=len(_probes))",
          "line": 164,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 166,
      "expression": "pool.map",
      "file": "tests/pipeline_rl_test_helpers.py",
      "id": "occ-001425",
      "kind": "instance_candidate",
      "line": 166,
      "module": "tests.pipeline_rl_test_helpers",
      "name": "map",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/pipeline_rl_test_helpers.py.txt",
      "source_line": "                pool.map(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/pipeline_rl_test_helpers.py#L166",
      "symbol": "before_train_step"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001426",
      "kind": "import",
      "line": 3,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 81,
      "expression": "async def custom_generate(args, sample: Sample, sampling_params: dict):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001427",
      "kind": "async_def",
      "line": 75,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "custom_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "async def custom_generate(args, sample: Sample, sampling_params: dict):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L75-L81",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 91,
      "expression": "async def custom_generate_with_evaluation(args, sample: Sample, sampling_params: dict, evaluation: bool = False):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001428",
      "kind": "async_def",
      "line": 84,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "custom_generate_with_evaluation",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "async def custom_generate_with_evaluation(args, sample: Sample, sampling_params: dict, evaluation: bool = False):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L84-L91",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 109,
      "expression": "    async def __aenter__(self):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001429",
      "kind": "async_def",
      "line": 108,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    async def __aenter__(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L108-L109",
      "symbol": "_DummySemaphore"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 20,
      "end_line": 112,
      "expression": "    async def __aexit__(self, exc_type, exc, tb):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001430",
      "kind": "async_def",
      "line": 111,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    async def __aexit__(self, exc_type, exc, tb):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L111-L112",
      "symbol": "_DummySemaphore"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 139,
      "expression": "    async def official_default_generate(args, sample: Sample, sampling_params: dict):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001431",
      "kind": "async_def",
      "line": 133,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "official_default_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    async def official_default_generate(args, sample: Sample, sampling_params: dict):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L133-L139",
      "symbol": "test_generate_and_rm_default_generate_branch_is_stable"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 143,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001432",
      "kind": "api_call",
      "line": 143,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L143",
      "symbol": "test_generate_and_rm_default_generate_branch_is_stable"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 158,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001433",
      "kind": "api_call",
      "line": 158,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    result = asyncio.run(generate_and_rm(args, sample, sampling_params={\"temperature\": 0.3}, evaluation=True))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L158",
      "symbol": "test_generate_and_rm_prefers_per_sample_generate_function"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 169,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001434",
      "kind": "api_call",
      "line": 169,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L169",
      "symbol": "test_custom_generate_function_path_supports_user_override"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 32,
      "end_line": 186,
      "expression": "    async def custom_generate_list(args, sample: Sample, sampling_params: dict):",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001435",
      "kind": "async_def",
      "line": 183,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "custom_generate_list",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    async def custom_generate_list(args, sample: Sample, sampling_params: dict):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L183-L186",
      "symbol": "test_generate_and_rm_group_rm_accepts_list_result_from_custom_generate"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 190,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
      "id": "occ-001436",
      "kind": "api_call",
      "line": 190,
      "module": "tests.plugin_contracts.test_plugin_generate_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_generate_contracts.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_generate_contracts.py#L190",
      "symbol": "test_generate_and_rm_group_rm_accepts_list_result_from_custom_generate"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001437",
      "kind": "import",
      "line": 3,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "sample.metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 123,
      "expression": "sample.metadata.get",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001438",
      "kind": "instance_candidate",
      "line": 123,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "    keep = not any(sample.metadata.get(\"drop\") for sample in samples)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L123",
      "symbol": "reference_dynamic_filter.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 41,
      "end_line": 144,
      "expression": "async def reference_single_rm(args, sample: Sample, **kwargs):",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001439",
      "kind": "async_def",
      "line": 143,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "reference_single_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "async def reference_single_rm(args, sample: Sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L143-L144",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 65,
      "end_line": 148,
      "expression": "async def reference_batched_rm(args, samples: list[Sample], **kwargs):",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001440",
      "kind": "async_def",
      "line": 147,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "reference_batched_rm",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "async def reference_batched_rm(args, samples: list[Sample], **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L147-L148",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 334,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001441",
      "kind": "api_call",
      "line": 334,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "    reward = asyncio.run(async_rm(make_args(rm_type=\"random\"), make_sample(4)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L334",
      "symbol": "test_custom_rm_default_behavior_is_stable"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 335,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001442",
      "kind": "api_call",
      "line": 335,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "    rewards = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L335",
      "symbol": "test_custom_rm_default_behavior_is_stable"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 347,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001443",
      "kind": "api_call",
      "line": 347,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "        rewards = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L347",
      "symbol": "test_custom_rm_path_aligns_with_expected_format"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 360,
      "expression": "asyncio.run",
      "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
      "id": "occ-001444",
      "kind": "api_call",
      "line": 360,
      "module": "tests.plugin_contracts.test_plugin_path_loading_contracts",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/plugin_contracts/test_plugin_path_loading_contracts.py.txt",
      "source_line": "        reward = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/plugin_contracts/test_plugin_path_loading_contracts.py#L360",
      "symbol": "test_custom_rm_path_aligns_with_expected_format"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 16,
      "expression": "async def reward(args, sample, **kwargs):",
      "file": "tests/rollout_health_test_helpers.py",
      "id": "occ-001445",
      "kind": "async_def",
      "line": 15,
      "module": "tests.rollout_health_test_helpers",
      "name": "reward",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/rollout_health_test_helpers.py.txt",
      "source_line": "async def reward(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/rollout_health_test_helpers.py#L15-L16",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 56,
      "expression": "    async def crash_then_abort(config, current_rollout):",
      "file": "tests/rollout_health_test_helpers.py",
      "id": "occ-001446",
      "kind": "async_def",
      "line": 36,
      "module": "tests.rollout_health_test_helpers",
      "name": "crash_then_abort",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/rollout_health_test_helpers.py.txt",
      "source_line": "    async def crash_then_abort(config, current_rollout):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/rollout_health_test_helpers.py#L36-L56",
      "symbol": "generate_rollout"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 62,
      "end_line": 48,
      "expression": "await original_abort(config, current_rollout)",
      "file": "tests/rollout_health_test_helpers.py",
      "id": "occ-001447",
      "kind": "await",
      "line": 48,
      "module": "tests.rollout_health_test_helpers",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/rollout_health_test_helpers.py.txt",
      "source_line": "        result = await original_abort(config, current_rollout)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/rollout_health_test_helpers.py#L48",
      "symbol": "generate_rollout.crash_then_abort"
    },
    {
      "category": "async-typing",
      "col": 28,
      "details": {
        "local_binding": "Awaitable",
        "selective_module_import": false,
        "statement_line": 29
      },
      "end_col": 37,
      "end_line": 29,
      "expression": "from collections.abc import Awaitable, Callable",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001448",
      "kind": "import",
      "line": 29,
      "module": "tests.test_agent._fakes",
      "name": "collections.abc.Awaitable",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "from collections.abc import Awaitable, Callable",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L29",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 82,
      "expression": "\" \".join",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001449",
      "kind": "instance_candidate",
      "line": 82,
      "module": "tests.test_agent._fakes",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        return \" \".join(self._inv[i] for i in ids if i in self._inv and i not in _SPECIAL_IDS)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L82",
      "symbol": "FakeTokenizer.decode"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 86,
      "expression": "message.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001450",
      "kind": "instance_candidate",
      "line": 86,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        c = message.get(\"content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L86",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 88,
      "expression": "message.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001451",
      "kind": "instance_candidate",
      "line": 88,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        reasoning = message.get(\"reasoning_content\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L88",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 43,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 48,
      "end_line": 95,
      "expression": "b.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001452",
      "kind": "instance_candidate",
      "line": 95,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "                if isinstance(b, dict) and b.get(\"type\") == \"text\":",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L95",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 96,
      "expression": "b.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001453",
      "kind": "instance_candidate",
      "line": 96,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "                    parts.append(str(b.get(\"text\", \"\")))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L96",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "message",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 97,
      "expression": "message.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001454",
      "kind": "instance_candidate",
      "line": 97,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        for call in message.get(\"tool_calls\") or []:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L97",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "call",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 98,
      "expression": "call.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001455",
      "kind": "instance_candidate",
      "line": 98,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            fn = call.get(\"function\") or {}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L98",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 37,
      "details": {
        "receiver": "fn",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 99,
      "expression": "fn.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001456",
      "kind": "instance_candidate",
      "line": 99,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            parts.append(f\"toolcall:{fn.get('name', '')}\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L99",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 100,
      "expression": "\" \".join",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001457",
      "kind": "instance_candidate",
      "line": 100,
      "module": "tests.test_agent._fakes",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        return \" \".join(p for p in parts if p)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L100",
      "symbol": "FakeTokenizer._content_text"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "m",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 106,
      "expression": "m.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001458",
      "kind": "instance_candidate",
      "line": 106,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            role = m.get(\"role\", \"user\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L106",
      "symbol": "FakeTokenizer.apply_chat_template"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "_ROLE_BEGIN",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 107,
      "expression": "_ROLE_BEGIN.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001459",
      "kind": "instance_candidate",
      "line": 107,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            out.append(_ROLE_BEGIN.get(role, _ROLE_BEGIN[\"user\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L107",
      "symbol": "FakeTokenizer.apply_chat_template"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.outputs",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 132,
      "expression": "self.outputs.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001460",
      "kind": "instance_candidate",
      "line": 132,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        return self.outputs.get(tuple(ids), \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L132",
      "symbol": "ScriptedTokenizer.decode"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 169,
      "expression": "    async def _handle(self, request: web.Request) -> web.Response:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001461",
      "kind": "async_def",
      "line": 157,
      "module": "tests.test_agent._fakes",
      "name": "_handle",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def _handle(self, request: web.Request) -> web.Response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L157-L169",
      "symbol": "FakeSGLangServer"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "request.headers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 52,
      "end_line": 158,
      "expression": "request.headers.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001462",
      "kind": "instance_candidate",
      "line": 158,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        self.routing_keys.append(request.headers.get(\"X-SMG-Routing-Key\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L158",
      "symbol": "FakeSGLangServer._handle"
    },
    {
      "category": "syntax",
      "col": 29,
      "details": {},
      "end_col": 49,
      "end_line": 159,
      "expression": "await request.json()",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001463",
      "kind": "await",
      "line": 159,
      "module": "tests.test_agent._fakes",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        self.requests.append(await request.json())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L159",
      "symbol": "FakeSGLangServer._handle"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 179,
      "expression": "    async def __aenter__(self) -> FakeSGLangServer:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001464",
      "kind": "async_def",
      "line": 171,
      "module": "tests.test_agent._fakes",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def __aenter__(self) -> FakeSGLangServer:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L171-L179",
      "symbol": "FakeSGLangServer"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 41,
      "end_line": 177,
      "expression": "await self._server.start_server()",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001465",
      "kind": "await",
      "line": 177,
      "module": "tests.test_agent._fakes",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        await self._server.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L177",
      "symbol": "FakeSGLangServer.__aenter__"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 38,
      "end_line": 183,
      "expression": "    async def __aexit__(self, *exc) -> None:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001466",
      "kind": "async_def",
      "line": 181,
      "module": "tests.test_agent._fakes",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def __aexit__(self, *exc) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L181-L183",
      "symbol": "FakeSGLangServer"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 38,
      "end_line": 183,
      "expression": "await self._server.close()",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001467",
      "kind": "await",
      "line": 183,
      "module": "tests.test_agent._fakes",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            await self._server.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L183",
      "symbol": "FakeSGLangServer.__aexit__"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "self._server",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 183,
      "expression": "self._server.close",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001468",
      "kind": "instance_candidate",
      "line": 183,
      "module": "tests.test_agent._fakes",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            await self._server.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L183",
      "symbol": "FakeSGLangServer.__aexit__"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 208,
      "expression": "    async def _fake(prompt_ids, session, body, *, adapter, session_id=None) -> TurnRecord:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001469",
      "kind": "async_def",
      "line": 197,
      "module": "tests.test_agent._fakes",
      "name": "_fake",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def _fake(prompt_ids, session, body, *, adapter, session_id=None) -> TurnRecord:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L197-L208",
      "symbol": "fake_call_sglang_generate"
    },
    {
      "category": "async-typing",
      "col": 36,
      "details": {
        "access": "load"
      },
      "end_col": 45,
      "end_line": 240,
      "expression": "Awaitable",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001470",
      "kind": "api_reference",
      "line": 240,
      "module": "tests.test_agent._fakes",
      "name": "collections.abc.Awaitable",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        on_launch: Callable[[dict], Awaitable[int]] | None = None,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L240",
      "symbol": "FakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 261,
      "expression": "    async def __aenter__(self) -> FakeSandbox:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001471",
      "kind": "async_def",
      "line": 260,
      "module": "tests.test_agent._fakes",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def __aenter__(self) -> FakeSandbox:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L260-L261",
      "symbol": "FakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 264,
      "expression": "    async def __aexit__(self, *exc) -> None:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001472",
      "kind": "async_def",
      "line": 263,
      "module": "tests.test_agent._fakes",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def __aexit__(self, *exc) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L263-L264",
      "symbol": "FakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 288,
      "expression": "    async def exec(self, cmd, *, user=\"root\", env=None, timeout=120, check=False, idempotent=True):",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001473",
      "kind": "async_def",
      "line": 266,
      "module": "tests.test_agent._fakes",
      "name": "exec",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def exec(self, cmd, *, user=\"root\", env=None, timeout=120, check=False, idempotent=True):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L266-L288",
      "symbol": "FakeSandbox"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 50,
      "end_line": 271,
      "expression": "await self.on_launch(env or {})",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001474",
      "kind": "await",
      "line": 271,
      "module": "tests.test_agent._fakes",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "            code = await self.on_launch(env or {})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L271",
      "symbol": "FakeSandbox.exec"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 42,
      "end_line": 291,
      "expression": "    async def write_file(self, sandbox_path, content, *, user=\"root\") -> None:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001475",
      "kind": "async_def",
      "line": 290,
      "module": "tests.test_agent._fakes",
      "name": "write_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def write_file(self, sandbox_path, content, *, user=\"root\") -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L290-L291",
      "symbol": "FakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 56,
      "end_line": 294,
      "expression": "    async def read_file(self, sandbox_path, *, user=\"root\") -> str:",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001476",
      "kind": "async_def",
      "line": 293,
      "module": "tests.test_agent._fakes",
      "name": "read_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "    async def read_file(self, sandbox_path, *, user=\"root\") -> str:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L293-L294",
      "symbol": "FakeSandbox"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "self.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 294,
      "expression": "self.files.get",
      "file": "tests/test_agent/_fakes.py",
      "id": "occ-001477",
      "kind": "instance_candidate",
      "line": 294,
      "module": "tests.test_agent._fakes",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/_fakes.py.txt",
      "source_line": "        return _as_str(self.files.get(sandbox_path, \"\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/_fakes.py#L294",
      "symbol": "FakeSandbox.read_file"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 16
      },
      "end_col": 14,
      "end_line": 16,
      "expression": "import asyncio",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001478",
      "kind": "import",
      "line": 16,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L16",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 57,
      "expression": "\"\\n\".join",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001479",
      "kind": "instance_candidate",
      "line": 57,
      "module": "tests.test_agent.test_adapters",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            data = \"\\n\".join(data_lines)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L57",
      "symbol": "_parse_sse.flush"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 96,
      "end_line": 74,
      "expression": "async def _drain(adapter, sid) -> list[Sample]:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001480",
      "kind": "async_def",
      "line": 73,
      "module": "tests.test_agent.test_adapters",
      "name": "_drain",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "async def _drain(adapter, sid) -> list[Sample]:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L73-L74",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 11,
      "details": {},
      "end_col": 96,
      "end_line": 74,
      "expression": "await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=\"\"), reward=1.0)",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001481",
      "kind": "await",
      "line": 74,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    return await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=\"\"), reward=1.0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L74",
      "symbol": "_drain"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 199,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001482",
      "kind": "async_def",
      "line": 169,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L169-L199",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 52,
      "end_line": 185,
      "expression": "        async with FakeSGLangServer([[(-0.1, 101), (-0.2, 102)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001483",
      "kind": "async_with",
      "line": 170,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.1, 101), (-0.2, 102)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L170-L185",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 175,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001484",
      "kind": "await",
      "line": 175,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L175",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 17,
      "end_line": 181,
      "expression": "await client.post(\n                    \"/v1/messages\",\n                    headers={\"Authorization\": \"Bearer sid-a\"},\n                    json={\"model\": \"m\", \"max_tokens\": 7, \"messages\": [{\"role\": \"user\", \"content\": \"hi\"}]},\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001485",
      "kind": "await",
      "line": 177,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                resp = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L177-L181",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 40,
      "end_line": 182,
      "expression": "await resp.json()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001486",
      "kind": "await",
      "line": 182,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                data = await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L182",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 184,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001487",
      "kind": "await",
      "line": 184,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L184",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 184,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001488",
      "kind": "instance_candidate",
      "line": 184,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L184",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 52,
      "end_line": 185,
      "expression": "await _drain(adapter, \"sid-a\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001489",
      "kind": "await",
      "line": 185,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            samples = await _drain(adapter, \"sid-a\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L185",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 201,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001490",
      "kind": "api_call",
      "line": 201,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L201",
      "symbol": "test_anthropic_messages_nonstream_records_token_segments"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 99,
      "end_line": 228,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001491",
      "kind": "async_def",
      "line": 205,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L205-L228",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 52,
      "end_line": 221,
      "expression": "        async with FakeSGLangServer([[(-0.3, 201)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001492",
      "kind": "async_with",
      "line": 206,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.3, 201)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L206-L221",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 211,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001493",
      "kind": "await",
      "line": 211,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L211",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 17,
      "end_line": 217,
      "expression": "await client.post(\n                    \"/v1/chat/completions\",\n                    headers={\"Authorization\": \"Bearer sid-o\"},\n                    json={\"model\": \"m\", \"max_tokens\": 4, \"messages\": [{\"role\": \"user\", \"content\": \"hi?\"}]},\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001494",
      "kind": "await",
      "line": 213,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                resp = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L213-L217",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 40,
      "end_line": 218,
      "expression": "await resp.json()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001495",
      "kind": "await",
      "line": 218,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                data = await resp.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L218",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 220,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001496",
      "kind": "await",
      "line": 220,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L220",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 220,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001497",
      "kind": "instance_candidate",
      "line": 220,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L220",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 52,
      "end_line": 221,
      "expression": "await _drain(adapter, \"sid-o\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001498",
      "kind": "await",
      "line": 221,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            samples = await _drain(adapter, \"sid-o\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L221",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 230,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001499",
      "kind": "api_call",
      "line": 230,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L230",
      "symbol": "test_openai_chat_completions_nonstream_records_token_segments"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 72,
      "end_line": 267,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001500",
      "kind": "async_def",
      "line": 239,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L239-L267",
      "symbol": "test_anthropic_messages_streams_blocks"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 43,
      "end_line": 260,
      "expression": "        async with FakeSGLangServer([[(-0.1, 301)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001501",
      "kind": "async_with",
      "line": 240,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.1, 301)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L240-L260",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 245,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001502",
      "kind": "await",
      "line": 245,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L245",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 17,
      "end_line": 256,
      "expression": "await client.post(\n                    \"/v1/messages\",\n                    headers={\"Authorization\": \"Bearer sid-as\", \"Accept\": \"text/event-stream\"},\n                    json={\n                        \"model\": \"m\",\n                        \"stream\": True,\n                        \"max_tokens\": 8,\n                        \"messages\": [{\"role\": \"user\", \"content\": \"x\"}],\n                    },\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001503",
      "kind": "await",
      "line": 247,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                resp = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L247-L256",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 39,
      "end_line": 257,
      "expression": "await resp.text()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001504",
      "kind": "await",
      "line": 257,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                raw = await resp.text()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L257",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 259,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001505",
      "kind": "await",
      "line": 259,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L259",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 259,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001506",
      "kind": "instance_candidate",
      "line": 259,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L259",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 43,
      "end_line": 260,
      "expression": "await _drain(adapter, \"sid-as\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001507",
      "kind": "await",
      "line": 260,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await _drain(adapter, \"sid-as\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L260",
      "symbol": "test_anthropic_messages_streams_blocks.run_case"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "d[\"delta\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 267,
      "expression": "d[\"delta\"].get",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001508",
      "kind": "instance_candidate",
      "line": 267,
      "module": "tests.test_agent.test_adapters",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        assert any(d[\"delta\"].get(\"text\") == \"streamed\" for d in deltas)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L267",
      "symbol": "test_anthropic_messages_streams_blocks.run_case.<comprehension>"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 269,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001509",
      "kind": "api_call",
      "line": 269,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L269",
      "symbol": "test_anthropic_messages_streams_blocks"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 50,
      "end_line": 295,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001510",
      "kind": "async_def",
      "line": 273,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L273-L295",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 43,
      "end_line": 289,
      "expression": "        async with FakeSGLangServer([[(-0.1, 401)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001511",
      "kind": "async_with",
      "line": 274,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.1, 401)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L274-L289",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 279,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001512",
      "kind": "await",
      "line": 279,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L279",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 17,
      "end_line": 285,
      "expression": "await client.post(\n                    \"/v1/chat/completions\",\n                    headers={\"Authorization\": \"Bearer sid-os\"},\n                    json={\"model\": \"m\", \"stream\": True, \"messages\": [{\"role\": \"user\", \"content\": \"x\"}]},\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001513",
      "kind": "await",
      "line": 281,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                resp = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L281-L285",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 39,
      "end_line": 286,
      "expression": "await resp.text()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001514",
      "kind": "await",
      "line": 286,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                raw = await resp.text()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L286",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 288,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001515",
      "kind": "await",
      "line": 288,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L288",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 288,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001516",
      "kind": "instance_candidate",
      "line": 288,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L288",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 43,
      "end_line": 289,
      "expression": "await _drain(adapter, \"sid-os\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001517",
      "kind": "await",
      "line": 289,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await _drain(adapter, \"sid-os\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L289",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 297,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001518",
      "kind": "api_call",
      "line": 297,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L297",
      "symbol": "test_openai_chat_completions_streams_chunks_until_done"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 373,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001519",
      "kind": "async_def",
      "line": 313,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L313-L373",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 53,
      "end_line": 359,
      "expression": "        async with FakeSGLangServer([[(-0.5, 700), (-0.5, 701)], [(-0.4, 800)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001520",
      "kind": "async_with",
      "line": 315,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.5, 700), (-0.5, 701)], [(-0.4, 800)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L315-L359",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 320,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001521",
      "kind": "await",
      "line": 320,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L320",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 17,
      "end_line": 334,
      "expression": "await client.post(\n                    \"/v1/messages\",\n                    headers={\"Authorization\": \"Bearer sid-mt\"},\n                    json={\n                        \"model\": \"m\",\n                        \"max_tokens\": 5,\n                        \"tools\": tools,\n                        \"messages\": [{\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"find slime\"}]}],\n                    },\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001522",
      "kind": "await",
      "line": 325,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                first = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L325-L334",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 42,
      "end_line": 335,
      "expression": "await first.json()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001523",
      "kind": "await",
      "line": 335,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                fdata = await first.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L335",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 17,
      "end_line": 355,
      "expression": "await client.post(\n                    \"/v1/messages\",\n                    headers={\"Authorization\": \"Bearer sid-mt\"},\n                    json={\n                        \"model\": \"m\",\n                        \"max_tokens\": 7,\n                        \"tools\": tools,\n                        \"messages\": [\n                            {\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"find slime\"}]},\n                            {\"role\": \"assistant\", \"content\": fdata[\"content\"]},\n                            {\n                                \"role\": \"user\",\n                                \"content\": [\n                                    {\"type\": \"tool_result\", \"tool_use_id\": tool_use[\"id\"], \"content\": \"found\"}\n                                ],\n                            },\n                        ],\n                    },\n                )",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001524",
      "kind": "await",
      "line": 337,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                second = await client.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L337-L355",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 35,
      "end_line": 356,
      "expression": "await second.json()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001525",
      "kind": "await",
      "line": 356,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await second.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L356",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 358,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001526",
      "kind": "await",
      "line": 358,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L358",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 358,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001527",
      "kind": "instance_candidate",
      "line": 358,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L358",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 53,
      "end_line": 359,
      "expression": "await _drain(adapter, \"sid-mt\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001528",
      "kind": "await",
      "line": 359,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            samples = await _drain(adapter, \"sid-mt\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L359",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 375,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001529",
      "kind": "api_call",
      "line": 375,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L375",
      "symbol": "test_anthropic_multiturn_wire_roundtrip_and_token_capture"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 35,
      "end_line": 400,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001530",
      "kind": "async_def",
      "line": 384,
      "module": "tests.test_agent.test_adapters",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L384-L400",
      "symbol": "test_max_turns_per_sid_returns_429"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "items": 1
      },
      "end_col": 44,
      "end_line": 398,
      "expression": "        async with FakeSGLangServer([[(-0.1, 501)], [(-0.1, 502)]]) as sglang:",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001531",
      "kind": "async_with",
      "line": 385,
      "module": "tests.test_agent.test_adapters",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "        async with FakeSGLangServer([[(-0.1, 501)], [(-0.1, 502)]]) as sglang:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L385-L398",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 39,
      "end_line": 390,
      "expression": "await client.start_server()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001532",
      "kind": "await",
      "line": 390,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await client.start_server()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L390",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 79,
      "end_line": 394,
      "expression": "await client.post(\"/v1/messages\", headers=h, json=body)",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001533",
      "kind": "await",
      "line": 394,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                first = await client.post(\"/v1/messages\", headers=h, json=body)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L394",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 80,
      "end_line": 395,
      "expression": "await client.post(\"/v1/messages\", headers=h, json=body)",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001534",
      "kind": "await",
      "line": 395,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                second = await client.post(\"/v1/messages\", headers=h, json=body)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L395",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 397,
      "expression": "await client.close()",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001535",
      "kind": "await",
      "line": 397,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L397",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "client",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 397,
      "expression": "client.close",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001536",
      "kind": "instance_candidate",
      "line": 397,
      "module": "tests.test_agent.test_adapters",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "                await client.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L397",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 44,
      "end_line": 398,
      "expression": "await _drain(adapter, \"sid-cap\")",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001537",
      "kind": "await",
      "line": 398,
      "module": "tests.test_agent.test_adapters",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "            await _drain(adapter, \"sid-cap\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L398",
      "symbol": "test_max_turns_per_sid_returns_429.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 402,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001538",
      "kind": "api_call",
      "line": 402,
      "module": "tests.test_agent.test_adapters",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L402",
      "symbol": "test_max_turns_per_sid_returns_429"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "b",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 418,
      "expression": "b.get",
      "file": "tests/test_agent/test_adapters.py",
      "id": "occ-001539",
      "kind": "instance_candidate",
      "line": 418,
      "module": "tests.test_agent.test_adapters",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_adapters.py.txt",
      "source_line": "    assert any(b.get(\"text\", \"\").startswith(\"<system-reminder>\") for b in folded)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_adapters.py#L418",
      "symbol": "test_mid_list_system_folds_into_user.<comprehension>"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 26
      },
      "end_col": 14,
      "end_line": 26,
      "expression": "import asyncio",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001540",
      "kind": "import",
      "line": 26,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L26",
      "symbol": "<module>"
    },
    {
      "category": "contextlib-async",
      "col": 7,
      "details": {
        "local_binding": "contextlib",
        "selective_module_import": true,
        "statement_line": 27
      },
      "end_col": 17,
      "end_line": 27,
      "expression": "import contextlib",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001541",
      "kind": "import",
      "line": 27,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "contextlib",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "import contextlib",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L27",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 56,
      "expression": "asyncio",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001542",
      "kind": "api_reference",
      "line": 56,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "if not hasattr(asyncio, \"timeout\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L56",
      "symbol": "<module>"
    },
    {
      "category": "contextlib-async",
      "col": 5,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 58,
      "expression": "contextlib.asynccontextmanager",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001543",
      "kind": "api_reference",
      "line": 58,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "contextlib.asynccontextmanager",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    @contextlib.asynccontextmanager",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L58",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 13,
      "end_line": 60,
      "expression": "    async def _timeout_shim(_delay):",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001544",
      "kind": "async_generator_def",
      "line": 59,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "_timeout_shim",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def _timeout_shim(_delay):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L59-L60",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 13,
      "end_line": 60,
      "expression": "yield",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001545",
      "kind": "async_yield",
      "line": 60,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        yield",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L60",
      "symbol": "_timeout_shim"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "store"
      },
      "end_col": 19,
      "end_line": 62,
      "expression": "asyncio.timeout",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001546",
      "kind": "api_reference",
      "line": 62,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.timeout",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    asyncio.timeout = _timeout_shim",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L62",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 78,
      "expression": "asyncio.sleep",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001547",
      "kind": "api_reference",
      "line": 78,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "_REAL_SLEEP = asyncio.sleep",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L78",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 82,
      "expression": "async def _fast_sleep(_secs):  # collapse run_command's 5s poll loop",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001548",
      "kind": "async_def",
      "line": 81,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "_fast_sleep",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "async def _fast_sleep(_secs):  # collapse run_command's 5s poll loop",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L81-L82",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 24,
      "end_line": 82,
      "expression": "await _REAL_SLEEP(0)",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001549",
      "kind": "await",
      "line": 82,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    await _REAL_SLEEP(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L82",
      "symbol": "_fast_sleep"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 12,
      "end_line": 124,
      "expression": "async def _anthropic_agent(env: dict, *, n_turns: int = 2) -> int:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001550",
      "kind": "async_def",
      "line": 108,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "_anthropic_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "async def _anthropic_agent(env: dict, *, n_turns: int = 2) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L108-L124",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 95,
      "end_line": 123,
      "expression": "    async with aiohttp.ClientSession(trust_env=False) as sess:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001551",
      "kind": "async_with",
      "line": 114,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async with aiohttp.ClientSession(trust_env=False) as sess:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L114-L123",
      "symbol": "_anthropic_agent"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 37,
      "end_line": 121,
      "expression": "            async with sess.post(",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001552",
      "kind": "async_with",
      "line": 116,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            async with sess.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L116-L121",
      "symbol": "_anthropic_agent"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 37,
      "end_line": 121,
      "expression": "await r.json()",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001553",
      "kind": "await",
      "line": 121,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "                data = await r.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L121",
      "symbol": "_anthropic_agent"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 15,
      "end_line": 158,
      "expression": "async def _noop_install(self, sb) -> None:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001554",
      "kind": "async_def",
      "line": 157,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "_noop_install",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "async def _noop_install(self, sb) -> None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L157-L158",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 63,
      "end_line": 191,
      "expression": "    async def run_case(monkeypatch):",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001555",
      "kind": "async_def",
      "line": 176,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def run_case(monkeypatch):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L176-L191",
      "symbol": "test_generate_produces_trained_samples"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 101,
      "end_line": 181,
      "expression": "await gen.generate(_args(), _base_sample(), sampling_params={\"max_new_tokens\": 32})",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001556",
      "kind": "await",
      "line": 181,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        samples = await gen.generate(_args(), _base_sample(), sampling_params={\"max_new_tokens\": 32})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L181",
      "symbol": "test_generate_produces_trained_samples.run_case"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "s.metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 188,
      "expression": "s.metadata.get",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001557",
      "kind": "instance_candidate",
      "line": 188,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            assert s.metadata.get(\"agent_exit_code\") == 0",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L188",
      "symbol": "test_generate_produces_trained_samples.run_case"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 194,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001558",
      "kind": "api_call",
      "line": 194,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        asyncio.run(run_case(mp))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L194",
      "symbol": "test_generate_produces_trained_samples"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 16,
      "end_line": 202,
      "expression": "    async def silent_agent(_env) -> int:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001559",
      "kind": "async_def",
      "line": 201,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "silent_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def silent_agent(_env) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L201-L202",
      "symbol": "test_generate_aborts_on_empty_trajectory"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 81,
      "end_line": 213,
      "expression": "    async def run_case(monkeypatch):",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001560",
      "kind": "async_def",
      "line": 204,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def run_case(monkeypatch):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L204-L213",
      "symbol": "test_generate_aborts_on_empty_trajectory"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 81,
      "end_line": 209,
      "expression": "await gen.generate(_args(), _base_sample(), sampling_params={})",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001561",
      "kind": "await",
      "line": 209,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        samples = await gen.generate(_args(), _base_sample(), sampling_params={})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L209",
      "symbol": "test_generate_aborts_on_empty_trajectory.run_case"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "samples[0].metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 213,
      "expression": "samples[0].metadata.get",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001562",
      "kind": "instance_candidate",
      "line": 213,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        assert samples[0].metadata.get(\"abort_reason\") == \"adapter_session_empty\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L213",
      "symbol": "test_generate_aborts_on_empty_trajectory.run_case"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 216,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001563",
      "kind": "api_call",
      "line": 216,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        asyncio.run(run_case(mp))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L216",
      "symbol": "test_generate_aborts_on_empty_trajectory"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 84,
      "end_line": 227,
      "expression": "    async def run_case(monkeypatch):",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001564",
      "kind": "async_def",
      "line": 220,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def run_case(monkeypatch):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L220-L227",
      "symbol": "test_generate_aborts_on_missing_image"
    },
    {
      "category": "syntax",
      "col": 18,
      "details": {},
      "end_col": 89,
      "end_line": 224,
      "expression": "await gen.generate(_args(), _base_sample(image=\"\"), sampling_params={})",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001565",
      "kind": "await",
      "line": 224,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        samples = await gen.generate(_args(), _base_sample(image=\"\"), sampling_params={})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L224",
      "symbol": "test_generate_aborts_on_missing_image.run_case"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "samples[0].metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 227,
      "expression": "samples[0].metadata.get",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001566",
      "kind": "instance_candidate",
      "line": 227,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        assert samples[0].metadata.get(\"abort_reason\") == \"missing_image_or_workdir\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L227",
      "symbol": "test_generate_aborts_on_missing_image.run_case"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 230,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001567",
      "kind": "api_call",
      "line": 230,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "        asyncio.run(run_case(mp))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L230",
      "symbol": "test_generate_aborts_on_missing_image"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 12,
      "end_line": 253,
      "expression": "async def _codex_agent(env: dict, *, n_turns: int = 2) -> int:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001568",
      "kind": "async_def",
      "line": 238,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "_codex_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "async def _codex_agent(env: dict, *, n_turns: int = 2) -> int:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L238-L253",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "items": 1
      },
      "end_col": 67,
      "end_line": 252,
      "expression": "    async with aiohttp.ClientSession(trust_env=False) as sess:",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001569",
      "kind": "async_with",
      "line": 242,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async with aiohttp.ClientSession(trust_env=False) as sess:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L242-L252",
      "symbol": "_codex_agent"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 37,
      "end_line": 249,
      "expression": "            async with sess.post(",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001570",
      "kind": "async_with",
      "line": 244,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            async with sess.post(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L244-L249",
      "symbol": "_codex_agent"
    },
    {
      "category": "syntax",
      "col": 23,
      "details": {},
      "end_col": 37,
      "end_line": 249,
      "expression": "await r.json()",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001571",
      "kind": "await",
      "line": 249,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "                data = await r.json()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L249",
      "symbol": "_codex_agent"
    },
    {
      "category": "candidates",
      "col": 60,
      "details": {
        "receiver": "msg",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 67,
      "end_line": 251,
      "expression": "msg.get",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001572",
      "kind": "instance_candidate",
      "line": 251,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            history.append({\"role\": \"assistant\", \"content\": msg.get(\"content\") or \"\"})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L251",
      "symbol": "_codex_agent"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 290,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001573",
      "kind": "async_def",
      "line": 260,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L260-L290",
      "symbol": "test_codex_openai_rollout_closes_loop"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 13,
      "end_line": 281,
      "expression": "await CodexHarness().run(\n                sb,\n                workdir=\"/workspace/repo\",\n                session_id=sid,\n                adapter_url=adapter_url,\n                time_budget_sec=30,\n                prompt=\"fix it\",\n            )",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001574",
      "kind": "await",
      "line": 274,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            rc = await CodexHarness().run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L274-L281",
      "symbol": "test_codex_openai_rollout_closes_loop.run_case"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 107,
      "end_line": 282,
      "expression": "await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=\"\"), reward=1.0)",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001575",
      "kind": "await",
      "line": 282,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            samples = await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=\"\"), reward=1.0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L282",
      "symbol": "test_codex_openai_rollout_closes_loop.run_case"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "handle",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 284,
      "expression": "handle.stop",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001576",
      "kind": "instance_candidate",
      "line": 284,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "stop",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "            handle.stop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L284",
      "symbol": "test_codex_openai_rollout_closes_loop.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 292,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_agent_rollout_cpu.py",
      "id": "occ-001577",
      "kind": "api_call",
      "line": 292,
      "module": "tests.test_agent.test_agent_rollout_cpu",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_agent_rollout_cpu.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_agent_rollout_cpu.py#L292",
      "symbol": "test_codex_openai_rollout_closes_loop"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 14
      },
      "end_col": 14,
      "end_line": 14,
      "expression": "import asyncio",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001578",
      "kind": "import",
      "line": 14,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L14",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 35,
      "expression": "asyncio.sleep",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001579",
      "kind": "api_reference",
      "line": 35,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "_REAL_SLEEP = asyncio.sleep",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L35",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 39,
      "expression": "async def _fast_sleep(_secs):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001580",
      "kind": "async_def",
      "line": 38,
      "module": "tests.test_agent.test_harness",
      "name": "_fast_sleep",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "async def _fast_sleep(_secs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L38-L39",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 24,
      "end_line": 39,
      "expression": "await _REAL_SLEEP(0)",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001581",
      "kind": "await",
      "line": 39,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    await _REAL_SLEEP(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L39",
      "symbol": "_fast_sleep"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 61,
      "end_line": 73,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001582",
      "kind": "async_def",
      "line": 56,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L56-L73",
      "symbol": "test_run_agent_returns_marker_exit_code"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 61,
      "expression": "        async def fake_agent(env):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001583",
      "kind": "async_def",
      "line": 59,
      "module": "tests.test_agent.test_harness",
      "name": "fake_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        async def fake_agent(env):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L59-L61",
      "symbol": "test_run_agent_returns_marker_exit_code.run_case"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 13,
      "end_line": 67,
      "expression": "await hc.run_agent(\n                sb, workdir=\"/workspace/repo\", start_cmd=\"claude -p hi\", env={\"A\": \"1\"}, time_budget_sec=30\n            )",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001584",
      "kind": "await",
      "line": 65,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await hc.run_agent(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L65-L67",
      "symbol": "test_run_agent_returns_marker_exit_code.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 75,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001585",
      "kind": "api_call",
      "line": 75,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L75",
      "symbol": "test_run_agent_returns_marker_exit_code"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 86,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001586",
      "kind": "async_def",
      "line": 79,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L79-L86",
      "symbol": "test_run_agent_propagates_nonzero_exit"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 81,
      "expression": "        async def fail_agent(_env):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001587",
      "kind": "async_def",
      "line": 80,
      "module": "tests.test_agent.test_harness",
      "name": "fail_agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        async def fail_agent(_env):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L80-L81",
      "symbol": "test_run_agent_propagates_nonzero_exit.run_case"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 96,
      "end_line": 85,
      "expression": "await hc.run_agent(sb, workdir=\"/w\", start_cmd=\"x\", env={}, time_budget_sec=30)",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001588",
      "kind": "await",
      "line": 85,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await hc.run_agent(sb, workdir=\"/w\", start_cmd=\"x\", env={}, time_budget_sec=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L85",
      "symbol": "test_run_agent_propagates_nonzero_exit.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 88,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001589",
      "kind": "api_call",
      "line": 88,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L88",
      "symbol": "test_run_agent_propagates_nonzero_exit"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 96,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001590",
      "kind": "async_def",
      "line": 92,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L92-L96",
      "symbol": "test_run_agent_times_out_when_marker_never_appears"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 95,
      "end_line": 95,
      "expression": "await hc.run_agent(sb, workdir=\"/w\", start_cmd=\"x\", env={}, time_budget_sec=0)",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001591",
      "kind": "await",
      "line": 95,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await hc.run_agent(sb, workdir=\"/w\", start_cmd=\"x\", env={}, time_budget_sec=0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L95",
      "symbol": "test_run_agent_times_out_when_marker_never_appears.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 98,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001592",
      "kind": "api_call",
      "line": 98,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L98",
      "symbol": "test_run_agent_times_out_when_marker_never_appears"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 49,
      "end_line": 113,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001593",
      "kind": "async_def",
      "line": 107,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L107-L113",
      "symbol": "test_claude_code_write_config_preacks_bypass_permissions"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 58,
      "end_line": 109,
      "expression": "await ClaudeCodeHarness().write_config(sb, _ctx())",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001594",
      "kind": "await",
      "line": 109,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        await ClaudeCodeHarness().write_config(sb, _ctx())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L109",
      "symbol": "test_claude_code_write_config_preacks_bypass_permissions.run_case"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 110,
      "expression": "\" \".join",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001595",
      "kind": "instance_candidate",
      "line": 110,
      "module": "tests.test_agent.test_harness",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        joined = \" \".join(cmd for cmd, _ in sb.exec_log)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L110",
      "symbol": "test_claude_code_write_config_preacks_bypass_permissions.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 115,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001596",
      "kind": "api_call",
      "line": 115,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L115",
      "symbol": "test_claude_code_write_config_preacks_bypass_permissions"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 59,
      "end_line": 141,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001597",
      "kind": "async_def",
      "line": 119,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L119-L141",
      "symbol": "test_claude_code_launch_command_and_env"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 124,
      "expression": "        async def agent(env):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001598",
      "kind": "async_def",
      "line": 122,
      "module": "tests.test_agent.test_harness",
      "name": "agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        async def agent(env):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L122-L124",
      "symbol": "test_claude_code_launch_command_and_env.run_case"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 13,
      "end_line": 130,
      "expression": "await ClaudeCodeHarness().launch_and_wait(\n                capturing, _ctx(sid=\"sess-cc\", url=\"http://host:18001\"), prompt=\"solve it\", time_budget_sec=30\n            )",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001599",
      "kind": "await",
      "line": 128,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await ClaudeCodeHarness().launch_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L128-L130",
      "symbol": "test_claude_code_launch_command_and_env.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 143,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001600",
      "kind": "api_call",
      "line": 143,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L143",
      "symbol": "test_claude_code_launch_command_and_env"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 49,
      "end_line": 161,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001601",
      "kind": "async_def",
      "line": 152,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L152-L161",
      "symbol": "test_codex_write_config_base64_roundtrips_inline_base_url"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 76,
      "end_line": 154,
      "expression": "await CodexHarness().write_config(sb, _ctx(url=\"http://host:18001\"))",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001602",
      "kind": "await",
      "line": 154,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        await CodexHarness().write_config(sb, _ctx(url=\"http://host:18001\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L154",
      "symbol": "test_codex_write_config_base64_roundtrips_inline_base_url.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 163,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001603",
      "kind": "api_call",
      "line": 163,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L163",
      "symbol": "test_codex_write_config_base64_roundtrips_inline_base_url"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 63,
      "end_line": 184,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001604",
      "kind": "async_def",
      "line": 167,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L167-L184",
      "symbol": "test_codex_launch_command_and_env"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 172,
      "expression": "        async def agent(env):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001605",
      "kind": "async_def",
      "line": 170,
      "module": "tests.test_agent.test_harness",
      "name": "agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        async def agent(env):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L170-L172",
      "symbol": "test_codex_launch_command_and_env.run_case"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 13,
      "end_line": 178,
      "expression": "await CodexHarness().launch_and_wait(\n                sb, _ctx(sid=\"sess-cx\", url=\"http://host:18001\"), prompt=\"do work\", time_budget_sec=30\n            )",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001606",
      "kind": "await",
      "line": 176,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await CodexHarness().launch_and_wait(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L176-L178",
      "symbol": "test_codex_launch_command_and_env.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 186,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001607",
      "kind": "api_call",
      "line": 186,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L186",
      "symbol": "test_codex_launch_command_and_env"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 68,
      "end_line": 201,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001608",
      "kind": "async_def",
      "line": 195,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L195-L201",
      "symbol": "test_ensure_agent_user_provisions_user_and_git_safe_dir"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 66,
      "end_line": 197,
      "expression": "await sandbox_mod.ensure_agent_user(sb, \"/workspace/repo\")",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001609",
      "kind": "await",
      "line": 197,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        await sandbox_mod.ensure_agent_user(sb, \"/workspace/repo\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L197",
      "symbol": "test_ensure_agent_user_provisions_user_and_git_safe_dir.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 203,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001610",
      "kind": "api_call",
      "line": 203,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L203",
      "symbol": "test_ensure_agent_user_provisions_user_and_git_safe_dir"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 62,
      "end_line": 230,
      "expression": "    async def run_case():",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001611",
      "kind": "async_def",
      "line": 212,
      "module": "tests.test_agent.test_harness",
      "name": "run_case",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    async def run_case():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L212-L230",
      "symbol": "test_base_harness_run_calls_steps_in_order"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 214,
      "expression": "        async def agent(_env):",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001612",
      "kind": "async_def",
      "line": 213,
      "module": "tests.test_agent.test_harness",
      "name": "agent",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        async def agent(_env):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L213-L214",
      "symbol": "test_base_harness_run_calls_steps_in_order.run_case"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 13,
      "end_line": 225,
      "expression": "await ClaudeCodeHarness().run(\n                sb,\n                workdir=\"/workspace/repo\",\n                session_id=\"sess-run\",\n                adapter_url=\"http://host:18001\",\n                time_budget_sec=30,\n                prompt=\"go\",\n            )",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001613",
      "kind": "await",
      "line": 218,
      "module": "tests.test_agent.test_harness",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "            rc = await ClaudeCodeHarness().run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L218-L225",
      "symbol": "test_base_harness_run_calls_steps_in_order.run_case"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 227,
      "expression": "\" \".join",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001614",
      "kind": "instance_candidate",
      "line": 227,
      "module": "tests.test_agent.test_harness",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "        joined = \" \".join(c for c, _ in sb.exec_log)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L227",
      "symbol": "test_base_harness_run_calls_steps_in_order.run_case"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 232,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_harness.py",
      "id": "occ-001615",
      "kind": "api_call",
      "line": 232,
      "module": "tests.test_agent.test_harness",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_harness.py.txt",
      "source_line": "    asyncio.run(run_case())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_harness.py#L232",
      "symbol": "test_base_harness_run_calls_steps_in_order"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 23
      },
      "end_col": 14,
      "end_line": 23,
      "expression": "import asyncio",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001616",
      "kind": "import",
      "line": 23,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L23",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 60,
      "expression": "    async def __aenter__(self):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001617",
      "kind": "async_def",
      "line": 59,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "__aenter__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def __aenter__(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L59-L60",
      "symbol": "ShellFakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": true
      },
      "end_col": 19,
      "end_line": 63,
      "expression": "    async def __aexit__(self, *exc):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001618",
      "kind": "async_def",
      "line": 62,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "__aexit__",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def __aexit__(self, *exc):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L62-L63",
      "symbol": "ShellFakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 66,
      "expression": "    async def write_file(self, path, content, *, user=\"root\"):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001619",
      "kind": "async_def",
      "line": 65,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "write_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def write_file(self, path, content, *, user=\"root\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L65-L66",
      "symbol": "ShellFakeSandbox"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 39,
      "end_line": 69,
      "expression": "    async def read_file(self, path, *, user=\"root\"):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001620",
      "kind": "async_def",
      "line": 68,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "read_file",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def read_file(self, path, *, user=\"root\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L68-L69",
      "symbol": "ShellFakeSandbox"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "self.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 69,
      "expression": "self.files.get",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001621",
      "kind": "instance_candidate",
      "line": 69,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "        return self.files.get(path, \"\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L69",
      "symbol": "ShellFakeSandbox.read_file"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 96,
      "expression": "    async def exec(self, cmd, *, user=\"root\", env=None, timeout=120, check=False, idempotent=True):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001622",
      "kind": "async_def",
      "line": 71,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "exec",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def exec(self, cmd, *, user=\"root\", env=None, timeout=120, check=False, idempotent=True):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L71-L96",
      "symbol": "ShellFakeSandbox"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "self.files",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 83,
      "expression": "self.files.get",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001623",
      "kind": "instance_candidate",
      "line": 83,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "            return 0, self.files.get(tail.group(1), \"\")[-512:], \"\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L83",
      "symbol": "ShellFakeSandbox.exec"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 122,
      "expression": "    async def _instant(_seconds):",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001624",
      "kind": "async_def",
      "line": 121,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "_instant",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def _instant(_seconds):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L121-L122",
      "symbol": "fast_marker_polls"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 28,
      "end_line": 137,
      "expression": "    async def _two_attempts():",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001625",
      "kind": "async_def",
      "line": 134,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "_two_attempts",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    async def _two_attempts():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L134-L137",
      "symbol": "test_same_tag_reinvocation_actually_reruns"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 107,
      "end_line": 135,
      "expression": "await exec_and_wait(sb, cmd=\"npm install\", time_budget_sec=60, tag=\"npm\", want_output=True)",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001626",
      "kind": "await",
      "line": 135,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "        first = await exec_and_wait(sb, cmd=\"npm install\", time_budget_sec=60, tag=\"npm\", want_output=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L135",
      "symbol": "test_same_tag_reinvocation_actually_reruns._two_attempts"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 108,
      "end_line": 136,
      "expression": "await exec_and_wait(sb, cmd=\"npm install\", time_budget_sec=60, tag=\"npm\", want_output=True)",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001627",
      "kind": "await",
      "line": 136,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "        second = await exec_and_wait(sb, cmd=\"npm install\", time_budget_sec=60, tag=\"npm\", want_output=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L136",
      "symbol": "test_same_tag_reinvocation_actually_reruns._two_attempts"
    },
    {
      "category": "asyncio",
      "col": 57,
      "details": {
        "access": "load"
      },
      "end_col": 68,
      "end_line": 139,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001628",
      "kind": "api_call",
      "line": 139,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    (first_code, first_out), (second_code, second_out) = asyncio.run(_two_attempts())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L139",
      "symbol": "test_same_tag_reinvocation_actually_reruns"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 152,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001629",
      "kind": "api_call",
      "line": 152,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    asyncio.run(exec_and_wait(sb, cmd=\"true\", time_budget_sec=60, tag=\"job\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L152",
      "symbol": "test_transport_retry_of_the_spawn_stays_deduped"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 158,
      "expression": "asyncio.run",
      "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
      "id": "occ-001630",
      "kind": "api_call",
      "line": 158,
      "module": "tests.test_agent.test_sandbox_exec_and_wait",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_agent/test_sandbox_exec_and_wait.py.txt",
      "source_line": "    asyncio.run(sb.exec(spawn_cmds[0]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_agent/test_sandbox_exec_and_wait.py#L158",
      "symbol": "test_transport_retry_of_the_spawn_stays_deduped"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001631",
      "kind": "import",
      "line": 3,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 9
      },
      "end_col": 16,
      "end_line": 9,
      "expression": "import threading",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001632",
      "kind": "import",
      "line": 9,
      "module": "tests.test_distributed_rollout",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 10
      },
      "end_col": 11,
      "end_line": 10,
      "expression": "import time",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001633",
      "kind": "import",
      "line": 10,
      "module": "tests.test_distributed_rollout",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "FIRST_COMPLETED",
        "selective_module_import": false,
        "statement_line": 12
      },
      "end_col": 46,
      "end_line": 12,
      "expression": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001634",
      "kind": "import",
      "line": 12,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.FIRST_COMPLETED",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 48,
      "details": {
        "local_binding": "Future",
        "selective_module_import": false,
        "statement_line": 12
      },
      "end_col": 54,
      "end_line": 12,
      "expression": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001635",
      "kind": "import",
      "line": 12,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.Future",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 56,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 12
      },
      "end_col": 74,
      "end_line": 12,
      "expression": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001636",
      "kind": "import",
      "line": 12,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 76,
      "details": {
        "local_binding": "wait",
        "selective_module_import": false,
        "statement_line": 12
      },
      "end_col": 80,
      "end_line": 12,
      "expression": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001637",
      "kind": "import",
      "line": 12,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.wait",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "from concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 88,
      "expression": "source.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001638",
      "kind": "instance_candidate",
      "line": 88,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L88",
      "symbol": "source_factory"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 89,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001639",
      "kind": "instance_candidate",
      "line": 89,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L89",
      "symbol": "source_factory"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 115,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001640",
      "kind": "instance_candidate",
      "line": 115,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L115",
      "symbol": "test_task_claims_and_producer_cursor_survive_recovery"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "restored",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 127,
      "expression": "restored.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001641",
      "kind": "instance_candidate",
      "line": 127,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        restored.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L127",
      "symbol": "test_task_claims_and_producer_cursor_survive_recovery"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 148,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001642",
      "kind": "instance_candidate",
      "line": 148,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L148",
      "symbol": "test_whole_job_recovery_replays_accepted_results_and_durable_continuations"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 150,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001643",
      "kind": "instance_candidate",
      "line": 150,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L150",
      "symbol": "test_whole_job_recovery_replays_accepted_results_and_durable_continuations"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "restored.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 157,
      "expression": "restored.queue.acquire",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001644",
      "kind": "instance_candidate",
      "line": 157,
      "module": "tests.test_distributed_rollout",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        assignment = restored.queue.acquire(\"new-reader\", 1, task_ids=[task_id]).assignments[0]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L157",
      "symbol": "test_whole_job_recovery_replays_accepted_results_and_durable_continuations"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "restored",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 170,
      "expression": "restored.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001645",
      "kind": "instance_candidate",
      "line": 170,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        restored.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L170",
      "symbol": "test_whole_job_recovery_replays_accepted_results_and_durable_continuations"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "controller.queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 235,
      "expression": "controller.queue.acquire",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001646",
      "kind": "instance_candidate",
      "line": 235,
      "module": "tests.test_distributed_rollout",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    collection = controller.queue.acquire(\"manager\", 1, task_ids=[task_id])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L235",
      "symbol": "test_generation_workers_cannot_claim_manager_collection_tasks"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 264,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001647",
      "kind": "instance_candidate",
      "line": 264,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L264",
      "symbol": "test_manager_replacement_fences_readers_and_recovers_only_unused_results"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "old",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 13,
      "end_line": 265,
      "expression": "old.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001648",
      "kind": "instance_candidate",
      "line": 265,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    old.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L265",
      "symbol": "test_manager_replacement_fences_readers_and_recovers_only_unused_results"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "rebuilt",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 266,
      "expression": "rebuilt.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001649",
      "kind": "instance_candidate",
      "line": 266,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    rebuilt.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L266",
      "symbol": "test_manager_replacement_fences_readers_and_recovers_only_unused_results"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 404,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001650",
      "kind": "instance_candidate",
      "line": 404,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L404",
      "symbol": "test_lost_return_reply_preserves_one_pending_task"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 505,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001651",
      "kind": "instance_candidate",
      "line": 505,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L505",
      "symbol": "test_legacy_rollout_return_completes_borrowed_inputs"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 523,
      "expression": "source.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001652",
      "kind": "instance_candidate",
      "line": 523,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L523",
      "symbol": "test_checkpoint_buffer_and_latest_continuation_survive_reader_release"
    },
    {
      "category": "candidates",
      "col": 71,
      "details": {
        "receiver": "task[\"metadata\"]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 91,
      "end_line": 558,
      "expression": "task[\"metadata\"].get",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001653",
      "kind": "instance_candidate",
      "line": 558,
      "module": "tests.test_distributed_rollout",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    tasks = [task for task in checkpoint[\"pending\"].load()[\"tasks\"] if task[\"metadata\"].get(\"returned\")]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L558",
      "symbol": "test_buffer_checkpoint_reuses_durable_groups_and_protects_them_from_gc.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 566,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001654",
      "kind": "instance_candidate",
      "line": 566,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L566",
      "symbol": "test_buffer_checkpoint_reuses_durable_groups_and_protects_them_from_gc"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 580,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001655",
      "kind": "instance_candidate",
      "line": 580,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L580",
      "symbol": "test_pending_checkpoint_reuses_inputs_without_reserving_leases"
    },
    {
      "category": "threading",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 602,
      "expression": "threading.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001656",
      "kind": "api_call",
      "line": 602,
      "module": "tests.test_distributed_rollout",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    entered, release = threading.Event(), threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L602",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation"
    },
    {
      "category": "threading",
      "col": 42,
      "details": {
        "access": "load"
      },
      "end_col": 57,
      "end_line": 602,
      "expression": "threading.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001657",
      "kind": "api_call",
      "line": 602,
      "module": "tests.test_distributed_rollout",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    entered, release = threading.Event(), threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L602",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 605,
      "expression": "entered.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001658",
      "kind": "instance_candidate",
      "line": 605,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        entered.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L605",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.take"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 606,
      "expression": "release.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001659",
      "kind": "instance_candidate",
      "line": 606,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        if not release.wait(10):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L606",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.take"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 35,
      "end_line": 623,
      "expression": "    async def exercise():",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001660",
      "kind": "async_def",
      "line": 612,
      "module": "tests.test_distributed_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L612-L623",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 613,
      "expression": "asyncio.create_task",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001661",
      "kind": "api_call",
      "line": 613,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        task = asyncio.create_task(source.get_samples_async(1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L613",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 616,
      "expression": "entered.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001662",
      "kind": "instance_candidate",
      "line": 616,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                if entered.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L616",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 41,
      "end_line": 618,
      "expression": "await asyncio.sleep(0.01)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001663",
      "kind": "await",
      "line": 618,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L618",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 618,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001664",
      "kind": "api_call",
      "line": 618,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L618",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 619,
      "expression": "entered.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001665",
      "kind": "instance_candidate",
      "line": 619,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert entered.is_set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L619",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "task",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(source.get_samples_async(1))",
          "line": 613,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 620,
      "expression": "task.done",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001666",
      "kind": "instance_candidate",
      "line": 620,
      "module": "tests.test_distributed_rollout",
      "name": "done",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert not task.done()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L620",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 622,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001667",
      "kind": "instance_candidate",
      "line": 622,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L622",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 29,
      "end_line": 623,
      "expression": "await task",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001668",
      "kind": "await",
      "line": 623,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        assert len(await task) == 1",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L623",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 625,
      "expression": "asyncio.run",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001669",
      "kind": "api_call",
      "line": 625,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L625",
      "symbol": "test_slow_task_acquire_does_not_block_async_generation"
    },
    {
      "category": "asyncio",
      "col": 52,
      "details": {
        "access": "load"
      },
      "end_col": 84,
      "end_line": 647,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001670",
      "kind": "api_call",
      "line": 647,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        return SimpleNamespace(remote=lambda *args: asyncio.run_coroutine_threadsafe(method(*args), loop))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L647",
      "symbol": "scheduler_factory.remote.<lambda>"
    },
    {
      "category": "executors",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 650,
      "expression": "wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001671",
      "kind": "api_call",
      "line": 650,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.wait",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        done, pending = wait(refs, timeout=timeout, return_when=FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L650",
      "symbol": "scheduler_factory.ray_wait"
    },
    {
      "category": "executors",
      "col": 64,
      "details": {
        "access": "load"
      },
      "end_col": 79,
      "end_line": 650,
      "expression": "FIRST_COMPLETED",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001672",
      "kind": "api_reference",
      "line": 650,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.FIRST_COMPLETED",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        done, pending = wait(refs, timeout=timeout, return_when=FIRST_COMPLETED)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L650",
      "symbol": "scheduler_factory.ray_wait"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 655,
      "expression": "loop.call_soon_threadsafe",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001673",
      "kind": "instance_candidate",
      "line": 655,
      "module": "tests.test_distributed_rollout",
      "name": "call_soon_threadsafe",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            loop.call_soon_threadsafe(worker.actor.producer.cancel)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L655",
      "symbol": "scheduler_factory.kill"
    },
    {
      "category": "candidates",
      "col": 48,
      "details": {
        "receiver": "ref",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 58,
      "end_line": 658,
      "expression": "ref.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001674",
      "kind": "instance_candidate",
      "line": 658,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    monkeypatch.setattr(ray, \"get\", lambda ref: ref.result())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L658",
      "symbol": "scheduler_factory.<lambda>"
    },
    {
      "category": "candidates",
      "col": 51,
      "details": {
        "receiver": "ref",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 61,
      "end_line": 659,
      "expression": "ref.cancel",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001675",
      "kind": "instance_candidate",
      "line": 659,
      "module": "tests.test_distributed_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    monkeypatch.setattr(ray, \"cancel\", lambda ref: ref.cancel())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L659",
      "symbol": "scheduler_factory.<lambda>"
    },
    {
      "category": "threading",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 672,
      "expression": "threading.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001676",
      "kind": "api_call",
      "line": 672,
      "module": "tests.test_distributed_rollout",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        release = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L672",
      "symbol": "scheduler_factory.create"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 698,
      "expression": "            async def execute(rollout_id, group=None):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001677",
      "kind": "async_def",
      "line": 683,
      "module": "tests.test_distributed_rollout",
      "name": "execute",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            async def execute(rollout_id, group=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L683-L698",
      "symbol": "scheduler_factory.create.make_generator"
    },
    {
      "category": "candidates",
      "col": 30,
      "details": {
        "receiver": "release",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 672,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 687,
      "expression": "release.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001678",
      "kind": "instance_candidate",
      "line": 687,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                    while not release.is_set():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L687",
      "symbol": "scheduler_factory.create.make_generator.execute"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 49,
      "end_line": 688,
      "expression": "await asyncio.sleep(0.01)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001679",
      "kind": "await",
      "line": 688,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L688",
      "symbol": "scheduler_factory.create.make_generator.execute"
    },
    {
      "category": "asyncio",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 688,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001680",
      "kind": "api_call",
      "line": 688,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L688",
      "symbol": "scheduler_factory.create.make_generator.execute"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 49,
      "end_line": 703,
      "expression": "        async def initial_groups(count):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001681",
      "kind": "async_def",
      "line": 702,
      "module": "tests.test_distributed_rollout",
      "name": "initial_groups",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        async def initial_groups(count):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L702-L703",
      "symbol": "scheduler_factory.create"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 727,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001682",
      "kind": "instance_candidate",
      "line": 727,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L727",
      "symbol": "scheduler_factory"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "scheduler",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 729,
      "expression": "scheduler.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001683",
      "kind": "instance_candidate",
      "line": 729,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        scheduler.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L729",
      "symbol": "scheduler_factory"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 64,
      "end_line": 735,
      "expression": "    async def cleanup():",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001684",
      "kind": "async_def",
      "line": 731,
      "module": "tests.test_distributed_rollout",
      "name": "cleanup",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def cleanup():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L731-L735",
      "symbol": "scheduler_factory"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "producer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 734,
      "expression": "producer.cancel",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001685",
      "kind": "instance_candidate",
      "line": 734,
      "module": "tests.test_distributed_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            producer.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L734",
      "symbol": "scheduler_factory.cleanup"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 64,
      "end_line": 735,
      "expression": "await asyncio.gather(*producers, return_exceptions=True)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001686",
      "kind": "await",
      "line": 735,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.gather(*producers, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L735",
      "symbol": "scheduler_factory.cleanup"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 735,
      "expression": "asyncio.gather",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001687",
      "kind": "api_call",
      "line": 735,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.gather(*producers, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L735",
      "symbol": "scheduler_factory.cleanup"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 737,
      "expression": "asyncio.run_coroutine_threadsafe",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001688",
      "kind": "api_call",
      "line": 737,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run_coroutine_threadsafe",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run_coroutine_threadsafe(cleanup(), loop).result(timeout=10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L737",
      "symbol": "scheduler_factory"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "asyncio.run_coroutine_threadsafe(cleanup(), loop)",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.run_coroutine_threadsafe(cleanup(), loop)",
          "line": 737,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 60,
      "end_line": 737,
      "expression": "asyncio.run_coroutine_threadsafe(cleanup(), loop).result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001689",
      "kind": "instance_candidate",
      "line": 737,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run_coroutine_threadsafe(cleanup(), loop).result(timeout=10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L737",
      "symbol": "scheduler_factory"
    },
    {
      "category": "time-sleep",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 14,
      "end_line": 745,
      "expression": "time.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001690",
      "kind": "api_call",
      "line": 745,
      "module": "tests.test_distributed_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    time.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L745",
      "symbol": "test_scheduler_replaces_rejected_groups_and_bounds_prefetch"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 793,
      "expression": "ThreadPoolExecutor",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001691",
      "kind": "api_call",
      "line": 793,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    with ThreadPoolExecutor(1) as consumer:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L793",
      "symbol": "test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_worker"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "consumer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(1)",
          "line": 793,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 794,
      "expression": "consumer.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001692",
      "kind": "instance_candidate",
      "line": 794,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        future = consumer.submit(scheduler.generate, 0, prefetch=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L794",
      "symbol": "test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_worker"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "consumer.submit(scheduler.generate, 0, prefetch=2)",
          "line": 794,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 796,
      "expression": "future.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001693",
      "kind": "instance_candidate",
      "line": 796,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            result = future.result(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L796",
      "symbol": "test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_worker"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 799,
      "expression": "time.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001694",
      "kind": "api_call",
      "line": 799,
      "module": "tests.test_distributed_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            time.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L799",
      "symbol": "test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_worker"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 804,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001695",
      "kind": "instance_candidate",
      "line": 804,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L804",
      "symbol": "test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_worker"
    },
    {
      "category": "executors",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 20,
      "end_line": 810,
      "expression": "Future",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001696",
      "kind": "api_call",
      "line": 810,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.Future",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    stalled = Future()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L810",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "threading",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 811,
      "expression": "threading.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001697",
      "kind": "api_call",
      "line": 811,
      "module": "tests.test_distributed_rollout",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    entered = threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L811",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "entered",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 811,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 815,
      "expression": "entered.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001698",
      "kind": "instance_candidate",
      "line": 815,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        entered.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L815",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close.stall"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 821,
      "expression": "ThreadPoolExecutor",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001699",
      "kind": "api_call",
      "line": 821,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    with ThreadPoolExecutor(2) as callers:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L821",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "callers",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(2)",
          "line": 821,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 823,
      "expression": "callers.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001700",
      "kind": "instance_candidate",
      "line": 823,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            callers.submit(scheduler.generate, 0, prefetch=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L823",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "callers",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(2)",
          "line": 821,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 825,
      "expression": "callers.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001701",
      "kind": "instance_candidate",
      "line": 825,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            else callers.submit(scheduler.pause)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L825",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "entered",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 811,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 829,
      "expression": "entered.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001702",
      "kind": "instance_candidate",
      "line": 829,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert entered.wait(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L829",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "request",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 831,
      "expression": "request.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001703",
      "kind": "instance_candidate",
      "line": 831,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                result = request.result(timeout=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L831",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "callers",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(2)",
          "line": 821,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 833,
      "expression": "callers.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001704",
      "kind": "instance_candidate",
      "line": 833,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            closing = callers.submit(scheduler.close)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L833",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "closing",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "callers.submit(scheduler.close)",
          "line": 833,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 834,
      "expression": "closing.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001705",
      "kind": "instance_candidate",
      "line": 834,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            closing.result(timeout=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L834",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "request",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 837,
      "expression": "request.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001706",
      "kind": "instance_candidate",
      "line": 837,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                    request.result(timeout=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L837",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "stalled",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "Future()",
          "line": 810,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 840,
      "expression": "stalled.done",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001707",
      "kind": "instance_candidate",
      "line": 840,
      "module": "tests.test_distributed_rollout",
      "name": "done",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            if not stalled.done():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L840",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "stalled",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "Future()",
          "line": 810,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 841,
      "expression": "stalled.set_result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001708",
      "kind": "instance_candidate",
      "line": 841,
      "module": "tests.test_distributed_rollout",
      "name": "set_result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                stalled.set_result(None)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L841",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "scheduler",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 843,
      "expression": "scheduler.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001709",
      "kind": "instance_candidate",
      "line": 843,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            scheduler.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L843",
      "symbol": "test_slow_worker_control_does_not_block_collection_or_close"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 884,
      "expression": "ThreadPoolExecutor",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001710",
      "kind": "api_call",
      "line": 884,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    with ThreadPoolExecutor(1) as consumer:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L884",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "consumer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(1)",
          "line": 884,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 885,
      "expression": "consumer.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001711",
      "kind": "instance_candidate",
      "line": 885,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        future = consumer.submit(scheduler.generate, 0, prefetch=1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L885",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "scheduler.condition",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 44,
      "end_line": 891,
      "expression": "scheduler.condition.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001712",
      "kind": "instance_candidate",
      "line": 891,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                    scheduler.condition.wait(timeout=0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L891",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "scheduler",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 892,
      "expression": "scheduler.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001713",
      "kind": "instance_candidate",
      "line": 892,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            scheduler.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L892",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "consumer.submit(scheduler.generate, 0, prefetch=1)",
          "line": 885,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 894,
      "expression": "future.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001714",
      "kind": "instance_candidate",
      "line": 894,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                future.result(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L894",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 898,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001715",
      "kind": "instance_candidate",
      "line": 898,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L898",
      "symbol": "test_scheduler_close_unblocks_waiting_consumer"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 942,
      "expression": "    async def get_samples(count):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001716",
      "kind": "async_def",
      "line": 940,
      "module": "tests.test_distributed_rollout",
      "name": "get_samples",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def get_samples(count):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L940-L942",
      "symbol": "test_distributed_completed_groups_keep_rewards_and_masks"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 88,
      "end_line": 945,
      "expression": "    async def unexpected_generation(*args):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001717",
      "kind": "async_def",
      "line": 944,
      "module": "tests.test_distributed_rollout",
      "name": "unexpected_generation",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def unexpected_generation(*args):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L944-L945",
      "symbol": "test_distributed_completed_groups_keep_rewards_and_masks"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 44,
      "end_line": 948,
      "expression": "    async def republish_buffered(*args, **kwargs):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001718",
      "kind": "async_def",
      "line": 947,
      "module": "tests.test_distributed_rollout",
      "name": "republish_buffered",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def republish_buffered(*args, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L947-L948",
      "symbol": "test_distributed_completed_groups_keep_rewards_and_masks"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 963,
      "expression": "asyncio.run",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001719",
      "kind": "api_call",
      "line": 963,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    result, _ = asyncio.run(worker._generate_group(3))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L963",
      "symbol": "test_distributed_completed_groups_keep_rewards_and_masks"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 977,
      "expression": "asyncio.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001720",
      "kind": "api_call",
      "line": 977,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    release = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L977",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 995,
      "expression": "    async def generate_group(rollout_id, group=None):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001721",
      "kind": "async_def",
      "line": 982,
      "module": "tests.test_distributed_rollout",
      "name": "generate_group",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def generate_group(rollout_id, group=None):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L982-L995",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 36,
      "end_line": 990,
      "expression": "await release.wait()",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001722",
      "kind": "await",
      "line": 990,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L990",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.generate_group"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "release",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 977,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 990,
      "expression": "release.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001723",
      "kind": "instance_candidate",
      "line": 990,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L990",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.generate_group"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 38,
      "end_line": 992,
      "expression": "await asyncio.sleep(0)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001724",
      "kind": "await",
      "line": 992,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L992",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.generate_group"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 992,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001725",
      "kind": "api_call",
      "line": 992,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L992",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.generate_group"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 45,
      "end_line": 1002,
      "expression": "    async def initial_groups(count):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001726",
      "kind": "async_def",
      "line": 1000,
      "module": "tests.test_distributed_rollout",
      "name": "initial_groups",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def initial_groups(count):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1000-L1002",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 73,
      "end_line": 1037,
      "expression": "    async def exercise():",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001727",
      "kind": "async_def",
      "line": 1006,
      "module": "tests.test_distributed_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1006-L1037",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 30,
      "end_line": 1007,
      "expression": "await worker._start(0)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001728",
      "kind": "await",
      "line": 1007,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await worker._start(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1007",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 69,
      "end_line": 1009,
      "expression": "await asyncio.wait_for(worker._next(), timeout=5)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001729",
      "kind": "await",
      "line": 1009,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            first = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1009",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 1009,
      "expression": "asyncio.wait_for",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001730",
      "kind": "api_call",
      "line": 1009,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            first = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1009",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 70,
      "end_line": 1010,
      "expression": "await asyncio.wait_for(worker._next(), timeout=5)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001731",
      "kind": "await",
      "line": 1010,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            second = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1010",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 1010,
      "expression": "asyncio.wait_for",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001732",
      "kind": "api_call",
      "line": 1010,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            second = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1010",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "release",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 977,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 1013,
      "expression": "release.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001733",
      "kind": "instance_candidate",
      "line": 1013,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert not release.is_set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1013",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 25,
      "details": {},
      "end_col": 74,
      "end_line": 1017,
      "expression": "await asyncio.wait_for(worker._next(), timeout=5)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001734",
      "kind": "await",
      "line": 1017,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                output = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1017",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 31,
      "details": {
        "access": "load"
      },
      "end_col": 47,
      "end_line": 1017,
      "expression": "asyncio.wait_for",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001735",
      "kind": "api_call",
      "line": 1017,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                output = await asyncio.wait_for(worker._next(), timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1017",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 1020,
      "expression": "await asyncio.sleep(0.02)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001736",
      "kind": "await",
      "line": 1020,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1020",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 1020,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001737",
      "kind": "api_call",
      "line": 1020,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1020",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 1022,
      "expression": "await asyncio.sleep(0.02)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001738",
      "kind": "await",
      "line": 1022,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1022",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 1022,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001739",
      "kind": "api_call",
      "line": 1022,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1022",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 33,
      "end_line": 1026,
      "expression": "await worker._pause()",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001740",
      "kind": "await",
      "line": 1026,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await worker._pause()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1026",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 977,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 1027,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001741",
      "kind": "instance_candidate",
      "line": 1027,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1027",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 29,
      "details": {},
      "end_col": 78,
      "end_line": 1029,
      "expression": "await asyncio.wait_for(worker._next(), timeout=5)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001742",
      "kind": "await",
      "line": 1029,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            while (output := await asyncio.wait_for(worker._next(), timeout=5)) is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1029",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 35,
      "details": {
        "access": "load"
      },
      "end_col": 51,
      "end_line": 1029,
      "expression": "asyncio.wait_for",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001743",
      "kind": "api_call",
      "line": 1029,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            while (output := await asyncio.wait_for(worker._next(), timeout=5)) is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1029",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "worker.producer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 1032,
      "expression": "worker.producer.done",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001744",
      "kind": "instance_candidate",
      "line": 1032,
      "module": "tests.test_distributed_rollout",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert worker.producer.done()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1032",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "worker.producer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 1036,
      "expression": "worker.producer.cancel",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001745",
      "kind": "instance_candidate",
      "line": 1036,
      "module": "tests.test_distributed_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            worker.producer.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1036",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 73,
      "end_line": 1037,
      "expression": "await asyncio.gather(worker.producer, return_exceptions=True)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001746",
      "kind": "await",
      "line": 1037,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.gather(worker.producer, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1037",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 1037,
      "expression": "asyncio.gather",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001747",
      "kind": "api_call",
      "line": 1037,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await asyncio.gather(worker.producer, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1037",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 1039,
      "expression": "asyncio.run",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001748",
      "kind": "api_call",
      "line": 1039,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1039",
      "symbol": "test_worker_refills_locally_and_slow_group_does_not_block_results"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 1084,
      "expression": "async def _generate_locally(args, sample, sampling_params):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001749",
      "kind": "async_def",
      "line": 1052,
      "module": "tests.test_distributed_rollout",
      "name": "_generate_locally",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "async def _generate_locally(args, sample, sampling_params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1052-L1084",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 33,
      "end_line": 1054,
      "expression": "await asyncio.sleep(0.01)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001750",
      "kind": "await",
      "line": 1054,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1054",
      "symbol": "_generate_locally"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 1054,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001751",
      "kind": "api_call",
      "line": 1054,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1054",
      "symbol": "_generate_locally"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {},
      "end_col": 56,
      "end_line": 1055,
      "expression": "await asyncio.sleep(0.01 * (sample.group_index % 3))",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001752",
      "kind": "await",
      "line": 1055,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    await asyncio.sleep(0.01 * (sample.group_index % 3))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1055",
      "symbol": "_generate_locally"
    },
    {
      "category": "asyncio",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 1055,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001753",
      "kind": "api_call",
      "line": 1055,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    await asyncio.sleep(0.01 * (sample.group_index % 3))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1055",
      "symbol": "_generate_locally"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 1091,
      "expression": "async def _score_fanout(args, samples):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001754",
      "kind": "async_def",
      "line": 1087,
      "module": "tests.test_distributed_rollout",
      "name": "_score_fanout",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "async def _score_fanout(args, samples):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1087-L1091",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 1100,
      "expression": "async def _score_group(args, samples):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001755",
      "kind": "async_def",
      "line": 1094,
      "module": "tests.test_distributed_rollout",
      "name": "_score_group",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "async def _score_group(args, samples):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1094-L1100",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "\"\\n\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 1154,
      "expression": "\"\\n\".join",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001756",
      "kind": "instance_candidate",
      "line": 1154,
      "module": "tests.test_distributed_rollout",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    dataset.write_text(\"\\n\".join(json.dumps({\"text\": f\"hello {i}\"}) for i in range(7)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1154",
      "symbol": "_rollout_args"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 1438,
      "expression": "source.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001757",
      "kind": "instance_candidate",
      "line": 1438,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1438",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "runtime.ready",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 1467,
      "expression": "runtime.ready.clear",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001758",
      "kind": "instance_candidate",
      "line": 1467,
      "module": "tests.test_distributed_rollout",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        runtime.ready.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1467",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "executors",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 1471,
      "expression": "ThreadPoolExecutor",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001759",
      "kind": "api_call",
      "line": 1471,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        with ThreadPoolExecutor(1) as consumer:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1471",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "consumer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(1)",
          "line": 1471,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 1472,
      "expression": "consumer.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001760",
      "kind": "instance_candidate",
      "line": 1472,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            future = consumer.submit(fetch, 2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1472",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "runtime.condition",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 1478,
      "expression": "runtime.condition.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001761",
      "kind": "instance_candidate",
      "line": 1478,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                        runtime.condition.wait(timeout=0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1478",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "runtime.condition",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 1494,
      "expression": "runtime.condition.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001762",
      "kind": "instance_candidate",
      "line": 1494,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                        runtime.condition.wait(timeout=0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1494",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "consumer.submit(fetch, 2)",
          "line": 1472,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 41,
      "end_line": 1498,
      "expression": "future.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001763",
      "kind": "instance_candidate",
      "line": 1498,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            after_failure = future.result(timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1498",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 1511,
      "expression": "source.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001764",
      "kind": "instance_candidate",
      "line": 1511,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1511",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "runtime.ready",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 1521,
      "expression": "runtime.ready.clear",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001765",
      "kind": "instance_candidate",
      "line": 1521,
      "module": "tests.test_distributed_rollout",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            runtime.ready.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1521",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "runtime.condition",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 1532,
      "expression": "runtime.condition.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001766",
      "kind": "instance_candidate",
      "line": 1532,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "                    runtime.condition.wait(timeout=0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1532",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 1538,
      "expression": "source.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001767",
      "kind": "instance_candidate",
      "line": 1538,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1538",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "cluster",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 1540,
      "expression": "cluster.shutdown",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001768",
      "kind": "instance_candidate",
      "line": 1540,
      "module": "tests.test_distributed_rollout",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        cluster.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1540",
      "symbol": "test_two_ray_nodes_generate_transfer_and_restore"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 1659,
      "expression": "store.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001769",
      "kind": "instance_candidate",
      "line": 1659,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    store.release(\"checkpoint:old\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1659",
      "symbol": "test_restore_source_handoff_releases_obsolete_snapshot_graphs"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 1720,
      "expression": "store.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001770",
      "kind": "instance_candidate",
      "line": 1720,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    store.release(\"checkpoint:old\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1720",
      "symbol": "test_restore_source_handoff_preserves_lazy_consumers_and_failed_save"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 1730,
      "expression": "store.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001771",
      "kind": "instance_candidate",
      "line": 1730,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    store.release(saved[\"storage_owner\"])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1730",
      "symbol": "test_restore_source_handoff_preserves_lazy_consumers_and_failed_save"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller.store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 1776,
      "expression": "controller.store.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001772",
      "kind": "instance_candidate",
      "line": 1776,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller.store.release(\"checkpoint:old\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1776",
      "symbol": "test_restore_source_handoff_preserves_prefix_before_later_accepted_result"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 1837,
      "expression": "    async def exercise():",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001773",
      "kind": "async_def",
      "line": 1830,
      "module": "tests.test_distributed_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1830-L1837",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation"
    },
    {
      "category": "asyncio",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 1831,
      "expression": "asyncio.create_task",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001774",
      "kind": "api_call",
      "line": 1831,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        waiters = [asyncio.create_task(actor._rebuffer(i)) for i in range(130)]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1831",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 34,
      "end_line": 1832,
      "expression": "await asyncio.sleep(0.001)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001775",
      "kind": "await",
      "line": 1832,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.001)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1832",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 1832,
      "expression": "asyncio.sleep",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001776",
      "kind": "api_call",
      "line": 1832,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.001)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1832",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "waiters[0]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 1833,
      "expression": "waiters[0].cancel",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001777",
      "kind": "instance_candidate",
      "line": 1833,
      "module": "tests.test_distributed_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        waiters[0].cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1833",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 62,
      "end_line": 1834,
      "expression": "await asyncio.gather(*waiters, return_exceptions=True)",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001778",
      "kind": "await",
      "line": 1834,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.gather(*waiters, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1834",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 1834,
      "expression": "asyncio.gather",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001779",
      "kind": "api_call",
      "line": 1834,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await asyncio.gather(*waiters, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1834",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 1839,
      "expression": "asyncio.run",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001780",
      "kind": "api_call",
      "line": 1839,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1839",
      "symbol": "test_cancelled_rebuffer_waiter_does_not_drop_its_continuation"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "scheduler",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 1891,
      "expression": "scheduler.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001781",
      "kind": "instance_candidate",
      "line": 1891,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            scheduler.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1891",
      "symbol": "test_shutdown_allows_large_buffers_and_propagates_deadline_failure"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "scheduler",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 1893,
      "expression": "scheduler.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001782",
      "kind": "instance_candidate",
      "line": 1893,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        scheduler.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1893",
      "symbol": "test_shutdown_allows_large_buffers_and_propagates_deadline_failure"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller.store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 1934,
      "expression": "controller.store.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001783",
      "kind": "instance_candidate",
      "line": 1934,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller.store.release(\"checkpoint:test\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1934",
      "symbol": "test_online_gc_waits_for_training_completion_and_checkpoint_release"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "controller._gc_thread",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 1981,
      "expression": "controller._gc_thread.is_alive",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001784",
      "kind": "instance_candidate",
      "line": 1981,
      "module": "tests.test_distributed_rollout",
      "name": "is_alive",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert controller._gc_thread.is_alive()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1981",
      "symbol": "test_joint_restore_starts_gc_only_after_consumer_state_is_durable"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 1986,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001785",
      "kind": "instance_candidate",
      "line": 1986,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1986",
      "symbol": "test_joint_restore_starts_gc_only_after_consumer_state_is_durable"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 1998,
      "expression": "queue.acquire",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001786",
      "kind": "instance_candidate",
      "line": 1998,
      "module": "tests.test_distributed_rollout",
      "name": "acquire",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    lease = queue.acquire(\"reader\").assignments[0].lease",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L1998",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "threading",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 2010,
      "expression": "threading.Thread",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001787",
      "kind": "api_call",
      "line": 2010,
      "module": "tests.test_distributed_rollout",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller._gc_thread = threading.Thread(target=controller._gc_loop)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2010",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller._gc_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=controller._gc_loop)",
          "line": 2010,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 2011,
      "expression": "controller._gc_thread.start",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001788",
      "kind": "instance_candidate",
      "line": 2011,
      "module": "tests.test_distributed_rollout",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller._gc_thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2011",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "controller._gc_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=controller._gc_loop)",
          "line": 2010,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 2012,
      "expression": "controller._gc_thread.join",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001789",
      "kind": "instance_candidate",
      "line": 2012,
      "module": "tests.test_distributed_rollout",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    controller._gc_thread.join(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2012",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "controller._gc_thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=controller._gc_loop)",
          "line": 2010,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 2013,
      "expression": "controller._gc_thread.is_alive",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001790",
      "kind": "instance_candidate",
      "line": 2013,
      "module": "tests.test_distributed_rollout",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    assert not controller._gc_thread.is_alive()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2013",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "controller._gc_stop",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 2014,
      "expression": "controller._gc_stop.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001791",
      "kind": "instance_candidate",
      "line": 2014,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    assert controller._gc_stop.is_set() and calls == [\"collect\"]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2014",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 2039,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001792",
      "kind": "instance_candidate",
      "line": 2039,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2039",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "controller.store",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 2041,
      "expression": "controller.store.read",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001793",
      "kind": "instance_candidate",
      "line": 2041,
      "module": "tests.test_distributed_rollout",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    assert next(controller.store.read(ref)).payload == b\"still protected\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2041",
      "symbol": "test_background_gc_failure_stops_queue_work_and_fails_close"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 2049,
      "expression": "ThreadPoolExecutor",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001794",
      "kind": "api_call",
      "line": 2049,
      "module": "tests.test_distributed_rollout",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    with ThreadPoolExecutor(1) as pool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2049",
      "symbol": "test_admission_pause_acknowledges_workers_without_waiting_for_responses"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(1)",
          "line": 2049,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 2050,
      "expression": "pool.submit",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001795",
      "kind": "instance_candidate",
      "line": 2050,
      "module": "tests.test_distributed_rollout",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        paused = pool.submit(scheduler.pause, drain=False)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2050",
      "symbol": "test_admission_pause_acknowledges_workers_without_waiting_for_responses"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "paused",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "pool.submit(scheduler.pause, drain=False)",
          "line": 2050,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 2052,
      "expression": "paused.result",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001796",
      "kind": "instance_candidate",
      "line": 2052,
      "module": "tests.test_distributed_rollout",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert paused.result(timeout=3) is False",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2052",
      "symbol": "test_admission_pause_acknowledges_workers_without_waiting_for_responses"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 2053,
      "expression": "release.is_set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001797",
      "kind": "instance_candidate",
      "line": 2053,
      "module": "tests.test_distributed_rollout",
      "name": "is_set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            assert not release.is_set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2053",
      "symbol": "test_admission_pause_acknowledges_workers_without_waiting_for_responses"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 2057,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001798",
      "kind": "instance_candidate",
      "line": 2057,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2057",
      "symbol": "test_admission_pause_acknowledges_workers_without_waiting_for_responses"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 38,
      "end_line": 2101,
      "expression": "    async def run():",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001799",
      "kind": "async_def",
      "line": 2071,
      "module": "tests.test_distributed_rollout",
      "name": "run",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    async def run():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2071-L2101",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 2072,
      "expression": "asyncio.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001800",
      "kind": "api_call",
      "line": 2072,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        entered, release = asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2072",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "asyncio",
      "col": 44,
      "details": {
        "access": "load"
      },
      "end_col": 57,
      "end_line": 2072,
      "expression": "asyncio.Event",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001801",
      "kind": "api_call",
      "line": 2072,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        entered, release = asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2072",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 2081,
      "expression": "        async def fetch(count):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001802",
      "kind": "async_def",
      "line": 2078,
      "module": "tests.test_distributed_rollout",
      "name": "fetch",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        async def fetch(count):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2078-L2081",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 2079,
      "expression": "entered.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001803",
      "kind": "instance_candidate",
      "line": 2079,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            entered.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2079",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run.fetch"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 32,
      "end_line": 2080,
      "expression": "await release.wait()",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001804",
      "kind": "await",
      "line": 2080,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2080",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run.fetch"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 2080,
      "expression": "release.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001805",
      "kind": "instance_candidate",
      "line": 2080,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2080",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run.fetch"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 2084,
      "expression": "        async def rebuffer(value):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001806",
      "kind": "async_def",
      "line": 2083,
      "module": "tests.test_distributed_rollout",
      "name": "rebuffer",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        async def rebuffer(value):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2083-L2084",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 79,
      "end_line": 2087,
      "expression": "        async def unexpected(*args):",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001807",
      "kind": "async_def",
      "line": 2086,
      "module": "tests.test_distributed_rollout",
      "name": "unexpected",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        async def unexpected(*args):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2086-L2087",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 2094,
      "expression": "asyncio.create_task",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001808",
      "kind": "api_call",
      "line": 2094,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        task = asyncio.create_task(worker._generate_group(0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2094",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 28,
      "end_line": 2095,
      "expression": "await entered.wait()",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001809",
      "kind": "await",
      "line": 2095,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await entered.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2095",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 2095,
      "expression": "entered.wait",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001810",
      "kind": "instance_candidate",
      "line": 2095,
      "module": "tests.test_distributed_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await entered.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2095",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 29,
      "end_line": 2096,
      "expression": "await worker._pause()",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001811",
      "kind": "await",
      "line": 2096,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        await worker._pause()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2096",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 2097,
      "expression": "release.set",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001812",
      "kind": "instance_candidate",
      "line": 2097,
      "module": "tests.test_distributed_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2097",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 25,
      "end_line": 2098,
      "expression": "await task",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001813",
      "kind": "await",
      "line": 2098,
      "module": "tests.test_distributed_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        assert await task is None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2098",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 2103,
      "expression": "asyncio.run",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001814",
      "kind": "api_call",
      "line": 2103,
      "module": "tests.test_distributed_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "    asyncio.run(run())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2103",
      "symbol": "test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "fork",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 2180,
      "expression": "fork.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001815",
      "kind": "instance_candidate",
      "line": 2180,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "            fork.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2180",
      "symbol": "test_checkpoint_fork_restores_partial_ready_and_producer_without_parent_mutation"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "fork",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 2203,
      "expression": "fork.release",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001816",
      "kind": "instance_candidate",
      "line": 2203,
      "module": "tests.test_distributed_rollout",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        fork.release([assignment.lease])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2203",
      "symbol": "test_checkpoint_fork_restores_partial_ready_and_producer_without_parent_mutation"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "fork",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 2205,
      "expression": "fork.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001817",
      "kind": "instance_candidate",
      "line": 2205,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        fork.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2205",
      "symbol": "test_checkpoint_fork_restores_partial_ready_and_producer_without_parent_mutation"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "resumed",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 2236,
      "expression": "resumed.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001818",
      "kind": "instance_candidate",
      "line": 2236,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        resumed.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2236",
      "symbol": "test_checkpoint_fork_restores_partial_ready_and_producer_without_parent_mutation"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 2274,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001819",
      "kind": "instance_candidate",
      "line": 2274,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2274",
      "symbol": "test_automatic_empty_restore_reads_the_saved_dataset_offset"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 2308,
      "expression": "reader.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001820",
      "kind": "instance_candidate",
      "line": 2308,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        reader.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2308",
      "symbol": "test_automatic_restart_before_first_checkpoint_recovers_the_same_queue"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 2309,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001821",
      "kind": "instance_candidate",
      "line": 2309,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2309",
      "symbol": "test_automatic_restart_before_first_checkpoint_recovers_the_same_queue"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 2323,
      "expression": "controller.close",
      "file": "tests/test_distributed_rollout.py",
      "id": "occ-001822",
      "kind": "instance_candidate",
      "line": 2323,
      "module": "tests.test_distributed_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_distributed_rollout.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_distributed_rollout.py#L2323",
      "symbol": "test_automatic_restart_before_first_checkpoint_recovers_the_same_queue"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 21
      },
      "end_col": 14,
      "end_line": 21,
      "expression": "import asyncio",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001823",
      "kind": "import",
      "line": 21,
      "module": "tests.test_fully_async_rollout",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L21",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 23
      },
      "end_col": 16,
      "end_line": 23,
      "expression": "import threading",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001824",
      "kind": "import",
      "line": 23,
      "module": "tests.test_fully_async_rollout",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L23",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 24
      },
      "end_col": 11,
      "end_line": 24,
      "expression": "import time",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001825",
      "kind": "import",
      "line": 24,
      "module": "tests.test_fully_async_rollout",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L24",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 23,
      "end_line": 66,
      "expression": "    async def generate(received_args, rollout_id, received_source):",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001826",
      "kind": "async_def",
      "line": 63,
      "module": "tests.test_fully_async_rollout",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    async def generate(received_args, rollout_id, received_source):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L63-L66",
      "symbol": "test_custom_data_source_keeps_original_entrypoint"
    },
    {
      "category": "asyncio",
      "col": 35,
      "details": {
        "access": "load"
      },
      "end_col": 46,
      "end_line": 70,
      "expression": "asyncio.run",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001827",
      "kind": "api_reference",
      "line": 70,
      "module": "tests.test_fully_async_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    monkeypatch.setattr(fa, \"run\", asyncio.run)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L70",
      "symbol": "test_custom_data_source_keeps_original_entrypoint"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "worker.output_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 112,
      "expression": "worker.output_queue.put",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001828",
      "kind": "instance_candidate",
      "line": 112,
      "module": "tests.test_fully_async_rollout",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        worker.output_queue.put((gid, _make_group(gid)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L112",
      "symbol": "test_rollout_takes_target_groups_and_leaves_surplus_queued"
    },
    {
      "category": "asyncio",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 21,
      "end_line": 118,
      "expression": "asyncio.run",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001829",
      "kind": "api_call",
      "line": 118,
      "module": "tests.test_fully_async_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    out = asyncio.run(fa._generate_rollout_async(args, rollout_id=0, data_buffer=None))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L118",
      "symbol": "test_rollout_takes_target_groups_and_leaves_surplus_queued"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "worker.output_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 132,
      "expression": "worker.output_queue.put",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001830",
      "kind": "instance_candidate",
      "line": 132,
      "module": "tests.test_fully_async_rollout",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        worker.output_queue.put((gid, _make_group(gid)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L132",
      "symbol": "test_get_completed_groups_limit"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "worker.output_queue",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 153,
      "expression": "worker.output_queue.put",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001831",
      "kind": "instance_candidate",
      "line": 153,
      "module": "tests.test_fully_async_rollout",
      "name": "put",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        worker.output_queue.put((gid, group))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L153",
      "symbol": "test_dynamic_filter_drops_groups_and_refills"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 166,
      "expression": "asyncio.run",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001832",
      "kind": "api_call",
      "line": 166,
      "module": "tests.test_fully_async_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    result = asyncio.run(fa._generate_rollout_async(args, rollout_id=7, data_buffer=None))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L166",
      "symbol": "test_dynamic_filter_drops_groups_and_refills"
    },
    {
      "category": "threading",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 218,
      "expression": "threading.Thread",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001833",
      "kind": "api_call",
      "line": 218,
      "module": "tests.test_fully_async_rollout",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    pusher = threading.Thread(target=_push_all, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L218",
      "symbol": "test_done_callback_never_blocks_event_loop_thread"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "pusher",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=_push_all, daemon=True)",
          "line": 218,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 219,
      "expression": "pusher.start",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001834",
      "kind": "instance_candidate",
      "line": 219,
      "module": "tests.test_fully_async_rollout",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    pusher.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L219",
      "symbol": "test_done_callback_never_blocks_event_loop_thread"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "pusher",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=_push_all, daemon=True)",
          "line": 218,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 220,
      "expression": "pusher.join",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001835",
      "kind": "instance_candidate",
      "line": 220,
      "module": "tests.test_fully_async_rollout",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    pusher.join(timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L220",
      "symbol": "test_done_callback_never_blocks_event_loop_thread"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "pusher",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=_push_all, daemon=True)",
          "line": 218,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 222,
      "expression": "pusher.is_alive",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001836",
      "kind": "instance_candidate",
      "line": 222,
      "module": "tests.test_fully_async_rollout",
      "name": "is_alive",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    assert not pusher.is_alive(), \"done-callback blocked on a full output queue\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L222",
      "symbol": "test_done_callback_never_blocks_event_loop_thread"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 235,
      "expression": "    async def _instant_generate(args, group, sampling_params, evaluation):",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001837",
      "kind": "async_def",
      "line": 234,
      "module": "tests.test_fully_async_rollout",
      "name": "_instant_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    async def _instant_generate(args, group, sampling_params, evaluation):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L234-L235",
      "symbol": "test_loop_backpressure_stops_topping_up_when_queue_is_full"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "worker",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 241,
      "expression": "worker.start",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001838",
      "kind": "instance_candidate",
      "line": 241,
      "module": "tests.test_fully_async_rollout",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    worker.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L241",
      "symbol": "test_loop_backpressure_stops_topping_up_when_queue_is_full"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 250,
      "expression": "time.sleep",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001839",
      "kind": "api_call",
      "line": 250,
      "module": "tests.test_fully_async_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "            time.sleep(0.02)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L250",
      "symbol": "test_loop_backpressure_stops_topping_up_when_queue_is_full"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "worker",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 252,
      "expression": "worker.close",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001840",
      "kind": "instance_candidate",
      "line": 252,
      "module": "tests.test_fully_async_rollout",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        worker.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L252",
      "symbol": "test_loop_backpressure_stops_topping_up_when_queue_is_full"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 20,
      "end_line": 268,
      "expression": "    async def generate(args, group, sampling_params, evaluation):",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001841",
      "kind": "async_def",
      "line": 266,
      "module": "tests.test_fully_async_rollout",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    async def generate(args, group, sampling_params, evaluation):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L266-L268",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 33,
      "end_line": 267,
      "expression": "await asyncio.sleep(0.01)",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001842",
      "kind": "await",
      "line": 267,
      "module": "tests.test_fully_async_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L267",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source.generate"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 267,
      "expression": "asyncio.sleep",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001843",
      "kind": "api_call",
      "line": 267,
      "module": "tests.test_fully_async_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "        await asyncio.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L267",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source.generate"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 279,
      "expression": "time.sleep",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001844",
      "kind": "api_call",
      "line": 279,
      "module": "tests.test_fully_async_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "            time.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L279",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 284,
      "expression": "time.sleep",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001845",
      "kind": "api_call",
      "line": 284,
      "module": "tests.test_fully_async_rollout",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "            time.sleep(0.03)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L284",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "worker.worker_thread",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 48,
      "end_line": 292,
      "expression": "worker.worker_thread.is_alive",
      "file": "tests/test_fully_async_rollout.py",
      "id": "occ-001846",
      "kind": "instance_candidate",
      "line": 292,
      "module": "tests.test_fully_async_rollout",
      "name": "is_alive",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_fully_async_rollout.py.txt",
      "source_line": "    assert all(not worker.worker_thread.is_alive() for worker in workers)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_fully_async_rollout.py#L292",
      "symbol": "test_local_worker_lifecycle_is_scoped_to_source.<comprehension>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 31
      },
      "end_col": 17,
      "end_line": 31,
      "expression": "import subprocess",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001847",
      "kind": "import",
      "line": 31,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L31",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 72,
      "expression": "subprocess.run",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001848",
      "kind": "api_call",
      "line": 72,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    out = subprocess.run([\"ip\", \"-o\", \"-4\", \"addr\", \"show\", ifname], capture_output=True, text=True).stdout.split()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L72",
      "symbol": "_iface_ipv4"
    },
    {
      "category": "subprocess",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 124,
      "expression": "subprocess.run",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001849",
      "kind": "api_call",
      "line": 124,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    visible = subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L124",
      "symbol": "_skip_reason"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 132,
      "expression": "subprocess.run",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001850",
      "kind": "api_call",
      "line": 132,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    probe = subprocess.run([sys.executable, \"-c\", _PREREQ_PROBE], capture_output=True, text=True, env=probe_env)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L132",
      "symbol": "_skip_reason"
    },
    {
      "category": "subprocess",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 153,
      "expression": "subprocess.run",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001851",
      "kind": "api_call",
      "line": 153,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    subprocess.run(command, check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L153",
      "symbol": "_download_ci_asset"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 264,
      "expression": "\" \".join",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001852",
      "kind": "instance_candidate",
      "line": 264,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    return \" \".join(groups)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L264",
      "symbol": "_train_args"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 398,
      "expression": "subprocess.run",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001853",
      "kind": "api_call",
      "line": 398,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "        r = subprocess.run(cmd, env=env, cwd=cwd, capture_output=True, text=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L398",
      "symbol": "_run"
    },
    {
      "category": "subprocess",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 402,
      "expression": "subprocess.Popen",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001854",
      "kind": "api_call",
      "line": 402,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L402",
      "symbol": "_run"
    },
    {
      "category": "subprocess",
      "col": 58,
      "details": {
        "access": "load"
      },
      "end_col": 73,
      "end_line": 402,
      "expression": "subprocess.PIPE",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001855",
      "kind": "api_reference",
      "line": 402,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L402",
      "symbol": "_run"
    },
    {
      "category": "subprocess",
      "col": 82,
      "details": {
        "access": "load"
      },
      "end_col": 99,
      "end_line": 402,
      "expression": "subprocess.STDOUT",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001856",
      "kind": "api_reference",
      "line": 402,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "subprocess.STDOUT",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L402",
      "symbol": "_run"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "proc",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)",
          "line": 402,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 13,
      "end_line": 408,
      "expression": "proc.wait",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001857",
      "kind": "instance_candidate",
      "line": 408,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    proc.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L408",
      "symbol": "_run"
    },
    {
      "category": "candidates",
      "col": 28,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 409,
      "expression": "\"\".join",
      "file": "tests/test_glm52_6layer_deterministic_e2e.py",
      "id": "occ-001858",
      "kind": "instance_candidate",
      "line": 409,
      "module": "tests.test_glm52_6layer_deterministic_e2e",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_glm52_6layer_deterministic_e2e.py.txt",
      "source_line": "    return proc.returncode, \"\".join(lines)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_glm52_6layer_deterministic_e2e.py#L409",
      "symbol": "_run"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 4
      },
      "end_col": 17,
      "end_line": 4,
      "expression": "import subprocess",
      "file": "tests/test_optional_straw.py",
      "id": "occ-001859",
      "kind": "import",
      "line": 4,
      "module": "tests.test_optional_straw",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_optional_straw.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_optional_straw.py#L4",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 86,
      "expression": "    async def generate(*values):",
      "file": "tests/test_optional_straw.py",
      "id": "occ-001860",
      "kind": "async_def",
      "line": 85,
      "module": "tests.test_optional_straw",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_optional_straw.py.txt",
      "source_line": "    async def generate(*values):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_optional_straw.py#L85-L86",
      "symbol": "_run_default_without_straw"
    },
    {
      "category": "subprocess",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 144,
      "expression": "subprocess.run",
      "file": "tests/test_optional_straw.py",
      "id": "occ-001861",
      "kind": "api_call",
      "line": 144,
      "module": "tests.test_optional_straw",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_optional_straw.py.txt",
      "source_line": "    subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_optional_straw.py#L144",
      "symbol": "test_default_rollout_and_training_work_without_straw"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001862",
      "kind": "import",
      "line": 3,
      "module": "tests.test_published_payload_retry",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 5
      },
      "end_col": 16,
      "end_line": 5,
      "expression": "import threading",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001863",
      "kind": "import",
      "line": 5,
      "module": "tests.test_published_payload_retry",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 17,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 23,
      "expression": "f.read",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001864",
      "kind": "instance_candidate",
      "line": 23,
      "module": "tests.test_published_payload_retry",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "        header = f.read(12)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L23",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 25,
      "expression": "f.write",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001865",
      "kind": "instance_candidate",
      "line": 25,
      "module": "tests.test_published_payload_retry",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "        f.write(bytes(12))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L25",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "f",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 32,
      "expression": "f.write",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001866",
      "kind": "instance_candidate",
      "line": 32,
      "module": "tests.test_published_payload_retry",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "            f.write(header)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L32",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer.restore"
    },
    {
      "category": "threading",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 36,
      "expression": "threading.Timer",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001867",
      "kind": "api_call",
      "line": 36,
      "module": "tests.test_published_payload_retry",
      "name": "threading.Timer",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "    timer = threading.Timer(0.05, restore)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L36",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "timer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Timer(0.05, restore)",
          "line": 36,
          "type": "threading.Timer"
        },
        "resolved_non_native_name": null
      },
      "end_col": 15,
      "end_line": 37,
      "expression": "timer.start",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001868",
      "kind": "instance_candidate",
      "line": 37,
      "module": "tests.test_published_payload_retry",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "    timer.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L37",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 42,
      "expression": "asyncio.run",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001869",
      "kind": "api_call",
      "line": 42,
      "module": "tests.test_published_payload_retry",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "            result = asyncio.run(transport.unpack_published_payload(ref))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L42",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "timer",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Timer(0.05, restore)",
          "line": 36,
          "type": "threading.Timer"
        },
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 47,
      "expression": "timer.join",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001870",
      "kind": "instance_candidate",
      "line": 47,
      "module": "tests.test_published_payload_retry",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "        timer.join()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L47",
      "symbol": "test_result_and_shelve_payloads_recover_at_the_storage_layer"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 64,
      "expression": "asyncio.run",
      "file": "tests/test_published_payload_retry.py",
      "id": "occ-001871",
      "kind": "api_call",
      "line": 64,
      "module": "tests.test_published_payload_retry",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_published_payload_retry.py.txt",
      "source_line": "        asyncio.run(transport.unpack_published_payload(ref))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_published_payload_retry.py#L64",
      "symbol": "test_native_failure_is_not_retried_again_by_slime"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 2
      },
      "end_col": 17,
      "end_line": 2,
      "expression": "import subprocess",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001872",
      "kind": "import",
      "line": 2,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 3
      },
      "end_col": 11,
      "end_line": 3,
      "expression": "import time",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001873",
      "kind": "import",
      "line": 3,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 62,
      "end_line": 25,
      "expression": "\",\".join",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001874",
      "kind": "instance_candidate",
      "line": 25,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "    all_gpus = os.environ.get(\"CUDA_VISIBLE_DEVICES\", \",\".join(str(i) for i in range(NUM_GPUS))).split(\",\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L25",
      "symbol": "_get_gpu_split"
    },
    {
      "category": "subprocess",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 39,
      "expression": "subprocess.Popen",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001875",
      "kind": "api_call",
      "line": 39,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "    process = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L39",
      "symbol": "_launch_teacher_server"
    },
    {
      "category": "subprocess",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 57,
      "expression": "subprocess.STDOUT",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001876",
      "kind": "api_reference",
      "line": 57,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "subprocess.STDOUT",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "        stderr=subprocess.STDOUT,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L57",
      "symbol": "_launch_teacher_server"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n        [\n            \"python3\",\n            \"-m\",\n            \"sglang.launch_server\",\n            \"--model-path\",\n            f\"/root/models/{MODEL_NAME}\",\n            \"--host\",\n            \"0.0.0.0\",\n            \"--port\",\n            str(TEACHER_PORT),\n            \"--tp\",\n            \"1\",\n            \"--mem-fraction-static\",\n            \"0.6\",\n        ],\n        env=env,\n        stdout=log_file,\n        stderr=subprocess.STDOUT,\n    )",
          "line": 39,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 64,
      "expression": "process.poll",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001877",
      "kind": "instance_candidate",
      "line": 64,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "poll",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "        if process.poll() is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L64",
      "symbol": "_launch_teacher_server"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 73,
      "expression": "time.sleep",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001878",
      "kind": "api_call",
      "line": 73,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "        time.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L73",
      "symbol": "_launch_teacher_server"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n        [\n            \"python3\",\n            \"-m\",\n            \"sglang.launch_server\",\n            \"--model-path\",\n            f\"/root/models/{MODEL_NAME}\",\n            \"--host\",\n            \"0.0.0.0\",\n            \"--port\",\n            str(TEACHER_PORT),\n            \"--tp\",\n            \"1\",\n            \"--mem-fraction-static\",\n            \"0.6\",\n        ],\n        env=env,\n        stdout=log_file,\n        stderr=subprocess.STDOUT,\n    )",
          "line": 39,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 75,
      "expression": "process.kill",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001879",
      "kind": "instance_candidate",
      "line": 75,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "kill",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "    process.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L75",
      "symbol": "_launch_teacher_server"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 84,
      "expression": "\",\".join",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001880",
      "kind": "instance_candidate",
      "line": 84,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "    os.environ[\"CUDA_VISIBLE_DEVICES\"] = \",\".join(train_gpus)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L84",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "teacher_process",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 197,
      "expression": "teacher_process.kill",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001881",
      "kind": "instance_candidate",
      "line": 197,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "kill",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "            teacher_process.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L197",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "teacher_process",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 198,
      "expression": "teacher_process.wait",
      "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
      "id": "occ-001882",
      "kind": "instance_candidate",
      "line": 198,
      "module": "tests.test_qwen2.5_0.5B_opd_sglang",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_opd_sglang.py.txt",
      "source_line": "            teacher_process.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_opd_sglang.py#L198",
      "symbol": "execute"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 7
      },
      "end_col": 17,
      "end_line": 7,
      "expression": "import subprocess",
      "file": "tests/test_qwen2.5_0.5B_rollout_health.py",
      "id": "occ-001883",
      "kind": "import",
      "line": 7,
      "module": "tests.test_qwen2.5_0.5B_rollout_health",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_rollout_health.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_rollout_health.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 82,
      "expression": "subprocess.run",
      "file": "tests/test_qwen2.5_0.5B_rollout_health.py",
      "id": "occ-001884",
      "kind": "api_call",
      "line": 82,
      "module": "tests.test_qwen2.5_0.5B_rollout_health",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_rollout_health.py.txt",
      "source_line": "            subprocess.run([\"ray\", \"stop\", \"--force\"], check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_rollout_health.py#L82",
      "symbol": "execute"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 5
      },
      "end_col": 9,
      "end_line": 5,
      "expression": "import os",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001885",
      "kind": "import",
      "line": 5,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 7
      },
      "end_col": 17,
      "end_line": 7,
      "expression": "import subprocess",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001886",
      "kind": "import",
      "line": 7,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L7",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 9
      },
      "end_col": 11,
      "end_line": 9,
      "expression": "import time",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001887",
      "kind": "import",
      "line": 9,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 75,
      "expression": "time.sleep",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001888",
      "kind": "api_call",
      "line": 75,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "        time.sleep(10)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L75",
      "symbol": "wait_job"
    },
    {
      "category": "subprocess",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 169,
      "expression": "subprocess.run",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001889",
      "kind": "api_call",
      "line": 169,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "        subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L169",
      "symbol": "execute"
    },
    {
      "category": "os-process",
      "col": 47,
      "details": {
        "access": "load"
      },
      "end_col": 56,
      "end_line": 333,
      "expression": "os.getpid",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001890",
      "kind": "api_call",
      "line": 333,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "                        started.write_text(str(os.getpid()))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L333",
      "symbol": "execute.block"
    },
    {
      "category": "time-sleep",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 334,
      "expression": "time.sleep",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001891",
      "kind": "api_call",
      "line": 334,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "                        time.sleep(300)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L334",
      "symbol": "execute.block"
    },
    {
      "category": "time-sleep",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 340,
      "expression": "time.sleep",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001892",
      "kind": "api_call",
      "line": 340,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "                        time.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L340",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "http",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 352,
      "expression": "http.get",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001893",
      "kind": "instance_candidate",
      "line": 352,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "                                http.get(engine[\"url\"] + \"/health\", timeout=2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L352",
      "symbol": "execute"
    },
    {
      "category": "time-sleep",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 356,
      "expression": "time.sleep",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001894",
      "kind": "api_call",
      "line": 356,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "                            time.sleep(1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L356",
      "symbol": "execute"
    },
    {
      "category": "subprocess",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 374,
      "expression": "subprocess.run",
      "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
      "id": "occ-001895",
      "kind": "api_call",
      "line": 374,
      "module": "tests.test_qwen2.5_0.5B_training_recovery",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen2.5_0.5B_training_recovery.py.txt",
      "source_line": "            subprocess.run([\"ray\", \"stop\", \"--force\"], check=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen2.5_0.5B_training_recovery.py#L374",
      "symbol": "execute"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 21
      },
      "end_col": 17,
      "end_line": 21,
      "expression": "import subprocess",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001896",
      "kind": "import",
      "line": 21,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L21",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 23
      },
      "end_col": 11,
      "end_line": 23,
      "expression": "import time",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001897",
      "kind": "import",
      "line": 23,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L23",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 44,
      "end_line": 54,
      "expression": "subprocess.check_output",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001898",
      "kind": "api_call",
      "line": 54,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.check_output",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "            output = subprocess.check_output([\"ip\", \"-o\", \"-4\", \"addr\", \"show\", \"dev\", iface], text=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L54",
      "symbol": "_get_bond_ipv4"
    },
    {
      "category": "subprocess",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 54,
      "end_line": 55,
      "expression": "subprocess.CalledProcessError",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001899",
      "kind": "api_reference",
      "line": 55,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.CalledProcessError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "        except (OSError, subprocess.CalledProcessError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L55",
      "symbol": "_get_bond_ipv4"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 120,
      "expression": "\",\".join",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001900",
      "kind": "instance_candidate",
      "line": 120,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    return \",\".join(devices) if devices else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L120",
      "symbol": "_get_disaggregation_ib_device"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 62,
      "end_line": 137,
      "expression": "\",\".join",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001901",
      "kind": "instance_candidate",
      "line": 137,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    all_gpus = os.environ.get(\"CUDA_VISIBLE_DEVICES\", \",\".join(str(i) for i in range(NUM_GPUS))).split(\",\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L137",
      "symbol": "_get_gpu_split"
    },
    {
      "category": "subprocess",
      "col": 5,
      "details": {
        "access": "load"
      },
      "end_col": 21,
      "end_line": 157,
      "expression": "subprocess.Popen",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001902",
      "kind": "api_reference",
      "line": 157,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": ") -> subprocess.Popen:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L157",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 34,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 159,
      "expression": "\",\".join",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001903",
      "kind": "instance_candidate",
      "line": 159,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    env[\"CUDA_VISIBLE_DEVICES\"] = \",\".join(gpus)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L159",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "subprocess",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 190,
      "expression": "subprocess.Popen",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001904",
      "kind": "api_call",
      "line": 190,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    process = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L190",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "subprocess",
      "col": 69,
      "details": {
        "access": "load"
      },
      "end_col": 86,
      "end_line": 190,
      "expression": "subprocess.STDOUT",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001905",
      "kind": "api_reference",
      "line": 190,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.STDOUT",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    process = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L190",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)",
          "line": 190,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 201,
      "expression": "process.poll",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001906",
      "kind": "instance_candidate",
      "line": 201,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "poll",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "        if process.poll() is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L201",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 210,
      "expression": "time.sleep",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001907",
      "kind": "api_call",
      "line": 210,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "        time.sleep(5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L210",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)",
          "line": 190,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 212,
      "expression": "process.kill",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001908",
      "kind": "instance_candidate",
      "line": 212,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "kill",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    process.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L212",
      "symbol": "_launch_sglang_server"
    },
    {
      "category": "subprocess",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 222,
      "expression": "subprocess.Popen",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001909",
      "kind": "api_reference",
      "line": 222,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    processes: list[subprocess.Popen] = []",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L222",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 41,
      "details": {
        "receiver": "\",\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 49,
      "end_line": 226,
      "expression": "\",\".join",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001910",
      "kind": "instance_candidate",
      "line": 226,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "    os.environ[\"CUDA_VISIBLE_DEVICES\"] = \",\".join(train_gpus)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L226",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 61,
      "details": {
        "receiver": "\" \"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 69,
      "end_line": 319,
      "expression": "\" \".join",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001911",
      "kind": "instance_candidate",
      "line": 319,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "        external_args = \"--rollout-external-engine-addrs \" + \" \".join(all_addrs) + \" \"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L319",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "p",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 374,
      "expression": "p.poll",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001912",
      "kind": "instance_candidate",
      "line": 374,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "poll",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "            if p.poll() is None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L374",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "p",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 375,
      "expression": "p.kill",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001913",
      "kind": "instance_candidate",
      "line": 375,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "kill",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "                p.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L375",
      "symbol": "execute"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "p",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 376,
      "expression": "p.wait",
      "file": "tests/test_qwen3_4B_external_pd.py",
      "id": "occ-001914",
      "kind": "instance_candidate",
      "line": 376,
      "module": "tests.test_qwen3_4B_external_pd",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_qwen3_4B_external_pd.py.txt",
      "source_line": "                p.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_qwen3_4B_external_pd.py#L376",
      "symbol": "execute"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 9
      },
      "end_col": 9,
      "end_line": 9,
      "expression": "import os",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001915",
      "kind": "import",
      "line": 9,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "signal",
      "col": 7,
      "details": {
        "local_binding": "signal",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 13,
      "end_line": 10,
      "expression": "import signal",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001916",
      "kind": "import",
      "line": 10,
      "module": "tests.test_rollout_manager_recovery",
      "name": "signal",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "import signal",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 51,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001917",
      "kind": "api_call",
      "line": 51,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        return os.getpid(), self.controller._actor_id.hex()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L51",
      "symbol": "_ServingFixture.identity"
    },
    {
      "category": "os-process",
      "col": 31,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 85,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001918",
      "kind": "api_call",
      "line": 85,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "                \"manager_pid\": os.getpid(),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L85",
      "symbol": "_install_crash.crash"
    },
    {
      "category": "os-process",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 93,
      "expression": "os.kill",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001919",
      "kind": "api_call",
      "line": 93,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.kill",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        os.kill(os.getpid(), signal.SIGKILL)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L93",
      "symbol": "_install_crash.crash"
    },
    {
      "category": "os-process",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 93,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001920",
      "kind": "api_call",
      "line": 93,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        os.kill(os.getpid(), signal.SIGKILL)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L93",
      "symbol": "_install_crash.crash"
    },
    {
      "category": "signal",
      "col": 29,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 93,
      "expression": "signal.SIGKILL",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001921",
      "kind": "api_reference",
      "line": 93,
      "module": "tests.test_rollout_manager_recovery",
      "name": "signal.SIGKILL",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        os.kill(os.getpid(), signal.SIGKILL)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L93",
      "symbol": "_install_crash.crash"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "cluster",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 162,
      "expression": "cluster.shutdown",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001922",
      "kind": "instance_candidate",
      "line": 162,
      "module": "tests.test_rollout_manager_recovery",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        cluster.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L162",
      "symbol": "cluster"
    },
    {
      "category": "os-process",
      "col": 61,
      "details": {
        "access": "load"
      },
      "end_col": 70,
      "end_line": 220,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001923",
      "kind": "api_call",
      "line": 220,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            ray.get(manager.__ray_call__.remote(lambda self: os.getpid()), timeout=30) == before[\"manager_pid\"]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L220",
      "symbol": "test_manager_failure_replays_accepted_batch_with_new_dp.<lambda>"
    },
    {
      "category": "os-process",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 244,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001924",
      "kind": "api_call",
      "line": 244,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        return os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L244",
      "symbol": "_ResetPeer.pid"
    },
    {
      "category": "time-sleep",
      "col": 19,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 248
      },
      "end_col": 23,
      "end_line": 248,
      "expression": "import time",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001925",
      "kind": "import",
      "line": 248,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L248",
      "symbol": "_ResetPeer.reset_weights_update_groups"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 250,
      "expression": "time.sleep",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001926",
      "kind": "api_call",
      "line": 250,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            time.sleep(300)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L250",
      "symbol": "_ResetPeer.reset_weights_update_groups"
    },
    {
      "category": "time-sleep",
      "col": 11,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 257
      },
      "end_col": 15,
      "end_line": 257,
      "expression": "import time",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001927",
      "kind": "import",
      "line": 257,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "    import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L257",
      "symbol": "test_serving_reset_retires_blocked_actor_and_keeps_healthy_peer"
    },
    {
      "category": "time-sleep",
      "col": 19,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 299
      },
      "end_col": 23,
      "end_line": 299,
      "expression": "import time",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001928",
      "kind": "import",
      "line": 299,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L299",
      "symbol": "_AttemptManager.detach_training"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 301,
      "expression": "time.sleep",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001929",
      "kind": "api_call",
      "line": 301,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            time.sleep(300)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L301",
      "symbol": "_AttemptManager.detach_training"
    },
    {
      "category": "time-sleep",
      "col": 15,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 325
      },
      "end_col": 19,
      "end_line": 325,
      "expression": "import time",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001930",
      "kind": "import",
      "line": 325,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L325",
      "symbol": "_PDResetPeer.reset_weights_update_groups"
    },
    {
      "category": "time-sleep",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 329,
      "expression": "time.sleep",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001931",
      "kind": "api_call",
      "line": 329,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "            time.sleep(0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L329",
      "symbol": "_PDResetPeer.reset_weights_update_groups"
    },
    {
      "category": "os-process",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 368,
      "expression": "os.getpid",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001932",
      "kind": "api_call",
      "line": 368,
      "module": "tests.test_rollout_manager_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        return os.getpid(), self.driver_job_id, self.training_actors",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L368",
      "symbol": "_AttemptServing.state"
    },
    {
      "category": "time-sleep",
      "col": 11,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 373
      },
      "end_col": 15,
      "end_line": 373,
      "expression": "import time",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001933",
      "kind": "import",
      "line": 373,
      "module": "tests.test_rollout_manager_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "    import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L373",
      "symbol": "test_driver_detach_releases_real_trainer_when_manager_cannot_pause"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "startup",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 387,
      "expression": "startup.close",
      "file": "tests/test_rollout_manager_recovery.py",
      "id": "occ-001934",
      "kind": "instance_candidate",
      "line": 387,
      "module": "tests.test_rollout_manager_recovery",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_manager_recovery.py.txt",
      "source_line": "        startup.close(failed=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_manager_recovery.py#L387",
      "symbol": "test_driver_detach_releases_real_trainer_when_manager_cannot_pause"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001935",
      "kind": "import",
      "line": 1,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 18,
      "expression": "async def async_hook(args, sample, *, evaluation=False):",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001936",
      "kind": "async_def",
      "line": 16,
      "module": "tests.test_rollout_sample_hooks",
      "name": "async_hook",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "async def async_hook(args, sample, *, evaluation=False):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L16-L18",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 34,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001937",
      "kind": "api_call",
      "line": 34,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "    result = asyncio.run(apply_rollout_sample_hooks(args, samples, evaluation=True, ignored=\"value\"))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L34",
      "symbol": "test_rollout_sample_hooks_preserve_nested_shape_and_filter_kwargs"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 47,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001938",
      "kind": "api_call",
      "line": 47,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "        asyncio.run(apply_rollout_sample_hooks(args, Sample(index=0)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L47",
      "symbol": "test_rollout_sample_hook_rejects_invalid_return_type"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 55,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001939",
      "kind": "api_call",
      "line": 55,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "    assert asyncio.run(apply_rollout_sample_hooks(args, sample)) is sample",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L55",
      "symbol": "test_rollout_sample_hooks_are_noop_when_unconfigured"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 47,
      "end_line": 65,
      "expression": "    async def generate(rollout_id):",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001940",
      "kind": "async_def",
      "line": 61,
      "module": "tests.test_rollout_sample_hooks",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "    async def generate(rollout_id):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L61-L65",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 34,
      "end_line": 63,
      "expression": "await asyncio.sleep(0)",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001941",
      "kind": "await",
      "line": 63,
      "module": "tests.test_rollout_sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "            await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L63",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context.generate"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 63,
      "expression": "asyncio.sleep",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001942",
      "kind": "api_call",
      "line": 63,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "            await asyncio.sleep(0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L63",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context.generate"
    },
    {
      "category": "syntax",
      "col": 21,
      "details": {},
      "end_col": 85,
      "end_line": 64,
      "expression": "await apply_rollout_sample_hooks(args, Sample(index=rollout_id))",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001943",
      "kind": "await",
      "line": 64,
      "module": "tests.test_rollout_sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "            sample = await apply_rollout_sample_hooks(args, Sample(index=rollout_id))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L64",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context.generate"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 95,
      "end_line": 68,
      "expression": "    async def exercise():",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001944",
      "kind": "async_def",
      "line": 67,
      "module": "tests.test_rollout_sample_hooks",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L67-L68",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 63,
      "end_line": 68,
      "expression": "await asyncio.gather(generate(10), generate(11))",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001945",
      "kind": "await",
      "line": 68,
      "module": "tests.test_rollout_sample_hooks",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "        assert await asyncio.gather(generate(10), generate(11)) == [(\"seen\", 10), (\"seen\", 11)]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L68",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context.exercise"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 68,
      "expression": "asyncio.gather",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001946",
      "kind": "api_call",
      "line": 68,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "        assert await asyncio.gather(generate(10), generate(11)) == [(\"seen\", 10), (\"seen\", 11)]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L68",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 70,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_sample_hooks.py",
      "id": "occ-001947",
      "kind": "api_call",
      "line": 70,
      "module": "tests.test_rollout_sample_hooks",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_sample_hooks.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_sample_hooks.py#L70",
      "symbol": "test_concurrent_groups_keep_their_own_rollout_hook_context"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 17,
      "end_line": 3,
      "expression": "import subprocess",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001948",
      "kind": "import",
      "line": 3,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 102,
      "expression": "subprocess.run",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001949",
      "kind": "api_call",
      "line": 102,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L102",
      "symbol": "test_cpu_rollout_imports_do_not_require_sglang"
    },
    {
      "category": "subprocess",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 261,
      "expression": "subprocess.run",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001950",
      "kind": "api_call",
      "line": 261,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    subprocess.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L261",
      "symbol": "test_payload_reference_is_small_and_readable_by_independent_process"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 329
      },
      "end_col": 18,
      "end_line": 329,
      "expression": "import asyncio",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001951",
      "kind": "import",
      "line": 329,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L329",
      "symbol": "test_fully_async_stores_groups_while_collecting_the_batch"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 354,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001952",
      "kind": "api_call",
      "line": 354,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    output = asyncio.run(fa._generate_rollout_async(args, 0, None))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L354",
      "symbol": "test_fully_async_stores_groups_while_collecting_the_batch"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 362
      },
      "end_col": 18,
      "end_line": 362,
      "expression": "import asyncio",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001953",
      "kind": "import",
      "line": 362,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L362",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 115,
      "end_line": 409,
      "expression": "    async def exercise():",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001954",
      "kind": "async_def",
      "line": 375,
      "module": "tests.test_rollout_straw_transport",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L375-L409",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook"
    },
    {
      "category": "asyncio",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 376,
      "expression": "asyncio.Event",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001955",
      "kind": "api_call",
      "line": 376,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        second = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L376",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 377,
      "expression": "asyncio.get_running_loop",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001956",
      "kind": "api_call",
      "line": 377,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        loop = asyncio.get_running_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L377",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 80,
      "end_line": 383,
      "expression": "        async def generate(index):",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001957",
      "kind": "async_def",
      "line": 379,
      "module": "tests.test_rollout_straw_transport",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        async def generate(index):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L379-L383",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 35,
      "end_line": 381,
      "expression": "await second.wait()",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001958",
      "kind": "await",
      "line": 381,
      "module": "tests.test_rollout_straw_transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "                await second.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L381",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise.generate"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "second",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 376,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 381,
      "expression": "second.wait",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001959",
      "kind": "instance_candidate",
      "line": 381,
      "module": "tests.test_rollout_straw_transport",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "                await second.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L381",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise.generate"
    },
    {
      "category": "asyncio",
      "col": 34,
      "details": {
        "access": "load"
      },
      "end_col": 53,
      "end_line": 387,
      "expression": "asyncio.create_task",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001960",
      "kind": "api_call",
      "line": 387,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "            state.pendings.update(asyncio.create_task(generate(index)) for index in (2, 1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L387",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise.submit.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "loop",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.get_running_loop()",
          "line": 377,
          "type": "asyncio.AbstractEventLoop"
        },
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 392,
      "expression": "loop.call_soon_threadsafe",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001961",
      "kind": "instance_candidate",
      "line": 392,
      "module": "tests.test_rollout_straw_transport",
      "name": "call_soon_threadsafe",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "            loop.call_soon_threadsafe(second.set)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L392",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise.pack"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 396,
      "expression": "        async def abort(*a):",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001962",
      "kind": "async_def",
      "line": 395,
      "module": "tests.test_rollout_straw_transport",
      "name": "abort",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        async def abort(*a):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L395-L396",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 115,
      "end_line": 409,
      "expression": "await asyncio.wait_for(sr.generate_rollout_async(args, 0, lambda count: [None] * count), timeout=20)",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001963",
      "kind": "await",
      "line": 409,
      "module": "tests.test_rollout_straw_transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        return await asyncio.wait_for(sr.generate_rollout_async(args, 0, lambda count: [None] * count), timeout=20)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L409",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 409,
      "expression": "asyncio.wait_for",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001964",
      "kind": "api_call",
      "line": 409,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        return await asyncio.wait_for(sr.generate_rollout_async(args, 0, lambda count: [None] * count), timeout=20)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L409",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 411,
      "expression": "asyncio.run",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001965",
      "kind": "api_call",
      "line": 411,
      "module": "tests.test_rollout_straw_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    output, aborted = asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L411",
      "symbol": "test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 465,
      "expression": "controller.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001966",
      "kind": "instance_candidate",
      "line": 465,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L465",
      "symbol": "test_manager_adapts_legacy_samples_and_validates_accepted_refs"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 597,
      "expression": "controller.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001967",
      "kind": "instance_candidate",
      "line": 597,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L597",
      "symbol": "test_durable_batch_replays_one_plan_and_rejects_mixed_ranks"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "archive",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 709,
      "expression": "archive.release",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001968",
      "kind": "instance_candidate",
      "line": 709,
      "module": "tests.test_rollout_straw_transport",
      "name": "release",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        archive.release()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L709",
      "symbol": "test_straw_debug_archive_keys_lazy_tensors_gc_and_legacy_export"
    },
    {
      "category": "candidates",
      "col": 50,
      "details": {
        "receiver": "group._actor_handlers",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 77,
      "end_line": 1058,
      "expression": "group._actor_handlers.clear",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001969",
      "kind": "instance_candidate",
      "line": 1058,
      "module": "tests.test_rollout_straw_transport",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    monkeypatch.setattr(group, \"release\", lambda: group._actor_handlers.clear())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1058",
      "symbol": "test_disk_weight_updates_do_not_require_actor_return_values.<lambda>"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "controller",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 1405,
      "expression": "controller.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001970",
      "kind": "instance_candidate",
      "line": 1405,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "            controller.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1405",
      "symbol": "test_checkpoint_lock_covers_cleanup_and_releases_on_seal_failure"
    },
    {
      "category": "select",
      "col": 11,
      "details": {
        "local_binding": "select",
        "selective_module_import": false,
        "statement_line": 1411
      },
      "end_col": 17,
      "end_line": 1411,
      "expression": "import select",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001971",
      "kind": "import",
      "line": 1411,
      "module": "tests.test_rollout_straw_transport",
      "name": "select",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    import select",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1411",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "subprocess",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 1418,
      "expression": "subprocess.Popen",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001972",
      "kind": "api_call",
      "line": 1418,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "    process = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1418",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "subprocess",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 29,
      "end_line": 1432,
      "expression": "subprocess.PIPE",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001973",
      "kind": "api_reference",
      "line": 1432,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        stdin=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1432",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "subprocess",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 1433,
      "expression": "subprocess.PIPE",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001974",
      "kind": "api_reference",
      "line": 1433,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        stdout=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1433",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "subprocess",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 1434,
      "expression": "subprocess.PIPE",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001975",
      "kind": "api_reference",
      "line": 1434,
      "module": "tests.test_rollout_straw_transport",
      "name": "subprocess.PIPE",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        stderr=subprocess.PIPE,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1434",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "select",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 1439,
      "expression": "select.select",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001976",
      "kind": "api_call",
      "line": 1439,
      "module": "tests.test_rollout_straw_transport",
      "name": "select.select",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        assert select.select([process.stdout], [], [], 60)[0], \"Controller did not start\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1439",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "process.stdout",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 1440,
      "expression": "process.stdout.readline",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001977",
      "kind": "instance_candidate",
      "line": 1440,
      "module": "tests.test_rollout_straw_transport",
      "name": "readline",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        assert process.stdout.readline() == b\"ready\\n\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1440",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n        [\n            sys.executable,\n            \"-c\",\n            \"\"\"\nimport pickle, sys\nfrom slime.data.queue_data_source import RolloutQueueController\n\nargs, plan_args = pickle.load(sys.stdin.buffer)\ncontroller = RolloutQueueController(args, restore_plan=plan_args)\nprint(\"ready\", flush=True)\nsys.stdin.buffer.read(1)\n\"\"\",\n        ],\n        stdin=subprocess.PIPE,\n        stdout=subprocess.PIPE,\n        stderr=subprocess.PIPE,\n    )",
          "line": 1418,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 1446,
      "expression": "process.kill",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001978",
      "kind": "instance_candidate",
      "line": 1446,
      "module": "tests.test_rollout_straw_transport",
      "name": "kill",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        process.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1446",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n        [\n            sys.executable,\n            \"-c\",\n            \"\"\"\nimport pickle, sys\nfrom slime.data.queue_data_source import RolloutQueueController\n\nargs, plan_args = pickle.load(sys.stdin.buffer)\ncontroller = RolloutQueueController(args, restore_plan=plan_args)\nprint(\"ready\", flush=True)\nsys.stdin.buffer.read(1)\n\"\"\",\n        ],\n        stdin=subprocess.PIPE,\n        stdout=subprocess.PIPE,\n        stderr=subprocess.PIPE,\n    )",
          "line": 1418,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 1447,
      "expression": "process.wait",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001979",
      "kind": "instance_candidate",
      "line": 1447,
      "module": "tests.test_rollout_straw_transport",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        process.wait(timeout=30)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1447",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process.stdin",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 1448,
      "expression": "process.stdin.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001980",
      "kind": "instance_candidate",
      "line": 1448,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        process.stdin.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1448",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process.stdout",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 1449,
      "expression": "process.stdout.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001981",
      "kind": "instance_candidate",
      "line": 1449,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        process.stdout.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1449",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "process.stderr",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 1450,
      "expression": "process.stderr.close",
      "file": "tests/test_rollout_straw_transport.py",
      "id": "occ-001982",
      "kind": "instance_candidate",
      "line": 1450,
      "module": "tests.test_rollout_straw_transport",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_rollout_straw_transport.py.txt",
      "source_line": "        process.stderr.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_rollout_straw_transport.py#L1450",
      "symbol": "test_checkpoint_lock_released_when_controller_process_is_killed"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001983",
      "kind": "import",
      "line": 1,
      "module": "tests.test_score_centering_binary",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 16,
      "end_line": 3,
      "expression": "import threading",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001984",
      "kind": "import",
      "line": 3,
      "module": "tests.test_score_centering_binary",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 96,
      "expression": "threading.get_ident",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001985",
      "kind": "api_call",
      "line": 96,
      "module": "tests.test_score_centering_binary",
      "name": "threading.get_ident",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "    main_thread = threading.get_ident()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L96",
      "symbol": "test_http_worker_decodes_off_event_loop"
    },
    {
      "category": "threading",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 101,
      "expression": "threading.get_ident",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001986",
      "kind": "api_call",
      "line": 101,
      "module": "tests.test_score_centering_binary",
      "name": "threading.get_ident",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "        calls.append(threading.get_ident())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L101",
      "symbol": "test_http_worker_decodes_off_event_loop.decode"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 112,
      "expression": "        async def aread(self):",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001987",
      "kind": "async_def",
      "line": 111,
      "module": "tests.test_score_centering_binary",
      "name": "aread",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "        async def aread(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L111-L112",
      "symbol": "test_http_worker_decodes_off_event_loop.Response"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 16,
      "end_line": 115,
      "expression": "        async def aclose(self):",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001988",
      "kind": "async_def",
      "line": 114,
      "module": "tests.test_score_centering_binary",
      "name": "aclose",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "        async def aclose(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L114-L115",
      "symbol": "test_http_worker_decodes_off_event_loop.Response"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 29,
      "end_line": 119,
      "expression": "        async def post(self, *args, **kwargs):",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001989",
      "kind": "async_def",
      "line": 118,
      "module": "tests.test_score_centering_binary",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "        async def post(self, *args, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L118-L119",
      "symbol": "test_http_worker_decodes_off_event_loop.Client"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 121,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_binary.py",
      "id": "occ-001990",
      "kind": "api_call",
      "line": 121,
      "module": "tests.test_score_centering_binary",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_binary.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_binary.py#L121",
      "symbol": "test_http_worker_decodes_off_event_loop"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 14,
      "end_line": 3,
      "expression": "import asyncio",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001991",
      "kind": "import",
      "line": 3,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 47,
      "end_line": 90,
      "expression": "    async def post(url, payload, **kwargs):",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001992",
      "kind": "async_def",
      "line": 85,
      "module": "tests.test_score_centering_transport",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def post(url, payload, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L85-L90",
      "symbol": "test_generate_requests_sampler_topk"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 93,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001993",
      "kind": "api_call",
      "line": 93,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    sample = asyncio.run(rollout.generate(a, Sample(prompt=\"test\"), {\"max_new_tokens\": 8}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L93",
      "symbol": "test_generate_requests_sampler_topk"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 47,
      "end_line": 140,
      "expression": "    async def post(url, payload, **kwargs):",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001994",
      "kind": "async_def",
      "line": 127,
      "module": "tests.test_score_centering_transport",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def post(url, payload, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L127-L140",
      "symbol": "test_r3_resume_appends_routes_without_replacing_the_persisted_prefix"
    },
    {
      "category": "asyncio",
      "col": 12,
      "details": {
        "access": "load"
      },
      "end_col": 23,
      "end_line": 145,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001995",
      "kind": "api_call",
      "line": 145,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "            asyncio.run(rollout.generate(a, sample, {\"max_new_tokens\": 8}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L145",
      "symbol": "test_r3_resume_appends_routes_without_replacing_the_persisted_prefix"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 148,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001996",
      "kind": "api_call",
      "line": 148,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    actual = asyncio.run(rollout.generate(a, sample, {\"max_new_tokens\": 8}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L148",
      "symbol": "test_r3_resume_appends_routes_without_replacing_the_persisted_prefix"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 159,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001997",
      "kind": "api_call",
      "line": 159,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "        asyncio.run(generate_streaming(args(), Sample(), {}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L159",
      "symbol": "test_streaming_score_centering_rejected"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 191,
      "expression": "asyncio.Semaphore",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001998",
      "kind": "api_call",
      "line": 191,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "        semaphore=asyncio.Semaphore(1),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L191",
      "symbol": "test_evaluation_preserves_training_score_centering"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 206,
      "expression": "    async def generate(received, sample, params):",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-001999",
      "kind": "async_def",
      "line": 204,
      "module": "tests.test_score_centering_transport",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def generate(received, sample, params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L204-L206",
      "symbol": "test_evaluation_preserves_training_score_centering"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 209,
      "expression": "    async def hooks(received, sample, **kwargs):",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002000",
      "kind": "async_def",
      "line": 208,
      "module": "tests.test_score_centering_transport",
      "name": "hooks",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def hooks(received, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L208-L209",
      "symbol": "test_evaluation_preserves_training_score_centering"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 72,
      "end_line": 217,
      "expression": "    async def run():",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002001",
      "kind": "async_def",
      "line": 215,
      "module": "tests.test_score_centering_transport",
      "name": "run",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def run():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L215-L217",
      "symbol": "test_evaluation_preserves_training_score_centering"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 87,
      "end_line": 216,
      "expression": "await rollout.generate_and_rm(a, Sample(), {\"temperature\": 0}, evaluation=True)",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002002",
      "kind": "await",
      "line": 216,
      "module": "tests.test_score_centering_transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "        await rollout.generate_and_rm(a, Sample(), {\"temperature\": 0}, evaluation=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L216",
      "symbol": "test_evaluation_preserves_training_score_centering.run"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 72,
      "end_line": 217,
      "expression": "await rollout.generate_and_rm(a, Sample(), {\"temperature\": 0.8})",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002003",
      "kind": "await",
      "line": 217,
      "module": "tests.test_score_centering_transport",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "        await rollout.generate_and_rm(a, Sample(), {\"temperature\": 0.8})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L217",
      "symbol": "test_evaluation_preserves_training_score_centering.run"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 219,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002004",
      "kind": "api_call",
      "line": 219,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    asyncio.run(run())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L219",
      "symbol": "test_evaluation_preserves_training_score_centering"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 47,
      "end_line": 558,
      "expression": "    async def post(url, payload, **kwargs):",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002005",
      "kind": "async_def",
      "line": 552,
      "module": "tests.test_score_centering_transport",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    async def post(url, payload, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L552-L558",
      "symbol": "test_generate_requests_complete_top_p_probabilities"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 561,
      "expression": "asyncio.run",
      "file": "tests/test_score_centering_transport.py",
      "id": "occ-002006",
      "kind": "api_call",
      "line": 561,
      "module": "tests.test_score_centering_transport",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_score_centering_transport.py.txt",
      "source_line": "    sample = asyncio.run(rollout.generate(a, Sample(prompt=\"test\"), {\"max_new_tokens\": 8}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_score_centering_transport.py#L561",
      "symbol": "test_generate_requests_complete_top_p_probabilities"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "tests/test_server_control.py",
      "id": "occ-002007",
      "kind": "import",
      "line": 1,
      "module": "tests.test_server_control",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 33,
      "expression": "    async def respond(request):",
      "file": "tests/test_server_control.py",
      "id": "occ-002008",
      "kind": "async_def",
      "line": 19,
      "module": "tests.test_server_control",
      "name": "respond",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def respond(request):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L19-L33",
      "symbol": "test_rollout_boundary_prunes_failed_router_workers"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 37,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002009",
      "kind": "api_call",
      "line": 37,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    workers = asyncio.run(server_control.get_live_router_workers(\"http://router\", timeout=0.1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L37",
      "symbol": "test_rollout_boundary_prunes_failed_router_workers"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "monitor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 94,
      "expression": "monitor.start",
      "file": "tests/test_server_control.py",
      "id": "occ-002010",
      "kind": "instance_candidate",
      "line": 94,
      "module": "tests.test_server_control",
      "name": "start",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    monitor.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L94",
      "symbol": "test_boundary_health_check_bypasses_grace_and_cleans_dead_actor"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "monitor",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 100,
      "expression": "monitor.stop",
      "file": "tests/test_server_control.py",
      "id": "occ-002011",
      "kind": "instance_candidate",
      "line": 100,
      "module": "tests.test_server_control",
      "name": "stop",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        monitor.stop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L100",
      "symbol": "test_boundary_health_check_bypasses_grace_and_cleans_dead_actor"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 112,
      "expression": "    async def post(url, payload, **kwargs):",
      "file": "tests/test_server_control.py",
      "id": "occ-002012",
      "kind": "async_def",
      "line": 108,
      "module": "tests.test_server_control",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def post(url, payload, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L108-L112",
      "symbol": "test_abort_uses_supported_load_sections_and_waits_for_pd_transfers"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 9,
      "end_line": 134,
      "expression": "    async def get(url, **kwargs):",
      "file": "tests/test_server_control.py",
      "id": "occ-002013",
      "kind": "async_def",
      "line": 114,
      "module": "tests.test_server_control",
      "name": "get",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def get(url, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L114-L134",
      "symbol": "test_abort_uses_supported_load_sections_and_waits_for_pd_transfers"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 139,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002014",
      "kind": "api_call",
      "line": 139,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    asyncio.run(server_control.abort_server_until_idle(\"http://engine\", retry_interval=0, timeout=0.1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L139",
      "symbol": "test_abort_uses_supported_load_sections_and_waits_for_pd_transfers"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 19,
      "end_line": 169,
      "expression": "    async def abort_once(url, request_timeout):",
      "file": "tests/test_server_control.py",
      "id": "occ-002015",
      "kind": "async_def",
      "line": 168,
      "module": "tests.test_server_control",
      "name": "abort_once",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def abort_once(url, request_timeout):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L168-L169",
      "symbol": "test_abort_retries_load_failure_until_idle"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 61,
      "end_line": 176,
      "expression": "    async def get_load(url, request_timeout):",
      "file": "tests/test_server_control.py",
      "id": "occ-002016",
      "kind": "async_def",
      "line": 171,
      "module": "tests.test_server_control",
      "name": "get_load",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def get_load(url, request_timeout):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L171-L176",
      "symbol": "test_abort_retries_load_failure_until_idle"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 181,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002017",
      "kind": "api_call",
      "line": 181,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    asyncio.run(server_control.abort_server_until_idle(\"http://engine\", retry_interval=0, timeout=1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L181",
      "symbol": "test_abort_retries_load_failure_until_idle"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 42,
      "end_line": 189,
      "expression": "    async def abort(url, **kwargs):",
      "file": "tests/test_server_control.py",
      "id": "occ-002018",
      "kind": "async_def",
      "line": 187,
      "module": "tests.test_server_control",
      "name": "abort",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def abort(url, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L187-L189",
      "symbol": "test_abort_servers_surfaces_partial_failure"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 193,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002019",
      "kind": "api_call",
      "line": 193,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        asyncio.run(server_control.abort_servers_until_idle([\"http://good\", \"http://bad\"]))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L193",
      "symbol": "test_abort_servers_surfaces_partial_failure"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 52,
      "end_line": 206,
      "expression": "        async def aread(self):",
      "file": "tests/test_server_control.py",
      "id": "occ-002020",
      "kind": "async_def",
      "line": 205,
      "module": "tests.test_server_control",
      "name": "aread",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        async def aread(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L205-L206",
      "symbol": "test_http_post_forwards_timeout_and_closes_response.Response"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 30,
      "end_line": 209,
      "expression": "        async def aclose(self):",
      "file": "tests/test_server_control.py",
      "id": "occ-002021",
      "kind": "async_def",
      "line": 208,
      "module": "tests.test_server_control",
      "name": "aclose",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        async def aclose(self):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L208-L209",
      "symbol": "test_http_post_forwards_timeout_and_closes_response.Response"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 27,
      "end_line": 216,
      "expression": "        async def post(self, url, **kwargs):",
      "file": "tests/test_server_control.py",
      "id": "occ-002022",
      "kind": "async_def",
      "line": 214,
      "module": "tests.test_server_control",
      "name": "post",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        async def post(self, url, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L214-L216",
      "symbol": "test_http_post_forwards_timeout_and_closes_response.Client"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 218,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002023",
      "kind": "api_call",
      "line": 218,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    assert asyncio.run(http_utils._post(Client(), \"http://engine\", {}, max_retries=1, timeout=2.5)) == {\"ok\": True}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L218",
      "symbol": "test_http_post_forwards_timeout_and_closes_response"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 282,
      "expression": "    async def check():",
      "file": "tests/test_server_control.py",
      "id": "occ-002024",
      "kind": "async_def",
      "line": 226,
      "module": "tests.test_server_control",
      "name": "check",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    async def check():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L226-L282",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 35,
      "end_line": 259,
      "expression": "        async def serve(reader, writer):",
      "file": "tests/test_server_control.py",
      "id": "occ-002025",
      "kind": "async_def",
      "line": 230,
      "module": "tests.test_server_control",
      "name": "serve",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        async def serve(reader, writer):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L230-L259",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "asyncio",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 232,
      "expression": "asyncio.current_task",
      "file": "tests/test_server_control.py",
      "id": "occ-002026",
      "kind": "api_call",
      "line": 232,
      "module": "tests.test_server_control",
      "name": "asyncio.current_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            task = asyncio.current_task()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L232",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 30,
      "details": {},
      "end_col": 65,
      "end_line": 239,
      "expression": "await reader.readuntil(b\"\\r\\n\\r\\n\")",
      "file": "tests/test_server_control.py",
      "id": "occ-002027",
      "kind": "await",
      "line": 239,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    headers = await reader.readuntil(b\"\\r\\n\\r\\n\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L239",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 36,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 52,
      "end_line": 239,
      "expression": "reader.readuntil",
      "file": "tests/test_server_control.py",
      "id": "occ-002028",
      "kind": "instance_candidate",
      "line": 239,
      "module": "tests.test_server_control",
      "name": "readuntil",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    headers = await reader.readuntil(b\"\\r\\n\\r\\n\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L239",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 27,
      "details": {},
      "end_col": 59,
      "end_line": 248,
      "expression": "await reader.readexactly(length)",
      "file": "tests/test_server_control.py",
      "id": "occ-002029",
      "kind": "await",
      "line": 248,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    body = await reader.readexactly(length)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L248",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 33,
      "details": {
        "receiver": "reader",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 51,
      "end_line": 248,
      "expression": "reader.readexactly",
      "file": "tests/test_server_control.py",
      "id": "occ-002030",
      "kind": "instance_candidate",
      "line": 248,
      "module": "tests.test_server_control",
      "name": "readexactly",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    body = await reader.readexactly(length)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L248",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 48,
      "end_line": 250,
      "expression": "await asyncio.sleep(0.1)",
      "file": "tests/test_server_control.py",
      "id": "occ-002031",
      "kind": "await",
      "line": 250,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                        await asyncio.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L250",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "asyncio",
      "col": 30,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 250,
      "expression": "asyncio.sleep",
      "file": "tests/test_server_control.py",
      "id": "occ-002032",
      "kind": "api_call",
      "line": 250,
      "module": "tests.test_server_control",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                        await asyncio.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L250",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 20,
      "details": {
        "receiver": "writer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 251,
      "expression": "writer.write",
      "file": "tests/test_server_control.py",
      "id": "occ-002033",
      "kind": "instance_candidate",
      "line": 251,
      "module": "tests.test_server_control",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    writer.write(b\"HTTP/1.1 200 OK\\r\\nContent-Length: \" + str(len(body)).encode() + b\"\\r\\n\\r\\n\" + body)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L251",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 40,
      "end_line": 252,
      "expression": "await writer.drain()",
      "file": "tests/test_server_control.py",
      "id": "occ-002034",
      "kind": "await",
      "line": 252,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    await writer.drain()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L252",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 26,
      "details": {
        "receiver": "writer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 252,
      "expression": "writer.drain",
      "file": "tests/test_server_control.py",
      "id": "occ-002035",
      "kind": "instance_candidate",
      "line": 252,
      "module": "tests.test_server_control",
      "name": "drain",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    await writer.drain()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L252",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "asyncio",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 47,
      "end_line": 253,
      "expression": "asyncio.IncompleteReadError",
      "file": "tests/test_server_control.py",
      "id": "occ-002036",
      "kind": "api_reference",
      "line": 253,
      "module": "tests.test_server_control",
      "name": "asyncio.IncompleteReadError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            except (asyncio.IncompleteReadError, ConnectionError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L253",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "writer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 257,
      "expression": "writer.close",
      "file": "tests/test_server_control.py",
      "id": "occ-002037",
      "kind": "instance_candidate",
      "line": 257,
      "module": "tests.test_server_control",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                writer.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L257",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 42,
      "end_line": 258,
      "expression": "await writer.wait_closed()",
      "file": "tests/test_server_control.py",
      "id": "occ-002038",
      "kind": "await",
      "line": 258,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                await writer.wait_closed()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L258",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "candidates",
      "col": 22,
      "details": {
        "receiver": "writer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 40,
      "end_line": 258,
      "expression": "writer.wait_closed",
      "file": "tests/test_server_control.py",
      "id": "occ-002039",
      "kind": "instance_candidate",
      "line": 258,
      "module": "tests.test_server_control",
      "name": "wait_closed",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                await writer.wait_closed()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L258",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serve"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 91,
      "end_line": 261,
      "expression": "await asyncio.start_server(serve, \"127.0.0.1\", 0, backlog=2 * concurrency)",
      "file": "tests/test_server_control.py",
      "id": "occ-002040",
      "kind": "await",
      "line": 261,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        server = await asyncio.start_server(serve, \"127.0.0.1\", 0, backlog=2 * concurrency)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L261",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 261,
      "expression": "asyncio.start_server",
      "file": "tests/test_server_control.py",
      "id": "occ-002041",
      "kind": "api_call",
      "line": 261,
      "module": "tests.test_server_control",
      "name": "asyncio.start_server",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "        server = await asyncio.start_server(serve, \"127.0.0.1\", 0, backlog=2 * concurrency)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L261",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {
        "items": 1
      },
      "end_col": 101,
      "end_line": 277,
      "expression": "            async with httpx.AsyncClient(transport=http_utils._ShardedHTTPTransport(concurrency)) as client:",
      "file": "tests/test_server_control.py",
      "id": "occ-002042",
      "kind": "async_with",
      "line": 264,
      "module": "tests.test_server_control",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            async with httpx.AsyncClient(transport=http_utils._ShardedHTTPTransport(concurrency)) as client:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L264-L277",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {
        "async_protocol": false
      },
      "end_col": 61,
      "end_line": 269,
      "expression": "                async def request(i):",
      "file": "tests/test_server_control.py",
      "id": "occ-002043",
      "kind": "async_def",
      "line": 266,
      "module": "tests.test_server_control",
      "name": "request",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                async def request(i):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L266-L269",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {
        "items": 1
      },
      "end_col": 61,
      "end_line": 269,
      "expression": "                    async with client.stream(\"POST\", url, content=body) as response:",
      "file": "tests/test_server_control.py",
      "id": "occ-002044",
      "kind": "async_with",
      "line": 268,
      "module": "tests.test_server_control",
      "name": "async with",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    async with client.stream(\"POST\", url, content=body) as response:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L268-L269",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.request"
    },
    {
      "category": "syntax",
      "col": 31,
      "details": {},
      "end_col": 53,
      "end_line": 269,
      "expression": "await response.aread()",
      "file": "tests/test_server_control.py",
      "id": "occ-002045",
      "kind": "await",
      "line": 269,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                        assert await response.aread() == body",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L269",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check.request"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 87,
      "end_line": 272,
      "expression": "await asyncio.gather(*(request(i) for i in range(concurrency + 3)))",
      "file": "tests/test_server_control.py",
      "id": "occ-002046",
      "kind": "await",
      "line": 272,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    await asyncio.gather(*(request(i) for i in range(concurrency + 3)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L272",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 272,
      "expression": "asyncio.gather",
      "file": "tests/test_server_control.py",
      "id": "occ-002047",
      "kind": "api_call",
      "line": 272,
      "module": "tests.test_server_control",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    await asyncio.gather(*(request(i) for i in range(concurrency + 3)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L272",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 20,
      "details": {},
      "end_col": 80,
      "end_line": 276,
      "expression": "await client.post(url + \"/slow\", content=b\"x\", timeout=0.01)",
      "file": "tests/test_server_control.py",
      "id": "occ-002048",
      "kind": "await",
      "line": 276,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                    await client.post(url + \"/slow\", content=b\"x\", timeout=0.01)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L276",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 72,
      "end_line": 277,
      "expression": "await client.post(url, content=b\"after-timeout\")",
      "file": "tests/test_server_control.py",
      "id": "occ-002049",
      "kind": "await",
      "line": 277,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "                assert (await client.post(url, content=b\"after-timeout\")).content == b\"after-timeout\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L277",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "server",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 279,
      "expression": "server.close",
      "file": "tests/test_server_control.py",
      "id": "occ-002050",
      "kind": "instance_candidate",
      "line": 279,
      "module": "tests.test_server_control",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            server.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L279",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 38,
      "end_line": 280,
      "expression": "await server.wait_closed()",
      "file": "tests/test_server_control.py",
      "id": "occ-002051",
      "kind": "await",
      "line": 280,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            await server.wait_closed()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L280",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "server",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 280,
      "expression": "server.wait_closed",
      "file": "tests/test_server_control.py",
      "id": "occ-002052",
      "kind": "instance_candidate",
      "line": 280,
      "module": "tests.test_server_control",
      "name": "wait_closed",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            await server.wait_closed()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L280",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 64,
      "end_line": 281,
      "expression": "await asyncio.gather(*tasks, return_exceptions=True)",
      "file": "tests/test_server_control.py",
      "id": "occ-002053",
      "kind": "await",
      "line": 281,
      "module": "tests.test_server_control",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L281",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 281,
      "expression": "asyncio.gather",
      "file": "tests/test_server_control.py",
      "id": "occ-002054",
      "kind": "api_call",
      "line": 281,
      "module": "tests.test_server_control",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "            await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L281",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget.check"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 284,
      "expression": "asyncio.run",
      "file": "tests/test_server_control.py",
      "id": "occ-002055",
      "kind": "api_call",
      "line": 284,
      "module": "tests.test_server_control",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_server_control.py.txt",
      "source_line": "    asyncio.run(check())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_server_control.py#L284",
      "symbol": "test_http_transport_preserves_streams_timeouts_and_connection_budget"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 9
      },
      "end_col": 14,
      "end_line": 9,
      "expression": "import asyncio",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002056",
      "kind": "import",
      "line": 9,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L9",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 11
      },
      "end_col": 9,
      "end_line": 11,
      "expression": "import os",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002057",
      "kind": "import",
      "line": 11,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L11",
      "symbol": "<module>"
    },
    {
      "category": "signal",
      "col": 7,
      "details": {
        "local_binding": "signal",
        "selective_module_import": false,
        "statement_line": 12
      },
      "end_col": 13,
      "end_line": 12,
      "expression": "import signal",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002058",
      "kind": "import",
      "line": 12,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "signal",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import signal",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L12",
      "symbol": "<module>"
    },
    {
      "category": "subprocess",
      "col": 7,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 13
      },
      "end_col": 17,
      "end_line": 13,
      "expression": "import subprocess",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002059",
      "kind": "import",
      "line": 13,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L13",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 15
      },
      "end_col": 16,
      "end_line": 15,
      "expression": "import threading",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002060",
      "kind": "import",
      "line": 15,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L15",
      "symbol": "<module>"
    },
    {
      "category": "time-sleep",
      "col": 7,
      "details": {
        "local_binding": "time",
        "selective_module_import": true,
        "statement_line": 16
      },
      "end_col": 11,
      "end_line": 16,
      "expression": "import time",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002061",
      "kind": "import",
      "line": 16,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "time",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "import time",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L16",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 17,
      "end_line": 83,
      "expression": "async def _generate_with_interrupt(args, sample, sampling_params):",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002062",
      "kind": "async_def",
      "line": 45,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "_generate_with_interrupt",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "async def _generate_with_interrupt(args, sample, sampling_params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L45-L83",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 49,
      "expression": "await asyncio.Event().wait()",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002063",
      "kind": "await",
      "line": 49,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L49",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 49,
      "expression": "asyncio.Event",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002064",
      "kind": "api_call",
      "line": 49,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L49",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "asyncio.Event()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 49,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 49,
      "expression": "asyncio.Event().wait",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002065",
      "kind": "instance_candidate",
      "line": 49,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L49",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 40,
      "end_line": 52,
      "expression": "await asyncio.Event().wait()",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002066",
      "kind": "await",
      "line": 52,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L52",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 52,
      "expression": "asyncio.Event",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002067",
      "kind": "api_call",
      "line": 52,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L52",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "asyncio.Event()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 52,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 52,
      "expression": "asyncio.Event().wait",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002068",
      "kind": "instance_candidate",
      "line": 52,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L52",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "syntax",
      "col": 17,
      "details": {},
      "end_col": 71,
      "end_line": 53,
      "expression": "await _generate_locally(args, sample, sampling_params)",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002069",
      "kind": "await",
      "line": 53,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        sample = await _generate_locally(args, sample, sampling_params)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L53",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "os-process",
      "col": 44,
      "details": {
        "access": "load"
      },
      "end_col": 53,
      "end_line": 54,
      "expression": "os.getpid",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002070",
      "kind": "api_call",
      "line": 54,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        sample.metadata[\"generation_pid\"] = os.getpid()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L54",
      "symbol": "_generate_with_interrupt"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 34,
      "end_line": 89,
      "expression": "async def _reward_once(args, sample):",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002071",
      "kind": "async_def",
      "line": 86,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "_reward_once",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "async def _reward_once(args, sample):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L86-L89",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "sample.metadata",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 87,
      "expression": "sample.metadata.get",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002072",
      "kind": "instance_candidate",
      "line": 87,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "    assert sample.metadata.get(\"reward_calls\", 0) == 0, \"A completed sample was scored twice\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L87",
      "symbol": "_reward_once"
    },
    {
      "category": "threading",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 132,
      "expression": "threading.Thread",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002073",
      "kind": "api_call",
      "line": 132,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            thread = threading.Thread(target=generate, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L132",
      "symbol": "_run_job"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=generate, daemon=True)",
          "line": 132,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 133,
      "expression": "thread.start",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002074",
      "kind": "instance_candidate",
      "line": 133,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L133",
      "symbol": "_run_job"
    },
    {
      "category": "threading",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 158,
      "expression": "threading.Event",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002075",
      "kind": "api_call",
      "line": 158,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                        threading.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L158",
      "symbol": "_run_job"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "threading.Event()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Event()",
          "line": 158,
          "type": "threading.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 46,
      "end_line": 158,
      "expression": "threading.Event().wait",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002076",
      "kind": "instance_candidate",
      "line": 158,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                        threading.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L158",
      "symbol": "_run_job"
    },
    {
      "category": "time-sleep",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 26,
      "end_line": 159,
      "expression": "time.sleep",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002077",
      "kind": "api_call",
      "line": 159,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                time.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L159",
      "symbol": "_run_job"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "source",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 197,
      "expression": "source.close",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002078",
      "kind": "instance_candidate",
      "line": 197,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            source.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L197",
      "symbol": "_run_job"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "cluster",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 199,
      "expression": "cluster.shutdown",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002079",
      "kind": "instance_candidate",
      "line": 199,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        cluster.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L199",
      "symbol": "_run_job"
    },
    {
      "category": "candidates",
      "col": 7,
      "details": {
        "receiver": "process",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 204,
      "expression": "process.poll",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002080",
      "kind": "instance_candidate",
      "line": 204,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "poll",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "    if process.poll() is not None:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L204",
      "symbol": "_kill_job"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 225,
      "expression": "child.kill",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002081",
      "kind": "instance_candidate",
      "line": 225,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "kill",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            child.kill()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L225",
      "symbol": "_kill_job"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "process",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 16,
      "end_line": 228,
      "expression": "process.wait",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002082",
      "kind": "instance_candidate",
      "line": 228,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "    process.wait(timeout=20)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L228",
      "symbol": "_kill_job"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "child",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 35,
      "end_line": 234,
      "expression": "child.is_running",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002083",
      "kind": "instance_candidate",
      "line": 234,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "is_running",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                if child.is_running() and child.status() != psutil.STATUS_ZOMBIE:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L234",
      "symbol": "_kill_job"
    },
    {
      "category": "time-sleep",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 18,
      "end_line": 241,
      "expression": "time.sleep",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002084",
      "kind": "api_call",
      "line": 241,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "        time.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L241",
      "symbol": "_kill_job"
    },
    {
      "category": "subprocess",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 257,
      "expression": "subprocess.Popen",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002085",
      "kind": "api_call",
      "line": 257,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "subprocess.Popen",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "            process = subprocess.Popen(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L257",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "subprocess",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 261,
      "expression": "subprocess.STDOUT",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002086",
      "kind": "api_reference",
      "line": 261,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "subprocess.STDOUT",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                stderr=subprocess.STDOUT,",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L261",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                [sys.executable, \"-u\", \"-c\", code, str(tmp_path), phase, str(online_gc)],\n                env=env,\n                stdout=log,\n                stderr=subprocess.STDOUT,\n                start_new_session=True,\n            )",
          "line": 257,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 43,
      "end_line": 268,
      "expression": "process.poll",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002087",
      "kind": "instance_candidate",
      "line": 268,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "poll",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                        assert process.poll() is None, log_path.read_text()[-12000:]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L268",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "time-sleep",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 270,
      "expression": "time.sleep",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002088",
      "kind": "api_call",
      "line": 270,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "time.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                        time.sleep(0.1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L270",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "signal",
      "col": 50,
      "details": {
        "access": "load"
      },
      "end_col": 64,
      "end_line": 276,
      "expression": "signal.SIGKILL",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002089",
      "kind": "api_reference",
      "line": 276,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "signal.SIGKILL",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                    assert process.returncode == -signal.SIGKILL",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L276",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "candidates",
      "col": 27,
      "details": {
        "receiver": "process",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "subprocess.Popen(\n                [sys.executable, \"-u\", \"-c\", code, str(tmp_path), phase, str(online_gc)],\n                env=env,\n                stdout=log,\n                stderr=subprocess.STDOUT,\n                start_new_session=True,\n            )",
          "line": 257,
          "type": "subprocess.Popen"
        },
        "resolved_non_native_name": null
      },
      "end_col": 39,
      "end_line": 278,
      "expression": "process.wait",
      "file": "tests/test_straw_fully_async_recovery.py",
      "id": "occ-002090",
      "kind": "instance_candidate",
      "line": 278,
      "module": "tests.test_straw_fully_async_recovery",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_fully_async_recovery.py.txt",
      "source_line": "                    assert process.wait(timeout=180) == 0, log_path.read_text()[-12000:]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_fully_async_recovery.py#L278",
      "symbol": "test_fully_async_sigkill_and_restart_preserves_results_and_prefixes"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002091",
      "kind": "import",
      "line": 1,
      "module": "tests.test_straw_r3",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 2
      },
      "end_col": 16,
      "end_line": 2,
      "expression": "import threading",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002092",
      "kind": "import",
      "line": 2,
      "module": "tests.test_straw_r3",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L2",
      "symbol": "<module>"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 61,
      "expression": "asyncio.run",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002093",
      "kind": "api_call",
      "line": 61,
      "module": "tests.test_straw_r3",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    result = asyncio.run(apply_rollout_sample_hooks(args, nested, rollout_id=3))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L61",
      "symbol": "test_straw_publishes_replay_tensors_with_the_group_without_hook_or_spill_directory"
    },
    {
      "category": "asyncio",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 22,
      "end_line": 105,
      "expression": "asyncio.run",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002094",
      "kind": "api_call",
      "line": 105,
      "module": "tests.test_straw_r3",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    assert asyncio.run(apply_rollout_sample_hooks(args, sample, evaluation=evaluation)) is sample",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L105",
      "symbol": "test_hooks_leave_ray_evaluation_and_aborted_samples_resident"
    },
    {
      "category": "threading",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 143,
      "expression": "threading.Event",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002095",
      "kind": "api_call",
      "line": 143,
      "module": "tests.test_straw_r3",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    entered, release = threading.Event(), threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L143",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity"
    },
    {
      "category": "threading",
      "col": 42,
      "details": {
        "access": "load"
      },
      "end_col": 57,
      "end_line": 143,
      "expression": "threading.Event",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002096",
      "kind": "api_call",
      "line": 143,
      "module": "tests.test_straw_r3",
      "name": "threading.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    entered, release = threading.Event(), threading.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L143",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "entered",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 150,
      "expression": "entered.set",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002097",
      "kind": "instance_candidate",
      "line": 150,
      "module": "tests.test_straw_r3",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "        entered.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L150",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.delayed_write"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 151,
      "expression": "release.wait",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002098",
      "kind": "instance_candidate",
      "line": 151,
      "module": "tests.test_straw_r3",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "        if not release.wait(5):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L151",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.delayed_write"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 30,
      "end_line": 177,
      "expression": "    async def run():",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002099",
      "kind": "async_def",
      "line": 159,
      "module": "tests.test_straw_r3",
      "name": "run",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    async def run():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L159-L177",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 160,
      "expression": "asyncio.create_task",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002100",
      "kind": "api_call",
      "line": 160,
      "module": "tests.test_straw_r3",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "        first = asyncio.create_task(rollout_transport.publish_rollout_async(samples[0], args, 0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L160",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "syntax",
      "col": 19,
      "details": {},
      "end_col": 59,
      "end_line": 163,
      "expression": "await asyncio.to_thread(entered.wait, 5)",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002101",
      "kind": "await",
      "line": 163,
      "module": "tests.test_straw_r3",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            assert await asyncio.to_thread(entered.wait, 5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L163",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 163,
      "expression": "asyncio.to_thread",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002102",
      "kind": "api_call",
      "line": 163,
      "module": "tests.test_straw_r3",
      "name": "asyncio.to_thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            assert await asyncio.to_thread(entered.wait, 5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L163",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "first",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(rollout_transport.publish_rollout_async(samples[0], args, 0))",
          "line": 160,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 164,
      "expression": "first.cancel",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002103",
      "kind": "instance_candidate",
      "line": 164,
      "module": "tests.test_straw_r3",
      "name": "cancel",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            first.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L164",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 40,
      "end_line": 165,
      "expression": "asyncio.create_task",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002104",
      "kind": "api_call",
      "line": 165,
      "module": "tests.test_straw_r3",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            second = asyncio.create_task(rollout_transport.publish_rollout_async(samples[1], args, 0))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L165",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 167,
      "expression": "await asyncio.sleep(0.05)",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002105",
      "kind": "await",
      "line": 167,
      "module": "tests.test_straw_r3",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L167",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 167,
      "expression": "asyncio.sleep",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002106",
      "kind": "api_call",
      "line": 167,
      "module": "tests.test_straw_r3",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L167",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "first",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(rollout_transport.publish_rollout_async(samples[0], args, 0))",
          "line": 160,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 168,
      "expression": "first.cancel",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002107",
      "kind": "instance_candidate",
      "line": 168,
      "module": "tests.test_straw_r3",
      "name": "cancel",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            first.cancel()  # A second shutdown signal must not release the writer early.",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L168",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 37,
      "end_line": 169,
      "expression": "await asyncio.sleep(0.05)",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002108",
      "kind": "await",
      "line": 169,
      "module": "tests.test_straw_r3",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L169",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 169,
      "expression": "asyncio.sleep",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002109",
      "kind": "api_call",
      "line": 169,
      "module": "tests.test_straw_r3",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            await asyncio.sleep(0.05)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L169",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "first",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(rollout_transport.publish_rollout_async(samples[0], args, 0))",
          "line": 160,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 33,
      "end_line": 170,
      "expression": "first.done",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002110",
      "kind": "instance_candidate",
      "line": 170,
      "module": "tests.test_straw_r3",
      "name": "done",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            assert not first.done()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L170",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 173,
      "expression": "release.set",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002111",
      "kind": "instance_candidate",
      "line": 173,
      "module": "tests.test_straw_r3",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L173",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "syntax",
      "col": 22,
      "details": {},
      "end_col": 74,
      "end_line": 174,
      "expression": "await asyncio.gather(*tasks, return_exceptions=True)",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002112",
      "kind": "await",
      "line": 174,
      "module": "tests.test_straw_r3",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            results = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L174",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 174,
      "expression": "asyncio.gather",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002113",
      "kind": "api_call",
      "line": 174,
      "module": "tests.test_straw_r3",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "            results = await asyncio.gather(*tasks, return_exceptions=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L174",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 38,
      "details": {
        "access": "load"
      },
      "end_col": 60,
      "end_line": 175,
      "expression": "asyncio.CancelledError",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002114",
      "kind": "api_reference",
      "line": 175,
      "module": "tests.test_straw_r3",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "        assert isinstance(results[0], asyncio.CancelledError)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L175",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity.run"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 179,
      "expression": "asyncio.run",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002115",
      "kind": "api_call",
      "line": 179,
      "module": "tests.test_straw_r3",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    asyncio.run(run())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L179",
      "symbol": "test_cancelled_straw_publication_drains_before_releasing_capacity"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "prefetcher",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 216,
      "expression": "prefetcher.close",
      "file": "tests/test_straw_r3.py",
      "id": "occ-002116",
      "kind": "instance_candidate",
      "line": 216,
      "module": "tests.test_straw_r3",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_straw_r3.py.txt",
      "source_line": "    prefetcher.close()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_straw_r3.py#L216",
      "symbol": "test_lazy_prefetch_reloads_between_forward_and_backward"
    },
    {
      "category": "asyncio",
      "col": 7,
      "details": {
        "local_binding": "asyncio",
        "selective_module_import": false,
        "statement_line": 1
      },
      "end_col": 14,
      "end_line": 1,
      "expression": "import asyncio",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002117",
      "kind": "import",
      "line": 1,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "import asyncio",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L1",
      "symbol": "<module>"
    },
    {
      "category": "contextlib-async",
      "col": 23,
      "details": {
        "local_binding": "asynccontextmanager",
        "selective_module_import": false,
        "statement_line": 6
      },
      "end_col": 42,
      "end_line": 6,
      "expression": "from contextlib import asynccontextmanager, nullcontext",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002118",
      "kind": "import",
      "line": 6,
      "module": "tests.test_streaming_rollout",
      "name": "contextlib.asynccontextmanager",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "from contextlib import asynccontextmanager, nullcontext",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L6",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 100,
      "expression": "\"\".join",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002119",
      "kind": "instance_candidate",
      "line": 100,
      "module": "tests.test_streaming_rollout",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        return \"\".join(f\"<{token_id}>\" for token_id in token_ids)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L100",
      "symbol": "test_merge_stream_chunks.decode"
    },
    {
      "category": "candidates",
      "col": 64,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 71,
      "end_line": 122,
      "expression": "\"\".join",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002120",
      "kind": "instance_candidate",
      "line": 122,
      "module": "tests.test_streaming_rollout",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            decode=lambda token_ids, skip_special_tokens=False: \"\".join(f\"<{token_id}>\" for token_id in token_ids)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L122",
      "symbol": "_generation_state.<lambda>"
    },
    {
      "category": "asyncio",
      "col": 18,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 129,
      "expression": "asyncio.Semaphore",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002121",
      "kind": "api_call",
      "line": 129,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        semaphore=asyncio.Semaphore(8),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L129",
      "symbol": "_generation_state"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 46,
      "end_line": 172,
      "expression": "    async def chunk_lines():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002122",
      "kind": "async_generator_def",
      "line": 170,
      "module": "tests.test_streaming_rollout",
      "name": "chunk_lines",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def chunk_lines():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L170-L172",
      "symbol": "_http_stream"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 46,
      "end_line": 172,
      "expression": "yield \"data: \" + json.dumps(chunk)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002123",
      "kind": "async_yield",
      "line": 172,
      "module": "tests.test_streaming_rollout",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            yield \"data: \" + json.dumps(chunk)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L172",
      "symbol": "_http_stream.chunk_lines"
    },
    {
      "category": "contextlib-async",
      "col": 5,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 176,
      "expression": "asynccontextmanager",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002124",
      "kind": "api_reference",
      "line": 176,
      "module": "tests.test_streaming_rollout",
      "name": "contextlib.asynccontextmanager",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    @asynccontextmanager",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L176",
      "symbol": "_http_stream"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 26,
      "end_line": 185,
      "expression": "    async def stream(method, url, json, headers):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002125",
      "kind": "async_generator_def",
      "line": 177,
      "module": "tests.test_streaming_rollout",
      "name": "stream",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def stream(method, url, json, headers):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L177-L185",
      "symbol": "_http_stream"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 26,
      "end_line": 182,
      "expression": "yield response",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002126",
      "kind": "async_yield",
      "line": 182,
      "module": "tests.test_streaming_rollout",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            yield response",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L182",
      "symbol": "_http_stream.stream"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "\"\"",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 242,
      "expression": "\"\".join",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002127",
      "kind": "instance_candidate",
      "line": 242,
      "module": "tests.test_streaming_rollout",
      "name": "join",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "                \"\".join(f\"<{token_id}>\" for token_id in token_slice),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L242",
      "symbol": "test_generate_streaming_preserves_metadata_across_stream_intervals"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 258,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002128",
      "kind": "api_call",
      "line": 258,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L258",
      "symbol": "test_generate_streaming_preserves_metadata_across_stream_intervals"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 299,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002129",
      "kind": "api_call",
      "line": 299,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L299",
      "symbol": "test_generate_streaming_handles_encoded_terminal_metadata"
    },
    {
      "category": "asyncio",
      "col": 8,
      "details": {
        "access": "load"
      },
      "end_col": 19,
      "end_line": 320,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002130",
      "kind": "api_call",
      "line": 320,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L320",
      "symbol": "test_streaming_generator_fails_closed_on_unexpected_eof"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 95,
      "end_line": 335,
      "expression": "    async def lines():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002131",
      "kind": "async_generator_def",
      "line": 332,
      "module": "tests.test_streaming_rollout",
      "name": "lines",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def lines():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L332-L335",
      "symbol": "test_server_abort_keeps_last_observed_prefix"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 71,
      "end_line": 334,
      "expression": "yield \"data: \" + json.dumps(_chunk(\"a\", [[-0.1, 11, None]], 1))",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002132",
      "kind": "async_yield",
      "line": 334,
      "module": "tests.test_streaming_rollout",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        yield \"data: \" + json.dumps(_chunk(\"a\", [[-0.1, 11, None]], 1))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L334",
      "symbol": "test_server_abort_keeps_last_observed_prefix.lines"
    },
    {
      "category": "asyncio",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 24,
      "end_line": 338,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002133",
      "kind": "api_call",
      "line": 338,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    result = asyncio.run(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L338",
      "symbol": "test_server_abort_keeps_last_observed_prefix"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 352,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002134",
      "kind": "api_call",
      "line": 352,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    first_chunk_seen = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L352",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 353,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002135",
      "kind": "api_call",
      "line": 353,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    request_closed = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L353",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 354,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002136",
      "kind": "api_call",
      "line": 354,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    server_started = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L354",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 355,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002137",
      "kind": "api_call",
      "line": 355,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    server_released = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L355",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 36,
      "end_line": 369,
      "expression": "    async def lines():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002138",
      "kind": "async_generator_def",
      "line": 358,
      "module": "tests.test_streaming_rollout",
      "name": "lines",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def lines():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L358-L369",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 9,
      "end_line": 367,
      "expression": "yield \"data: \" + json.dumps(\n            {\n                \"text\": None,\n                \"meta_info\": {\n                    \"output_token_logprobs\": [[-0.1, 11, None]],\n                    \"output_token_logprobs_length\": 1,\n                },\n            }\n        )",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002139",
      "kind": "async_yield",
      "line": 359,
      "module": "tests.test_streaming_rollout",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        yield \"data: \" + json.dumps(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L359-L367",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.lines"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "first_chunk_seen",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 352,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 368,
      "expression": "first_chunk_seen.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002140",
      "kind": "instance_candidate",
      "line": 368,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        first_chunk_seen.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L368",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.lines"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 369,
      "expression": "await asyncio.Event().wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002141",
      "kind": "await",
      "line": 369,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L369",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.lines"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 369,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002142",
      "kind": "api_call",
      "line": 369,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L369",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.lines"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "asyncio.Event()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 369,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 369,
      "expression": "asyncio.Event().wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002143",
      "kind": "instance_candidate",
      "line": 369,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L369",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.lines"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 21,
      "end_line": 379,
      "expression": "    async def server_generate(args, sample, sampling_params):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002144",
      "kind": "async_def",
      "line": 375,
      "module": "tests.test_streaming_rollout",
      "name": "server_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def server_generate(args, sample, sampling_params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L375-L379",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "server_started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 354,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 376,
      "expression": "server_started.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002145",
      "kind": "instance_candidate",
      "line": 376,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        server_started.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L376",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.server_generate"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 377,
      "expression": "await server_released.wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002146",
      "kind": "await",
      "line": 377,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await server_released.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L377",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.server_generate"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "server_released",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 355,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 377,
      "expression": "server_released.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002147",
      "kind": "instance_candidate",
      "line": 377,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await server_released.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L377",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.server_generate"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 47,
      "end_line": 382,
      "expression": "    async def get_workers(_url, *, timeout):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002148",
      "kind": "async_def",
      "line": 381,
      "module": "tests.test_streaming_rollout",
      "name": "get_workers",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def get_workers(_url, *, timeout):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L381-L382",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 29,
      "end_line": 386,
      "expression": "    async def abort_servers(urls):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002149",
      "kind": "async_def",
      "line": 384,
      "module": "tests.test_streaming_rollout",
      "name": "abort_servers",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def abort_servers(urls):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L384-L386",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "server_released",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 355,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 386,
      "expression": "server_released.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002150",
      "kind": "instance_candidate",
      "line": 386,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        server_released.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L386",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.abort_servers"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 62,
      "end_line": 403,
      "expression": "    async def exercise():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002151",
      "kind": "async_def",
      "line": 392,
      "module": "tests.test_streaming_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L392-L403",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "asyncio",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 42,
      "end_line": 393,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002152",
      "kind": "api_call",
      "line": 393,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        request_task = asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L393",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 400,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002153",
      "kind": "api_call",
      "line": 400,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        server_task = asyncio.create_task(sglang_rollout.generate_and_rm(args, Sample(), {}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L400",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 76,
      "end_line": 401,
      "expression": "await asyncio.gather(first_chunk_seen.wait(), server_started.wait())",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002154",
      "kind": "await",
      "line": 401,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(first_chunk_seen.wait(), server_started.wait())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L401",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 401,
      "expression": "asyncio.gather",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002155",
      "kind": "api_call",
      "line": 401,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(first_chunk_seen.wait(), server_started.wait())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L401",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "candidates",
      "col": 29,
      "details": {
        "receiver": "first_chunk_seen",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 352,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 50,
      "end_line": 401,
      "expression": "first_chunk_seen.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002156",
      "kind": "instance_candidate",
      "line": 401,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(first_chunk_seen.wait(), server_started.wait())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L401",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "candidates",
      "col": 54,
      "details": {
        "receiver": "server_started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 354,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 73,
      "end_line": 401,
      "expression": "server_started.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002157",
      "kind": "instance_candidate",
      "line": 401,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(first_chunk_seen.wait(), server_started.wait())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L401",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 54,
      "end_line": 402,
      "expression": "await sglang_rollout.abort(args, rollout_id=0)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002158",
      "kind": "await",
      "line": 402,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await sglang_rollout.abort(args, rollout_id=0)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L402",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "syntax",
      "col": 15,
      "details": {},
      "end_col": 62,
      "end_line": 403,
      "expression": "await asyncio.gather(request_task, server_task)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002159",
      "kind": "await",
      "line": 403,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        return await asyncio.gather(request_task, server_task)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L403",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "asyncio",
      "col": 21,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 403,
      "expression": "asyncio.gather",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002160",
      "kind": "api_call",
      "line": 403,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        return await asyncio.gather(request_task, server_task)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L403",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix.exercise"
    },
    {
      "category": "asyncio",
      "col": 28,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 405,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002161",
      "kind": "api_call",
      "line": 405,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    result, server_result = asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L405",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "candidates",
      "col": 11,
      "details": {
        "receiver": "request_closed",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 353,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 410,
      "expression": "request_closed.is_set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002162",
      "kind": "instance_candidate",
      "line": 410,
      "module": "tests.test_streaming_rollout",
      "name": "is_set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    assert request_closed.is_set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L410",
      "symbol": "test_stream_cancellation_closes_request_and_keeps_prefix"
    },
    {
      "category": "asyncio",
      "col": 22,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 416,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002163",
      "kind": "api_call",
      "line": 416,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    request_started = asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L416",
      "symbol": "test_unrelated_stream_cancellation_propagates"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 27,
      "end_line": 422,
      "expression": "    async def lines():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002164",
      "kind": "async_generator_def",
      "line": 419,
      "module": "tests.test_streaming_rollout",
      "name": "lines",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def lines():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L419-L422",
      "symbol": "test_unrelated_stream_cancellation_propagates"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "request_started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 416,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 420,
      "expression": "request_started.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002165",
      "kind": "instance_candidate",
      "line": 420,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        request_started.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L420",
      "symbol": "test_unrelated_stream_cancellation_propagates.lines"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 421,
      "expression": "await asyncio.Event().wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002166",
      "kind": "await",
      "line": 421,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L421",
      "symbol": "test_unrelated_stream_cancellation_propagates.lines"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 421,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002167",
      "kind": "api_call",
      "line": 421,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L421",
      "symbol": "test_unrelated_stream_cancellation_propagates.lines"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "asyncio.Event()",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 421,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 421,
      "expression": "asyncio.Event().wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002168",
      "kind": "instance_candidate",
      "line": 421,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.Event().wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L421",
      "symbol": "test_unrelated_stream_cancellation_propagates.lines"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 27,
      "end_line": 422,
      "expression": "yield \"unreachable\"",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002169",
      "kind": "async_yield",
      "line": 422,
      "module": "tests.test_streaming_rollout",
      "name": "yield in async generator",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        yield \"unreachable\"",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L422",
      "symbol": "test_unrelated_stream_cancellation_propagates.lines"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 439,
      "expression": "    async def exercise():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002170",
      "kind": "async_def",
      "line": 427,
      "module": "tests.test_streaming_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L427-L439",
      "symbol": "test_unrelated_stream_cancellation_propagates"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 428,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002171",
      "kind": "api_call",
      "line": 428,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        task = asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L428",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 36,
      "end_line": 435,
      "expression": "await request_started.wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002172",
      "kind": "await",
      "line": 435,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await request_started.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L435",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "request_started",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.Event()",
          "line": 416,
          "type": "asyncio.Event"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 435,
      "expression": "request_started.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002173",
      "kind": "instance_candidate",
      "line": 435,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await request_started.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L435",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "task",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "asyncio.create_task(\n            sglang_rollout.generate_and_rm(\n                args,\n                Sample(prompt=\"hello\"),\n                {\"max_new_tokens\": 8},\n            )\n        )",
          "line": 428,
          "type": "asyncio.Task"
        },
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 437,
      "expression": "task.cancel",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002174",
      "kind": "instance_candidate",
      "line": 437,
      "module": "tests.test_streaming_rollout",
      "name": "cancel",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        task.cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L437",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 438,
      "expression": "asyncio.CancelledError",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002175",
      "kind": "api_reference",
      "line": 438,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        with pytest.raises(asyncio.CancelledError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L438",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 22,
      "end_line": 439,
      "expression": "await task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002176",
      "kind": "await",
      "line": 439,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await task",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L439",
      "symbol": "test_unrelated_stream_cancellation_propagates.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 441,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002177",
      "kind": "api_call",
      "line": 441,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L441",
      "symbol": "test_unrelated_stream_cancellation_propagates"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 45,
      "end_line": 512,
      "expression": "    async def exercise():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002178",
      "kind": "async_def",
      "line": 466,
      "module": "tests.test_streaming_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L466-L512",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings"
    },
    {
      "category": "asyncio",
      "col": 16,
      "details": {
        "access": "load"
      },
      "end_col": 35,
      "end_line": 472,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002179",
      "kind": "api_call",
      "line": 472,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "                asyncio.create_task(asyncio.sleep(0, result=group)) for group in (mixed_group, [terminal], [empty])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L472",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise.<comprehension>"
    },
    {
      "category": "asyncio",
      "col": 36,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 472,
      "expression": "asyncio.sleep",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002180",
      "kind": "api_call",
      "line": 472,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.sleep",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "                asyncio.create_task(asyncio.sleep(0, result=group)) for group in (mixed_group, [terminal], [empty])",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L472",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise.<comprehension>"
    },
    {
      "category": "syntax",
      "col": 26,
      "details": {},
      "end_col": 72,
      "end_line": 486,
      "expression": "await sglang_rollout.abort(args, rollout_id=7)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002181",
      "kind": "await",
      "line": 486,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        buffered_groups = await sglang_rollout.abort(args, rollout_id=7)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L486",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 498,
      "expression": "        async def resume_generate(args, sample, sampling_params):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002182",
      "kind": "async_def",
      "line": 489,
      "module": "tests.test_streaming_rollout",
      "name": "resume_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        async def resume_generate(args, sample, sampling_params):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L489-L498",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 22,
      "end_line": 502,
      "expression": "        async def reward(_args, sample):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002183",
      "kind": "async_def",
      "line": 500,
      "module": "tests.test_streaming_rollout",
      "name": "reward",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        async def reward(_args, sample):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L500-L502",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 507,
      "expression": "asyncio.Semaphore",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002184",
      "kind": "api_call",
      "line": 507,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        state.semaphore = asyncio.Semaphore(2)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L507",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise"
    },
    {
      "category": "syntax",
      "col": 24,
      "details": {},
      "end_col": 108,
      "end_line": 511,
      "expression": "await sglang_rollout.generate_and_rm_group(args, mixed_group, {\"max_new_tokens\": 1})",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002185",
      "kind": "await",
      "line": 511,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        resumed_group = await sglang_rollout.generate_and_rm_group(args, mixed_group, {\"max_new_tokens\": 1})",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L511",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings.exercise"
    },
    {
      "category": "asyncio",
      "col": 37,
      "details": {
        "access": "load"
      },
      "end_col": 48,
      "end_line": 514,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002186",
      "kind": "api_call",
      "line": 514,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    buffered_groups, resumed_group = asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L514",
      "symbol": "test_partial_abort_buffers_and_resumes_only_aborted_siblings"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 49,
      "end_line": 587,
      "expression": "    async def exercise():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002187",
      "kind": "async_def",
      "line": 533,
      "module": "tests.test_streaming_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L533-L587",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 535,
      "expression": "asyncio.Semaphore",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002188",
      "kind": "api_call",
      "line": 535,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Semaphore",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        state.semaphore = asyncio.Semaphore(128)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L535",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 43,
      "details": {
        "access": "load"
      },
      "end_col": 56,
      "end_line": 539,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002189",
      "kind": "api_call",
      "line": 539,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        first_batch, all_started, finish = asyncio.Event(), asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L539",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 60,
      "details": {
        "access": "load"
      },
      "end_col": 73,
      "end_line": 539,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002190",
      "kind": "api_call",
      "line": 539,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        first_batch, all_started, finish = asyncio.Event(), asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L539",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 77,
      "details": {
        "access": "load"
      },
      "end_col": 90,
      "end_line": 539,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002191",
      "kind": "api_call",
      "line": 539,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        first_batch, all_started, finish = asyncio.Event(), asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L539",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 541,
      "expression": "asyncio.get_running_loop",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002192",
      "kind": "api_call",
      "line": 541,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.get_running_loop",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        loop = asyncio.get_running_loop()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L541",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 25,
      "end_line": 560,
      "expression": "        async def generate(_args, sample, params, evaluation=False):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002193",
      "kind": "async_def",
      "line": 550,
      "module": "tests.test_streaming_rollout",
      "name": "generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        async def generate(_args, sample, params, evaluation=False):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L550-L560",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "first_batch",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 555,
      "expression": "first_batch.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002194",
      "kind": "instance_candidate",
      "line": 555,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "                first_batch.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L555",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.generate"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "all_started",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 557,
      "expression": "all_started.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002195",
      "kind": "instance_candidate",
      "line": 557,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "                all_started.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L557",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.generate"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 31,
      "end_line": 558,
      "expression": "await finish.wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002196",
      "kind": "await",
      "line": 558,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await finish.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L558",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.generate"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "finish",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 29,
      "end_line": 558,
      "expression": "finish.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002197",
      "kind": "instance_candidate",
      "line": 558,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await finish.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L558",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.generate"
    },
    {
      "category": "asyncio",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 38,
      "end_line": 568,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002198",
      "kind": "api_call",
      "line": 568,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            return asyncio.create_task(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L568",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.start"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 53,
      "end_line": 573,
      "expression": "await asyncio.wait_for(first_batch.wait(), 1)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002199",
      "kind": "await",
      "line": 573,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(first_batch.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L573",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 573,
      "expression": "asyncio.wait_for",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002200",
      "kind": "api_call",
      "line": 573,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(first_batch.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L573",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "first_batch",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 573,
      "expression": "first_batch.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002201",
      "kind": "instance_candidate",
      "line": 573,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(first_batch.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L573",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "candidates",
      "col": 23,
      "details": {
        "receiver": "task",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 32,
      "end_line": 576,
      "expression": "task.done",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002202",
      "kind": "instance_candidate",
      "line": 576,
      "module": "tests.test_streaming_rollout",
      "name": "done",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        assert not any(task.done() for task in tasks)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L576",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "tasks[70]",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 24,
      "end_line": 577,
      "expression": "tasks[70].cancel",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002203",
      "kind": "instance_candidate",
      "line": 577,
      "module": "tests.test_streaming_rollout",
      "name": "cancel",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        tasks[70].cancel()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L577",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 49,
      "end_line": 578,
      "expression": "asyncio.CancelledError",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002204",
      "kind": "api_reference",
      "line": 578,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.CancelledError",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        with pytest.raises(asyncio.CancelledError):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L578",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 27,
      "end_line": 579,
      "expression": "await tasks[70]",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002205",
      "kind": "await",
      "line": 579,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await tasks[70]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L579",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 53,
      "end_line": 581,
      "expression": "await asyncio.wait_for(all_started.wait(), 1)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002206",
      "kind": "await",
      "line": 581,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(all_started.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L581",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 30,
      "end_line": 581,
      "expression": "asyncio.wait_for",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002207",
      "kind": "api_call",
      "line": 581,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.wait_for",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(all_started.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L581",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "all_started",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 47,
      "end_line": 581,
      "expression": "all_started.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002208",
      "kind": "instance_candidate",
      "line": 581,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.wait_for(all_started.wait(), 1)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L581",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "finish",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 18,
      "end_line": 584,
      "expression": "finish.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002209",
      "kind": "instance_candidate",
      "line": 584,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        finish.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L584",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 80,
      "end_line": 585,
      "expression": "await asyncio.gather(*(task for i, task in enumerate(tasks) if i != 70))",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002210",
      "kind": "await",
      "line": 585,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(*(task for i, task in enumerate(tasks) if i != 70))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L585",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 14,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 585,
      "expression": "asyncio.gather",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002211",
      "kind": "api_call",
      "line": 585,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.gather",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await asyncio.gather(*(task for i, task in enumerate(tasks) if i != 70))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L585",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 32,
      "end_line": 586,
      "expression": "await start(128)",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002212",
      "kind": "await",
      "line": 586,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        assert (await start(128)).status == Sample.Status.COMPLETED",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L586",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 589,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002213",
      "kind": "api_call",
      "line": 589,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L589",
      "symbol": "test_generation_pacing_preserves_concurrency_cancellation_and_reuse"
    },
    {
      "category": "syntax",
      "col": 4,
      "details": {
        "async_protocol": false
      },
      "end_col": 51,
      "end_line": 616,
      "expression": "    async def exercise():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002214",
      "kind": "async_def",
      "line": 593,
      "module": "tests.test_streaming_rollout",
      "name": "exercise",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    async def exercise():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L593-L616",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request"
    },
    {
      "category": "asyncio",
      "col": 26,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 597,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002215",
      "kind": "api_call",
      "line": 597,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        queued, release = asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L597",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "asyncio",
      "col": 43,
      "details": {
        "access": "load"
      },
      "end_col": 56,
      "end_line": 597,
      "expression": "asyncio.Event",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002216",
      "kind": "api_call",
      "line": 597,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.Event",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        queued, release = asyncio.Event(), asyncio.Event()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L597",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 24,
      "end_line": 603,
      "expression": "        async def wait_for_release():",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002217",
      "kind": "async_def",
      "line": 600,
      "module": "tests.test_streaming_rollout",
      "name": "wait_for_release",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        async def wait_for_release():",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L600-L603",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "queued",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 22,
      "end_line": 601,
      "expression": "queued.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002218",
      "kind": "instance_candidate",
      "line": 601,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            queued.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L601",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_release"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 32,
      "end_line": 602,
      "expression": "await release.wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002219",
      "kind": "await",
      "line": 602,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L602",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_release"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 602,
      "expression": "release.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002220",
      "kind": "instance_candidate",
      "line": 602,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await release.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L602",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_release"
    },
    {
      "category": "syntax",
      "col": 12,
      "details": {},
      "end_col": 24,
      "end_line": 603,
      "expression": "await wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002221",
      "kind": "await",
      "line": 603,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "            await wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L603",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_release"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {
        "async_protocol": false
      },
      "end_col": 86,
      "end_line": 606,
      "expression": "        async def unexpected_generate(*args, **kwargs):",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002222",
      "kind": "async_def",
      "line": 605,
      "module": "tests.test_streaming_rollout",
      "name": "unexpected_generate",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        async def unexpected_generate(*args, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L605-L606",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "asyncio",
      "col": 15,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 611,
      "expression": "asyncio.create_task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002223",
      "kind": "api_call",
      "line": 611,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.create_task",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        task = asyncio.create_task(sglang_rollout.generate_and_rm(args, Sample(), {}))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L611",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "syntax",
      "col": 8,
      "details": {},
      "end_col": 27,
      "end_line": 612,
      "expression": "await queued.wait()",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002224",
      "kind": "await",
      "line": 612,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await queued.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L612",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "candidates",
      "col": 14,
      "details": {
        "receiver": "queued",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 612,
      "expression": "queued.wait",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002225",
      "kind": "instance_candidate",
      "line": 612,
      "module": "tests.test_streaming_rollout",
      "name": "wait",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        await queued.wait()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L612",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "release",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 19,
      "end_line": 614,
      "expression": "release.set",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002226",
      "kind": "instance_candidate",
      "line": 614,
      "module": "tests.test_streaming_rollout",
      "name": "set",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        release.set()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L614",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "syntax",
      "col": 16,
      "details": {},
      "end_col": 26,
      "end_line": 615,
      "expression": "await task",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002227",
      "kind": "await",
      "line": 615,
      "module": "tests.test_streaming_rollout",
      "name": "await",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "        assert (await task).status == Sample.Status.ABORTED",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L615",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise"
    },
    {
      "category": "asyncio",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 15,
      "end_line": 618,
      "expression": "asyncio.run",
      "file": "tests/test_streaming_rollout.py",
      "id": "occ-002228",
      "kind": "api_call",
      "line": 618,
      "module": "tests.test_streaming_rollout",
      "name": "asyncio.run",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_streaming_rollout.py.txt",
      "source_line": "    asyncio.run(exercise())",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_streaming_rollout.py#L618",
      "symbol": "test_abort_while_waiting_for_generation_pacer_does_not_start_request"
    },
    {
      "category": "subprocess",
      "col": 11,
      "details": {
        "local_binding": "subprocess",
        "selective_module_import": false,
        "statement_line": 291
      },
      "end_col": 21,
      "end_line": 291,
      "expression": "import subprocess",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002229",
      "kind": "import",
      "line": 291,
      "module": "tests.test_training_recovery",
      "name": "subprocess",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    import subprocess",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L291",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "threading",
      "col": 11,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 292
      },
      "end_col": 20,
      "end_line": 292,
      "expression": "import threading",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002230",
      "kind": "import",
      "line": 292,
      "module": "tests.test_training_recovery",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L292",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "self.wfile",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 28,
      "end_line": 310,
      "expression": "self.wfile.write",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002231",
      "kind": "instance_candidate",
      "line": 310,
      "module": "tests.test_training_recovery",
      "name": "write",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "            self.wfile.write(body)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L310",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy.Dashboard.do_GET"
    },
    {
      "category": "subprocess",
      "col": 24,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 326,
      "expression": "subprocess",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002232",
      "kind": "api_reference",
      "line": 326,
      "module": "tests.test_training_recovery",
      "name": "subprocess",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    monkeypatch.setattr(subprocess, \"run\", lambda *a, **kw: started.append(dict(os.environ)))",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L326",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "threading",
      "col": 17,
      "details": {
        "access": "load"
      },
      "end_col": 33,
      "end_line": 339,
      "expression": "threading.Thread",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002233",
      "kind": "api_call",
      "line": 339,
      "module": "tests.test_training_recovery",
      "name": "threading.Thread",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "        thread = threading.Thread(target=server.serve_forever, daemon=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L339",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=server.serve_forever, daemon=True)",
          "line": 339,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 20,
      "end_line": 340,
      "expression": "thread.start",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002234",
      "kind": "instance_candidate",
      "line": 340,
      "module": "tests.test_training_recovery",
      "name": "start",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "        thread.start()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L340",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "server",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 345,
      "expression": "server.shutdown",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002235",
      "kind": "instance_candidate",
      "line": 345,
      "module": "tests.test_training_recovery",
      "name": "shutdown",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "            server.shutdown()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L345",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "thread",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "threading.Thread(target=server.serve_forever, daemon=True)",
          "line": 339,
          "type": "threading.Thread"
        },
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 346,
      "expression": "thread.join",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002236",
      "kind": "instance_candidate",
      "line": 346,
      "module": "tests.test_training_recovery",
      "name": "join",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "            thread.join(timeout=5)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L346",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "env",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 349,
      "expression": "env.get",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002237",
      "kind": "instance_candidate",
      "line": 349,
      "module": "tests.test_training_recovery",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    assert all(not env.get(name) for env in started for name in proxies)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L349",
      "symbol": "test_recovery_e2e_contacts_dashboard_without_proxy.<comprehension>"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "source.buffer",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 23,
      "end_line": 513,
      "expression": "source.buffer.clear",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002238",
      "kind": "instance_candidate",
      "line": 513,
      "module": "tests.test_training_recovery",
      "name": "clear",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    source.buffer.clear()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L513",
      "symbol": "test_source_snapshot_restores_cursor_and_buffer"
    },
    {
      "category": "candidates",
      "col": 4,
      "details": {
        "receiver": "startup",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 648,
      "expression": "startup.close",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002239",
      "kind": "instance_candidate",
      "line": 648,
      "module": "tests.test_training_recovery",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    startup.close(failed=True)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L648",
      "symbol": "test_failed_attempt_releases_trainers_despite_manager_failure"
    },
    {
      "category": "candidates",
      "col": 8,
      "details": {
        "receiver": "startup",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 21,
      "end_line": 673,
      "expression": "startup.close",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002240",
      "kind": "instance_candidate",
      "line": 673,
      "module": "tests.test_training_recovery",
      "name": "close",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "        startup.close(failed=False)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L673",
      "symbol": "test_successful_attempt_cleans_both_owners_after_dispose_error"
    },
    {
      "category": "candidates",
      "col": 15,
      "details": {
        "receiver": "resume",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 27,
      "end_line": 715,
      "expression": "resume.apply",
      "file": "tests/test_training_recovery.py",
      "id": "occ-002241",
      "kind": "instance_candidate",
      "line": 715,
      "module": "tests.test_training_recovery",
      "name": "apply",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/test_training_recovery.py.txt",
      "source_line": "    resolved = resume.apply(args)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/test_training_recovery.py#L715",
      "symbol": "test_training_resume_keeps_checkpoint_and_attempt_configuration_separate"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 5
      },
      "end_col": 9,
      "end_line": 5,
      "expression": "import os",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002242",
      "kind": "import",
      "line": 5,
      "module": "tests.training_recovery_test_helpers",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L5",
      "symbol": "<module>"
    },
    {
      "category": "syntax",
      "col": 0,
      "details": {
        "async_protocol": false
      },
      "end_col": 58,
      "end_line": 16,
      "expression": "async def reward(args, sample, **kwargs):",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002243",
      "kind": "async_def",
      "line": 15,
      "module": "tests.training_recovery_test_helpers",
      "name": "reward",
      "provenance": "python_ast",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "async def reward(args, sample, **kwargs):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L15-L16",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 25,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 20,
      "expression": "os.getpid",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002244",
      "kind": "api_call",
      "line": 20,
      "module": "tests.training_recovery_test_helpers",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "    return {\"actor_pid\": os.getpid(), \"server_pid\": engine.process.pid, \"url\": engine.get_url()}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L20",
      "symbol": "_engine_identity"
    },
    {
      "category": "os-process",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 36,
      "end_line": 24,
      "expression": "os.getpid",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002245",
      "kind": "api_call",
      "line": 24,
      "module": "tests.training_recovery_test_helpers",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "    return {\"serving_pid\": os.getpid(), \"router_pids\": [process.pid for process in serving.router_processes]}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L24",
      "symbol": "_serving_identity"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "data",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 26,
      "end_line": 38,
      "expression": "data.get",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002246",
      "kind": "instance_candidate",
      "line": 38,
      "module": "tests.training_recovery_test_helpers",
      "name": "get",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "    for routes in data.get(\"rollout_routed_experts\", []):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L38",
      "symbol": "_session_snapshot"
    },
    {
      "category": "os-process",
      "col": 23,
      "details": {
        "access": "load"
      },
      "end_col": 32,
      "end_line": 47,
      "expression": "os.getpid",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002247",
      "kind": "api_call",
      "line": 47,
      "module": "tests.training_recovery_test_helpers",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "        \"manager_pid\": os.getpid(),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L47",
      "symbol": "_session_snapshot"
    },
    {
      "category": "os-process",
      "col": 19,
      "details": {
        "access": "load"
      },
      "end_col": 28,
      "end_line": 78,
      "expression": "os.getpid",
      "file": "tests/training_recovery_test_helpers.py",
      "id": "occ-002248",
      "kind": "api_call",
      "line": 78,
      "module": "tests.training_recovery_test_helpers",
      "name": "os.getpid",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tests/training_recovery_test_helpers.py.txt",
      "source_line": "            \"pid\": os.getpid(),",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tests/training_recovery_test_helpers.py#L78",
      "symbol": "before_train_step"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 22
      },
      "end_col": 16,
      "end_line": 22,
      "expression": "import threading",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002249",
      "kind": "import",
      "line": 22,
      "module": "tools.convert_hf_to_fp8",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L22",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 23
      },
      "end_col": 49,
      "end_line": 23,
      "expression": "from concurrent.futures import ThreadPoolExecutor",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002250",
      "kind": "import",
      "line": 23,
      "module": "tools.convert_hf_to_fp8",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L23",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 105,
      "expression": "threading.Lock",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002251",
      "kind": "api_call",
      "line": 105,
      "module": "tools.convert_hf_to_fp8",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "        self.lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L105",
      "symbol": "ConversionResult.__init__"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 178,
      "expression": "ThreadPoolExecutor",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002252",
      "kind": "api_call",
      "line": 178,
      "module": "tools.convert_hf_to_fp8",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "    with ThreadPoolExecutor(max_workers=max_workers) as executor:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L178",
      "symbol": "convert_fp8"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "executor",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=max_workers)",
          "line": 178,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 181,
      "expression": "executor.submit",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002253",
      "kind": "instance_candidate",
      "line": 181,
      "module": "tools.convert_hf_to_fp8",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "            future = executor.submit(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L181",
      "symbol": "convert_fp8"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "executor.submit(\n                process_file, input_path, output_path, filename, strategy, block_size, result_collector\n            )",
          "line": 181,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 187,
      "expression": "future.result",
      "file": "tools/convert_hf_to_fp8.py",
      "id": "occ-002254",
      "kind": "instance_candidate",
      "line": 187,
      "module": "tools.convert_hf_to_fp8",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_hf_to_fp8.py.txt",
      "source_line": "            future.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_fp8.py#L187",
      "symbol": "convert_fp8"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 16
      },
      "end_col": 16,
      "end_line": 16,
      "expression": "import threading",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002255",
      "kind": "import",
      "line": 16,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L16",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 17
      },
      "end_col": 49,
      "end_line": 17,
      "expression": "from concurrent.futures import ThreadPoolExecutor",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002256",
      "kind": "import",
      "line": 17,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L17",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 20,
      "details": {
        "access": "load"
      },
      "end_col": 34,
      "end_line": 158,
      "expression": "threading.Lock",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002257",
      "kind": "api_call",
      "line": 158,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "        self.lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L158",
      "symbol": "ConversionResult.__init__"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 224,
      "expression": "ThreadPoolExecutor",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002258",
      "kind": "api_call",
      "line": 224,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "    with ThreadPoolExecutor(max_workers=max_workers) as executor:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L224",
      "symbol": "convert_int4"
    },
    {
      "category": "candidates",
      "col": 21,
      "details": {
        "receiver": "executor",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=max_workers)",
          "line": 224,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 36,
      "end_line": 227,
      "expression": "executor.submit",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002259",
      "kind": "instance_candidate",
      "line": 227,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "            future = executor.submit(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L227",
      "symbol": "convert_int4"
    },
    {
      "category": "candidates",
      "col": 12,
      "details": {
        "receiver": "future",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "executor.submit(\n                process_file,\n                input_path,\n                output_path,\n                filename,\n                group_size,\n                is_symmetric,\n                ignore_rules,\n                result_collector,\n            )",
          "line": 227,
          "type": "concurrent.futures.Future"
        },
        "resolved_non_native_name": null
      },
      "end_col": 25,
      "end_line": 240,
      "expression": "future.result",
      "file": "tools/convert_hf_to_int4_direct.py",
      "id": "occ-002260",
      "kind": "instance_candidate",
      "line": 240,
      "module": "tools.convert_hf_to_int4_direct",
      "name": "result",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_hf_to_int4_direct.py.txt",
      "source_line": "            future.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_hf_to_int4_direct.py#L240",
      "symbol": "convert_int4"
    },
    {
      "category": "multiprocessing",
      "col": 7,
      "details": {
        "local_binding": "multiprocessing",
        "selective_module_import": false,
        "statement_line": 3
      },
      "end_col": 22,
      "end_line": 3,
      "expression": "import multiprocessing",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002261",
      "kind": "import",
      "line": 3,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "multiprocessing",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "import multiprocessing",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 7,
      "details": {
        "local_binding": "threading",
        "selective_module_import": false,
        "statement_line": 8
      },
      "end_col": 16,
      "end_line": 8,
      "expression": "import threading",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002262",
      "kind": "import",
      "line": 8,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "threading",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "import threading",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L8",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "local_binding": "ThreadPoolExecutor",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 49,
      "end_line": 10,
      "expression": "from concurrent.futures import ThreadPoolExecutor, as_completed",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002263",
      "kind": "import",
      "line": 10,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor, as_completed",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "executors",
      "col": 51,
      "details": {
        "local_binding": "as_completed",
        "selective_module_import": false,
        "statement_line": 10
      },
      "end_col": 63,
      "end_line": 10,
      "expression": "from concurrent.futures import ThreadPoolExecutor, as_completed",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002264",
      "kind": "import",
      "line": 10,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.as_completed",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "from concurrent.futures import ThreadPoolExecutor, as_completed",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L10",
      "symbol": "<module>"
    },
    {
      "category": "threading",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 41,
      "end_line": 43,
      "expression": "threading.Lock",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002265",
      "kind": "api_call",
      "line": 43,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        self._cache_lock = threading.Lock() if max_workers and max_workers > 1 else None",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L43",
      "symbol": "WrappedStorageReader.__init__"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "stream",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 137,
      "expression": "stream.read",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002266",
      "kind": "instance_candidate",
      "line": 137,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "                        data = stream.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L137",
      "symbol": "WrappedStorageReader._parallel_preload_files.read_file"
    },
    {
      "category": "candidates",
      "col": 31,
      "details": {
        "receiver": "stream",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 42,
      "end_line": 140,
      "expression": "stream.read",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002267",
      "kind": "instance_candidate",
      "line": 140,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "read",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "                        data = stream.read()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L140",
      "symbol": "WrappedStorageReader._parallel_preload_files.read_file"
    },
    {
      "category": "executors",
      "col": 13,
      "details": {
        "access": "load"
      },
      "end_col": 31,
      "end_line": 147,
      "expression": "ThreadPoolExecutor",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002268",
      "kind": "api_call",
      "line": 147,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        with ThreadPoolExecutor(max_workers=self.max_workers) as executor:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L147",
      "symbol": "WrappedStorageReader._parallel_preload_files"
    },
    {
      "category": "candidates",
      "col": 16,
      "details": {
        "receiver": "executor",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=self.max_workers)",
          "line": 147,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 31,
      "end_line": 149,
      "expression": "executor.submit",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002269",
      "kind": "instance_candidate",
      "line": 149,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "                executor.submit(read_file, rel_path, full_path, ops): rel_path",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L149",
      "symbol": "WrappedStorageReader._parallel_preload_files.<comprehension>"
    },
    {
      "category": "executors",
      "col": 31,
      "details": {
        "access": "load"
      },
      "end_col": 43,
      "end_line": 154,
      "expression": "as_completed",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002270",
      "kind": "api_call",
      "line": 154,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.as_completed",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "            for future in tqdm(as_completed(futures), total=len(futures), desc=\"Pre-loading files\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L154",
      "symbol": "WrappedStorageReader._parallel_preload_files"
    },
    {
      "category": "candidates",
      "col": 25,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 38,
      "end_line": 155,
      "expression": "future.result",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002271",
      "kind": "instance_candidate",
      "line": 155,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "                result = future.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L155",
      "symbol": "WrappedStorageReader._parallel_preload_files"
    },
    {
      "category": "threading",
      "col": 11,
      "details": {
        "access": "load"
      },
      "end_col": 25,
      "end_line": 284,
      "expression": "threading.Lock",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002272",
      "kind": "api_call",
      "line": 284,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "threading.Lock",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "    lock = threading.Lock()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L284",
      "symbol": "save_tensors"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 296,
      "expression": "ThreadPoolExecutor",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002273",
      "kind": "api_call",
      "line": 296,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "    with ThreadPoolExecutor(max_workers=max_workers) as executor:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L296",
      "symbol": "save_tensors"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "executor",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=max_workers)",
          "line": 296,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 297,
      "expression": "executor.submit",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002274",
      "kind": "instance_candidate",
      "line": 297,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        futures = {executor.submit(process_and_collect, (name, param)): name for name, param in param_list}",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L297",
      "symbol": "save_tensors.<comprehension>"
    },
    {
      "category": "executors",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 298,
      "expression": "as_completed",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002275",
      "kind": "api_call",
      "line": 298,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.as_completed",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        for future in tqdm(as_completed(futures), total=len(futures), desc=\"Converting parameters\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L298",
      "symbol": "save_tensors"
    },
    {
      "category": "candidates",
      "col": 24,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 37,
      "end_line": 299,
      "expression": "future.result",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002276",
      "kind": "instance_candidate",
      "line": 299,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "            converted = future.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L299",
      "symbol": "save_tensors"
    },
    {
      "category": "executors",
      "col": 9,
      "details": {
        "access": "load"
      },
      "end_col": 27,
      "end_line": 336,
      "expression": "ThreadPoolExecutor",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002277",
      "kind": "api_call",
      "line": 336,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.ThreadPoolExecutor",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "    with ThreadPoolExecutor(max_workers=min(max_workers, num_files)) as executor:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L336",
      "symbol": "save_tensors"
    },
    {
      "category": "candidates",
      "col": 19,
      "details": {
        "receiver": "executor",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "ThreadPoolExecutor(max_workers=min(max_workers, num_files))",
          "line": 336,
          "type": "concurrent.futures.ThreadPoolExecutor"
        },
        "resolved_non_native_name": null
      },
      "end_col": 34,
      "end_line": 337,
      "expression": "executor.submit",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002278",
      "kind": "instance_candidate",
      "line": 337,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "submit",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        futures = [executor.submit(save_file, i, tensors) for i, tensors in enumerate(modeltensors)]",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L337",
      "symbol": "save_tensors.<comprehension>"
    },
    {
      "category": "executors",
      "col": 27,
      "details": {
        "access": "load"
      },
      "end_col": 39,
      "end_line": 338,
      "expression": "as_completed",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002279",
      "kind": "api_call",
      "line": 338,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "concurrent.futures.as_completed",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        for future in tqdm(as_completed(futures), total=len(futures), desc=\"Saving files\"):",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L338",
      "symbol": "save_tensors"
    },
    {
      "category": "candidates",
      "col": 32,
      "details": {
        "receiver": "future",
        "receiver_evidence": null,
        "resolved_non_native_name": null
      },
      "end_col": 45,
      "end_line": 339,
      "expression": "future.result",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002280",
      "kind": "instance_candidate",
      "line": 339,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "result",
      "provenance": "unresolved_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "            filename, elapsed = future.result()",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L339",
      "symbol": "save_tensors"
    },
    {
      "category": "multiprocessing",
      "col": 10,
      "details": {
        "access": "load"
      },
      "end_col": 37,
      "end_line": 511,
      "expression": "multiprocessing.get_context",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002281",
      "kind": "api_call",
      "line": 511,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "multiprocessing.get_context",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "    ctx = multiprocessing.get_context(\"spawn\")",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L511",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 9,
      "details": {
        "receiver": "ctx",
        "receiver_evidence": {
          "evidence": "constructor_or_known_factory",
          "expression": "multiprocessing.get_context(\"spawn\")",
          "line": 511,
          "type": "multiprocessing.context.BaseContext"
        },
        "resolved_non_native_name": null
      },
      "end_col": 17,
      "end_line": 512,
      "expression": "ctx.Pool",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002282",
      "kind": "instance_candidate",
      "line": 512,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "Pool",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "    with ctx.Pool(num_workers) as pool:",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L512",
      "symbol": "<module>"
    },
    {
      "category": "candidates",
      "col": 18,
      "details": {
        "receiver": "pool",
        "receiver_evidence": {
          "evidence": "known_factory_on_inferred_receiver",
          "expression": "ctx.Pool(num_workers)",
          "line": 512,
          "type": "multiprocessing.Pool"
        },
        "resolved_non_native_name": null
      },
      "end_col": 30,
      "end_line": 513,
      "expression": "pool.starmap",
      "file": "tools/convert_torch_dist_to_hf_parallel.py",
      "id": "occ-002283",
      "kind": "instance_candidate",
      "line": 513,
      "module": "tools.convert_torch_dist_to_hf_parallel",
      "name": "starmap",
      "provenance": "inferred_receiver_candidate",
      "snapshot": "source_snapshot/tools/convert_torch_dist_to_hf_parallel.py.txt",
      "source_line": "        results = pool.starmap(",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/convert_torch_dist_to_hf_parallel.py#L513",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 7,
      "details": {
        "local_binding": "os",
        "selective_module_import": true,
        "statement_line": 3
      },
      "end_col": 9,
      "end_line": 3,
      "expression": "import os",
      "file": "tools/fp8_cast_bf16.py",
      "id": "occ-002284",
      "kind": "import",
      "line": 3,
      "module": "tools.fp8_cast_bf16",
      "name": "os",
      "provenance": "explicit_import",
      "snapshot": "source_snapshot/tools/fp8_cast_bf16.py.txt",
      "source_line": "import os",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/fp8_cast_bf16.py#L3",
      "symbol": "<module>"
    },
    {
      "category": "os-process",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 13,
      "end_line": 47,
      "expression": "os.system",
      "file": "tools/fp8_cast_bf16.py",
      "id": "occ-002285",
      "kind": "api_call",
      "line": 47,
      "module": "tools.fp8_cast_bf16",
      "name": "os.system",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/fp8_cast_bf16.py.txt",
      "source_line": "    os.system(\"cp -rf \" + fp8_path + \"/config.json \" + bf16_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/fp8_cast_bf16.py#L47",
      "symbol": "main"
    },
    {
      "category": "os-process",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 13,
      "end_line": 48,
      "expression": "os.system",
      "file": "tools/fp8_cast_bf16.py",
      "id": "occ-002286",
      "kind": "api_call",
      "line": 48,
      "module": "tools.fp8_cast_bf16",
      "name": "os.system",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/fp8_cast_bf16.py.txt",
      "source_line": "    os.system(\"cp -rf \" + fp8_path + \"/*.py \" + bf16_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/fp8_cast_bf16.py#L48",
      "symbol": "main"
    },
    {
      "category": "os-process",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 13,
      "end_line": 49,
      "expression": "os.system",
      "file": "tools/fp8_cast_bf16.py",
      "id": "occ-002287",
      "kind": "api_call",
      "line": 49,
      "module": "tools.fp8_cast_bf16",
      "name": "os.system",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/fp8_cast_bf16.py.txt",
      "source_line": "    os.system(\"cp -rf \" + fp8_path + \"/tokenizer* \" + bf16_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/fp8_cast_bf16.py#L49",
      "symbol": "main"
    },
    {
      "category": "os-process",
      "col": 4,
      "details": {
        "access": "load"
      },
      "end_col": 13,
      "end_line": 50,
      "expression": "os.system",
      "file": "tools/fp8_cast_bf16.py",
      "id": "occ-002288",
      "kind": "api_call",
      "line": 50,
      "module": "tools.fp8_cast_bf16",
      "name": "os.system",
      "provenance": "lexical_import_resolution",
      "snapshot": "source_snapshot/tools/fp8_cast_bf16.py.txt",
      "source_line": "    os.system(\"cp -rf \" + fp8_path + \"/chat_template* \" + bf16_path)",
      "source_url": "https://github.com/THUDM/slime/blob/2f2318653f6f794dddd321eff7c9d4b7b174643f/tools/fp8_cast_bf16.py#L50",
      "symbol": "main"
    }
  ],
  "schema_version": 1,
  "source": {
    "files": [
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6261,
        "direct_native_api_occurrences": 0,
        "file": ".claude/skills/release/scripts/check_release.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ea11f9d66c965cbf855afbed8dadc8c6da8e53835f9c035275d432ccc1145b87",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1055,
        "direct_native_api_occurrences": 0,
        "file": ".github/workflows/generate_github_workflows.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1e810036d3a20c2cbcd1eea39ad4b5b92a08381ef11ec1abc3c73a825cfe1eda",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2058,
        "direct_native_api_occurrences": 0,
        "file": "docker/patch/gb10/patch_sgl_kernel.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "140d19f85b3452f3b8a2d482868a4fd4a9e18b73f7b3bb6c60737efa8f0a6ba1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6332,
        "direct_native_api_occurrences": 0,
        "file": "docs/conf.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "336aa1e5a401cd85b0da9462e08b17831095c2bc41af74a2c26b2c377d9d46c4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "examples/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 5,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 1,
          "async_protocol_def": 0,
          "async_with": 3,
          "async_yield": 1,
          "await": 12,
          "import": 3,
          "instance_candidate": 4
        },
        "bytes": 14155,
        "direct_native_api_occurrences": 8,
        "file": "examples/coding_agent_rl/generate.py",
        "imports": 3,
        "instance_candidates": 4,
        "parse_status": "ok",
        "sha256": "493f995c961ae302d81725c134f122a6933a4396236a498d514550dd8d7707b1",
        "syntax_occurrences": 18,
        "total_static_occurrences": 33
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 35,
          "import": 1,
          "instance_candidate": 70
        },
        "bytes": 20626,
        "direct_native_api_occurrences": 1,
        "file": "examples/coding_agent_rl/swe.py",
        "imports": 1,
        "instance_candidates": 70,
        "parse_status": "ok",
        "sha256": "ca8f69d23bb7f3b0fadd8e9bdccb6519ff87367203ae4f39e195696a752cfca7",
        "syntax_occurrences": 50,
        "total_static_occurrences": 122
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 41,
        "direct_native_api_occurrences": 0,
        "file": "examples/geo3k_vlm_multi_turn/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f881a73cbc7cdaa918d655102ba2bc9953f3dfcaf28c5eb3d0586c06cc9d6b93",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 753,
        "direct_native_api_occurrences": 0,
        "file": "examples/geo3k_vlm_multi_turn/base_env.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e8b181793718f08a748c0d3edc0edb3c60480a8be920c6612ea7343174ecbf82",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11011,
        "direct_native_api_occurrences": 0,
        "file": "examples/geo3k_vlm_multi_turn/env_geo3k.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9b259e6e10f5e4a973b38e275056f73cd2cbb006b6e99a5a12f4b313a8c86066",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 0,
          "instance_candidate": 6
        },
        "bytes": 14489,
        "direct_native_api_occurrences": 0,
        "file": "examples/geo3k_vlm_multi_turn/rollout.py",
        "imports": 0,
        "instance_candidates": 6,
        "parse_status": "ok",
        "sha256": "dfb9728e8e7f117b90b69c9d71a0453e07760262129c7a4b1e20b100cc6b99d1",
        "syntax_occurrences": 4,
        "total_static_occurrences": 10
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4279,
        "direct_native_api_occurrences": 0,
        "file": "examples/geo3k_vlm_multi_turn/run_geo3k_vlm_multi_turn.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "443ba08ce674d38edffebed720c647fa53596fdf668115e73a41ddae278f4180",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "examples/multi_agent/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 8,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 12,
          "import": 2,
          "instance_candidate": 0
        },
        "bytes": 11849,
        "direct_native_api_occurrences": 3,
        "file": "examples/multi_agent/agent_system.py",
        "imports": 2,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "edf7713bdf2e29ac522b46484129bfb48d0a2184b81e2d63acc79a5cf60f8749",
        "syntax_occurrences": 20,
        "total_static_occurrences": 25
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2869,
        "direct_native_api_occurrences": 0,
        "file": "examples/multi_agent/prompts.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "026e24627b071d4bc510f1264d2abddac53ed1f1ccfb5a2e3bfdecc9597fc45e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1062,
        "direct_native_api_occurrences": 0,
        "file": "examples/multi_agent/rollout_with_multi_agents.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4221f0a3374123a78d7403cf1ef2fc5e6fec0141d30ce7c931d1067cac35ce90",
        "syntax_occurrences": 2,
        "total_static_occurrences": 2
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 4
        },
        "bytes": 16769,
        "direct_native_api_occurrences": 0,
        "file": "examples/retool/generate_with_retool.py",
        "imports": 0,
        "instance_candidates": 4,
        "parse_status": "ok",
        "sha256": "8412baeffd19dc83544edc2c831c7425b5009bca43079a3daafc21c3674e78c5",
        "syntax_occurrences": 7,
        "total_static_occurrences": 11
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 644,
        "direct_native_api_occurrences": 0,
        "file": "examples/retool/rl_data_preprocess.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ca8e799074b66dee4859d76b002220bff9e5de81dfb07fd7ba2eddbf9f4a56e1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 694,
        "direct_native_api_occurrences": 0,
        "file": "examples/retool/sft_data_processing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f42514b4fe9107e81e4ff51b05f1f0f39cf8b21c5fdad4426b486959c70d61c5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 2,
          "import": 2,
          "instance_candidate": 5
        },
        "bytes": 11512,
        "direct_native_api_occurrences": 5,
        "file": "examples/retool/tool_sandbox.py",
        "imports": 2,
        "instance_candidates": 5,
        "parse_status": "ok",
        "sha256": "c6cdd8ea47f89295c13b3185df4ebc12359e908ca66faf0c7a4121aaab361d5a",
        "syntax_occurrences": 6,
        "total_static_occurrences": 18
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 4,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 5,
          "import": 1,
          "instance_candidate": 2
        },
        "bytes": 11764,
        "direct_native_api_occurrences": 1,
        "file": "examples/search-r1/generate_with_search.py",
        "imports": 1,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "60f8332ca1358c79aad4bf60f541573e34ee7a186394aaae9210d8a7c626c338",
        "syntax_occurrences": 10,
        "total_static_occurrences": 14
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 5,
          "async_yield": 0,
          "await": 4,
          "import": 1,
          "instance_candidate": 11
        },
        "bytes": 5150,
        "direct_native_api_occurrences": 4,
        "file": "examples/search-r1/google_search_server.py",
        "imports": 1,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "a1ac36c9765cc8c3be07fe2022d1aee6041902b65c432162ad36f4ee9ca69fa9",
        "syntax_occurrences": 12,
        "total_static_occurrences": 28
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1581,
        "direct_native_api_occurrences": 0,
        "file": "examples/search-r1/local_dense_retriever/download.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fef22aa552f8bd50d5cea5cc1f69d8d44fb1dca5c9cda2df737088c52a104ca6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 14632,
        "direct_native_api_occurrences": 0,
        "file": "examples/search-r1/local_dense_retriever/retrieval_server.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "61fbd4cc4de5a5cbd5faa833437ae63bd40e41ca23b7cbe798421ab42ea19f27",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 2
        },
        "bytes": 3925,
        "direct_native_api_occurrences": 0,
        "file": "examples/search-r1/local_search_server.py",
        "imports": 0,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "58de2c752a0d63aa4eddff099116b77803946e7e1212815e0eaa61db747427b1",
        "syntax_occurrences": 4,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7566,
        "direct_native_api_occurrences": 0,
        "file": "examples/search-r1/qa_em_format.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "aa0133c8bd6e1b9acf84e6e10a83f7dc9230d693ee495a21005e2eb314a5a261",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "examples/strands_sglang/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "bytes": 4323,
        "direct_native_api_occurrences": 0,
        "file": "examples/strands_sglang/generate_with_strands.py",
        "imports": 0,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "70070e89a5aed0d4fcae72ab98afc2e5079a5bcaa6838b7d21757ed675e389e2",
        "syntax_occurrences": 3,
        "total_static_occurrences": 4
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 7,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 7
        },
        "bytes": 18977,
        "direct_native_api_occurrences": 11,
        "file": "examples/strands_sglang/subprocess_interpreter.py",
        "imports": 1,
        "instance_candidates": 7,
        "parse_status": "ok",
        "sha256": "d252740a7953b30096c8152367c510a0f55817c0916b3a458a998ac5e358f050",
        "syntax_occurrences": 0,
        "total_static_occurrences": 19
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "bytes": 5409,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/generate_with_tau.py",
        "imports": 0,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "384b24436b2f27b973f3202e01dfbeea756aa9a53d974e010be5aa5a8d4f50ef",
        "syntax_occurrences": 2,
        "total_static_occurrences": 3
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5667,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/openai_tool_adapter.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8804c69ce88cb46be4388a0c1e7c3aef118a60ae424ee56b61cbb48f39ef7288",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1056,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/sglang_tool_parser.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7b4ea496acce96173800147769c9c208ea92074bf4e1a0c91e01d1f540444822",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1438,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/tau1_mock.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "132eedc49d72a3f774784a001ec588f3c104e37139a90559d7b94a48b68d62c2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2794,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/token_delta.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c43064f8c5414dfc66ff60cc137d3d9e930d2466ea62a4c31234f53ea4769fb2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 4
        },
        "bytes": 17191,
        "direct_native_api_occurrences": 0,
        "file": "examples/tau-bench/trainable_agents.py",
        "imports": 0,
        "instance_candidates": 4,
        "parse_status": "ok",
        "sha256": "e32fef6e2c11e1ed19cbda881eaac0b6e16a8503ee6c0a29ce3730c8e1970499",
        "syntax_occurrences": 6,
        "total_static_occurrences": 10
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 20551,
        "direct_native_api_occurrences": 0,
        "file": "examples/train_infer_mismatch_helper/mis.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0a19ea77258a6ad1f7798a4feaaddca8ca51f0144879bb62fef7d608305a6c37",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1516,
        "direct_native_api_occurrences": 0,
        "file": "setup.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "757cc383ead5f79715542d0f9afbabe4739f621a36bd40a4bff69a390adef428",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 37,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "db8ee13dd4891e4b93237ed440d69be2d063986f5bcb20cbe9fcfd6b2ed83a82",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 271,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/adapters/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bb11e40d81542a26b4a4824df683cb6ea9145c74ce8deec328982e34da8f2150",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 9,
          "import": 0,
          "instance_candidate": 37
        },
        "bytes": 13633,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/adapters/anthropic.py",
        "imports": 0,
        "instance_candidates": 37,
        "parse_status": "ok",
        "sha256": "66ef380a3fc2ee8e582041ac8948857eea5e8a24ff5e9816a51320abedbd8980",
        "syntax_occurrences": 12,
        "total_static_occurrences": 49
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 5,
          "async_comprehension": 0,
          "async_def": 10,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 4,
          "async_yield": 0,
          "await": 14,
          "import": 1,
          "instance_candidate": 30
        },
        "bytes": 21143,
        "direct_native_api_occurrences": 11,
        "file": "slime/agent/adapters/common.py",
        "imports": 1,
        "instance_candidates": 30,
        "parse_status": "ok",
        "sha256": "723d7157bed506da695113d167c5b9854571ce61fda8965fd451afffe90335a7",
        "syntax_occurrences": 28,
        "total_static_occurrences": 70
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 9,
          "import": 0,
          "instance_candidate": 30
        },
        "bytes": 14500,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/adapters/openai.py",
        "imports": 0,
        "instance_candidates": 30,
        "parse_status": "ok",
        "sha256": "e68af264a6ab6436298091a3374d61bc75f128610402c0f5ae201e1a01133af0",
        "syntax_occurrences": 12,
        "total_static_occurrences": 42
      },
      {
        "by_kind": {
          "api_call": 5,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 2,
          "instance_candidate": 11
        },
        "bytes": 2833,
        "direct_native_api_occurrences": 7,
        "file": "slime/agent/aiohttp_threaded.py",
        "imports": 2,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "651e5aedbf9529d5f2e458bc6fbbd9a1931ec31bc00c9b8c911b6762d1209268",
        "syntax_occurrences": 2,
        "total_static_occurrences": 22
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 327,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/harness/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9446446dc967ce4863b959e228917e494f7d2c78f7b452a8eeace4695c9f18e8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2681,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/harness/claude_code.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "94765e59b431da1399cf09fada8693c20971a27e666d8fdb1308b3267b2d2af4",
        "syntax_occurrences": 6,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3394,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/harness/codex.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "da9f815f777c6268c98203d80afd67d0a079976e7f5f968fba7cc79131f9f1b4",
        "syntax_occurrences": 6,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 11,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 6560,
        "direct_native_api_occurrences": 1,
        "file": "slime/agent/harness/common.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "57919ecd4240f6631678f4ea395e2e0a784403ed4bb893c5e42992eabbe4b1fa",
        "syntax_occurrences": 18,
        "total_static_occurrences": 20
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4058,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/parsing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2c29ed7718fbdbdf88fecd160f528eec22c88e253fc3c3788e271433ffd13b33",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 17,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 22,
          "import": 1,
          "instance_candidate": 5
        },
        "bytes": 14829,
        "direct_native_api_occurrences": 2,
        "file": "slime/agent/sandbox.py",
        "imports": 1,
        "instance_candidates": 5,
        "parse_status": "ok",
        "sha256": "0c1b475e02ccce0ed3089c9f73272c755d5090f7e63e9be909a44c8a40339d91",
        "syntax_occurrences": 39,
        "total_static_occurrences": 47
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 21078,
        "direct_native_api_occurrences": 0,
        "file": "slime/agent/trajectory.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6dbb7bec446d81fa0542a4c954d458b4a11edab6776b45a63bc33bca08dd0469",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1750,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0b7a8ea52b4490c7f36850a4a330937b08e0f6c2b3a32bf3afdca0ef6d5843d8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 30212,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/actor.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "af52808c0334aea50f7ecd821c2cfdea14e09cde1456722c3170baf64c00fecd",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 69,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "911f27fe140e5bfbcdd1c29b5f71e7be699f8ba0277cc10596a290d6f72f3472",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 45064,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/deepgemm_forward.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f7145fc861462ec1604d1ce481611e29927adaaab01a6904b30c389cfad9a860",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 139387,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/deepgemm_moe_forward.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "22493ae8977a03f8cc5e48d4c630b477af2cf9177792037ef2caf9dafc5cda6a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 10273,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/deterministic_route_kernels.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ae89f68241c22ec2aedb2a258b21073517d5a127f42c4ee64ffa173944a66f4e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2421,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/env.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "b95127ea4b665bc591ea22d71d6b41e93e2f3f222096b4d93c5a4b710b13d36e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5785,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/alignment/layerwise_alignment.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0c743547b719e8edbf60f17a8a98af398f1f1c73507e36a7087909a69d46f4e9",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8260,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1575b7d534ca3cef62c3407c5bd1bf7988cadbfd9d2d0fc558a55ab1031edb3d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7654,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/checkpoint.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "590282179da2ca94b296b1de5c4ddd53d7f4c1f41a36259d1f167128561f9d8e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2997,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/ci_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fd55f6fed9d57f91666dd0764ba812c08de5ed2d7e83b1c3a7b577ff6dbd2e1c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 19300,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/cp_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "824139d155eb8041c67cf93f95c3d6a1fcb4d28191535edbe47566ab1be48af4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8442,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/data.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "581ed42c5bd2dcfe0af5b262cce8d5fee1719bf30da4ca3ec9bb1de73806abef",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 13503,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_checkpoint_saver.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0958e68bebc959d6562db3d5870cdb73335d9460f6307dcea63fe7ace5f71f73",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1542,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e6e7f98e92900d8a37ca95fae8327206b3b456e1a477d6d60653d4f772b4b5e5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6553,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/common.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ecf8bf75640e0d5f2873c7a7af4e38b469a47a1284eb683c49071fa8e459503e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5344,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/deepseek.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fa3fe5642880a46c2f5e536780630ca599b63791d926b76a76b3cb2f91e1b6e6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3735,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/glm.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f5c02cd10e1939f6d07e8fb17f247dc2a5b87d3247ac3abf9b40c2ee5bfb69e3",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8072,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/qwen.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "268562398419f7c9b29c3734b8f96da6197946204392af37881c98828ef8ef8a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6329,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/qwen3_5.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7a808f639f473874dd40cfe3283642fb159d7076d2a1a492c16e540cdc882a9a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3308,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/hf_to_megatron/qwen3_next.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "264052beadd472702668bc07782861a1f2799cfb7ebd58ac3d0e8cab25283034",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4391,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/initialize.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3c858fb9257125fec3259e43b9495e7d917874db95133ce9ca183a052ae6d29a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2305,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/kernels/fp8_kernel.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0c3f8121d9423de9b5109c9015f1b5e4bb0622574fa00b38c267e900ac4bd487",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2196,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/kernels/int4_qat/setup.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e586031ecfd775e386f0402ce903b2ab2de92df5b5bf393b88da6d155d86609d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 65683,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/loss.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f0f523ae9d7960f4cbff1b9b51edd285f51ba00b95ba178294af887301d6a1e2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4123,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "193dd874ea9a8eaf2789034a19f12fdec0a5c6d414a940d3a4871397fbae5cfc",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7833,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/deepseekv3.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "dfab14f4b938525798fb4bd05195e43b8f267de34671808a5d0cfeb64019341f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3702,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/glm4.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fdc2a52fa21e7f9b526b0cffeee97801cc3a28990a8ace7d33809c6044d4283e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6799,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/glm4moe.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5e84f368481c5d713907d6a32de0424d3b58fe96b22d8de4ef8375626c762969",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2736,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/llama.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e9223b10d7bf62b9acb3314f909831b0b12502451595763668c541ae0cd28399",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2742,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/mimo.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "20864f3628f3a8f2a146dc85d159dfd8a83e247a729e1e34eb067ea503797029",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4081,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/minimax_m2.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c90cac72fb21ae8a2804b76dd3eefa87231e900216a60d26292bc1d5a3a6cf92",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 901,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/processors/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cd62112ae6d759022537cde98c4a78de262912dd9934cb05f4bc158c45a7e271",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 436,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/processors/padding_remover.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "64223e774ad8dbf51e92fad6dca181cc0123e5ba80e99c86fa74a544c70e4659",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9214,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_compressed_tensors.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8cca80e9d2d29eace382568ee2756c983cb77d0dca8587a9434510760e107598",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5684,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_fp8.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8869b40f2b3b49fdd9e9a1acb127030eef609672d2f9b80bb99687436e741392",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3536,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/qwen2.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fb18f23241200815a3ef21ea9eba8dd303877af7286a31bb814857342f9a2804",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8780,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/qwen3_5.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c1a786d5d54c7f27bd84394a6ebfea755bc2694b2aabd7549633a93939b6a704",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8919,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/qwen3_next.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "88792a45b2652b58ea7c6831a2f107ee8a71a24cd13de0ea081312b9eb926cf6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4211,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/qwen3_vl.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "823f53abfd272697c8c82876698d53d83101a0c66271d4d84ef49653b5b8c7b8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5730,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/megatron_to_hf/qwen3moe.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "59aef122cc8e193e69e8bc46b2a22fbb73daa28b5f5b9da06bb53a471dbbc5b9",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 155,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/misc_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8031be98b7aedbf84a3ad0802821994c6fb091d01d9c743ef3c4a6ece52b71c7",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 42302,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/model.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8b38f3da967a0fe5f1e550143521f55a20e874067ff8762da95ba84ab3f57ed2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 12559,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/model_provider.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c131ce6ea8fa1d0fed1bf2a0e843634f7dfa8099656dc5ae3b1e60f0b24eeb31",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 338,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/server/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "45767603d41bdb4041143c2b06b58a58fe07ca5ae9dbf9d3a3b9e4ce4cbd37c5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4331,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/server/arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f3cb82af471a3de941222bcbca6614e916e20adceeb534942e0a86922cd0e8ed",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 24713,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/server/logprob_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3856f604dad960400cef66794c05fe20617a28275472df33952be6ba6c747873",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 16,
          "import": 3,
          "instance_candidate": 33
        },
        "bytes": 27846,
        "direct_native_api_occurrences": 11,
        "file": "slime/backends/megatron_utils/server/megatron_server.py",
        "imports": 3,
        "instance_candidates": 33,
        "parse_status": "ok",
        "sha256": "43ad090936020c367a6cdaa6c7c9589a76f99149438a74ff9a7e404268ea95a4",
        "syntax_occurrences": 27,
        "total_static_occurrences": 74
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1044,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/sglang.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "45e85af89e82d12bfc97d83d10e125d93664568adbd2b8fd963ae06a07f265ea",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3974,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/stateless_adam.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "795a7f9be09744364b06a5d3170db46ab4528857a68a3afa425c03895da7ae1b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2133,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "80ccad2161a22c8945ff1b16f10bb46cd722b6c2e6eeae23d1418c9f2160b6e2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9239,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/common.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bd32e39fb18fb0f78710d5e2edbe498a12050b4b7a90c5adf870c4f02ee42d39",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 13958,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/expert_routing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1f6ec5d3e0e3f8a0be1435af1741d7f9fac159ea47ac05a84fa6c256d8feb7c2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9811,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/hf_weight_iterator_direct.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cd144232abb1bb2af7f8197f59b963a03d37d5fa0806493dd5a31c588fb06d69",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3660,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "431c86f1afb4386dfa7e9a240e383de7878260c3ae0175d84506c170008acac3",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 9
        },
        "bytes": 14992,
        "direct_native_api_occurrences": 3,
        "file": "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py",
        "imports": 2,
        "instance_candidates": 9,
        "parse_status": "ok",
        "sha256": "ac78a67f02d146331f377c9246b60109d039101b99b5d4058ad6932981411293",
        "syntax_occurrences": 0,
        "total_static_occurrences": 14
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 4
        },
        "bytes": 15044,
        "direct_native_api_occurrences": 1,
        "file": "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py",
        "imports": 1,
        "instance_candidates": 4,
        "parse_status": "ok",
        "sha256": "b7abf4c1013baabcada3499f1bba3f6beca9f4360e345d46fd7c62d987826f8e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 19282,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/megatron_utils/update_weight/update_weight_from_tensor.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1f82ee7b41e908a702edea3d2fbfcb3c3d3e7f539fdce44c78faf80f02bced4c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 218,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d2881dffa74994f0ca7e4ba39882e5fa61e7a21d442d6ca7a721bfd75ce0d673",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9266,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9774ed10baafc90c5ddcaa2e435f11721cc76f298e275e2f34f3cfe799fa1e8b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "bytes": 5516,
        "direct_native_api_occurrences": 2,
        "file": "slime/backends/sglang_utils/deployment.py",
        "imports": 2,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "bdbb3cb9b24310f12a6ee231e7d39f4e6ad1841ec2195f079ac12b919c1a9556",
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2657,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/disaggregation.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "28d31c040a939c76250ac9152ddd36ea36ed945f8feb976c795c96e037e2f876",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 22795,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/engine_group.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "58ec2fc43f51309209d6d81fb0ec6bc948dd7a655b96373c8029066f4af36342",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8611,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/external.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "06d3e561bed3110bfff44b3a35784b85f4945daa8a95a9ed20e0f4ba1eb8c593",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 10,
          "import": 1,
          "instance_candidate": 18
        },
        "bytes": 10302,
        "direct_native_api_occurrences": 6,
        "file": "slime/backends/sglang_utils/server_control.py",
        "imports": 1,
        "instance_candidates": 18,
        "parse_status": "ok",
        "sha256": "0547c2e78306373786c65b7096c03e6faeb5b65c63d79d36954357b06c43033b",
        "syntax_occurrences": 17,
        "total_static_occurrences": 42
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9270,
        "direct_native_api_occurrences": 0,
        "file": "slime/backends/sglang_utils/sglang_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7df20abe50a7f5b5c8cb01b05494ff5e300d9d1588b72f50e2bef36372cd6741",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 7,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 11
        },
        "bytes": 25087,
        "direct_native_api_occurrences": 8,
        "file": "slime/backends/sglang_utils/sglang_engine.py",
        "imports": 3,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "040069fb31d4b55430d7425d4e8ce16a2b69fa8ea4691d2bbcb603259977aff5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 22
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 163,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c35fedd550746f7fba5c563d9003a460fd4991f73d75ccbefd13c95c0ef9aaa4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 11
        },
        "bytes": 10189,
        "direct_native_api_occurrences": 1,
        "file": "slime/data/archive.py",
        "imports": 1,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "369088f328f1eb1c383ecad9a01b3a23b5d06f5d630de8a427a4618a1d510b3b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 13
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 24339,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/batch_builder.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "daf3e0b13a67240c418826b06a5cfee0b6118d5c4fde2fcadebc5abca48dd7e1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 18834,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/checkpoint.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8511194a0f1b27705084a14974c5805e830ba2850900ef38ee02bcfd72082443",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 22150,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/codec.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5dc11fa523ee2a4a948f83231727b5f68fe6ce9e3954a38af5333389fb273df5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9577,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/data_source.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "aba2c022490f1d5950607ccb93a1a7e419cb0a75f7f5b34473901a0be98d3ac9",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 11,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 5,
          "instance_candidate": 57
        },
        "bytes": 68482,
        "direct_native_api_occurrences": 13,
        "file": "slime/data/queue_data_source.py",
        "imports": 5,
        "instance_candidates": 57,
        "parse_status": "ok",
        "sha256": "db17cf7837ebcd41fb7cd77096fa2a2db0d854333b6faa4e43ad82ccb7ba2ad1",
        "syntax_occurrences": 2,
        "total_static_occurrences": 77
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4139,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/sample_metadata.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ab417ad4ea91efe8314b44a58bf21cbedb78cd567ec81e139e6e31c07bdb0dcb",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 952,
        "direct_native_api_occurrences": 0,
        "file": "slime/data/tensor.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7c093a3857e6d38e615f6b41293fb203bdf9db90ae10baecb3602037bf918ed6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 12,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 6,
          "import": 3,
          "instance_candidate": 7
        },
        "bytes": 19898,
        "direct_native_api_occurrences": 14,
        "file": "slime/data/transport.py",
        "imports": 3,
        "instance_candidates": 7,
        "parse_status": "ok",
        "sha256": "9315c9bd0b66c7a7e4c237cd24a58b4b195c0ebcb48aeb7afe8e96e7cdbaad36",
        "syntax_occurrences": 10,
        "total_static_occurrences": 34
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 52,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e8a00cec93b14f44ceafa0101c4621900450a3394f4c072d179e556882ed9c66",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1324,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/logging_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "30ba0ccefdee8e9932022b93a31258d9c710143d36707e361466304484b0280c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3282,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/metric_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4e51ae13e8cd969ed7ef59701d06479338df7085cf2465a47ed94748f40d60a0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5430,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/profile_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "069c0979de79d3ca209fabff2700e3503d869a673cc12283cd954d79821a4bb6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6473,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/rollout_data_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9aa7e669e42aeb3bb1fe667bac50bb16646c1a662a533f5a335b5c233a9592c8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11553,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/rollout_metrics.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9c6c18df5d21a484fef9eb75a87851f56ebd6b273993381a9fb60f97f6c096ab",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2245,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/tensorboard_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "da81b76acf4b077baa2022857e6d503a7f4090972c3063ac95e3e9fc41e5944f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2399,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/timer.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8154c9a5a89673bd250dbfbbcca4a661c6c0b2533291dceca82135da5e279393",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 2,
          "instance_candidate": 31
        },
        "bytes": 24976,
        "direct_native_api_occurrences": 5,
        "file": "slime/observability/trace_utils.py",
        "imports": 2,
        "instance_candidates": 31,
        "parse_status": "ok",
        "sha256": "c626d3f57829db2f65befe6af8fb82ffd94aaa17090a0c6a2e443e3a3814a3ed",
        "syntax_occurrences": 3,
        "total_static_occurrences": 41
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 12121,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/train_data_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "187233b73331301dc1d2b46110eb068f90ee54a8932ef07a4e72d75244b76d9f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 16947,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/train_metric_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4475ab0718aabd08130198bc97bed6f317edceb78e4dbce42bb2a81327306e02",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5519,
        "direct_native_api_occurrences": 0,
        "file": "slime/observability/wandb_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c7f7fc12086deb33239ccc054b99e533f93923992258555ac31a9f2b7ba3b674",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 2
        },
        "bytes": 13164,
        "direct_native_api_occurrences": 1,
        "file": "slime/ray/actor_group.py",
        "imports": 1,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "ded0c12645992c7ab5c7034a91b418f195a6109dda02c3af0d0548804f39340c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 15423,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/placement_group.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "514502378e1bcb29f214fa02b8351edd7e4c1d4ca26015e7098711918e6d014a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 368,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/ray_actor.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4850b94683590d7e2248789e6a2ab271080cdbdbc98db8b8842ddfffc25f0556",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 26871,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/rollout.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9388c1959ed5e84bae82aee16d400375314dd0e996f489b4225170da18c1dc2f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 6
        },
        "bytes": 15699,
        "direct_native_api_occurrences": 2,
        "file": "slime/ray/serving.py",
        "imports": 1,
        "instance_candidates": 6,
        "parse_status": "ok",
        "sha256": "7255dde2196d0cc75d7ee7a3c0ef601a1de4b8e407bd33ab8fc0836652760080",
        "syntax_occurrences": 0,
        "total_static_occurrences": 9
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4365,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/train_actor.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d0cf7f65982f96b605f294a740b5a768843af01596c9ad1bfa7aabaa0c082675",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 19401,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/training_recovery.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c05df4a971a0a605d5247a7c8a8d2377dd159d4ee460cb3624a30f24def890c6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3269,
        "direct_native_api_occurrences": 0,
        "file": "slime/ray/utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "334789b09c2ad9bd369de04b8557db09c79bd0d3569e94641afe33e918686764",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4234,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/base_types.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6eef2735f72be65df28e6f7b550d7498113afab88095325919722c52a0c1515c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/filter_hub/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1445,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/filter_hub/base_types.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "718862b02c21840963f9fec72b7215b7a6ba7f02d7cbb2d210f192e5fe6fec2a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 821,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/filter_hub/dynamic_sampling_filters.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2331736a634bee9864e637d45f8518ea6f4e86660eac6f35c78bbf38d586be5e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4973,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/forge_load.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0957f1b42ef0b8ce5552e5050eaad82a08ae58134d278b6adc84e88ce9f4aa73",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 28,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 27,
          "import": 2,
          "instance_candidate": 41
        },
        "bytes": 26635,
        "direct_native_api_occurrences": 29,
        "file": "slime/rollout/fully_async_distributed.py",
        "imports": 2,
        "instance_candidates": 41,
        "parse_status": "ok",
        "sha256": "e0f323fdc30c27e3c33d4a723eeeec3e311bd9691f6e05cee7e643b5cd5819fd",
        "syntax_occurrences": 40,
        "total_static_occurrences": 112
      },
      {
        "by_kind": {
          "api_call": 11,
          "api_reference": 6,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 7,
          "import": 3,
          "instance_candidate": 20
        },
        "bytes": 15101,
        "direct_native_api_occurrences": 17,
        "file": "slime/rollout/fully_async_rollout.py",
        "imports": 3,
        "instance_candidates": 20,
        "parse_status": "ok",
        "sha256": "a29a07013d0438b1313ec5390c29d08bc4f39ae7916962caf055c614a1b4be17",
        "syntax_occurrences": 9,
        "total_static_occurrences": 49
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "bytes": 2769,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/on_policy_distillation.py",
        "imports": 0,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "a0adf4664c9d9c8121bb6630f9d9fc2df57d5b60e4208a2dcaa8a2fc2d1016ab",
        "syntax_occurrences": 4,
        "total_static_occurrences": 5
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 7,
          "import": 1,
          "instance_candidate": 1
        },
        "bytes": 4060,
        "direct_native_api_occurrences": 2,
        "file": "slime/rollout/rm_hub/__init__.py",
        "imports": 1,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "bbfcb71820abbb44b2b8946726a31b2d7bc54b27e36f52c38e8b6422808507bc",
        "syntax_occurrences": 11,
        "total_static_occurrences": 15
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1323,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/rm_hub/deepscaler.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7be863a12650d5054f5245bee0a9f01e1efe4b314db2e272c9d4261e18feb0a0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1483,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/rm_hub/f1.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "89457e8e95d7acdacd52a39044dd0a4b0c5d4cfa638dc1cdb8ce96e03620de6b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4189,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/rm_hub/gpqa.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7d39fc87c5422501e0fa44d4da2578646ed55d3f411db242a8800c3f0398c4d7",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 4
        },
        "bytes": 5466,
        "direct_native_api_occurrences": 2,
        "file": "slime/rollout/rm_hub/ifbench.py",
        "imports": 1,
        "instance_candidates": 4,
        "parse_status": "ok",
        "sha256": "fa3e2475b676714dedd0bef56ef45febe694f673eb331c3dcddf6b3bfb2ebb83",
        "syntax_occurrences": 0,
        "total_static_occurrences": 7
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 8301,
        "direct_native_api_occurrences": 4,
        "file": "slime/rollout/rm_hub/math_dapo_utils.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3d6b61357e2ee8f1704ba0eb1726ea2dd65dbf9c76e963f20d5ff6598b8f7b23",
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 14667,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/rm_hub/math_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cd884f4686ab3a1e0664ea09b2c15a5ebbf2b7d40b799c68ae5bbc0978637d32",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 2,
          "instance_candidate": 3
        },
        "bytes": 2336,
        "direct_native_api_occurrences": 2,
        "file": "slime/rollout/sample_hooks.py",
        "imports": 2,
        "instance_candidates": 3,
        "parse_status": "ok",
        "sha256": "9c50150facc91013e45335e360cff8e27d4a9987fa80094b9c0eaddd2b9f6bfb",
        "syntax_occurrences": 5,
        "total_static_occurrences": 12
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2295,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/sft_rollout.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7bf41f4b2591ebbd0a9872447cff35df8338290683f3086bb0ebd66303e0e319",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 13,
          "api_reference": 5,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 26,
          "import": 2,
          "instance_candidate": 9
        },
        "bytes": 31831,
        "direct_native_api_occurrences": 18,
        "file": "slime/rollout/sglang_rollout.py",
        "imports": 2,
        "instance_candidates": 9,
        "parse_status": "ok",
        "sha256": "e3076c6e79178cd448945886ed770f50d3697d6f041be55634f4ad65df904261",
        "syntax_occurrences": 36,
        "total_static_occurrences": 65
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 1,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 6
        },
        "bytes": 7760,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/sglang_streaming_rollout.py",
        "imports": 0,
        "instance_candidates": 6,
        "parse_status": "ok",
        "sha256": "6217499e4eb3077fa780f17e986856d284cea3b3338f33ffbbb67a81d5ec55f5",
        "syntax_occurrences": 3,
        "total_static_occurrences": 9
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 257,
        "direct_native_api_occurrences": 1,
        "file": "slime/rollout/sleep_rollout.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5c3dbcc2e9a595e785446ea8e3ff470a198396815216724a03d879375f6b4b9d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5122,
        "direct_native_api_occurrences": 0,
        "file": "slime/rollout/streaming_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d58cc5d120dc1f92ed3505141a9c2c65ad70a43e6ff73637b6d884a34e5f3812",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 38,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5043a8723e70046ef3298939bf3f45c11dabfdf15599dcd7519900edf83e332f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 3
        },
        "bytes": 17245,
        "direct_native_api_occurrences": 1,
        "file": "slime/utils/accelerator/__init__.py",
        "imports": 1,
        "instance_candidates": 3,
        "parse_status": "ok",
        "sha256": "74adf0042d6405e7f22feefd803112692c55a593f99ca36348dcd6fcd8e0047d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6581,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/base.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2642bd1859b641e2cc2727b90c219e570f9561c40f0e3d2afe9eb2f630c8ac20",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1268,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/cuda.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bd4e5d9de117e1811dc0887c497a0d5f59319697915fb831661ed57e74f4d2f0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2964,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/musa.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c1255dd97561348f99580de89756e807c3bfd2e40d4105c87ed7b2efe420052e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2118,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/npu.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "686d105a8741815b1d86b468c7f5fb522ebef75795ce3474ff580d9d3db5e9de",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3619,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/supa.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3890711e37d28839814700e2973f087ea93a9edf222070830af64e6e529894ba",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6055,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/accelerator/torch_accelerator.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "b48b6f4de2fd8a22dfc1cbd7f92164112958d0de08d9d5aaaa16c282881ae656",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 102402,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d2f9c9f3196663cee2507194d308ed53f8c3ec00d9f542e125dc0a5ab7d5e820",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 2,
          "instance_candidate": 8
        },
        "bytes": 2231,
        "direct_native_api_occurrences": 6,
        "file": "slime/utils/async_utils.py",
        "imports": 2,
        "instance_candidates": 8,
        "parse_status": "ok",
        "sha256": "09a9e7c89b78f66758a9dc23a9ce9523f06a73b1956ab6341522cafe1725f159",
        "syntax_occurrences": 2,
        "total_static_occurrences": 18
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1245,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/cleanup.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5453c596dd6eac6cf2ba2de864c01dc5df617acdd8a1f48c805a43640d21a4a8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 13878,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/data.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "41575cec0ad4d5fd0b61c5b9ee72da6135ebeff785645f1a950cfd7fb9a4ed9e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1878,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/disk_delta.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e6bdc4bdfad7842f9c4bedf2327637989c95a1669104dff700450482e3598881",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5793,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/distributed_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ee95a4775eceee51e6fc693236c2cd1f7d87d6530fdd49a46126e7c60f47dce4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9889,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/dp_schedule.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ed87386712ecc0e296f038354878c9dd6f8ab5561832febe0f5f272caa9cfd02",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 10401,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/eval_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "36928aed38b268335cd70cbe79881fbb30fc9a59d6678277b072b5369e257cec",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/external_utils/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 8858,
        "direct_native_api_occurrences": 3,
        "file": "slime/utils/external_utils/command_utils.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0d7f8f134e0c825677e006e74bdce731fcd2a7f8130c26beb7f3f5cece2dc0fe",
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2208,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/external_utils/typer_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f1a917227e9a25042151c28486d6170f26bd4a8dc220c8133bd83ddc3afb0035",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4561,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/flops_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5929a8614e682dd8678c900feb602e85f92215097fa6da3164a14f891cf2486e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 24
        },
        "bytes": 6616,
        "direct_native_api_occurrences": 4,
        "file": "slime/utils/health_monitor.py",
        "imports": 1,
        "instance_candidates": 24,
        "parse_status": "ok",
        "sha256": "4f1397cab1ff2138123df3e140c2f0bd44c38fdc76571c492e30953b64fcce3a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 29
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 13,
          "import": 1,
          "instance_candidate": 2
        },
        "bytes": 13330,
        "direct_native_api_occurrences": 3,
        "file": "slime/utils/http_utils.py",
        "imports": 1,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "9ffca3ee63ca3314490d3c38da8eddbcad478244c496481e4e1581c4151b191b",
        "syntax_occurrences": 19,
        "total_static_occurrences": 25
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11907,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/mask_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0c2ab2464dc6257030883fd0e10523e15e418a6cc7afc357ee6c557bc652a770",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2683,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/memory_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d488cf7a5d7866b2daaed0b80f468d9dd084730a1a5af1749c7b7fe8b243218d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 4574,
        "direct_native_api_occurrences": 2,
        "file": "slime/utils/misc.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6678a7028bc57e9e9191c3657e0ff6b3f5975ab7f720990016d4194578133c6d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 37779,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/ppo_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5b936ff1c1cd9114a1f35bf657add6241f2ac4da83f2db6b55ef35ddd0da7e3f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6093,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/processing_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f2429ebb08a024fbd73dd2e7065c9c70b8ba64ef36150014da7b8cfc94e70cb4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 11
        },
        "bytes": 18267,
        "direct_native_api_occurrences": 9,
        "file": "slime/utils/reloadable_process_group.py",
        "imports": 1,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "0b5e4b3b7389ef6212c17ccd4b41d862d9f99dbece1b4e799325d4b812b4dd80",
        "syntax_occurrences": 0,
        "total_static_occurrences": 21
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1187,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/rocm_checkpoint_writer.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6f29a85785a5b40e09e3b28b34e4dfb8007730039ba059863d7bbacef557e6a4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 8
        },
        "bytes": 11785,
        "direct_native_api_occurrences": 4,
        "file": "slime/utils/routed_experts.py",
        "imports": 3,
        "instance_candidates": 8,
        "parse_status": "ok",
        "sha256": "19845412e959e3cb9b7360593867c25b3aa07bfbfc213f4fefbc889f2c2b5155",
        "syntax_occurrences": 0,
        "total_static_occurrences": 15
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8220,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/routing_replay.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cdd0430f1454ecd1671496f5d83f38c7ee21510525ca45e172fde7277285bc6b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 16912,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/score_centering.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ea2aec59446c481f800719e69e566cfe6e0cd777c745819d9a3caacaa0c46358",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8333,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/seqlen_balancing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1a4f675ef6379d9775f08e74faeaaa9017e5cd4321296fed40fd5a3e80d83bad",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1220,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/staleness.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8647ce81c5b4432b7f5375b9dbc4fefa6efc5eddb4bf4223c81dc900fb72882a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1233,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/tensor_backper.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "eb2b3f8dc95adb8da19d05bc63a168c9bbbba0fbac7c7b839838d2d0d1a17d88",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 28105,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/types.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3b445f2adafc7cc47a64d7e4a87e5b677f391631798d8426c7df57b388cd163a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 634,
        "direct_native_api_occurrences": 0,
        "file": "slime/utils/weight_sync.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e15f9ac7e7427bd36a6d11eb91cd8b8c33f40372182a75a838fb5ecdaf0f4c20",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7142,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/flash_dot_product_attention.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d1d7823f6e64fb772e45c7db6e8403262a7fd30b83e0a3089e7385e899a4199e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 625,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm4.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3c4d2bab8e433f70f2687ef29117b9b7267a69f6b6f369f308965213bb782ff3",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 45915,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/glm5.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2f0a1ff77f229bdc9803bba0de3701ac2a4c023cca9659d4f0850943b035f69d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7276,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/indexer.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "318420958d8dfd4cba3970bc63a02e73218c118f5bea5c9048ce3adb63da679c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3927,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/sparse_mla.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6d4c76e8cbf85621611cde909b9b9883f59bc7c8223bf69437ddd96f35d65e73",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5926,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/tilelang_indexer_bwd.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "62deb53a37524c308640923ab35a2b515b2171d0d45ff634aea9c88fc7607b7d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4942,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/tilelang_indexer_fwd.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "39e78f7b5e0e79cb213cca1951aecf7bb826ac6dca5020172aea986d8e81223e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11522,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "80a8b0eb0158dd2f6d5e975521d56e1dbe9a23f0cf6bfd493f137e116b369179",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7890,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/glm5/ops/tilelang_sparse_mla_fwd.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a9f6f99d826dc3d173594d703c56ac109810f3b5fb67157661b399ca741a7da0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6372,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/hf_attention.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "b0d9ab6b8de78b5e6e5c0ecf6bf24dd0094325b6ca5059df90f9925a01047165",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7078,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/learnable_softmax_attention.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "37db88778587f1a72528638a76ebbfee2b348f3ec7258ed8c2bcce8d7fc580d5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3829,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/minimax_m2.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "95ad45731c972393736dfb11e003d78c04a8672184989cf87c76b8ca63f0a4fa",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8932,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/qwen3_5.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7ec4da3bded8aaa39f6f0012ca6f0203dafff128bf04dce588708bfa000ad5eb",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11653,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/qwen3_5_vl.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "436117d03c2f9af3e541f15618fbb17b1f9f38f04ac0b5337c770c759d4ba20f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6312,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/qwen3_5_vl_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8dc116565b186b7371797b42f2d9dfa5b098e65af9ec5a1b99e84c839a2e162e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9845,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/qwen3_next.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a13c18db429d94c5563d0abcb333d97860b971ae5263e690112ae971dfca4ca2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1723,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/models/qwen_gdn_backend.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1f9606b6707aef5f8dceaf0bb13b90c779d31503ebba22025f6e68c734aea404",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 4,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 1,
          "instance_candidate": 7
        },
        "bytes": 11272,
        "direct_native_api_occurrences": 2,
        "file": "slime_plugins/rollout_buffer/buffer.py",
        "imports": 1,
        "instance_candidates": 7,
        "parse_status": "ok",
        "sha256": "c98b814f731e923d0470e140cf3e6c2faf5c52e59807c176219a53d446a6f8e4",
        "syntax_occurrences": 7,
        "total_static_occurrences": 17
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 122,
        "direct_native_api_occurrences": 0,
        "file": "slime_plugins/rollout_buffer/generator/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0b4bed1673bc72da74df4164e91e34c8eab1b0f194d91a1eaa037321568396ba",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 4,
          "instance_candidate": 11
        },
        "bytes": 12311,
        "direct_native_api_occurrences": 7,
        "file": "slime_plugins/rollout_buffer/generator/base_generator.py",
        "imports": 4,
        "instance_candidates": 11,
        "parse_status": "ok",
        "sha256": "c8431ff5e6c584111d5735811038104438ca61b28231b1a221a447866904a2ba",
        "syntax_occurrences": 0,
        "total_static_occurrences": 22
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 3,
          "import": 2,
          "instance_candidate": 0
        },
        "bytes": 12312,
        "direct_native_api_occurrences": 2,
        "file": "slime_plugins/rollout_buffer/rollout_buffer_example.py",
        "imports": 2,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "129c3511e57f1372c72a2d5449b5a276e7097b613777ade6e6bb01f8add458c0",
        "syntax_occurrences": 7,
        "total_static_occurrences": 11
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7324,
        "direct_native_api_occurrences": 0,
        "file": "tests/_cp_dist_helpers.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c5fbf55745509b06a3ed81c1dcde61195752c410a9632425e49bd6b1310c4344",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 11,
          "api_reference": 9,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 5,
          "instance_candidate": 15
        },
        "bytes": 7716,
        "direct_native_api_occurrences": 20,
        "file": "tests/ci/gpu_lock_exec.py",
        "imports": 5,
        "instance_candidates": 15,
        "parse_status": "ok",
        "sha256": "3cdbab0cb542983dd86e0bb9bdf588d707f5d036cd70debc6453b48bf4c2d08e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 40
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "bytes": 4632,
        "direct_native_api_occurrences": 0,
        "file": "tests/fanout_test_helpers.py",
        "imports": 0,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "8ed1355a6d31527e74a02a5269e3f22f9b5fad4243984f9c880e69436216f24a",
        "syntax_occurrences": 2,
        "total_static_occurrences": 3
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 13667,
        "direct_native_api_occurrences": 0,
        "file": "tests/glm52_layerwise_comparator.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "da3d46aa5a7f098c8b8766dc28d2d9279762c0c6585f22c5075c8db635b40ac7",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3005,
        "direct_native_api_occurrences": 0,
        "file": "tests/observability/test_trace_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "49d18119c5afbf337fe6b8675ed149f3078ebdd74938bff18990824f66e7d503",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 15
        },
        "bytes": 7259,
        "direct_native_api_occurrences": 4,
        "file": "tests/pipeline_rl_test_helpers.py",
        "imports": 2,
        "instance_candidates": 15,
        "parse_status": "ok",
        "sha256": "67fd7b7a7180d0712e4522a894f95b514356b61ef2bdc0f39b81fb0548db9593",
        "syntax_occurrences": 1,
        "total_static_occurrences": 22
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 29,
        "direct_native_api_occurrences": 0,
        "file": "tests/plugin_contracts/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ba5c47bae3be244da380c7ea8843a3932efd88a72444472545fa0a83bcf5c5d6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3014,
        "direct_native_api_occurrences": 0,
        "file": "tests/plugin_contracts/_shared.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "57dc8acc67a59416359a3528e3db68c996a146564967d1b10aa96619eeaba4a5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 6866,
        "direct_native_api_occurrences": 4,
        "file": "tests/plugin_contracts/test_plugin_generate_contracts.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "48df16087bce055bc92b4c1d5e20804c497f14e5a14baf1adf141c64f76a827c",
        "syntax_occurrences": 6,
        "total_static_occurrences": 11
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 1
        },
        "bytes": 13265,
        "direct_native_api_occurrences": 4,
        "file": "tests/plugin_contracts/test_plugin_path_loading_contracts.py",
        "imports": 1,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "2c0f166338124256639a790f3f35adb2569b8d312218a89581e3a129f2699347",
        "syntax_occurrences": 2,
        "total_static_occurrences": 8
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7256,
        "direct_native_api_occurrences": 0,
        "file": "tests/plugin_contracts/test_plugin_rollout_contracts.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "80599abf7c2fabb8ede03a2958beb11b3625f6cb5afa7981d1d076e7df1c9c80",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6485,
        "direct_native_api_occurrences": 0,
        "file": "tests/plugin_contracts/test_plugin_runtime_hook_contracts.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "846e03e1e94e5818dca9f2f3c8c11d1e45d08d92b135929980dbfdfa61e3ec34",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3421,
        "direct_native_api_occurrences": 0,
        "file": "tests/rollout_health_test_helpers.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "296c64bbd98056f484c724be32a00c6b1892a0d1079adaec12699e6afc8262f5",
        "syntax_occurrences": 3,
        "total_static_occurrences": 3
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 12054,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_accelerator.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5e02afb839baf14b987feb8751ea4c3594303ed8cfdce1397d468a03268af074",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8037,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_advantage_whiten_cp.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "990ff43bce686c6ad0147b86e68897be747b696cf7679cf78666e4bacb64fb2c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 0,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_agent/__init__.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3420,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_agent/_dump_helpers.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c3ec0f306247c909f43e52a86b4fc6aa142c01c953f658a110e0c95dc9d3821b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 4,
          "import": 1,
          "instance_candidate": 15
        },
        "bytes": 13147,
        "direct_native_api_occurrences": 1,
        "file": "tests/test_agent/_fakes.py",
        "imports": 1,
        "instance_candidates": 15,
        "parse_status": "ok",
        "sha256": "a7b80ab78941def7e65de70e6a7ed7b8d3c62fbdcce8949c4a6f13f07be6e30d",
        "syntax_occurrences": 13,
        "total_static_occurrences": 30
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 6,
          "async_yield": 0,
          "await": 33,
          "import": 1,
          "instance_candidate": 9
        },
        "bytes": 19392,
        "direct_native_api_occurrences": 6,
        "file": "tests/test_agent/test_adapters.py",
        "imports": 1,
        "instance_candidates": 9,
        "parse_status": "ok",
        "sha256": "b822c34babe31c3211517dd757eba5801a26165cfd4111a01ef4d8c4087a055a",
        "syntax_occurrences": 46,
        "total_static_occurrences": 62
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 1,
          "async_protocol_def": 0,
          "async_with": 4,
          "async_yield": 1,
          "await": 8,
          "import": 2,
          "instance_candidate": 5
        },
        "bytes": 12008,
        "direct_native_api_occurrences": 8,
        "file": "tests/test_agent/test_agent_rollout_cpu.py",
        "imports": 2,
        "instance_candidates": 5,
        "parse_status": "ok",
        "sha256": "e24b81125efd7634b302f16b3c05f1e5a1f699469be31c4ed620f41662dd32cf",
        "syntax_occurrences": 23,
        "total_static_occurrences": 38
      },
      {
        "by_kind": {
          "api_call": 9,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 15,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 10,
          "import": 1,
          "instance_candidate": 2
        },
        "bytes": 8675,
        "direct_native_api_occurrences": 10,
        "file": "tests/test_agent/test_harness.py",
        "imports": 1,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "c0f08472bbff5b63b5cd991ce0da66f3c0709d847d459498ef1606da33bb0f95",
        "syntax_occurrences": 25,
        "total_static_occurrences": 38
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 1,
          "instance_candidate": 2
        },
        "bytes": 6287,
        "direct_native_api_occurrences": 3,
        "file": "tests/test_agent/test_sandbox_exec_and_wait.py",
        "imports": 1,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "25c98f70555836e59193a5fe6179de39a462ca7b867a8e7364bcafa95439bafa",
        "syntax_occurrences": 9,
        "total_static_occurrences": 15
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 61124,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_agent/test_trajectory_manager_branching.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7258a3f94a3ac2465d8662043a15cd3508ad27a16adf3b5cd547e9e93d2a9238",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2675,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_block_fp8_zero_block.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e909a20415c83a90e2eed2b8d55c52ac7414f7527706b7d9c3eb7ae2e4cd941d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2229,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_cispo_loss.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1f94e00c2b096a9a1f3860a02dbef8a4e1453889e6f228ef94cce28f9c01c4df",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8721,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_cp_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "78cea121b64d1c5b92cb0b3675ce467f30967ef8f0802b98114643fb0029d0ad",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1663,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_cuda_stack_offload.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6b022b018d00d16e63600240f6e41eff6fade0c635930087edff5a4d80991232",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3362,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_deep_ep_tms_patch.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5e520534026884d46d86d4b70b68e4e0572e53f49709691fc213c5174d46b906",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4033,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_discounted_returns.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a67b70951a77a474f9125be80c17a84bbc7ecc32ad2de47d4c3d75211589e239",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4829,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_disk_delta_checkpoint_index.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bbc3160b1c3bff7c30c70cf3db4301e31a68242a9f3d8323a38bff7a674ba87c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6288,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_disk_delta_recovery.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "0d0753a32ba90f91dc51871f7c62ca474f99ad1a13385dcf94ac8f0e4c56c125",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 42,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 18,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 23,
          "import": 7,
          "instance_candidate": 101
        },
        "bytes": 99750,
        "direct_native_api_occurrences": 43,
        "file": "tests/test_distributed_rollout.py",
        "imports": 7,
        "instance_candidates": 101,
        "parse_status": "ok",
        "sha256": "4f73dedd74a7311414f4f8f6ba176c283772b888238aad1884781a8490dd586e",
        "syntax_occurrences": 41,
        "total_static_occurrences": 192
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3104,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_docs_consistency.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4a90d64abd6329f94478b640483e797e3caca603e77de1c61218f3ca449c9837",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 10466,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_dp_schedule.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "334316d08b2210c01ec377dde5167e234dd491208e04823d5d20d867704c6678",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9378,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_empty_colocated_weight_bucket.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "08614ec218ef9f8e932a773e297de89fd659960c2169051e236ea3a7b420cbf0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3754,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_eval_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "339155c628984537fbceef904acf191b5ab4523bf9f52f4522f4e82af23b1cc5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2317,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_expert_routing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7d2ab50c85582013fef91cbcbcabd7655edc746a4d9ce3925ca9ab77cc494537",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6154,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_external_sglang_engines.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "545b510c0735f7292b789fb21df0e09575065ff351287f69896d750540099cb1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3837,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_filter_long_prompt.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "fb3345ad160634978ebf86c34831c10d45ba62326380bab20eed83294d337810",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4502,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_full_disk_weight_update.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "473023cbad89a34befec71448c37b30776553898b208cc9978841b92953a0bcb",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 7,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 3,
          "instance_candidate": 9
        },
        "bytes": 11389,
        "direct_native_api_occurrences": 8,
        "file": "tests/test_fully_async_rollout.py",
        "imports": 3,
        "instance_candidates": 9,
        "parse_status": "ok",
        "sha256": "3e79464953ebabda3ab421924e5f4a6086b04b6d912cf71dac68624deede8fc4",
        "syntax_occurrences": 4,
        "total_static_occurrences": 24
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5119,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_glm4.7_30B_A3B_pd_mooncake.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "51eebfcb6356d046f2c9fa3badd34f11085241a77fb0db1b555e1cb9733a666e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 3
        },
        "bytes": 21040,
        "direct_native_api_occurrences": 8,
        "file": "tests/test_glm52_6layer_deterministic_e2e.py",
        "imports": 1,
        "instance_candidates": 3,
        "parse_status": "ok",
        "sha256": "ddbc09f595de36d60c21078e5858a1197d73adf087f7648e8bbcd2dea2e50d53",
        "syntax_occurrences": 0,
        "total_static_occurrences": 12
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3060,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_glm52_layerwise_comparison.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c2134d543bb0402dbdb1190136d2fdf13e02ee5398f22e08bd29e1628b79c3ed",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 572,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_glm52_layerwise_zero_e2e.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "125c2739bf484c3d201c3ed6d909ca3623335935361336b146ac95887390dab8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2919,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_glm5_indexer_q_norm.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bb7b79c928f51049676b27bfa99629ce0ab9ee39284e822f57bad1d1113bf772",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1786,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_glm5_indexer_short_context.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "47c40ea7364d55477457d144fe865a0bad0bc9950d075a17ddaeccbcefd77570",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11169,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_hf_to_megatron.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4e8594d3386eada3528dd0499261fc910f22bd7e160d1de999aebaaff6214118",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2618,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_layerwise_alignment.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "15f1b8d0f392ebd01b4759d2337a03a01c15b6321bf8e10e464328a4b656c99d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2652,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_logprob_response_spans.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2bd4cb8993894097a5dbc7f03ddcfeaba16680bd27649f6b55242923062eb107",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 11366,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_loss_cp_invariance.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "271fd279f2e4a9f8bae711de032fa3afdf3c3eaa0e9f18368a03fb87a7b7a018",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 24801,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_megatron_argument_validation.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9ff1c7924b7bd59e8030b7122952487de223a57765948f2d5f85c1a7d241292a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 14667,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_metric_report.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9ec9f645f93b05095cc84baf441891b2d1e8079efa1db10b8238721879e1a14e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 12215,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_metric_report_dist.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a2bf073faf8379494277d621ddb4ece91143c5af4c505eeb5b482ab027f02190",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4818,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_mimo_7B_mtp_only_grad.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "b8df62900751e74c19a72bec11a3c23c5608561c7fe1e7e2d55d39a680bb9b6f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5314,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_model_provider_freeze.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "914d2f5298e4da109cef2ba0e0cc9e33d97723db50ddab5947f3baa2cf201070",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3529,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_moonlight_16B_A3B.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8588ea49ee9901593edad8661e772107f7c09523741442fb33a3e5e134c60050",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3850,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_moonlight_16B_A3B_r3.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e140430b2fb3844c3ed4cbac5425a98fd95a0c414e6d6ecf562b326ece368090",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 6585,
        "direct_native_api_occurrences": 1,
        "file": "tests/test_optional_straw.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "04f37ecc4ac7a17631c8c99d8c7c04d7d3035cd1ea529190c040edddc8142f6f",
        "syntax_occurrences": 1,
        "total_static_occurrences": 3
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3615,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_pipeline_rl.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7dffda5e2d1c48173c1b78c2f9b4ed0dc00d72cc45fb8d6897e470681b2c80e1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1984,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_placement_group.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "32c309254bfba24f037e9177ab07d8199f95bb7b9f14b2f16675676ae0d35a40",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1682,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_policy_loss.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "328ad469218438ebc83785eafc78708b958a7658d4fbaa2655f59934bade1481",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2381,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_ppo_kl_metric.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "867ddb18671d5aea1047f563a1e22d22e9c95483bb2efaff9e9be4412257f673",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 14598,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_ppo_logprob_entropy.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "000651256763efe48523d6be2d9692c186d5e710b886aa9ddecca43b68657187",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 12919,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_ppo_logprob_entropy_gpu.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "eea71e18c853736e2efbf910f7b4eb5435065379b7d2fad7cb074c4f2b585006",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6326,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_process_rollout_data.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "279bfa872c48a41d12f9bc13695001d5dc17dd7380504fad4aef937420043127",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 5
        },
        "bytes": 2288,
        "direct_native_api_occurrences": 3,
        "file": "tests/test_published_payload_retry.py",
        "imports": 2,
        "instance_candidates": 5,
        "parse_status": "ok",
        "sha256": "39521c443d848372905af88612ca80aaef6dd373d7320a2c87a7fd6c3266dfac",
        "syntax_occurrences": 0,
        "total_static_occurrences": 10
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 17546,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_queue_sample_codec.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "855eaa32a55dc309c7bf1ad4069cf4b32f9e9bedc51a8fc930bc9ab5f866470f",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3639,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_quick_start_glm4_9B.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "8338e38c226894feb2d5ad1c53689894152b03b411fb7e258b866a342373f18a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5009,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_debug_rollout_then_train.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "49590e15447e417316ab763cb86e447aba0030aeaec4b4530241155f380151a6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6082,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_debug_train_dump_e2e.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "807b183f2d6499da9b4ffd48935f9ba5ff1355e39f4d9c6af3e81df47c993509",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9226,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_fanout_short.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "33c08da1f4ea71ac4144505dacb6ebd6482207708ebe92ae4c6a81226dd69d41",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3696,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_fully_async_short.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e3b265d7f7abeed531f13707af53919dc2fc763491c23dfa238444074b93a84a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 6
        },
        "bytes": 6535,
        "direct_native_api_occurrences": 3,
        "file": "tests/test_qwen2.5_0.5B_opd_sglang.py",
        "imports": 2,
        "instance_candidates": 6,
        "parse_status": "ok",
        "sha256": "fb7fa1749276eaa027a5f8bd98520534d394621bfe1a0113be051c5ca383daa8",
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5553,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_pipeline_rl.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a429ce4f68a0cb0cc77c028dae48798ea2845e6d14c466f99ff1de4dba889bef",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 3928,
        "direct_native_api_occurrences": 1,
        "file": "tests/test_qwen2.5_0.5B_rollout_health.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cfdd9748fbd223ba869e43a8e55130d73bcfdcad7340f62ca39e4969093c5db1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3985,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_score_centering.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1948fb19b8dc2ccfd21764d94b25e0dc08eb03544cb4f11d6399bdf43c97cd2d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4146,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_sglang_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "55be3fe6bc7caf4835b1baae653c6f0440fc4701328641359f1725af576cceca",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4532,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen2.5_0.5B_sglang_config_distributed.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "81346bc44837c4bd8b10c9d58aea095beec2afab75d1c4fe449799c58d337c46",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 1
        },
        "bytes": 19873,
        "direct_native_api_occurrences": 7,
        "file": "tests/test_qwen2.5_0.5B_training_recovery.py",
        "imports": 3,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "638a2ef92fe48fb015a28d22924f7647922c8eae874ebce10c5e2d71a9c9c71c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3790,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3.5_0.8B_gsm8k_short.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "77527d49770611dee469bbbf39c7643b3348abbf6231328a5fa6eee3f89751e6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4773,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3.6_35B_A3B_pd_mooncake.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2eabc07283a2cad4850f74c7f5a990153a7dcd06237cbacfdb84fda2ac3ed9c5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4553,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_0.6B_parallel_check.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "55d9bb99b72f74ff2b577dc441d42c3733f80259e807fba1a4dae3a0dd352dc1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4476,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_30B_A3B.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "111eec8d778032225cd833fdba7b6c442e2e871c7e22faf2eedc29462c053521",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4764,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_30B_A3B_r3.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "528574896de2165af8bd958d9551729824b889c54a0469a8494c4ea2294fe096",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2314,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_30B_A3B_training_recovery.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a92786788eaea10cb067ab2188d282c5a1b7d7d6e4567f2272f347c4b74a9557",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5295,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_4B_ckpt.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "854b08689dc07cfa520393cd06a84a93257565dc41579c90bdc4cc93680e90a7",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 10
        },
        "bytes": 14083,
        "direct_native_api_occurrences": 7,
        "file": "tests/test_qwen3_4B_external_pd.py",
        "imports": 2,
        "instance_candidates": 10,
        "parse_status": "ok",
        "sha256": "cf89a4d0306fb4a343dbb852effa6d80436f2f847850f40a80422f07567da1fc",
        "syntax_occurrences": 0,
        "total_static_occurrences": 19
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4315,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_4B_ppo.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4b8e870052ed1b7a290617434ee6525264ce89c19759c0d7aff13c9e87439134",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4107,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_4B_ppo_disaggregate.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f7a65fc7a2e0abe249b5a3366a822e4da095e9f1fd135e36d331cd440566ee96",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4088,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_4B_ppo_train_critic_only.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "ab1df522969311982b80199542a4923c75f1aa4c33e851932a1c1b0210578c66",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4515,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_4B_streaming_partial_rollout.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d49a448dfa3b847deb53f6e2816f4da12194a84b3e95627d4eb3c521367b3798",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7062,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_5_vl_native.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "dc23ae9c05e42a2ad40752ea046c7b1d4c0db51db76467415e1e31fca68dd8c1",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6800,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_qwen3_linear_attention_cu_seqlens.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7f576e1e4a34d8eaf323245978b1d242dec6bf172a4281c5baf72a49c3704ba6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2511,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_read_file_slicing.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "bfed8f85cae02c5c6609343c98bf830eaaf75d2872b5178b14cfb2722972398a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4533,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_reference_top_p_replay.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "6341bb04bf7b138bdf075d2e0b4578168bcc4344521f0cc483422ce5c0ea27ee",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4728,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_release_train.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "93c6f6a5f416b2bf2b453c95a27d0481af34ad76aade6446ded57ba9ccdc25d0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1678,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_reloadable_process_group_memory_check.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "809c04a6940db9b4747ab807d4c10e8414651abbe22a42136b4e9dee135af7a4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8651,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_reloadable_process_group_world.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "081a8f7aba05fd8244ea736270e7bee394e820a71c089987b1521d3f0cee1b2b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3815,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rm_deepscaler.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "2738a93d267e739b3596487a3b71eba137292647fac996856b29f1ae0810a89d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3887,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rm_f1.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e8cf34d23d15f1cc8376fea0c1005e093baac962200f96b52d52ae15aca9ac17",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6569,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rm_gpqa.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7a8d3f3c30cbd61c7baeeebb7399228e628ac14cbcf4f3414fd2386a41347d61",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8328,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rm_math.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "75ec8c1a9779dcf636be40a65a5f3f2c984d642091c5c4ce4dd033f51ffe0adc",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8645,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rm_math_dapo.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cfad01c94f59b32da6780f2f412a192e72a454a7b1d19381f03558d1b3637964",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3398,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rollout_buffer_order.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "9c1ac69e51efbc86b89ac739449d0003b5996a036637b71d2c95518f5adc52d6",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4068,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rollout_data_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "52d5f9ed5dae3240fa14f0cd8137054a7a26a7dcac930c6b13f9203985485472",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 7,
          "instance_candidate": 2
        },
        "bytes": 15194,
        "direct_native_api_occurrences": 11,
        "file": "tests/test_rollout_manager_recovery.py",
        "imports": 7,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "6966e643d08d6afe1cd665a0b0e78e6cf48f9df1d607f91e996eb9f513fa41dc",
        "syntax_occurrences": 0,
        "total_static_occurrences": 20
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3608,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rollout_metadata_index.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4e8d2883ed1ac0b7eb1a38f78eeeec5a2e180f7168410fad205206a4f67d970a",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7219,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_rollout_metrics.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "d58932c91f32d6e4249fe37af66f05bd881d57b9affb0b54c504e18a8ca70d10",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 2378,
        "direct_native_api_occurrences": 6,
        "file": "tests/test_rollout_sample_hooks.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "339bd5d25fb3b12a4f9b88a9ed73d14bcf7b12e02110cba8b4e5114434b724af",
        "syntax_occurrences": 6,
        "total_static_occurrences": 13
      },
      {
        "by_kind": {
          "api_call": 10,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 4,
          "instance_candidate": 13
        },
        "bytes": 67768,
        "direct_native_api_occurrences": 13,
        "file": "tests/test_rollout_straw_transport.py",
        "imports": 4,
        "instance_candidates": 13,
        "parse_status": "ok",
        "sha256": "295c57b0f06f720ffa716bffae156c6195ece5074572b32a082ee9ea3b4b03ed",
        "syntax_occurrences": 5,
        "total_static_occurrences": 35
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9444,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_routed_experts_disk_layout.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "54f1bc0e1b403df0bae8757fbd93442f107285bce96a3adcd810d3c596f1ab22",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 10140,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_sample.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "197fe552a1536d4079601556f40ca4e82d8b2a6c889f11f504ff20209c3119c4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 42948,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_score_centering.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "aaacd4979ac183a898b0184f9bbfb282bd0d6f293dadded433a3ea7368a6d6b2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "bytes": 4906,
        "direct_native_api_occurrences": 3,
        "file": "tests/test_score_centering_binary.py",
        "imports": 2,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "780e7fac312584aaf4b2ccb5ba90554e7d52dde32a0ccbc86d9d8f3dec0467f8",
        "syntax_occurrences": 3,
        "total_static_occurrences": 8
      },
      {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 26286,
        "direct_native_api_occurrences": 7,
        "file": "tests/test_score_centering_transport.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "3da737279baca744b81c31f0935089a540bebd75fa4c0637a5075a656d4f2ff7",
        "syntax_occurrences": 8,
        "total_static_occurrences": 16
      },
      {
        "by_kind": {
          "api_call": 11,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 12,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 12,
          "import": 1,
          "instance_candidate": 10
        },
        "bytes": 10709,
        "direct_native_api_occurrences": 12,
        "file": "tests/test_server_control.py",
        "imports": 1,
        "instance_candidates": 10,
        "parse_status": "ok",
        "sha256": "766a122119804ddbda08559b71891738f0ff023ffb4d317044f9960cca8ff563",
        "syntax_occurrences": 26,
        "total_static_occurrences": 49
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4364,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_sglang_config_mixed_offload.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "16776374d4feb10dbfd5d28cd1e77a9dfb4046b66bac6d11c737c50f32ba31a2",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4735,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_sglang_config_mixed_offload_ft.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "aa6f0bc4eba7753d016c854412d60d0458f6345639722b255c7e057cadd5f2c0",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4876,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_stateless_adam.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "28b50f2b3e6551b5adad10a503c3312014f5a78a98e15f7caffbbd87df09302e",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 16426,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_straw_checkpoint_fork.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "c79327f0a89764c6bb1ccc8f2061572a38d5ae10de1a8efae38b02caaff2c1dd",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 9,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 6,
          "instance_candidate": 13
        },
        "bytes": 12748,
        "direct_native_api_occurrences": 11,
        "file": "tests/test_straw_fully_async_recovery.py",
        "imports": 6,
        "instance_candidates": 13,
        "parse_status": "ok",
        "sha256": "97cce1dd4be973adb4b6de14404badbcd37fe0cac2bedd47d709febf1693ea24",
        "syntax_occurrences": 5,
        "total_static_occurrences": 35
      },
      {
        "by_kind": {
          "api_call": 11,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 4,
          "import": 2,
          "instance_candidate": 7
        },
        "bytes": 8478,
        "direct_native_api_occurrences": 12,
        "file": "tests/test_straw_r3.py",
        "imports": 2,
        "instance_candidates": 7,
        "parse_status": "ok",
        "sha256": "e8ab343c77e76c7a32f35d99a755cd2cfe267feb1a5603a00a69ee25e15e2455",
        "syntax_occurrences": 5,
        "total_static_occurrences": 26
      },
      {
        "by_kind": {
          "api_call": 37,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 5,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 5,
          "await": 20,
          "import": 2,
          "instance_candidate": 27
        },
        "bytes": 22239,
        "direct_native_api_occurrences": 40,
        "file": "tests/test_streaming_rollout.py",
        "imports": 2,
        "instance_candidates": 27,
        "parse_status": "ok",
        "sha256": "fce01fc1a9a49d1553e82df5fa2891ed4747c9e8eb5e5519119d1c0ee0888d3e",
        "syntax_occurrences": 43,
        "total_static_occurrences": 112
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 7871,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_tau_bench_token_delta.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "4922dd4ca238093c552e3b1d4677a8147a0e24ed38e27490f333f3f5b42e6075",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 15932,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_train_data_utils.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "44e21a95523177b07517fcad3f2facd1407e3808e8dd28b9fc31c6548fa369db",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 9
        },
        "bytes": 35460,
        "direct_native_api_occurrences": 2,
        "file": "tests/test_training_recovery.py",
        "imports": 2,
        "instance_candidates": 9,
        "parse_status": "ok",
        "sha256": "cc94ebbb6ba75efa39bc530ce92bc99e1af8ad2d983660e91839b7faf98e5952",
        "syntax_occurrences": 0,
        "total_static_occurrences": 13
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2300,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_update_weight_factory.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "e137feed997edccd03c838d49acf91dfdfa1593e3d809452c17c26b3032e48ff",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 1798,
        "direct_native_api_occurrences": 0,
        "file": "tests/test_value_temperature.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "649fb91787a70f282ee1f1ce1ffee6ebc848faaa01cc8dadfc1398cc5d84d2af",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 1
        },
        "bytes": 4856,
        "direct_native_api_occurrences": 4,
        "file": "tests/training_recovery_test_helpers.py",
        "imports": 1,
        "instance_candidates": 1,
        "parse_status": "ok",
        "sha256": "09bf3ea42f262c97ceb26d592f3d1955d8897e47aeb3f710314e65cf2ff3b139",
        "syntax_occurrences": 1,
        "total_static_occurrences": 7
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5788,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_hf_checkpoint_saver.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "af98282ead2592b8b8a86647564a43c4a5d37a98155994857b740038bc7a814d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 10771,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_loss_mask_type_qwen35.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "21b4bb9a8a866244b9a5a49a324d40364a8216c2d096e55cfa02401fa2dba03b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 6726,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_megatron_role_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "706013a4edfdc91c75a8a2bb60a0193f6ae0de990680d4ee92a07fd6d8b8a408",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2562,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_megatron_server_arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1bc4ba70b027d02d1375060a0c625546bf1da8abff488b152ee31c20ad262c64",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 867,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_sglang_arguments.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "615d2fe7ba5cad8906baed5b9e7181921784e944d4f7eb294cd42ce822cd4e24",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 21522,
        "direct_native_api_occurrences": 0,
        "file": "tests/utils/test_sglang_config.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "dc43c2c6d5ffbdb2780aa119ce2b7a74a28f462af0413103182648ccf49d9f5b",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 31872,
        "direct_native_api_occurrences": 0,
        "file": "tools/analyze_profile.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "b96d4059542f17717a443de071433943f5d4e0fef5485f09fcaaaf75fb3835e4",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "bytes": 9828,
        "direct_native_api_occurrences": 2,
        "file": "tools/convert_hf_to_fp8.py",
        "imports": 2,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "d13a283006c05dc882c69dd0d5e2552c24af99138b0dc6a59d01b72adcf9f939",
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 3350,
        "direct_native_api_occurrences": 0,
        "file": "tools/convert_hf_to_int4.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "f4ce97b21305b88ca6a87bf04b5521a1add6e3540374e7c34ffae557ea2e5678",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "bytes": 10514,
        "direct_native_api_occurrences": 2,
        "file": "tools/convert_hf_to_int4_direct.py",
        "imports": 2,
        "instance_candidates": 2,
        "parse_status": "ok",
        "sha256": "1380f1f71ed8147477ace7f7043f78cd1b5ef63786861f91189d7fa485dc499d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5357,
        "direct_native_api_occurrences": 0,
        "file": "tools/convert_hf_to_torch_dist.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cf81b8721dbbfa502c8daa23aa29ad193f8ab68ca8796a41a742f253c954557c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 8590,
        "direct_native_api_occurrences": 0,
        "file": "tools/convert_k2_thinking_int4_to_bf16.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "97125ca9629a4b6fccf076ad7cffb6cb59c3f1a2d0d841523d170ad6c50e5f8d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 4245,
        "direct_native_api_occurrences": 0,
        "file": "tools/convert_to_hf.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "62c3b0295b0afcd05f42214206ff90c51fbafbe4fad795f0d0a8c59b7e8b2867",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 9124,
        "direct_native_api_occurrences": 0,
        "file": "tools/convert_torch_dist_to_hf.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "cb304a5e923c15dd935a17c6e02adea0ec701fb74e683b94cd8e74963f266382",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 4,
          "instance_candidate": 10
        },
        "bytes": 22580,
        "direct_native_api_occurrences": 9,
        "file": "tools/convert_torch_dist_to_hf_parallel.py",
        "imports": 4,
        "instance_candidates": 10,
        "parse_status": "ok",
        "sha256": "3e77303edf537812ecba1896a57c5ed51d2b6b61e1423e497f3b146156412db5",
        "syntax_occurrences": 0,
        "total_static_occurrences": 23
      },
      {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "bytes": 4782,
        "direct_native_api_occurrences": 4,
        "file": "tools/fp8_cast_bf16.py",
        "imports": 1,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "1a6c2c73701f344361656b49e07cb3f63084470f6b06c7ab8605227247e9a703",
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 2878,
        "direct_native_api_occurrences": 0,
        "file": "tools/profile_rollout.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "a2973abde24ed450b1e578ef6c98016288e1a840851a96ec682de0a09456393c",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 85654,
        "direct_native_api_occurrences": 0,
        "file": "tools/trace_timeline_viewer.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "7feb508e653c9730f1ca9b94171c69201eb8fc44d12493c48d1276fcc22bc6bd",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "bytes": 5539,
        "direct_native_api_occurrences": 0,
        "file": "train.py",
        "imports": 0,
        "instance_candidates": 0,
        "parse_status": "ok",
        "sha256": "5dfcec6737e53d613e5db94fc20459dd6d58282d17f01bab410868251522fc9d",
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      }
    ],
    "head": "2f2318653f6f794dddd321eff7c9d4b7b174643f",
    "parse_errors": [],
    "repository": "https://github.com/THUDM/slime",
    "scope": "git ls-files: every tracked path ending in .py",
    "tracked_python_changes_from_head": [],
    "tracked_python_file_count": 381,
    "working_tree_policy": "Read current tracked file bytes; record every SHA-256; ignore untracked files."
  },
  "summary": {
    "async_definitions_total": 288,
    "by_api": {
      "asyncio": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.AbstractEventLoop": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.CancelledError": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 11,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 11,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      "asyncio.Event": {
        "by_kind": {
          "api_call": 18,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 18,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 18
      },
      "asyncio.FIRST_COMPLETED": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "asyncio.IncompleteReadError": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.Lock": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.Queue": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.Semaphore": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 11,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      "asyncio.Task": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "asyncio.TimeoutError": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "asyncio.all_tasks": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.as_completed": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.create_task": {
        "by_kind": {
          "api_call": 21,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 21,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 21
      },
      "asyncio.current_task": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "asyncio.gather": {
        "by_kind": {
          "api_call": 27,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 27,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 27
      },
      "asyncio.get_running_loop": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 10,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 10
      },
      "asyncio.new_event_loop": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "asyncio.run": {
        "by_kind": {
          "api_call": 71,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 72,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 72
      },
      "asyncio.run_coroutine_threadsafe": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 9,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 9
      },
      "asyncio.set_event_loop": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "asyncio.shield": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "asyncio.sleep": {
        "by_kind": {
          "api_call": 30,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 32,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 32
      },
      "asyncio.start_server": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "asyncio.timeout": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "asyncio.to_thread": {
        "by_kind": {
          "api_call": 14,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 14,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 14
      },
      "asyncio.wait": {
        "by_kind": {
          "api_call": 5,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "asyncio.wait_for": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 9,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 9
      },
      "asyncio.wrap_future": {
        "by_kind": {
          "api_call": 5,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "collections.abc.AsyncIterator": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "collections.abc.Awaitable": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "concurrent.futures.FIRST_COMPLETED": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "concurrent.futures.Future": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "concurrent.futures.ThreadPoolExecutor": {
        "by_kind": {
          "api_call": 15,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 16,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 16
      },
      "concurrent.futures.as_completed": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "concurrent.futures.wait": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "contextlib.asynccontextmanager": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "contextvars.ContextVar": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "fcntl.LOCK_EX": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "fcntl.LOCK_NB": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "fcntl.LOCK_UN": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "fcntl.flock": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "inspect.isawaitable": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "inspect.iscoroutinefunction": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "multiprocessing.Process": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "multiprocessing.Queue": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "multiprocessing.active_children": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "multiprocessing.get_context": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "multiprocessing.set_start_method": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "os.getpid": {
        "by_kind": {
          "api_call": 24,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 24,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 24
      },
      "os.getppid": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "os.kill": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "os.killpg": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "os.system": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "queue.Empty": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "queue.Queue": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "select.select": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.SIGALRM": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.SIGHUP": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.SIGINT": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.SIGKILL": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "signal.SIGTERM": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.alarm": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "signal.getsignal": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "signal.signal": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "subprocess": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "subprocess.CalledProcessError": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "subprocess.DEVNULL": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "subprocess.PIPE": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 10,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 10,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 10
      },
      "subprocess.Popen": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 11,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      "subprocess.STDOUT": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "subprocess.TimeoutExpired": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "subprocess.check_call": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "subprocess.check_output": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "subprocess.run": {
        "by_kind": {
          "api_call": 15,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 15,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 15
      },
      "threading.Condition": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "threading.Event": {
        "by_kind": {
          "api_call": 12,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 12,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 12
      },
      "threading.Lock": {
        "by_kind": {
          "api_call": 8,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 8,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 8
      },
      "threading.RLock": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 6,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "threading.Thread": {
        "by_kind": {
          "api_call": 13,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 15,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 15
      },
      "threading.Timer": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 1
      },
      "threading.get_ident": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "time.sleep": {
        "by_kind": {
          "api_call": 35,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 35,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 35
      }
    },
    "by_category": {
      "async-builtins": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "async-typing": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 3,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 7
      },
      "asyncio": {
        "by_kind": {
          "api_call": 246,
          "api_reference": 28,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 39,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 274,
        "imports": 39,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 313
      },
      "candidates": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 876
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 876,
        "syntax_occurrences": 0,
        "total_static_occurrences": 876
      },
      "contextlib-async": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 3,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "contextvars": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 7
      },
      "coroutine-helpers": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "executors": {
        "by_kind": {
          "api_call": 20,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 13,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 23,
        "imports": 13,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 36
      },
      "fcntl": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 5,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 8,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 10
      },
      "inspect-async": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "multiprocessing": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 6,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 11,
        "imports": 6,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 17
      },
      "os-process": {
        "by_kind": {
          "api_call": 32,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 9,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 32,
        "imports": 9,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 41
      },
      "queue": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 5,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 7
      },
      "select": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "signal": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 7,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 4,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 13,
        "imports": 4,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 17
      },
      "subprocess": {
        "by_kind": {
          "api_call": 27,
          "api_reference": 27,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 15,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 54,
        "imports": 15,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 69
      },
      "syntax": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 281,
          "async_for": 1,
          "async_generator_def": 7,
          "async_protocol_def": 0,
          "async_with": 42,
          "async_yield": 7,
          "await": 409,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 747,
        "total_static_occurrences": 747
      },
      "threading": {
        "by_kind": {
          "api_call": 46,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 23,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 48,
        "imports": 23,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 71
      },
      "time-sleep": {
        "by_kind": {
          "api_call": 35,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 23,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 35,
        "imports": 23,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 58
      }
    },
    "by_file": {
      ".claude/skills/release/scripts/check_release.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      ".github/workflows/generate_github_workflows.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "docker/patch/gb10/patch_sgl_kernel.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "docs/conf.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/coding_agent_rl/generate.py": {
        "by_kind": {
          "api_call": 5,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 1,
          "async_protocol_def": 0,
          "async_with": 3,
          "async_yield": 1,
          "await": 12,
          "import": 3,
          "instance_candidate": 4
        },
        "direct_native_api_occurrences": 8,
        "imports": 3,
        "instance_candidates": 4,
        "syntax_occurrences": 18,
        "total_static_occurrences": 33
      },
      "examples/coding_agent_rl/swe.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 35,
          "import": 1,
          "instance_candidate": 70
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 70,
        "syntax_occurrences": 50,
        "total_static_occurrences": 122
      },
      "examples/geo3k_vlm_multi_turn/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/geo3k_vlm_multi_turn/base_env.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/geo3k_vlm_multi_turn/env_geo3k.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/geo3k_vlm_multi_turn/rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 0,
          "instance_candidate": 6
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 6,
        "syntax_occurrences": 4,
        "total_static_occurrences": 10
      },
      "examples/geo3k_vlm_multi_turn/run_geo3k_vlm_multi_turn.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/multi_agent/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/multi_agent/agent_system.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 8,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 12,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 20,
        "total_static_occurrences": 25
      },
      "examples/multi_agent/prompts.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/multi_agent/rollout_with_multi_agents.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 2,
        "total_static_occurrences": 2
      },
      "examples/retool/generate_with_retool.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 4
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 4,
        "syntax_occurrences": 7,
        "total_static_occurrences": 11
      },
      "examples/retool/rl_data_preprocess.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/retool/sft_data_processing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/retool/tool_sandbox.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 2,
          "import": 2,
          "instance_candidate": 5
        },
        "direct_native_api_occurrences": 5,
        "imports": 2,
        "instance_candidates": 5,
        "syntax_occurrences": 6,
        "total_static_occurrences": 18
      },
      "examples/search-r1/generate_with_search.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 4,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 5,
          "import": 1,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 2,
        "syntax_occurrences": 10,
        "total_static_occurrences": 14
      },
      "examples/search-r1/google_search_server.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 5,
          "async_yield": 0,
          "await": 4,
          "import": 1,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 11,
        "syntax_occurrences": 12,
        "total_static_occurrences": 28
      },
      "examples/search-r1/local_dense_retriever/download.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/search-r1/local_dense_retriever/retrieval_server.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/search-r1/local_search_server.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 2,
        "syntax_occurrences": 4,
        "total_static_occurrences": 6
      },
      "examples/search-r1/qa_em_format.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/strands_sglang/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/strands_sglang/generate_with_strands.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 1,
        "syntax_occurrences": 3,
        "total_static_occurrences": 4
      },
      "examples/strands_sglang/subprocess_interpreter.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 7,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 7
        },
        "direct_native_api_occurrences": 11,
        "imports": 1,
        "instance_candidates": 7,
        "syntax_occurrences": 0,
        "total_static_occurrences": 19
      },
      "examples/tau-bench/generate_with_tau.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 1,
        "syntax_occurrences": 2,
        "total_static_occurrences": 3
      },
      "examples/tau-bench/openai_tool_adapter.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/tau-bench/sglang_tool_parser.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/tau-bench/tau1_mock.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/tau-bench/token_delta.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "examples/tau-bench/trainable_agents.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 4
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 4,
        "syntax_occurrences": 6,
        "total_static_occurrences": 10
      },
      "examples/train_infer_mismatch_helper/mis.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "setup.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/agent/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/agent/adapters/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/agent/adapters/anthropic.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 9,
          "import": 0,
          "instance_candidate": 37
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 37,
        "syntax_occurrences": 12,
        "total_static_occurrences": 49
      },
      "slime/agent/adapters/common.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 5,
          "async_comprehension": 0,
          "async_def": 10,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 4,
          "async_yield": 0,
          "await": 14,
          "import": 1,
          "instance_candidate": 30
        },
        "direct_native_api_occurrences": 11,
        "imports": 1,
        "instance_candidates": 30,
        "syntax_occurrences": 28,
        "total_static_occurrences": 70
      },
      "slime/agent/adapters/openai.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 9,
          "import": 0,
          "instance_candidate": 30
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 30,
        "syntax_occurrences": 12,
        "total_static_occurrences": 42
      },
      "slime/agent/aiohttp_threaded.py": {
        "by_kind": {
          "api_call": 5,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 2,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 7,
        "imports": 2,
        "instance_candidates": 11,
        "syntax_occurrences": 2,
        "total_static_occurrences": 22
      },
      "slime/agent/harness/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/agent/harness/claude_code.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 6,
        "total_static_occurrences": 6
      },
      "slime/agent/harness/codex.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 6,
        "total_static_occurrences": 6
      },
      "slime/agent/harness/common.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 11,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 18,
        "total_static_occurrences": 20
      },
      "slime/agent/parsing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/agent/sandbox.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 17,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 22,
          "import": 1,
          "instance_candidate": 5
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 5,
        "syntax_occurrences": 39,
        "total_static_occurrences": 47
      },
      "slime/agent/trajectory.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/actor.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/deepgemm_forward.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/deepgemm_moe_forward.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/deterministic_route_kernels.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/env.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/alignment/layerwise_alignment.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/checkpoint.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/ci_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/cp_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/data.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_checkpoint_saver.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/common.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/deepseek.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/glm.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/qwen.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/qwen3_5.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/hf_to_megatron/qwen3_next.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/initialize.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/kernels/fp8_kernel.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/kernels/int4_qat/setup.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/loss.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/deepseekv3.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/glm4.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/glm4moe.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/llama.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/mimo.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/minimax_m2.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/processors/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/processors/padding_remover.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_compressed_tensors.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_fp8.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/qwen2.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/qwen3_5.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/qwen3_next.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/qwen3_vl.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/megatron_to_hf/qwen3moe.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/misc_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/model.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/model_provider.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/server/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/server/arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/server/logprob_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/server/megatron_server.py": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 16,
          "import": 3,
          "instance_candidate": 33
        },
        "direct_native_api_occurrences": 11,
        "imports": 3,
        "instance_candidates": 33,
        "syntax_occurrences": 27,
        "total_static_occurrences": 74
      },
      "slime/backends/megatron_utils/sglang.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/stateless_adam.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/common.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/expert_routing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/hf_weight_iterator_direct.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/update_weight_from_disk.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 9
        },
        "direct_native_api_occurrences": 3,
        "imports": 2,
        "instance_candidates": 9,
        "syntax_occurrences": 0,
        "total_static_occurrences": 14
      },
      "slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 4
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 4,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "slime/backends/megatron_utils/update_weight/update_weight_from_tensor.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/deployment.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 2,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "slime/backends/sglang_utils/disaggregation.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/engine_group.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/external.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/server_control.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 10,
          "import": 1,
          "instance_candidate": 18
        },
        "direct_native_api_occurrences": 6,
        "imports": 1,
        "instance_candidates": 18,
        "syntax_occurrences": 17,
        "total_static_occurrences": 42
      },
      "slime/backends/sglang_utils/sglang_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/backends/sglang_utils/sglang_engine.py": {
        "by_kind": {
          "api_call": 7,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 8,
        "imports": 3,
        "instance_candidates": 11,
        "syntax_occurrences": 0,
        "total_static_occurrences": 22
      },
      "slime/data/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/archive.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 11,
        "syntax_occurrences": 0,
        "total_static_occurrences": 13
      },
      "slime/data/batch_builder.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/checkpoint.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/codec.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/data_source.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/queue_data_source.py": {
        "by_kind": {
          "api_call": 11,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 5,
          "instance_candidate": 57
        },
        "direct_native_api_occurrences": 13,
        "imports": 5,
        "instance_candidates": 57,
        "syntax_occurrences": 2,
        "total_static_occurrences": 77
      },
      "slime/data/sample_metadata.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/tensor.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/data/transport.py": {
        "by_kind": {
          "api_call": 12,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 6,
          "import": 3,
          "instance_candidate": 7
        },
        "direct_native_api_occurrences": 14,
        "imports": 3,
        "instance_candidates": 7,
        "syntax_occurrences": 10,
        "total_static_occurrences": 34
      },
      "slime/observability/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/logging_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/metric_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/profile_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/rollout_data_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/rollout_metrics.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/tensorboard_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/timer.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/trace_utils.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 2,
          "instance_candidate": 31
        },
        "direct_native_api_occurrences": 5,
        "imports": 2,
        "instance_candidates": 31,
        "syntax_occurrences": 3,
        "total_static_occurrences": 41
      },
      "slime/observability/train_data_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/train_metric_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/observability/wandb_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/actor_group.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 2,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "slime/ray/placement_group.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/ray_actor.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/serving.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 6
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 6,
        "syntax_occurrences": 0,
        "total_static_occurrences": 9
      },
      "slime/ray/train_actor.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/training_recovery.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/ray/utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/base_types.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/filter_hub/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/filter_hub/base_types.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/filter_hub/dynamic_sampling_filters.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/forge_load.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/fully_async_distributed.py": {
        "by_kind": {
          "api_call": 28,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 27,
          "import": 2,
          "instance_candidate": 41
        },
        "direct_native_api_occurrences": 29,
        "imports": 2,
        "instance_candidates": 41,
        "syntax_occurrences": 40,
        "total_static_occurrences": 112
      },
      "slime/rollout/fully_async_rollout.py": {
        "by_kind": {
          "api_call": 11,
          "api_reference": 6,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 7,
          "import": 3,
          "instance_candidate": 20
        },
        "direct_native_api_occurrences": 17,
        "imports": 3,
        "instance_candidates": 20,
        "syntax_occurrences": 9,
        "total_static_occurrences": 49
      },
      "slime/rollout/on_policy_distillation.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 1,
        "syntax_occurrences": 4,
        "total_static_occurrences": 5
      },
      "slime/rollout/rm_hub/__init__.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 7,
          "import": 1,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 1,
        "syntax_occurrences": 11,
        "total_static_occurrences": 15
      },
      "slime/rollout/rm_hub/deepscaler.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/rm_hub/f1.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/rm_hub/gpqa.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/rm_hub/ifbench.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 4
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 4,
        "syntax_occurrences": 0,
        "total_static_occurrences": 7
      },
      "slime/rollout/rm_hub/math_dapo_utils.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "slime/rollout/rm_hub/math_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/sample_hooks.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 2,
          "instance_candidate": 3
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 3,
        "syntax_occurrences": 5,
        "total_static_occurrences": 12
      },
      "slime/rollout/sft_rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/rollout/sglang_rollout.py": {
        "by_kind": {
          "api_call": 13,
          "api_reference": 5,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 26,
          "import": 2,
          "instance_candidate": 9
        },
        "direct_native_api_occurrences": 18,
        "imports": 2,
        "instance_candidates": 9,
        "syntax_occurrences": 36,
        "total_static_occurrences": 65
      },
      "slime/rollout/sglang_streaming_rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 1,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 1,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 6
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 6,
        "syntax_occurrences": 3,
        "total_static_occurrences": 9
      },
      "slime/rollout/sleep_rollout.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "slime/rollout/streaming_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/__init__.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 3
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 3,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "slime/utils/accelerator/base.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/cuda.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/musa.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/npu.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/supa.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/accelerator/torch_accelerator.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/async_utils.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 2,
          "instance_candidate": 8
        },
        "direct_native_api_occurrences": 6,
        "imports": 2,
        "instance_candidates": 8,
        "syntax_occurrences": 2,
        "total_static_occurrences": 18
      },
      "slime/utils/cleanup.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/data.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/disk_delta.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/distributed_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/dp_schedule.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/eval_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/external_utils/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/external_utils/command_utils.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 4
      },
      "slime/utils/external_utils/typer_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/flops_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/health_monitor.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 24
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 24,
        "syntax_occurrences": 0,
        "total_static_occurrences": 29
      },
      "slime/utils/http_utils.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 13,
          "import": 1,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 3,
        "imports": 1,
        "instance_candidates": 2,
        "syntax_occurrences": 19,
        "total_static_occurrences": 25
      },
      "slime/utils/mask_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/memory_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/misc.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 3
      },
      "slime/utils/ppo_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/processing_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/reloadable_process_group.py": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 9,
        "imports": 1,
        "instance_candidates": 11,
        "syntax_occurrences": 0,
        "total_static_occurrences": 21
      },
      "slime/utils/rocm_checkpoint_writer.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/routed_experts.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 8
        },
        "direct_native_api_occurrences": 4,
        "imports": 3,
        "instance_candidates": 8,
        "syntax_occurrences": 0,
        "total_static_occurrences": 15
      },
      "slime/utils/routing_replay.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/score_centering.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/seqlen_balancing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/staleness.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/tensor_backper.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/types.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime/utils/weight_sync.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/flash_dot_product_attention.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm4.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/glm5.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/indexer.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/sparse_mla.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/tilelang_indexer_bwd.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/tilelang_indexer_fwd.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/glm5/ops/tilelang_sparse_mla_fwd.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/hf_attention.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/learnable_softmax_attention.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/minimax_m2.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/qwen3_5.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/qwen3_5_vl.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/qwen3_5_vl_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/qwen3_next.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/models/qwen_gdn_backend.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/rollout_buffer/buffer.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 4,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 1,
          "instance_candidate": 7
        },
        "direct_native_api_occurrences": 2,
        "imports": 1,
        "instance_candidates": 7,
        "syntax_occurrences": 7,
        "total_static_occurrences": 17
      },
      "slime_plugins/rollout_buffer/generator/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "slime_plugins/rollout_buffer/generator/base_generator.py": {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 4,
          "instance_candidate": 11
        },
        "direct_native_api_occurrences": 7,
        "imports": 4,
        "instance_candidates": 11,
        "syntax_occurrences": 0,
        "total_static_occurrences": 22
      },
      "slime_plugins/rollout_buffer/rollout_buffer_example.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 3,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 7,
        "total_static_occurrences": 11
      },
      "tests/_cp_dist_helpers.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/ci/gpu_lock_exec.py": {
        "by_kind": {
          "api_call": 11,
          "api_reference": 9,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 5,
          "instance_candidate": 15
        },
        "direct_native_api_occurrences": 20,
        "imports": 5,
        "instance_candidates": 15,
        "syntax_occurrences": 0,
        "total_static_occurrences": 40
      },
      "tests/fanout_test_helpers.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 1,
        "syntax_occurrences": 2,
        "total_static_occurrences": 3
      },
      "tests/glm52_layerwise_comparator.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/observability/test_trace_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/pipeline_rl_test_helpers.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 15
        },
        "direct_native_api_occurrences": 4,
        "imports": 2,
        "instance_candidates": 15,
        "syntax_occurrences": 1,
        "total_static_occurrences": 22
      },
      "tests/plugin_contracts/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/plugin_contracts/_shared.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/plugin_contracts/test_plugin_generate_contracts.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 6,
        "total_static_occurrences": 11
      },
      "tests/plugin_contracts/test_plugin_path_loading_contracts.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 1,
        "syntax_occurrences": 2,
        "total_static_occurrences": 8
      },
      "tests/plugin_contracts/test_plugin_rollout_contracts.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/plugin_contracts/test_plugin_runtime_hook_contracts.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/rollout_health_test_helpers.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 3,
        "total_static_occurrences": 3
      },
      "tests/test_accelerator.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_advantage_whiten_cp.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_agent/__init__.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_agent/_dump_helpers.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_agent/_fakes.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 4,
          "import": 1,
          "instance_candidate": 15
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 15,
        "syntax_occurrences": 13,
        "total_static_occurrences": 30
      },
      "tests/test_agent/test_adapters.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 6,
          "async_yield": 0,
          "await": 33,
          "import": 1,
          "instance_candidate": 9
        },
        "direct_native_api_occurrences": 6,
        "imports": 1,
        "instance_candidates": 9,
        "syntax_occurrences": 46,
        "total_static_occurrences": 62
      },
      "tests/test_agent/test_agent_rollout_cpu.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 9,
          "async_for": 0,
          "async_generator_def": 1,
          "async_protocol_def": 0,
          "async_with": 4,
          "async_yield": 1,
          "await": 8,
          "import": 2,
          "instance_candidate": 5
        },
        "direct_native_api_occurrences": 8,
        "imports": 2,
        "instance_candidates": 5,
        "syntax_occurrences": 23,
        "total_static_occurrences": 38
      },
      "tests/test_agent/test_harness.py": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 15,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 10,
          "import": 1,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 10,
        "imports": 1,
        "instance_candidates": 2,
        "syntax_occurrences": 25,
        "total_static_occurrences": 38
      },
      "tests/test_agent/test_sandbox_exec_and_wait.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 7,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 1,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 3,
        "imports": 1,
        "instance_candidates": 2,
        "syntax_occurrences": 9,
        "total_static_occurrences": 15
      },
      "tests/test_agent/test_trajectory_manager_branching.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_block_fp8_zero_block.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_cispo_loss.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_cp_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_cuda_stack_offload.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_deep_ep_tms_patch.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_discounted_returns.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_disk_delta_checkpoint_index.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_disk_delta_recovery.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_distributed_rollout.py": {
        "by_kind": {
          "api_call": 42,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 18,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 23,
          "import": 7,
          "instance_candidate": 101
        },
        "direct_native_api_occurrences": 43,
        "imports": 7,
        "instance_candidates": 101,
        "syntax_occurrences": 41,
        "total_static_occurrences": 192
      },
      "tests/test_docs_consistency.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_dp_schedule.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_empty_colocated_weight_bucket.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_eval_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_expert_routing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_external_sglang_engines.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_filter_long_prompt.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_full_disk_weight_update.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_fully_async_rollout.py": {
        "by_kind": {
          "api_call": 7,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 1,
          "import": 3,
          "instance_candidate": 9
        },
        "direct_native_api_occurrences": 8,
        "imports": 3,
        "instance_candidates": 9,
        "syntax_occurrences": 4,
        "total_static_occurrences": 24
      },
      "tests/test_glm4.7_30B_A3B_pd_mooncake.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_glm52_6layer_deterministic_e2e.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 3
        },
        "direct_native_api_occurrences": 8,
        "imports": 1,
        "instance_candidates": 3,
        "syntax_occurrences": 0,
        "total_static_occurrences": 12
      },
      "tests/test_glm52_layerwise_comparison.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_glm52_layerwise_zero_e2e.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_glm5_indexer_q_norm.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_glm5_indexer_short_context.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_hf_to_megatron.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_layerwise_alignment.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_logprob_response_spans.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_loss_cp_invariance.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_megatron_argument_validation.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_metric_report.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_metric_report_dist.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_mimo_7B_mtp_only_grad.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_model_provider_freeze.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_moonlight_16B_A3B.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_moonlight_16B_A3B_r3.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_optional_straw.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 1,
        "total_static_occurrences": 3
      },
      "tests/test_pipeline_rl.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_placement_group.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_policy_loss.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_ppo_kl_metric.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_ppo_logprob_entropy.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_ppo_logprob_entropy_gpu.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_process_rollout_data.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_published_payload_retry.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 5
        },
        "direct_native_api_occurrences": 3,
        "imports": 2,
        "instance_candidates": 5,
        "syntax_occurrences": 0,
        "total_static_occurrences": 10
      },
      "tests/test_queue_sample_codec.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_quick_start_glm4_9B.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_debug_rollout_then_train.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_debug_train_dump_e2e.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_fanout_short.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_fully_async_short.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_opd_sglang.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 6
        },
        "direct_native_api_occurrences": 3,
        "imports": 2,
        "instance_candidates": 6,
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      "tests/test_qwen2.5_0.5B_pipeline_rl.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_rollout_health.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 1,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 2
      },
      "tests/test_qwen2.5_0.5B_score_centering.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_sglang_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_sglang_config_distributed.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen2.5_0.5B_training_recovery.py": {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 3,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 7,
        "imports": 3,
        "instance_candidates": 1,
        "syntax_occurrences": 0,
        "total_static_occurrences": 11
      },
      "tests/test_qwen3.5_0.8B_gsm8k_short.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3.6_35B_A3B_pd_mooncake.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_0.6B_parallel_check.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_30B_A3B.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_30B_A3B_r3.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_30B_A3B_training_recovery.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_4B_ckpt.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_4B_external_pd.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 4,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 10
        },
        "direct_native_api_occurrences": 7,
        "imports": 2,
        "instance_candidates": 10,
        "syntax_occurrences": 0,
        "total_static_occurrences": 19
      },
      "tests/test_qwen3_4B_ppo.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_4B_ppo_disaggregate.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_4B_ppo_train_critic_only.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_4B_streaming_partial_rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_5_vl_native.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_qwen3_linear_attention_cu_seqlens.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_read_file_slicing.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_reference_top_p_replay.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_release_train.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_reloadable_process_group_memory_check.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_reloadable_process_group_world.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rm_deepscaler.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rm_f1.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rm_gpqa.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rm_math.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rm_math_dapo.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rollout_buffer_order.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rollout_data_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rollout_manager_recovery.py": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 7,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 11,
        "imports": 7,
        "instance_candidates": 2,
        "syntax_occurrences": 0,
        "total_static_occurrences": 20
      },
      "tests/test_rollout_metadata_index.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rollout_metrics.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_rollout_sample_hooks.py": {
        "by_kind": {
          "api_call": 6,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 6,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 6,
        "total_static_occurrences": 13
      },
      "tests/test_rollout_straw_transport.py": {
        "by_kind": {
          "api_call": 10,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 4,
          "instance_candidate": 13
        },
        "direct_native_api_occurrences": 13,
        "imports": 4,
        "instance_candidates": 13,
        "syntax_occurrences": 5,
        "total_static_occurrences": 35
      },
      "tests/test_routed_experts_disk_layout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_sample.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_score_centering.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_score_centering_binary.py": {
        "by_kind": {
          "api_call": 3,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 3,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 3,
        "imports": 2,
        "instance_candidates": 0,
        "syntax_occurrences": 3,
        "total_static_occurrences": 8
      },
      "tests/test_score_centering_transport.py": {
        "by_kind": {
          "api_call": 7,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 6,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 2,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 7,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 8,
        "total_static_occurrences": 16
      },
      "tests/test_server_control.py": {
        "by_kind": {
          "api_call": 11,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 12,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 2,
          "async_yield": 0,
          "await": 12,
          "import": 1,
          "instance_candidate": 10
        },
        "direct_native_api_occurrences": 12,
        "imports": 1,
        "instance_candidates": 10,
        "syntax_occurrences": 26,
        "total_static_occurrences": 49
      },
      "tests/test_sglang_config_mixed_offload.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_sglang_config_mixed_offload_ft.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_stateless_adam.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_straw_checkpoint_fork.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_straw_fully_async_recovery.py": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 2,
          "async_comprehension": 0,
          "async_def": 2,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 3,
          "import": 6,
          "instance_candidate": 13
        },
        "direct_native_api_occurrences": 11,
        "imports": 6,
        "instance_candidates": 13,
        "syntax_occurrences": 5,
        "total_static_occurrences": 35
      },
      "tests/test_straw_r3.py": {
        "by_kind": {
          "api_call": 11,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 4,
          "import": 2,
          "instance_candidate": 7
        },
        "direct_native_api_occurrences": 12,
        "imports": 2,
        "instance_candidates": 7,
        "syntax_occurrences": 5,
        "total_static_occurrences": 26
      },
      "tests/test_streaming_rollout.py": {
        "by_kind": {
          "api_call": 37,
          "api_reference": 3,
          "async_comprehension": 0,
          "async_def": 13,
          "async_for": 0,
          "async_generator_def": 5,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 5,
          "await": 20,
          "import": 2,
          "instance_candidate": 27
        },
        "direct_native_api_occurrences": 40,
        "imports": 2,
        "instance_candidates": 27,
        "syntax_occurrences": 43,
        "total_static_occurrences": 112
      },
      "tests/test_tau_bench_token_delta.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_train_data_utils.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_training_recovery.py": {
        "by_kind": {
          "api_call": 1,
          "api_reference": 1,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 9
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 9,
        "syntax_occurrences": 0,
        "total_static_occurrences": 13
      },
      "tests/test_update_weight_factory.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/test_value_temperature.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/training_recovery_test_helpers.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 1,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 1
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 1,
        "syntax_occurrences": 1,
        "total_static_occurrences": 7
      },
      "tests/utils/test_hf_checkpoint_saver.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/utils/test_loss_mask_type_qwen35.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/utils/test_megatron_role_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/utils/test_megatron_server_arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/utils/test_sglang_arguments.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tests/utils/test_sglang_config.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/analyze_profile.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_hf_to_fp8.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 2,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "tools/convert_hf_to_int4.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_hf_to_int4_direct.py": {
        "by_kind": {
          "api_call": 2,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 2,
          "instance_candidate": 2
        },
        "direct_native_api_occurrences": 2,
        "imports": 2,
        "instance_candidates": 2,
        "syntax_occurrences": 0,
        "total_static_occurrences": 6
      },
      "tools/convert_hf_to_torch_dist.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_k2_thinking_int4_to_bf16.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_to_hf.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_torch_dist_to_hf.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/convert_torch_dist_to_hf_parallel.py": {
        "by_kind": {
          "api_call": 9,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 4,
          "instance_candidate": 10
        },
        "direct_native_api_occurrences": 9,
        "imports": 4,
        "instance_candidates": 10,
        "syntax_occurrences": 0,
        "total_static_occurrences": 23
      },
      "tools/fp8_cast_bf16.py": {
        "by_kind": {
          "api_call": 4,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 1,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 4,
        "imports": 1,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 5
      },
      "tools/profile_rollout.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "tools/trace_timeline_viewer.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      },
      "train.py": {
        "by_kind": {
          "api_call": 0,
          "api_reference": 0,
          "async_comprehension": 0,
          "async_def": 0,
          "async_for": 0,
          "async_generator_def": 0,
          "async_protocol_def": 0,
          "async_with": 0,
          "async_yield": 0,
          "await": 0,
          "import": 0,
          "instance_candidate": 0
        },
        "direct_native_api_occurrences": 0,
        "imports": 0,
        "instance_candidates": 0,
        "syntax_occurrences": 0,
        "total_static_occurrences": 0
      }
    },
    "by_kind": {
      "api_call": 433,
      "api_reference": 85,
      "async_comprehension": 0,
      "async_def": 281,
      "async_for": 1,
      "async_generator_def": 7,
      "async_protocol_def": 0,
      "async_with": 42,
      "async_yield": 7,
      "await": 409,
      "import": 147,
      "instance_candidate": 876
    },
    "direct_native_api_occurrences": 518,
    "imports": 147,
    "instance_candidates": 876,
    "parse_error_count": 0,
    "relevant_python_files": 90,
    "schema_version": 1,
    "source_head": "2f2318653f6f794dddd321eff7c9d4b7b174643f",
    "syntax_occurrences": 747,
    "total_static_occurrences": 2288,
    "tracked_python_files": 381
  }
}
