Dataset Viewer
Auto-converted to Parquet Duplicate
sample_id
string
repo
string
question_type
string
hop_depth
int64
gold
unknown
metadata
unknown
colinhacks__zod___isoDate__upstream__2hop_959fe2
colinhacks/zod
upstream
2
{ "hop_1": [ "date" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/mini/iso.ts" ], "hop_2": [ "date", "convertBaseSchema" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/classic/schemas.ts", "private/tmp/repos/colinhacks__zod/p...
{ "anchor": "_isoDate", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/api.ts", "anchor_source": "export function _isoDate<T extends schemas.$ZodISODate>(\n Class: util.SchemaClass<T>,\n params?: string | $ZodISODateParams | $ZodCheckISODateParams\n): T {\n return new Class({\n t...
celery__celery__on_apply__downstream__1hop_6b7979
celery/celery
downstream
1
{ "calls": [ "on_start", "_add_to_pool_map", "_make_killable_target", "TaskPool" ], "call_files": [ "private/tmp/repos/celery/celery/concurrency/eventlet.py", "private/tmp/repos/celery/celery/concurrency/eventlet.py", "private/tmp/repos/celery/celery/concurrency/eventlet.py", "priv...
{ "anchor": "on_apply", "anchor_file": "private/tmp/repos/celery/celery/concurrency/eventlet.py", "anchor_source": "def on_apply(self, target, args=None, kwargs=None, callback=None,\n accept_callback=None, **_):\n target = TaskPool._make_killable_target(target)\n self._quick_apply_si...
psf__requests__merge_environment_settings__upstream__2hop_ddaf90
psf/requests
upstream
2
{ "hop_1": [ "request" ], "hop_1_files": [ "private/tmp/repos/requests/src/requests/sessions.py" ], "hop_2": [ "delete", "post", "put", "request", "get", "head", "patch", "options" ], "hop_2_files": [ "private/tmp/repos/requests/src/requests/sessions.py", "p...
{ "anchor": "merge_environment_settings", "anchor_file": "private/tmp/repos/requests/src/requests/sessions.py", "anchor_source": "def merge_environment_settings(self, url, proxies, stream, verify, cert):\n \"\"\"\n Check the environment and merge it with some settings.\n\n :rtype: dict\n ...
immerjs__immer__prepareSetCopy__downstream__2hop_0400d5
immerjs/immer
downstream
2
{ "hop_1": [ "isDraftable", "createProxy" ], "hop_1_files": [ "private/tmp/repos/immerjs__immer/src/utils/common.ts", "private/tmp/repos/immerjs__immer/src/core/immerClass.ts" ], "hop_2": [ "getPlugin", "createProxyProxy", "isPlainObject", "rootDraftCleanup", "registerChild...
{ "anchor": "prepareSetCopy", "anchor_file": "private/tmp/repos/immerjs__immer/src/plugins/mapset.ts", "anchor_source": "function prepareSetCopy(state: SetState) {\n\t\tif (!state.copy_) {\n\t\t\t// create drafts for all entries to preserve insertion order\n\t\t\tstate.copy_ = new Set()\n\t\t\tstate.base_.forEach...
trpc__trpc__resolveHTTPLinkOptions__upstream__1hop_e57bf4
trpc/trpc
upstream
1
{ "calls": [ "httpLink", "httpBatchLink", "httpBatchStreamLink" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/client/src/links/httpLink.ts", "private/tmp/repos/trpc__trpc/packages/client/src/links/httpBatchLink.ts", "private/tmp/repos/trpc__trpc/packages/client/src/links/httpBa...
{ "anchor": "resolveHTTPLinkOptions", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/links/internals/httpUtils.ts", "anchor_source": "export function resolveHTTPLinkOptions(\n opts: HTTPLinkBaseOptions<AnyClientTypes>,\n): ResolvedHTTPLinkOptions {\n return {\n url: opts.url.toString(),\n ...
colinhacks__zod__dirty__upstream__1hop_03e5fe
colinhacks/zod
upstream
1
{ "calls": [ "_parse", "mergeArray", "mergeObjectSync", "addIssue", "finalizeSet" ], "call_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/helpers/parseUtil.ts", "private/tmp/repos/colinhacks__zod/pa...
{ "anchor": "dirty", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/helpers/parseUtil.ts", "anchor_source": "dirty(): void {\n if (this.value === \"valid\") this.value = \"dirty\";\n }", "result_size": 6, "created_at": "2026-03-20T17:18:06.594501+00:00", "file_content": "" }
celery__celery___limit_post_eta__downstream__2hop_2f2221
celery/celery
downstream
2
{ "hop_1": [ "_schedule_bucket_request" ], "hop_1_files": [ "private/tmp/repos/celery/celery/worker/consumer/consumer.py" ], "hop_2": [ "_limit_move_to_pool" ], "hop_2_files": [ "private/tmp/repos/celery/celery/worker/consumer/consumer.py" ] }
{ "anchor": "_limit_post_eta", "anchor_file": "private/tmp/repos/celery/celery/worker/consumer/consumer.py", "anchor_source": "def _limit_post_eta(self, request, bucket, tokens):\n self.qos.decrement_eventually()\n bucket.add((request, tokens))\n return self._schedule_bucket_request(bucket)",...
pallets__click__get_params__upstream__1hop_09976b
pallets/click
upstream
1
{ "calls": [ "command_path", "parse_args", "make_parser", "collect_usage_pieces", "to_info_dict", "format_options", "_resolve_incomplete", "shell_complete" ], "call_files": [ "private/tmp/repos/pallets__click/src/click/core.py", "private/tmp/repos/pallets__click/src/click/c...
{ "anchor": "get_params", "anchor_file": "private/tmp/repos/pallets__click/src/click/core.py", "anchor_source": "def get_params(self, ctx: Context) -> list[Parameter]:\n params = self.params\n help_option = self.get_help_option(ctx)\n\n if help_option is not None:\n params = [*para...
rq__rq__add_execution__upstream__2hop_4f80bf
rq/rq
upstream
2
{ "hop_1": [ "create", "heartbeat" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/executions.py", "private/tmp/repos/rq__rq/rq/executions.py" ], "hop_2": [ "prepare_execution", "maintain_heartbeats" ], "hop_2_files": [ "private/tmp/repos/rq__rq/rq/executions.py", "private...
{ "anchor": "add_execution", "anchor_file": "private/tmp/repos/rq__rq/rq/registry.py", "anchor_source": "def add_execution(self, execution: 'Execution', pipeline: 'Pipeline', ttl: int = 0, xx: bool = False) -> int:\n \"\"\"Adds an execution to a registry with expiry time of now + ttl, unless it's -1 which ...
rq__rq__get_retry_interval__upstream__2hop_e93890
rq/rq
upstream
2
{ "hop_1": [ "retry" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/job.py" ], "hop_2": [ "cleanup", "handle_job_failure" ], "hop_2_files": [ "private/tmp/repos/rq__rq/rq/registry.py", "private/tmp/repos/rq__rq/rq/worker/base.py" ] }
{ "anchor": "get_retry_interval", "anchor_file": "private/tmp/repos/rq__rq/rq/job.py", "anchor_source": "def get_retry_interval(self) -> int:\n \"\"\"Returns the desired retry interval.\n If number of retries is bigger than length of intervals, the first\n value in the list will be used multi...
trpc__trpc__trpcMutationOptions__downstream__1hop_57d11f
trpc/trpc
downstream
1
{ "calls": [ "createTRPCOptionsResult", "mutation", "onSuccess", "unwrapLazyArg", "getClientArgs", "getMutationKeyInternal" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/tanstack-react-query/src/internals/utils.ts", "private/tmp/repos/trpc__trpc/packages/client/src/inte...
{ "anchor": "trpcMutationOptions", "anchor_file": "private/tmp/repos/trpc__trpc/packages/tanstack-react-query/src/internals/mutationOptions.ts", "anchor_source": "export function trpcMutationOptions<TFeatureFlags extends FeatureFlags>(args: {\n mutate: typeof TRPCUntypedClient.prototype.mutation;\n queryClient:...
pytest-dev__pytest__pytest_fixture_setup__downstream__1hop_43cdf5
pytest-dev/pytest
downstream
1
{ "calls": [ "_show_fixture_action" ], "call_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/setuponly.py" ] }
{ "anchor": "pytest_fixture_setup", "anchor_file": "private/tmp/repos/pytest-dev__pytest/src/_pytest/setuponly.py", "anchor_source": "@pytest.hookimpl(wrapper=True)\ndef pytest_fixture_setup(\n fixturedef: FixtureDef[object], request: SubRequest\n) -> Generator[None, object, object]:\n try:\n return ...
immerjs__immer__measure__downstream__1hop_87d16b
immerjs/immer
downstream
1
{ "calls": [ "measureTime" ], "call_files": [ "private/tmp/repos/immerjs__immer/__performance_tests__/measure.mjs" ] }
{ "anchor": "measure", "anchor_file": "private/tmp/repos/immerjs__immer/__performance_tests__/measure.mjs", "anchor_source": "export function measure(name, setup, fn) {\n const times = [...Array(5)].map(() => measureTime(setup, fn))\n const medianTime = times.sort()[Math.round(times.length / 2)]\n consol...
rq__rq__get_key__upstream__2hop_fdf8b0
rq/rq
upstream
2
{ "hop_1": [ "fetch_latest", "all", "delete_all", "count", "save" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/results.py", "private/tmp/repos/rq__rq/rq/results.py", "private/tmp/repos/rq__rq/rq/results.py", "private/tmp/repos/rq__rq/rq/results.py", "private/tmp/repos/r...
{ "anchor": "get_key", "anchor_file": "private/tmp/repos/rq__rq/rq/results.py", "anchor_source": "@classmethod\n def get_key(cls, job_id):\n return f'rq:results:{job_id}'", "result_size": 5, "created_at": "2026-03-20T17:18:07.942698+00:00", "file_content": "" }
pallets__jinja__visit_MarkSafe__downstream__1hop_a940af
pallets/jinja
downstream
1
{ "calls": [ "write", "visit" ], "call_files": [ "private/tmp/repos/pallets__jinja/src/jinja2/compiler.py", "private/tmp/repos/pallets__jinja/src/jinja2/visitor.py" ] }
{ "anchor": "visit_MarkSafe", "anchor_file": "private/tmp/repos/pallets__jinja/src/jinja2/compiler.py", "anchor_source": "def visit_MarkSafe(self, node: nodes.MarkSafe, frame: Frame) -> None:\n self.write(\"Markup(\")\n self.visit(node.expr, frame)\n self.write(\")\")", "result_size": 2, ...
locustio__locust__get_ratio__upstream__2hop_b322ac
locustio/locust
upstream
2
{ "hop_1": [ "get_html_report", "print_task_ratio", "print_task_ratio_json", "tasks" ], "hop_1_files": [ "private/tmp/repos/locustio__locust/locust/html.py", "private/tmp/repos/locustio__locust/locust/user/inspectuser.py", "private/tmp/repos/locustio__locust/locust/user/inspectuser.py"...
{ "anchor": "get_ratio", "anchor_file": "private/tmp/repos/locustio__locust/locust/user/inspectuser.py", "anchor_source": "def get_ratio(user_classes: list[type[User]], user_spawned: dict[str, int], total: bool) -> dict[str, dict[str, float]]:\n user_count = sum(user_spawned.values()) or 1\n ratio_percent: ...
colinhacks__zod___property__downstream__1hop_2b3043
colinhacks/zod
downstream
1
{ "calls": [ "normalizeParams" ], "call_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/util.ts" ] }
{ "anchor": "_property", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/api.ts", "anchor_source": "export function _property<K extends string, T extends schemas.$ZodType>(\n property: K,\n schema: T,\n params?: string | $ZodCheckPropertyParams\n): checks.$ZodCheckProperty<{ [k in K]...
encode__httpx__primitive_value_to_str__upstream__1hop_32be34
encode/httpx
upstream
1
{ "calls": [ "encode_urlencoded_data", "add", "set" ], "call_files": [ "private/tmp/repos/encode__httpx/httpx/_content.py", "private/tmp/repos/encode__httpx/httpx/_urls.py", "private/tmp/repos/encode__httpx/httpx/_urls.py" ] }
{ "anchor": "primitive_value_to_str", "anchor_file": "private/tmp/repos/encode__httpx/httpx/_utils.py", "anchor_source": "def primitive_value_to_str(value: PrimitiveData) -> str:\n \"\"\"\n Coerce a primitive data type into a string value.\n\n Note that we prefer JSON-style 'true'/'false' for boolean val...
psf__black__parse_atom__downstream__2hop_55d73c
psf/black
downstream
2
{ "hop_1": [ "expect", "gettoken", "NFAState", "addarc", "parse_rhs", "raise_error" ], "hop_1_files": [ "private/tmp/repos/psf__black/src/blib2to3/pgen2/pgen.py", "private/tmp/repos/psf__black/src/blib2to3/pgen2/pgen.py", "private/tmp/repos/psf__black/src/blib2to3/pgen2/pgen.py...
{ "anchor": "parse_atom", "anchor_file": "private/tmp/repos/psf__black/src/blib2to3/pgen2/pgen.py", "anchor_source": "def parse_atom(self) -> tuple[\"NFAState\", \"NFAState\"]:\n # ATOM: '(' RHS ')' | NAME | STRING\n if self.value == \"(\":\n self.gettoken()\n a, z = self.parse...
colinhacks__zod__datetime__downstream__1hop_b776d7
colinhacks/zod
downstream
1
{ "calls": [ "timeSource" ], "call_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/regexes.ts" ] }
{ "anchor": "datetime", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/regexes.ts", "anchor_source": "export function datetime(args: {\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n}): RegExp {\n const time = timeSource({ precision: args.precision });\n cons...
sindresorhus__got__#createHeadersProxy__upstream__2hop_ca35ed
sindresorhus/got
upstream
2
{ "hop_1": [ "headers", "constructor" ], "hop_1_files": [ "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts" ], "hop_2": [ "headers", "_onResponseBase", "extend", "fn", "constructor" ], "hop_2_files": [ "private/tmp/repos/...
{ "anchor": "#createHeadersProxy", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "#createHeadersProxy(): Headers {\n\t\treturn new Proxy(this.#internals.headers, {\n\t\t\tget(target, property, receiver): unknown {\n\t\t\t\tif (typeof property === 'string') {\n\t\t\t\t\tif (Reflec...
sindresorhus__got__merge__upstream__2hop_5afe2f
sindresorhus/got
upstream
2
{ "hop_1": [ "asPromise", "constructor", "extend" ], "hop_1_files": [ "private/tmp/repos/got/source/as-promise/index.ts", "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/create.ts" ], "hop_2": [ "_onResponseBase", "fn", "constructor" ], "ho...
{ "anchor": "merge", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "merge(options?: OptionsInit | Options) {\n\t\tif (!options) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (options instanceof Options) {\n\t\t\t// Create a copy of the #init array to avoid infinite loop\n\t\t\t// when mergin...
trpc__trpc__createTRPCUntypedClient__upstream__1hop_e4f785
trpc/trpc
upstream
1
{ "calls": [ "experimental_createActionHook", "getInitialProps" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/next/src/app-dir/create-action-hook.tsx", "private/tmp/repos/trpc__trpc/packages/next/src/ssrPrepass.ts" ] }
{ "anchor": "createTRPCUntypedClient", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/createTRPCUntypedClient.ts", "anchor_source": "export function createTRPCUntypedClient<TRouter extends AnyRouter>(\n opts: CreateTRPCClientOptions<TRouter>,\n): TRPCUntypedClient<TRouter> {\n return new TRPCU...
node-fetch__node-fetch__fromRawHeaders__downstream__2hop_9101a8
node-fetch/node-fetch
downstream
2
{ "hop_1": [ "constructor", "Headers" ], "hop_1_files": [ "private/tmp/repos/node-fetch__node-fetch/src/headers.js", "private/tmp/repos/node-fetch__node-fetch/src/headers.js" ], "hop_2": [ "raw", "get" ], "hop_2_files": [ "private/tmp/repos/node-fetch__node-fetch/src/headers.js...
{ "anchor": "fromRawHeaders", "anchor_file": "private/tmp/repos/node-fetch__node-fetch/src/headers.js", "anchor_source": "export function fromRawHeaders(headers = []) {\n\treturn new Headers(\n\t\theaders\n\t\t\t// Split into pairs\n\t\t\t.reduce((result, value, index, array) => {\n\t\t\t\tif (index % 2 === 0) {\...
colinhacks__zod__datetime__downstream__2hop_05cade
colinhacks/zod
downstream
2
{ "hop_1": [ "_addCheck" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ], "hop_2": [ "ZodString", "constructor" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "private/tmp/repos/colinhacks__zod/packages/z...
{ "anchor": "datetime", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "anchor_source": "datetime(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n ...
encode__httpx__aclose__upstream__1hop_43e88d
encode/httpx
upstream
1
{ "calls": [ "_send_handling_auth", "_send_handling_redirects", "send", "aiter_raw", "stream" ], "call_files": [ "private/tmp/repos/encode__httpx/httpx/_client.py", "private/tmp/repos/encode__httpx/httpx/_client.py", "private/tmp/repos/encode__httpx/httpx/_client.py", "private/...
{ "anchor": "aclose", "anchor_file": "private/tmp/repos/encode__httpx/httpx/_models.py", "anchor_source": "async def aclose(self) -> None:\n \"\"\"\n Close the response and release the connection.\n Automatically called if the response body is read to completion.\n \"\"\"\n if n...
sindresorhus__got__stripUrlAuth__upstream__1hop_4985c6
sindresorhus/got
upstream
1
{ "calls": [ "constructor", "_onResponseBase" ], "call_files": [ "private/tmp/repos/got/source/core/response.ts", "private/tmp/repos/got/source/core/index.ts" ] }
{ "anchor": "stripUrlAuth", "anchor_file": "private/tmp/repos/got/source/core/utils/strip-url-auth.ts", "anchor_source": "export default function stripUrlAuth(url: URL | string): string {\n\tconst sanitized = new URL(url);\n\tsanitized.username = '';\n\tsanitized.password = '';\n\treturn sanitized.toString();\n}"...
python-poetry__poetry___create_file_url_reference__downstream__1hop_8bdd80
python-poetry/poetry
downstream
1
{ "calls": [ "_get_archive_info" ], "call_files": [ "private/tmp/repos/python-poetry__poetry/src/poetry/installation/executor.py" ] }
{ "anchor": "_create_file_url_reference", "anchor_file": "private/tmp/repos/python-poetry__poetry/src/poetry/installation/executor.py", "anchor_source": "def _create_file_url_reference(self, package: Package) -> dict[str, Any]:\n archive_info = self._get_archive_info(package)\n\n assert package.sour...
python-poetry__poetry__handle_starttag__downstream__1hop_e89dea
python-poetry/poetry
downstream
1
{ "calls": [ "Result", "_match_class" ], "call_files": [ "private/tmp/repos/python-poetry__poetry/src/poetry/repositories/parsers/pypi_search_parser.py", "private/tmp/repos/python-poetry__poetry/src/poetry/repositories/parsers/pypi_search_parser.py" ] }
{ "anchor": "handle_starttag", "anchor_file": "private/tmp/repos/python-poetry__poetry/src/poetry/repositories/parsers/pypi_search_parser.py", "anchor_source": "def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None:\n if not self._current:\n if tag == \"a\" and self._m...
pallets__jinja__new_context__upstream__1hop_9daf52
pallets/jinja
upstream
1
{ "calls": [ "make_module_async", "generate", "make_module", "render", "render_async", "generate_async" ], "call_files": [ "private/tmp/repos/pallets__jinja/src/jinja2/environment.py", "private/tmp/repos/pallets__jinja/src/jinja2/environment.py", "private/tmp/repos/pallets__jin...
{ "anchor": "new_context", "anchor_file": "private/tmp/repos/pallets__jinja/src/jinja2/environment.py", "anchor_source": "def new_context(\n self,\n vars: dict[str, t.Any] | None = None,\n shared: bool = False,\n locals: t.Mapping[str, t.Any] | None = None,\n ) -> Context:\n ...
colinhacks__zod__getErrorMap__downstream__1hop_a9bfde
colinhacks/zod
downstream
1
{ "calls": [ "config" ], "call_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/core.ts" ] }
{ "anchor": "getErrorMap", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/classic/compat.ts", "anchor_source": "export function getErrorMap(): core.$ZodErrorMap<core.$ZodIssue> | undefined {\n return core.config().customError;\n}", "result_size": 1, "created_at": "2026-03-20T17:18:06.5...
sindresorhus__got__isUnixSocketURL__upstream__1hop_1ae265
sindresorhus/got
upstream
1
{ "calls": [ "getUnixSocketPath", "_onResponseBase" ], "call_files": [ "private/tmp/repos/got/source/core/utils/is-unix-socket-url.ts", "private/tmp/repos/got/source/core/index.ts" ] }
{ "anchor": "isUnixSocketURL", "anchor_file": "private/tmp/repos/got/source/core/utils/is-unix-socket-url.ts", "anchor_source": "export default function isUnixSocketURL(url: URL) {\n\treturn url.protocol === 'unix:' || url.hostname === 'unix';\n}", "result_size": 2, "created_at": "2026-03-20T17:18:08.163238+0...
trpc__trpc__awsLambdaStreamingRequestHandler__downstream__1hop_8a3b3a
trpc/trpc
downstream
1
{ "calls": [ "getPlanner", "resolveResponse" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/adapters/aws-lambda/getPlanner.ts", "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/http/resolveResponse.ts" ] }
{ "anchor": "awsLambdaStreamingRequestHandler", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/adapters/aws-lambda/index.ts", "anchor_source": "export function awsLambdaStreamingRequestHandler<\n TRouter extends AnyRouter,\n TEvent extends LambdaEvent,\n>(opts: AWSLambdaOptions<TRouter, TEvent...
sindresorhus__got__extend__downstream__1hop_1cde97
sindresorhus/got
downstream
1
{ "calls": [ "constructor", "Options", "merge" ], "call_files": [ "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts" ] }
{ "anchor": "extend", "anchor_file": "private/tmp/repos/got/source/create.ts", "anchor_source": "got.extend = (...instancesOrOptions) => {\n\t\tconst options = new Options(undefined, undefined, defaults.options);\n\t\tconst handlers = [...defaults.handlers];\n\n\t\tlet mutableDefaults: boolean | undefined;\n\n\t\...
trpc__trpc__send__upstream__2hop_ec4eb0
trpc/trpc
upstream
2
{ "hop_1": [ "batchSend", "reconnect", "request" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/client/src/links/wsLink/wsClient/wsClient.ts", "private/tmp/repos/trpc__trpc/packages/client/src/links/wsLink/wsClient/wsClient.ts", "private/tmp/repos/trpc__trpc/packages/client/src...
{ "anchor": "send", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/links/wsLink/wsClient/wsClient.ts", "anchor_source": "private send(\n messageOrMessages: TRPCClientOutgoingMessage | TRPCClientOutgoingMessage[],\n ) {\n if (!this.activeConnection.isOpen()) {\n throw new Error('Activ...
trpc__trpc__takeWithGrace__upstream__2hop_c086f7
trpc/trpc
upstream
2
{ "hop_1": [ "generator", "sseStreamProducer" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/sse.ts", "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/sse.ts" ], "hop_2": [ "generatorWithErrorHand...
{ "anchor": "takeWithGrace", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts", "anchor_source": "export async function* takeWithGrace<T>(\n iterable: AsyncIterable<T>,\n opts: {\n count: number;\n gracePeriodMs: number;\n },\n): A...
encode__httpx__iter_raw__upstream__2hop_6e8b03
encode/httpx
upstream
2
{ "hop_1": [ "iter_bytes" ], "hop_1_files": [ "private/tmp/repos/encode__httpx/httpx/_models.py" ], "hop_2": [ "read", "iter_text", "download_response" ], "hop_2_files": [ "private/tmp/repos/encode__httpx/httpx/_models.py", "private/tmp/repos/encode__httpx/httpx/_models.py", ...
{ "anchor": "iter_raw", "anchor_file": "private/tmp/repos/encode__httpx/httpx/_models.py", "anchor_source": "def iter_raw(self, chunk_size: int | None = None) -> typing.Iterator[bytes]:\n \"\"\"\n A byte-iterator over the raw response content.\n \"\"\"\n if self.is_stream_consumed:\n ...
rq__rq__dependents_key_for__upstream__2hop_67b9a8
rq/rq
upstream
2
{ "hop_1": [ "register_dependency", "dependents_key" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/job.py", "private/tmp/repos/rq__rq/rq/job.py" ], "hop_2": [ "setup_dependencies", "get_jobs_with_met_dependencies" ], "hop_2_files": [ "private/tmp/repos/rq__rq/rq/queue.py", ...
{ "anchor": "dependents_key_for", "anchor_file": "private/tmp/repos/rq__rq/rq/job.py", "anchor_source": "@classmethod\n def dependents_key_for(cls, job_id: str) -> str:\n \"\"\"The Redis key that is used to store job dependents hash under.\n\n Args:\n job_id (str): The \"parent\" job i...
pytest-dev__pytest__call_and_report__downstream__1hop_05ab76
pytest-dev/pytest
downstream
1
{ "calls": [ "from_call", "get_reraise_exceptions" ], "call_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/runner.py", "private/tmp/repos/pytest-dev__pytest/src/_pytest/runner.py" ] }
{ "anchor": "call_and_report", "anchor_file": "private/tmp/repos/pytest-dev__pytest/src/_pytest/runner.py", "anchor_source": "def call_and_report(\n item: Item, when: Literal[\"setup\", \"call\", \"teardown\"], log: bool = True, **kwds\n) -> TestReport:\n ihook = item.ihook\n if when == \"setup\":\n ...
sindresorhus__got__#getFallbackRequestFunction__upstream__2hop_2c7edf
sindresorhus/got
upstream
2
{ "hop_1": [ "#callFallbackRequest", "getRequestFunction" ], "hop_1_files": [ "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts" ], "hop_2": [ "_makeRequest", "#resolveRequestWithFallback" ], "hop_2_files": [ "private/tmp/repos/got/so...
{ "anchor": "#getFallbackRequestFunction", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "#getFallbackRequestFunction() {\n\t\tconst url = this.#internals.url as (URL | undefined);\n\n\t\tif (!url) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (url.protocol === 'https:') {\n\t\t\tif (this.#i...
pytest-dev__pytest__saferepr__downstream__2hop_06f5f0
pytest-dev/pytest
downstream
2
{ "hop_1": [ "repr" ], "hop_1_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/_io/saferepr.py" ], "hop_2": [ "_format_repr_exception", "_ellipsize" ], "hop_2_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/_io/saferepr.py", "private/tmp/repos/pytest-dev__pyt...
{ "anchor": "saferepr", "anchor_file": "private/tmp/repos/pytest-dev__pytest/src/_pytest/_io/saferepr.py", "anchor_source": "def saferepr(\n obj: object, maxsize: int | None = DEFAULT_REPR_MAX_SIZE, use_ascii: bool = False\n) -> str:\n \"\"\"Return a size-limited safe repr-string for the given object.\n\n ...
trpc__trpc__createTRPCOptionsResult__upstream__2hop_7f89dd
trpc/trpc
upstream
2
{ "hop_1": [ "createUtilityFunctions", "queryOptions", "infiniteQueryOptions", "useHookResult" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/react-query/src/utils/createUtilityFunctions.ts", "private/tmp/repos/trpc__trpc/packages/react-query/src/utils/createUtilityFunctions.ts...
{ "anchor": "createTRPCOptionsResult", "anchor_file": "private/tmp/repos/trpc__trpc/packages/react-query/src/internals/trpcResult.ts", "anchor_source": "export function createTRPCOptionsResult(value: {\n path: readonly string[];\n}): TRPCQueryOptionsResult['trpc'] {\n const path = value.path.join('.');\n\n ret...
locustio__locust__get_abspaths_in__upstream__1hop_36995d
locustio/locust
upstream
1
{ "calls": [ "handle_message", "_parse_locustfile_path" ], "call_files": [ "private/tmp/repos/locustio__locust/locust/runners.py", "private/tmp/repos/locustio__locust/locust/argument_parser.py" ] }
{ "anchor": "get_abspaths_in", "anchor_file": "private/tmp/repos/locustio__locust/locust/util/directory.py", "anchor_source": "def get_abspaths_in(path, extension=None):\n return [\n os.path.abspath(os.path.join(root, f))\n for root, _dirs, fs in os.walk(path)\n for f in fs\n if os....
immerjs__immer__scenario_rtkq_sequence__downstream__2hop_f363db
immerjs/immer
downstream
2
{ "hop_1": [ "createInitialState" ], "hop_1_files": [ "private/tmp/repos/immerjs__immer/perf-testing/immutability-profiling.mjs" ], "hop_2": [ "createLargeObject" ], "hop_2_files": [ "private/tmp/repos/immerjs__immer/perf-testing/immutability-profiling.mjs" ] }
{ "anchor": "scenario_rtkq_sequence", "anchor_file": "private/tmp/repos/immerjs__immer/perf-testing/immutability-profiling.mjs", "anchor_source": "function scenario_rtkq_sequence() {\n\tlet state = createInitialState()\n\tconst arraySize = 100\n\n\t// Phase 1: Execute all pending actions\n\tfor (let j = 0; j < ar...
trpc__trpc__timerResource__upstream__1hop_5c2d6b
trpc/trpc
upstream
1
{ "calls": [ "takeWithGrace", "withPing", "withTimeout" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts", "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/withPing.ts", ...
{ "anchor": "timerResource", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/timerResource.ts", "anchor_source": "export function timerResource(ms: number) {\n let timer: ReturnType<typeof setTimeout> | null = null;\n\n return makeResource(\n {\n ...
pallets__jinja__iter_child_nodes__upstream__1hop_b541ac
pallets/jinja
upstream
1
{ "calls": [ "generic_visit", "set_ctx", "set_lineno", "_simple_visit", "find_all", "set_environment", "visit_CallBlock", "visit_For" ], "call_files": [ "private/tmp/repos/pallets__jinja/src/jinja2/visitor.py", "private/tmp/repos/pallets__jinja/src/jinja2/nodes.py", "pr...
{ "anchor": "iter_child_nodes", "anchor_file": "private/tmp/repos/pallets__jinja/src/jinja2/nodes.py", "anchor_source": "def iter_child_nodes(\n self,\n exclude: t.Container[str] | None = None,\n only: t.Container[str] | None = None,\n ) -> t.Iterator[\"Node\"]:\n \"\"\"Iterates ove...
trpc__trpc__isAbortError__upstream__1hop_510dbb
trpc/trpc
upstream
1
{ "calls": [ "writeResponseBody", "unstable_localLink", "onErrorCallback", "generatorWithErrorHandling", "sseStreamProducer" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/adapters/node-http/writeResponse.ts", "private/tmp/repos/trpc__trpc/packages/client/src/link...
{ "anchor": "isAbortError", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/http/abortError.ts", "anchor_source": "export function isAbortError(\n error: unknown,\n): error is DOMException | Error | { name: 'AbortError' } {\n return isObject(error) && error['name'] =...
trpc__trpc__load__upstream__2hop_06287f
trpc/trpc
upstream
2
{ "hop_1": [ "httpBatchLink", "dataLoader", "httpBatchStreamLink" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/client/src/links/httpBatchLink.ts", "private/tmp/repos/trpc__trpc/packages/client/src/internals/dataLoader.ts", "private/tmp/repos/trpc__trpc/packages/client/src/lin...
{ "anchor": "load", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/internals/dataLoader.ts", "anchor_source": "function load(key: TKey): Promise<TValue> {\n const item: BatchItem<TKey, TValue> = {\n aborted: false,\n key,\n batch: null,\n resolve: throwFatalError,\n r...
rq__rq__enqueue_call__upstream__1hop_12d7e5
rq/rq
upstream
1
{ "calls": [ "delay", "enqueue" ], "call_files": [ "private/tmp/repos/rq__rq/rq/decorators.py", "private/tmp/repos/rq__rq/rq/queue.py" ] }
{ "anchor": "enqueue_call", "anchor_file": "private/tmp/repos/rq__rq/rq/queue.py", "anchor_source": "def enqueue_call(\n self,\n func: 'FunctionReferenceType',\n args: Union[tuple, list, None] = None,\n kwargs: Optional[dict] = None,\n timeout: Optional[int] = None,\n res...
sindresorhus__got__signal__downstream__2hop_b750ce
sindresorhus/got
downstream
2
{ "hop_1": [ "signal" ], "hop_1_files": [ "private/tmp/repos/got/source/core/options.ts" ], "hop_2": [ "assertAny" ], "hop_2_files": [ "private/tmp/repos/got/source/core/options.ts" ] }
{ "anchor": "signal", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "get signal(): AbortSignal | undefined {\n\t\treturn this.#internals.signal;\n\t}", "result_size": 1, "created_at": "2026-03-20T17:18:08.163238+00:00" }
psf__black__append_safe__downstream__1hop_93aac1
psf/black
downstream
1
{ "calls": [ "append" ], "call_files": [ "private/tmp/repos/psf__black/src/black/lines.py" ] }
{ "anchor": "append_safe", "anchor_file": "private/tmp/repos/psf__black/src/black/lines.py", "anchor_source": "def append_safe(self, leaf: Leaf, preformatted: bool = False) -> None:\n \"\"\"Like :func:`append()` but disallow invalid standalone comment structure.\n\n Raises ValueError when any `leaf`...
rq__rq__get_redis_server_version__upstream__2hop_48a319
rq/rq
upstream
2
{ "hop_1": [ "get_job_position", "_prepare_for_queue" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/queue.py", "private/tmp/repos/rq__rq/rq/queue.py" ], "hop_2": [ "_enqueue_sync_job", "get_position", "_enqueue_async_job" ], "hop_2_files": [ "private/tmp/repos/rq__rq/rq/...
{ "anchor": "get_redis_server_version", "anchor_file": "private/tmp/repos/rq__rq/rq/queue.py", "anchor_source": "def get_redis_server_version(self) -> tuple[int, int, int]:\n \"\"\"Return Redis server version of connection\n\n Returns:\n redis_version (Tuple): A tuple with the parsed Redi...
immerjs__immer__leaveScope__upstream__1hop_5097fc
immerjs/immer
upstream
1
{ "calls": [ "revokeScope", "createDraft" ], "call_files": [ "private/tmp/repos/immerjs__immer/src/core/scope.ts", "private/tmp/repos/immerjs__immer/src/core/immerClass.ts" ] }
{ "anchor": "leaveScope", "anchor_file": "private/tmp/repos/immerjs__immer/src/core/scope.ts", "anchor_source": "export function leaveScope(scope: ImmerScope) {\n\tif (scope === currentScope) {\n\t\tcurrentScope = scope.parent_\n\t}\n}", "result_size": 2, "created_at": "2026-03-20T17:18:06.914297+00:00", "f...
immerjs__immer__crossReferenceCleanup__upstream__2hop_7df763
immerjs/immer
upstream
2
{ "hop_1": [ "handleCrossReference" ], "hop_1_files": [ "private/tmp/repos/immerjs__immer/src/core/finalize.ts" ], "hop_2": [ "set", "handleInsertedValues", "enableArrayMethods", "enableMapSet", "add" ], "hop_2_files": [ "private/tmp/repos/immerjs__immer/src/plugins/mapset....
{ "anchor": "crossReferenceCleanup", "anchor_file": "private/tmp/repos/immerjs__immer/src/core/finalize.ts", "anchor_source": "state.callbacks_.push(function crossReferenceCleanup() {\n\t\t\t\t// Update the target location with finalized value\n\t\t\t\tprepareCopy(target)\n\n\t\t\t\tconst finalizedValue = getFina...
pallets__flask___get_source_fast__downstream__2hop_ce1245
pallets/flask
downstream
2
{ "hop_1": [ "_iter_loaders" ], "hop_1_files": [ "private/tmp/repos/flask/src/flask/templating.py" ], "hop_2": [ "iter_blueprints" ], "hop_2_files": [ "private/tmp/repos/flask/src/flask/sansio/app.py" ] }
{ "anchor": "_get_source_fast", "anchor_file": "private/tmp/repos/flask/src/flask/templating.py", "anchor_source": "def _get_source_fast(\n self, environment: BaseEnvironment, template: str\n ) -> tuple[str, str | None, t.Callable[[], bool] | None]:\n for _srcobj, loader in self._iter_loaders(tem...
trpc__trpc__observableToAsyncIterable__downstream__1hop_2800da
trpc/trpc
downstream
1
{ "calls": [ "observableToReadableStream" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/observable/observable.ts" ] }
{ "anchor": "observableToAsyncIterable", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/observable/observable.ts", "anchor_source": "export function observableToAsyncIterable<TValue>(\n observable: Observable<TValue, unknown>,\n signal: AbortSignal,\n): AsyncIterable<TValue> {\n const stream ...
pytest-dev__pytest__pytest_runtest_setup__downstream__2hop_1c94b7
pytest-dev/pytest
downstream
2
{ "hop_1": [ "evaluate_xfail_marks", "evaluate_skip_marks" ], "hop_1_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/skipping.py", "private/tmp/repos/pytest-dev__pytest/src/_pytest/skipping.py" ], "hop_2": [ "evaluate_condition" ], "hop_2_files": [ "private/tmp/repos/py...
{ "anchor": "pytest_runtest_setup", "anchor_file": "private/tmp/repos/pytest-dev__pytest/src/_pytest/skipping.py", "anchor_source": "@hookimpl(tryfirst=True)\ndef pytest_runtest_setup(item: Item) -> None:\n skipped = evaluate_skip_marks(item)\n if skipped:\n raise skip.Exception(skipped.reason, _use_...
python-poetry__poetry__all__downstream__1hop_a8ec71
python-poetry/poetry
downstream
1
{ "calls": [ "get", "_all" ], "call_files": [ "private/tmp/repos/python-poetry__poetry/src/poetry/config/config.py", "private/tmp/repos/python-poetry__poetry/src/poetry/config/config.py" ] }
{ "anchor": "all", "anchor_file": "private/tmp/repos/python-poetry__poetry/src/poetry/config/config.py", "anchor_source": "def all(self) -> dict[str, Any]:\n def _all(config: dict[str, Any], parent_key: str = \"\") -> dict[str, Any]:\n all_ = {}\n\n for key in config:\n ...
sindresorhus__got__agent__downstream__2hop_884e5f
sindresorhus/got
downstream
2
{ "hop_1": [ "agent" ], "hop_1_files": [ "private/tmp/repos/got/source/core/options.ts" ], "hop_2": [ "assertPlainObject", "assertAny" ], "hop_2_files": [ "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts" ] }
{ "anchor": "agent", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "get agent(): Agents {\n\t\treturn this.#internals.agent;\n\t}", "result_size": 2, "created_at": "2026-03-20T17:18:08.163238+00:00" }
colinhacks__zod__min__downstream__1hop_b39f7f
colinhacks/zod
downstream
1
{ "calls": [ "_addCheck" ], "call_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ] }
{ "anchor": "min", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "anchor_source": "min(minLength: number, message?: errorUtil.ErrMessage) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil.errToObj(message),\n });\n }", "resul...
encode__django-rest-framework___get_forward_relationships__downstream__1hop_2cff34
encode/django-rest-framework
downstream
1
{ "calls": [ "_get_to_field" ], "call_files": [ "private/tmp/repos/django-rest-framework/rest_framework/utils/model_meta.py" ] }
{ "anchor": "_get_forward_relationships", "anchor_file": "private/tmp/repos/django-rest-framework/rest_framework/utils/model_meta.py", "anchor_source": "def _get_forward_relationships(opts):\n \"\"\"\n Returns a dict of field names to `RelationInfo`.\n \"\"\"\n forward_relations = {}\n for field in...
rq__rq__get_current_job_id__upstream__1hop_301e1e
rq/rq
upstream
1
{ "calls": [ "handle_stop_job_command", "get_current_job" ], "call_files": [ "private/tmp/repos/rq__rq/rq/command.py", "private/tmp/repos/rq__rq/rq/worker/base.py" ] }
{ "anchor": "get_current_job_id", "anchor_file": "private/tmp/repos/rq__rq/rq/worker/base.py", "anchor_source": "def get_current_job_id(self, pipeline: Optional['Pipeline'] = None) -> Optional[str]:\n \"\"\"Retrieves the current job id.\n\n Args:\n pipeline (Optional[&#39;Pipeline&#39;], ...
rq__rq__retry__upstream__2hop_d3356e
rq/rq
upstream
2
{ "hop_1": [ "cleanup", "handle_job_failure" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/registry.py", "private/tmp/repos/rq__rq/rq/worker/base.py" ], "hop_2": [ "clean_registries", "perform_job", "cleanup", "monitor_work_horse", "get_job_and_execution_ids", "handl...
{ "anchor": "retry", "anchor_file": "private/tmp/repos/rq__rq/rq/job.py", "anchor_source": "def retry(self, queue: 'Queue', pipeline: 'Pipeline'):\n \"\"\"Should be called when a job was enqueued with queue.enqueue(retry=Retry(...)) raises an exception.\n\n Requeues or schedules the job for executio...
rq__rq__add_execution__downstream__2hop_b5f84e
rq/rq
downstream
2
{ "hop_1": [ "current_timestamp" ], "hop_1_files": [ "private/tmp/repos/rq__rq/rq/utils.py" ], "hop_2": [ "now" ], "hop_2_files": [ "private/tmp/repos/rq__rq/rq/utils.py" ] }
{ "anchor": "add_execution", "anchor_file": "private/tmp/repos/rq__rq/rq/registry.py", "anchor_source": "def add_execution(self, execution: 'Execution', pipeline: 'Pipeline', ttl: int = 0, xx: bool = False) -> int:\n \"\"\"Adds an execution to a registry with expiry time of now + ttl, unless it's -1 which ...
psf__requests__to_key_val_list__upstream__1hop_8374b5
psf/requests
upstream
1
{ "calls": [ "_encode_files", "merge_setting" ], "call_files": [ "private/tmp/repos/requests/src/requests/models.py", "private/tmp/repos/requests/src/requests/sessions.py" ] }
{ "anchor": "to_key_val_list", "anchor_file": "private/tmp/repos/requests/src/requests/utils.py", "anchor_source": "def to_key_val_list(value):\n \"\"\"Take an object and test to see if it can be represented as a\n dictionary. If it can be, return a list of tuples, e.g.,\n\n ::\n\n >>> to_key_val_...
trpc__trpc__mergeWithoutOverrides__upstream__1hop_46f99d
trpc/trpc
upstream
1
{ "calls": [ "mergeRouters", "createNewBuilder" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/router.ts", "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/procedureBuilder.ts" ] }
{ "anchor": "mergeWithoutOverrides", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/utils.ts", "anchor_source": "export function mergeWithoutOverrides<TType extends Record<string, unknown>>(\n obj1: TType,\n ...objs: Partial<TType>[]\n): TType {\n const newObj: TTy...
pallets__click__get_current_context__upstream__1hop_b1b9a9
pallets/click
upstream
1
{ "calls": [ "decorator", "new_func", "pass_meta_key", "make_pass_decorator", "pass_obj", "resolve_color_default", "pass_context" ], "call_files": [ "private/tmp/repos/pallets__click/src/click/decorators.py", "private/tmp/repos/pallets__click/src/click/decorators.py", "priv...
{ "anchor": "get_current_context", "anchor_file": "private/tmp/repos/pallets__click/src/click/globals.py", "anchor_source": "def get_current_context(silent: bool = False) -> Context | None:\n \"\"\"Returns the current click context. This can be used as a way to\n access the current context object from anyw...
pallets__jinja__visit_Test__downstream__2hop_e65ba0
pallets/jinja
downstream
2
{ "hop_1": [ "visit", "_filter_test_common" ], "hop_1_files": [ "private/tmp/repos/pallets__jinja/src/jinja2/visitor.py", "private/tmp/repos/pallets__jinja/src/jinja2/compiler.py" ], "hop_2": [ "generic_visit", "get_visitor", "fail", "signature", "from_obj", "write" ]...
{ "anchor": "visit_Test", "anchor_file": "private/tmp/repos/pallets__jinja/src/jinja2/compiler.py", "anchor_source": "@optimizeconst\n def visit_Test(self, node: nodes.Test, frame: Frame) -> None:\n with self._filter_test_common(node, frame, False):\n self.visit(node.node, frame)", "result_...
paramiko__paramiko__shutdown__downstream__1hop_3c1fa9
paramiko/paramiko
downstream
1
{ "calls": [ "_send_eof" ], "call_files": [ "private/tmp/repos/paramiko/paramiko/channel.py" ] }
{ "anchor": "shutdown", "anchor_file": "private/tmp/repos/paramiko/paramiko/channel.py", "anchor_source": "def shutdown(self, how):\n \"\"\"\n Shut down one or both halves of the connection. If ``how`` is 0,\n further receives are disallowed. If ``how`` is 1, further sends\n are disa...
trpc__trpc__isAsyncIterable__downstream__1hop_830717
trpc/trpc
downstream
1
{ "calls": [ "isObject" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/utils.ts" ] }
{ "anchor": "isAsyncIterable", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/utils.ts", "anchor_source": "export function isAsyncIterable<TValue>(\n value: unknown,\n): value is AsyncIterable<TValue> {\n return (\n asyncIteratorsSupported && isObject(value) && S...
immerjs__immer__loadPlugin__upstream__1hop_ee7189
immerjs/immer
upstream
1
{ "calls": [ "enablePatches", "enableMapSet", "enableArrayMethods" ], "call_files": [ "private/tmp/repos/immerjs__immer/src/plugins/patches.ts", "private/tmp/repos/immerjs__immer/src/plugins/mapset.ts", "private/tmp/repos/immerjs__immer/src/plugins/arrayMethods.ts" ] }
{ "anchor": "loadPlugin", "anchor_file": "private/tmp/repos/immerjs__immer/src/utils/plugins.ts", "anchor_source": "export function loadPlugin<K extends keyof Plugins>(\n\tpluginKey: K,\n\timplementation: Plugins[K]\n): void {\n\tif (!plugins[pluginKey]) plugins[pluginKey] = implementation\n}", "result_size": 3...
colinhacks__zod__positive__downstream__2hop_a1aea2
colinhacks/zod
downstream
2
{ "hop_1": [ "_addCheck" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ], "hop_2": [ "ZodBigInt", "constructor" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "private/tmp/repos/colinhacks__zod/packages/z...
{ "anchor": "positive", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "anchor_source": "positive(message?: errorUtil.ErrMessage) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message),\n ...
locustio__locust__send_to_client__upstream__2hop_0e62b0
locustio/locust
upstream
2
{ "hop_1": [ "send_message", "quit", "stop", "handle_message", "client_listener" ], "hop_1_files": [ "private/tmp/repos/locustio__locust/locust/runners.py", "private/tmp/repos/locustio__locust/locust/runners.py", "private/tmp/repos/locustio__locust/locust/runners.py", "private/...
{ "anchor": "send_to_client", "anchor_file": "private/tmp/repos/locustio__locust/locust/rpc/zmqrpc.py", "anchor_source": "@retry()\n def send_to_client(self, msg):\n try:\n self.socket.send_multipart([msg.node_id.encode(), msg.serialize()])\n except zmqerr.ZMQError as e:\n r...
pallets__click___split_opt__upstream__1hop_ccc87e
pallets/click
upstream
1
{ "calls": [ "get_help_extra", "_parse_decls", "_normalize_opt", "join_options" ], "call_files": [ "private/tmp/repos/pallets__click/src/click/core.py", "private/tmp/repos/pallets__click/src/click/core.py", "private/tmp/repos/pallets__click/src/click/parser.py", "private/tmp/repos/...
{ "anchor": "_split_opt", "anchor_file": "private/tmp/repos/pallets__click/src/click/parser.py", "anchor_source": "def _split_opt(opt: str) -> tuple[str, str]:\n first = opt[:1]\n if first.isalnum():\n return \"\", opt\n if opt[1:2] == first:\n return opt[:2], opt[2:]\n return first, opt...
pallets__click__show__downstream__2hop_32469e
pallets/click
downstream
2
{ "hop_1": [ "get_text_stderr", "echo", "format_message" ], "hop_1_files": [ "private/tmp/repos/pallets__click/src/click/_compat.py", "private/tmp/repos/pallets__click/src/click/utils.py", "private/tmp/repos/pallets__click/src/click/exceptions.py" ], "hop_2": [ "strip_ansi", "_...
{ "anchor": "show", "anchor_file": "private/tmp/repos/pallets__click/src/click/exceptions.py", "anchor_source": "def show(self, file: t.IO[t.Any] | None = None) -> None:\n if file is None:\n file = get_text_stderr()\n\n echo(\n _(\"Error: {message}\").format(message=self.format...
locustio__locust__default_args_dict__upstream__2hop_fb3aa2
locustio/locust
upstream
2
{ "hop_1": [ "handle_message", "ui_extra_args_dict" ], "hop_1_files": [ "private/tmp/repos/locustio__locust/locust/runners.py", "private/tmp/repos/locustio__locust/locust/argument_parser.py" ], "hop_2": [ "worker", "update_template_args" ], "hop_2_files": [ "private/tmp/repos/l...
{ "anchor": "default_args_dict", "anchor_file": "private/tmp/repos/locustio__locust/locust/argument_parser.py", "anchor_source": "def default_args_dict() -> dict:\n # returns a dict containing the default arguments (before any custom arguments are added)\n default_parser = get_empty_argument_parser()\n s...
python-poetry__poetry__build_config_setting_validator__downstream__1hop_e7ac4a
python-poetry/poetry
downstream
1
{ "calls": [ "build_config_setting_normalizer" ], "call_files": [ "private/tmp/repos/python-poetry__poetry/src/poetry/config/config.py" ] }
{ "anchor": "build_config_setting_validator", "anchor_file": "private/tmp/repos/python-poetry__poetry/src/poetry/config/config.py", "anchor_source": "def build_config_setting_validator(val: str) -> bool:\n try:\n value = build_config_setting_normalizer(val)\n except JSONDecodeError:\n return F...
encode__httpx__aiter_bytes__upstream__2hop_6d68f7
encode/httpx
upstream
2
{ "hop_1": [ "aread", "aiter_text" ], "hop_1_files": [ "private/tmp/repos/encode__httpx/httpx/_models.py", "private/tmp/repos/encode__httpx/httpx/_models.py" ], "hop_2": [ "_send_handling_auth", "_send_handling_redirects", "send", "async_auth_flow", "aiter_lines" ], "ho...
{ "anchor": "aiter_bytes", "anchor_file": "private/tmp/repos/encode__httpx/httpx/_models.py", "anchor_source": "async def aiter_bytes(\n self, chunk_size: int | None = None\n ) -> typing.AsyncIterator[bytes]:\n \"\"\"\n A byte-iterator over the decoded response content.\n This allow...
encode__httpx__read__upstream__1hop_f26016
encode/httpx
upstream
1
{ "calls": [ "handle_request", "sync_auth_flow" ], "call_files": [ "private/tmp/repos/encode__httpx/httpx/_transports/mock.py", "private/tmp/repos/encode__httpx/httpx/_auth.py" ] }
{ "anchor": "read", "anchor_file": "private/tmp/repos/encode__httpx/httpx/_models.py", "anchor_source": "def read(self) -> bytes:\n \"\"\"\n Read and return the request content.\n \"\"\"\n if not hasattr(self, \"_content\"):\n assert isinstance(self.stream, typing.Iterable)\...
python-poetry__poetry__create_venv__downstream__2hop_8e77bd
python-poetry/poetry
downstream
2
{ "hop_1": [ "get_system_env", "remove_venv", "use_in_project_venv", "get", "generate_env_name", "build_venv" ], "hop_1_files": [ "private/tmp/repos/python-poetry__poetry/src/poetry/utils/env/env_manager.py", "private/tmp/repos/python-poetry__poetry/src/poetry/utils/env/env_manager...
{ "anchor": "create_venv", "anchor_file": "private/tmp/repos/python-poetry__poetry/src/poetry/utils/env/env_manager.py", "anchor_source": "def create_venv(\n self,\n name: str | None = None,\n python: Python | None = None,\n force: bool = False,\n ) -> Env:\n if self._env is ...
trpc__trpc__createDeferred__upstream__2hop_d3ec5e
trpc/trpc
upstream
2
{ "hop_1": [ "mergeAsyncIterables", "jsonlStreamConsumer", "write", "initIterable" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts", "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-...
{ "anchor": "createDeferred", "anchor_file": "private/tmp/repos/trpc__trpc/packages/server/src/unstable-core-do-not-import/stream/utils/createDeferred.ts", "anchor_source": "export function createDeferred<TValue = void>() {\n let resolve: (value: TValue) => void;\n let reject: (error: unknown) => void;\n const...
trpc__trpc__CompanyLogo__downstream__1hop_1f4022
trpc/trpc
downstream
1
{ "calls": [ "cn" ], "call_files": [ "private/tmp/repos/trpc__trpc/www/src/utils/cn.ts" ] }
{ "anchor": "CompanyLogo", "anchor_file": "private/tmp/repos/trpc__trpc/www/src/components/CompaniesUsing.tsx", "anchor_source": "function CompanyLogo(props: { src: string; name: string }) {\n const triggerRef = React.useRef<HTMLSpanElement>(null);\n const [position, setPosition] = React.useState<{\n top: nu...
colinhacks__zod___isoTime__upstream__2hop_d19bee
colinhacks/zod
upstream
2
{ "hop_1": [ "time" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/mini/iso.ts" ], "hop_2": [ "convertBaseSchema", "time" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/classic/from-json-schema.ts", "private/tmp/repos/colinhac...
{ "anchor": "_isoTime", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/api.ts", "anchor_source": "export function _isoTime<T extends schemas.$ZodISOTime>(\n Class: util.SchemaClass<T>,\n params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams\n): T {\n return new Class({\n t...
getpelican__pelican__handle_data__downstream__2hop_92a5d8
getpelican/pelican
downstream
2
{ "hop_1": [ "getoffset", "add_last_word" ], "hop_1_files": [ "private/tmp/repos/getpelican__pelican/pelican/utils.py", "private/tmp/repos/getpelican__pelican/pelican/utils.py" ], "hop_2": [ "add_word" ], "hop_2_files": [ "private/tmp/repos/getpelican__pelican/pelican/utils.py" ]...
{ "anchor": "handle_data", "anchor_file": "private/tmp/repos/getpelican__pelican/pelican/utils.py", "anchor_source": "def handle_data(self, data: str) -> None:\n word_end = 0\n offset = self.getoffset()\n\n while self.words_found < self.max_words:\n match = self._word_regex.search(...
colinhacks__zod__partial__downstream__2hop_084389
colinhacks/zod
downstream
2
{ "hop_1": [ "ZodObject", "constructor", "optional" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ], "hop_2": [ ...
{ "anchor": "partial", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "anchor_source": "partial(mask?: any) {\n const newShape: any = {};\n\n for (const key of util.objectKeys(this.shape)) {\n const fieldSchema = this.shape[key]!;\n\n if (mask && !mask[key]) {\n ...
getpelican__pelican__generate_context__downstream__1hop_82f914
getpelican/pelican
downstream
1
{ "calls": [ "_add_failed_source_path", "_update_context", "add_source_path", "add_static_links", "get_files", "_process" ], "call_files": [ "private/tmp/repos/getpelican__pelican/pelican/generators.py", "private/tmp/repos/getpelican__pelican/pelican/generators.py", "private/tm...
{ "anchor": "generate_context", "anchor_file": "private/tmp/repos/getpelican__pelican/pelican/generators.py", "anchor_source": "def generate_context(self):\n all_pages = []\n hidden_pages = []\n draft_pages = []\n for f in self.get_files(\n self.settings[\"PAGE_PATHS\"], exc...
colinhacks__zod__duration__downstream__2hop_9edb25
colinhacks/zod
downstream
2
{ "hop_1": [ "_isoDuration" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/api.ts" ], "hop_2": [ "normalizeParams" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/util.ts" ] }
{ "anchor": "duration", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/classic/iso.ts", "anchor_source": "export function duration(params?: string | core.$ZodISODurationParams): ZodISODuration {\n return core._isoDuration(ZodISODuration, params);\n}", "result_size": 1, "created_at": "2...
immerjs__immer__updateDraftInParent__upstream__2hop_e8dfc0
immerjs/immer
upstream
2
{ "hop_1": [ "registerChildFinalizationCallback", "childCleanup", "handleCrossReference", "crossReferenceCleanup" ], "hop_1_files": [ "private/tmp/repos/immerjs__immer/src/core/finalize.ts", "private/tmp/repos/immerjs__immer/src/core/finalize.ts", "private/tmp/repos/immerjs__immer/src/...
{ "anchor": "updateDraftInParent", "anchor_file": "private/tmp/repos/immerjs__immer/src/core/finalize.ts", "anchor_source": "export function updateDraftInParent(\n\tparent: ImmerState,\n\tdraftValue: any,\n\tfinalizedValue: any,\n\toriginalKey?: string | number | symbol\n): void {\n\tconst parentCopy = latest(par...
colinhacks__zod___default__downstream__2hop_7a6171
colinhacks/zod
downstream
2
{ "hop_1": [ "shallowClone" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/util.ts" ], "hop_2": [ "isPlainObject" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/util.ts" ] }
{ "anchor": "_default", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v4/core/api.ts", "anchor_source": "export function _default<T extends schemas.$ZodObject>(\n Class: util.SchemaClass<schemas.$ZodDefault>,\n innerType: T,\n defaultValue: util.NoUndefined<core.output<T>> | (() => util.No...
psf__black__do_transform__downstream__2hop_b3fd0a
psf/black
downstream
2
{ "hop_1": [ "CannotTransform", "_merge_string_group", "_remove_backslash_line_continuation_chars" ], "hop_1_files": [ "private/tmp/repos/psf__black/src/black/trans.py", "private/tmp/repos/psf__black/src/black/trans.py", "private/tmp/repos/psf__black/src/black/trans.py" ], "hop_2": [ ...
{ "anchor": "do_transform", "anchor_file": "private/tmp/repos/psf__black/src/black/trans.py", "anchor_source": "def do_transform(\n self, line: Line, string_indices: list[int]\n ) -> Iterator[TResult[Line]]:\n new_line = line\n\n rblc_result = self._remove_backslash_line_continuation_chars...
sindresorhus__got___writeChunksToRequest__downstream__1hop_4432c7
sindresorhus/got
downstream
1
{ "calls": [ "_isRequestStale", "_writeRequest" ], "call_files": [ "private/tmp/repos/got/source/core/index.ts", "private/tmp/repos/got/source/core/index.ts" ] }
{ "anchor": "_writeChunksToRequest", "anchor_file": "private/tmp/repos/got/source/core/index.ts", "anchor_source": "private async _writeChunksToRequest(buffer: Uint8Array, request: ClientRequest): Promise<void> {\n\t\tconst chunkSize = 65_536; // 64 KB\n\t\tconst isStale = () => this._isRequestStale(request);\n\n...
pytest-dev__pytest__derive_importpath__downstream__1hop_816a86
pytest-dev/pytest
downstream
1
{ "calls": [ "resolve", "annotated_getattr" ], "call_files": [ "private/tmp/repos/pytest-dev__pytest/src/_pytest/monkeypatch.py", "private/tmp/repos/pytest-dev__pytest/src/_pytest/monkeypatch.py" ] }
{ "anchor": "derive_importpath", "anchor_file": "private/tmp/repos/pytest-dev__pytest/src/_pytest/monkeypatch.py", "anchor_source": "def derive_importpath(import_path: str, raising: bool) -> tuple[str, object]:\n if not isinstance(import_path, str) or \".\" not in import_path:\n raise TypeError(f\"must ...
trpc__trpc__mutation__upstream__1hop_bb7bd0
trpc/trpc
upstream
1
{ "calls": [ "trpcMutationOptions", "experimental_createActionHook", "createUtilityFunctions", "useAction", "setMutationDefaults" ], "call_files": [ "private/tmp/repos/trpc__trpc/packages/tanstack-react-query/src/internals/mutationOptions.ts", "private/tmp/repos/trpc__trpc/packages/nex...
{ "anchor": "mutation", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/internals/TRPCUntypedClient.ts", "anchor_source": "public mutation(path: string, input?: unknown, opts?: TRPCRequestOptions) {\n return this.requestAsPromise<unknown, unknown>({\n type: 'mutation',\n path,\n ...
sindresorhus__got__getRequestFunction__downstream__2hop_276a47
sindresorhus/got
downstream
2
{ "hop_1": [ "#getFallbackRequestFunction", "#callFallbackRequest", "#resolveRequestWithFallback" ], "hop_1_files": [ "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts", "private/tmp/repos/got/source/core/options.ts" ], "hop_2": [ "#resol...
{ "anchor": "getRequestFunction", "anchor_file": "private/tmp/repos/got/source/core/options.ts", "anchor_source": "getRequestFunction() {\n\t\tconst {request: customRequest} = this.#internals;\n\n\t\tif (!customRequest) {\n\t\t\treturn this.#getFallbackRequestFunction();\n\t\t}\n\n\t\tconst requestWithFallback: R...
paramiko__paramiko__put__downstream__2hop_5bef3b
paramiko/paramiko
downstream
2
{ "hop_1": [ "putfo" ], "hop_1_files": [ "private/tmp/repos/paramiko/paramiko/sftp_client.py" ], "hop_2": [ "SFTPClient", "_transfer_with_callback", "stat" ], "hop_2_files": [ "private/tmp/repos/paramiko/paramiko/sftp_client.py", "private/tmp/repos/paramiko/paramiko/sftp_client...
{ "anchor": "put", "anchor_file": "private/tmp/repos/paramiko/paramiko/sftp_client.py", "anchor_source": "def put(self, localpath, remotepath, callback=None, confirm=True):\n \"\"\"\n Copy a local file (``localpath``) to the SFTP server as ``remotepath``.\n Any exception raised by operations ...
scrapy__scrapy__spider_closed__downstream__2hop_9d84fe
scrapy/scrapy
downstream
2
{ "hop_1": [ "log" ], "hop_1_files": [ "private/tmp/repos/scrapy__scrapy/scrapy/extensions/periodic_log.py" ], "hop_2": [ "log_delta", "log_timing", "log_crawler_stats" ], "hop_2_files": [ "private/tmp/repos/scrapy__scrapy/scrapy/extensions/periodic_log.py", "private/tmp/repos/...
{ "anchor": "spider_closed", "anchor_file": "private/tmp/repos/scrapy__scrapy/scrapy/extensions/periodic_log.py", "anchor_source": "def spider_closed(self, spider: Spider, reason: str) -> None:\n self.log()\n if self.task and self.task.running:\n self.task.stop()", "result_size": 3, "...
trpc__trpc__attempt__downstream__2hop_0976a8
trpc/trpc
downstream
2
{ "hop_1": [ "opWithLastEventId", "subscribe" ], "hop_1_files": [ "private/tmp/repos/trpc__trpc/packages/client/src/links/retryLink.ts", "private/tmp/repos/trpc__trpc/packages/server/src/observable/types.ts" ], "hop_2": [ "inputWithTrackedEventId" ], "hop_2_files": [ "private/tmp/r...
{ "anchor": "attempt", "anchor_file": "private/tmp/repos/trpc__trpc/packages/client/src/links/retryLink.ts", "anchor_source": "function attempt(attempts: number) {\n const op = opWithLastEventId();\n\n next$ = callOpts.next(op).subscribe({\n error(error) {\n const shouldR...
trpc__trpc__onSuccess__downstream__1hop_18a873
trpc/trpc
downstream
1
{ "calls": [ "generateEntrypoints" ], "call_files": [ "private/tmp/repos/trpc__trpc/scripts/entrypoints.ts" ] }
{ "anchor": "onSuccess", "anchor_file": "private/tmp/repos/trpc__trpc/packages/tanstack-react-query/tsdown.config.ts", "anchor_source": "onSuccess: async () => {\n const start = Date.now();\n const { generateEntrypoints } = await import(\n '../../scripts/entrypoints.js'\n );\n await generateEntry...
colinhacks__zod__isOptional__downstream__2hop_8f6f39
colinhacks/zod
downstream
2
{ "hop_1": [ "safeParse" ], "hop_1_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ], "hop_2": [ "_parseSync" ], "hop_2_files": [ "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts" ] }
{ "anchor": "isOptional", "anchor_file": "private/tmp/repos/colinhacks__zod/packages/zod/src/v3/types.ts", "anchor_source": "isOptional(): boolean {\n return this.safeParse(undefined).success;\n }", "result_size": 1, "created_at": "2026-03-20T17:18:06.594501+00:00" }
sindresorhus__got__flush__upstream__1hop_dad778
sindresorhus/got
upstream
1
{ "calls": [ "_beforeError", "asPromise", "fn" ], "call_files": [ "private/tmp/repos/got/source/core/index.ts", "private/tmp/repos/got/source/as-promise/index.ts", "private/tmp/repos/got/benchmark/index.ts" ] }
{ "anchor": "flush", "anchor_file": "private/tmp/repos/got/source/core/index.ts", "anchor_source": "async flush() {\n\t\tif (this._flushed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._flushed = true;\n\n\t\ttry {\n\t\t\tawait this._finalizeBody();\n\n\t\t\tif (this.destroyed) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tawait t...
End of preview. Expand in Data Studio

GraphCode-Bench-500-v0

GraphCode-Bench is a benchmark for evaluating LLMs on call-graph reasoning — given a function in a real-world repository, can a model identify which functions call it (upstream) or which functions it calls (downstream), across 1 and 2 hops?

Models are evaluated agentically: they receive read-only filesystem tools (list_directory, read_file, search_in_file) and up to 10 turns to explore the codebase before producing an answer.

Dataset summary

Split Records Repos Languages
train (bench500) 483 22 Python, TypeScript

Stratification: 5 repos × 2 question types (upstream/downstream) × 2 hop depths (1-hop/2-hop).

Task definition

Each record contains:

  • anchor: a named function in a real open-source repository
  • question_type: upstream (who calls this?) or downstream (what does this call?)
  • hop_depth: 1 (direct callers/callees) or 2 (one level further)
  • gold: the ground-truth set of function names at each hop level (extracted via LSP)

Models must enumerate the correct function names. Scoring uses set F1 against the gold answer.

Record schema

{
  "sample_id": "psf__requests__send__upstream__1hop_abc123",
  "repo": "psf/requests",
  "question_type": "upstream",
  "hop_depth": 1,
  "gold": {
    "hop_1": ["mount", "request"],
    "hop_1_files": ["requests/sessions.py"]
  },
  "metadata": {
    "anchor": "send",
    "anchor_file": "requests/adapters.py",
    "anchor_source": "def send(self, request, ...):",
    "result_size": 4,
    "created_at": "2026-03-20T16:58:18.104721+00:00",
    "file_content": "..."
  }
}

Repositories included

Python (250 samples): psf/requests, pallets/flask, pallets/click, scrapy/scrapy, celery/celery, encode/httpx, pytest-dev/pytest, psf/black, PyCQA/flake8, rq/rq, paramiko/paramiko

TypeScript (233 samples): sindresorhus/got, colinhacks/zod, trpc/trpc, immerjs/immer, node-fetch/node-fetch

Pipeline

Ground truth is extracted by:

  1. Running basedpyright / typescript-language-server over each repo via LSP
  2. Walking call edges from the anchor to the requested depth
  3. Applying 15 quality filters (no builtins, no generics, minimum result size, etc.)

See the companion paper for full pipeline details.

Evaluation results (v0)

Model F1 EM Pass@0.5 Avg Turns
GPT-5.4-nano (API)† 0.364 0.170 0.400 6.19
Qwen3-Coder-30B-A3B 0.351 0.126 0.369 7.29
GPT-OSS-20B 0.313 0.116 0.362 7.72
Mistral-Small-24B 0.199 0.066 0.211 5.05

† Closed model, shown for reference. Open-weight models evaluated via vLLM on HPC cluster.

Key finding: 2-hop questions are 3–4× harder than 1-hop (Qwen3: F1=0.546 at 1-hop vs 0.151 at 2-hop).

Citation

@misc{graphcodebench2026,
  title   = {GraphCode-Bench: Evaluating LLMs on Agentic Call-Graph Reasoning},
  author  = {Rossi, Vittorio},
  year    = {2026},
  url     = {https://huggingface.co/datasets/VittorioRossi/GraphCode-Bench-500-v0}
}

License

Apache 2.0. The source code snippets included in anchor_source and file_content fields are derived from their respective open-source repositories under their original licenses.

Downloads last month
21