Datasets:
repo stringclasses 39
values | buggy_commit stringlengths 40 40 | bug_issue int64 846 144k | solve_pr int64 1.05k 144k | call_graph dict | graph_spec stringlengths 177 4.65k |
|---|---|---|---|---|---|
ClickHouse/ClickHouse | 4ce893869dd3ef1fdf90b0129da95e620bf4999d | 129,940 | 130,328 | {
"nodes": [
{
"id": "src/WindowFunctions/Aggregate/AggregateState.cpp::DB::AggregateState::AggregateState"
},
{
"id": "src/WindowFunctions/Aggregate/AggregateState.cpp::DB::AggregateState::add"
}
],
"edges": []
} | `AggregateState` initializes the state for an aggregate function used by window-function processing. Its `add` method supplies a range of window arguments to that aggregate state, connecting window rows with the aggregate function’s accumulated result. |
ClickHouse/ClickHouse | 733e3e5d4830133e40bb1fa6693eeab7e66a888e | 129,967 | 129,978 | {
"nodes": [
{
"id": "src/Storages/ObjectStorage/DataLakes/HudiMetadata.cpp::DB::HudiMetadata::getDataFilesImpl"
},
{
"id": "src/Storages/ObjectStorage/DataLakes/HudiMetadata.cpp::HudiMetadata::getDataFiles"
},
{
"id": "src/Storages/ObjectStorage/DataLakes/HudiMetadata.cpp::HudiM... | These functions support ClickHouse’s read-only access to Apache Hudi tables, whose data resides in files in object storage. `HudiMetadata::getDataFilesImpl` and `HudiMetadata::getDataFiles` provide the table’s data-file paths, while `HudiMetadata::iterate` exposes those files through the data-lake interface’s object it... |
ClickHouse/ClickHouse | ad9d84dc7abb316ffa551e39d063b1a7edad2afd | 130,000 | 130,080 | {
"nodes": [
{
"id": "src/Processors/Formats/Impl/Parquet/SchemaConverter.cpp::DB::Parquet::SchemaConverter::processSubtreeArrayOuter"
},
{
"id": "src/Processors/Formats/Impl/Parquet/SchemaConverter.cpp::DB::Parquet::SchemaConverter::processSubtreeMap"
},
{
"id": "src/Processors/... | These functions convert Parquet schema subtrees into ClickHouse schema information and decoding metadata for schema inference and reading. Within this scope, `processSubtree` coordinates subtree conversion, while `processSubtreeArrayOuter`, `processSubtreeMap`, and `processSubtreeTuple` cover nested collections, key-va... |
ClickHouse/ClickHouse | 46ab3dad27eb8b9367cf81fef4570b4bb230709f | 130,020 | 130,102 | {
"nodes": [
{
"id": "src/Processors/Formats/Impl/Parquet/ReadManager.cpp::ReadManager::init"
},
{
"id": "src/Processors/Formats/Impl/Parquet/Reader.cpp::Reader::prefilterAndInitRowGroups"
},
{
"id": "src/Processors/Formats/Impl/Parquet/SchemaConverter.cpp::DB::Parquet::SchemaCon... | These functions prepare ClickHouse to read Parquet, a columnar storage format, by initializing read management, preparing and prefiltering row groups, and translating file schema information into ClickHouse column types and decoding information. The schema-conversion functions interpret nested schema elements represent... |
ClickHouse/ClickHouse | 46ab3dad27eb8b9367cf81fef4570b4bb230709f | 130,032 | 130,140 | {
"nodes": [
{
"id": "src/Processors/Formats/Impl/AvroRowInputFormat.cpp::DB::AvroRowInputFormat::readPrefix"
},
{
"id": "src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp::DB::NativeORCBlockInputFormat::read"
},
{
"id": "src/Processors/Formats/Impl/ORC/Reader.cpp::DB::OR... | These functions support reading file data into ClickHouse: the `Avro` prefix reader prepares row-oriented input, while the `ORC` reader construction, tail reading, batch reading, and input-format reading cover file metadata and delivery of columnar data as batches or chunks. The object-storage functions create file rea... |
ClickHouse/ClickHouse | 7b5f2bf328f9fd60224f1bae1d1b90e1a448140f | 130,040 | 130,158 | {
"nodes": [
{
"id": "src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFilesPruning.cpp::DB::Iceberg::buildPartitionKeyFromSpec"
},
{
"id": "src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestListPruning.cpp::DB::Iceberg::ManifestListPruner::ManifestListPruner"
}
],
"edges": [
... | `buildPartitionKeyFromSpec` translates an Iceberg partition specification and schema context into a partition-key description for pruning. `ManifestListPruner::ManifestListPruner` prepares manifest-level pruning from partition specifications, schema information, and a query filter, using that partition-key description ... |
angular/angular | a0702f08bd10f31781ebe45c0b8b5288ec9dc57c | 71,551 | 71,552 | {
"nodes": [
{
"id": "packages/router/src/statemanager/navigation_state_manager.ts::NavigationStateManager::handleNavigate"
}
],
"edges": []
} | NavigationStateManager.handleNavigate receives browser Navigation API events and serves as the Angular Router’s core navigation interception point. Its role connects browser navigation with the Router’s management of application navigation and browser state. |
angular/angular | 37563fc32267fd0fcbdff8caf98862962e5d46b5 | 71,596 | 71,597 | {
"nodes": [
{
"id": "packages/router/src/statemanager/navigation_state_manager.ts::NavigationStateManager::handleNavigate"
}
],
"edges": []
} | NavigationStateManager.handleNavigate handles browser Navigation API NavigateEvent objects and serves as the Angular Router’s core navigation interception point. It connects browser navigation events with router-managed single-page application navigation as part of the Router’s integration with native browser navigatio... |
angular/angular | 9e99093bfe342e79c314b57b67d819cf4a3fd3cb | 71,621 | 71,753 | {
"nodes": [
{
"id": "packages/forms/signals/src/field/context.ts::FieldNodeContext::valueOf"
}
],
"edges": []
} | In Angular Signal Forms, FieldNodeContext.valueOf takes a schema path and returns the current value of the field it identifies. This lets reactive form rules, such as validators, depend on values from other fields in the same form. |
angular/angular | 8260542ce03780d158638723ccaf7f52e9708da1 | 71,660 | 71,661 | {
"nodes": [
{
"id": "packages/core/src/render3/component_ref.ts::ComponentFactory::create"
},
{
"id": "packages/core/src/render3/component_ref.ts::ComponentFactory::createComponentRef"
},
{
"id": "packages/core/src/render3/instructions/element.ts::ɵɵelement"
},
{
"... | These functions support Angular component creation and compiled template rendering by producing component references, creating elements and logical containers, and declaring embedded templates. Their directive setup responsibilities connect those hosts with matched directives and prepare directive instantiation and pub... |
angular/angular | 26f22e5423a062edc89c0675372f54a1cfc1262b | 71,849 | 71,862 | {
"nodes": [
{
"id": "packages/router/src/statemanager/state_manager.ts::HistoryStateManager::handleRouterEvent"
},
{
"id": "packages/router/src/statemanager/state_manager.ts::HistoryStateManager::restoreHistory"
}
],
"edges": [
{
"source": "packages/router/src/statemanager/s... | These methods manage the relationship between Angular Router navigation and browser history, which records visited locations. `handleRouterEvent` receives router navigation events and the current navigation context to coordinate state management, while `restoreHistory` provides rollback of the browser URL to its state ... |
ansible/ansible | 0a5cc80ce22debfe9879ab95e3d332522b3ea6ec | 17,587 | 71,641 | {
"nodes": [
{
"id": "lib/ansible/module_utils/common/sys_info.py::get_distribution"
},
{
"id": "lib/ansible/module_utils/common/sys_info.py::get_distribution_version"
},
{
"id": "lib/ansible/module_utils/urls.py::fetch_url"
}
],
"edges": [
{
"source": "lib/ansi... | `get_distribution` must provide a stable, display-style distribution name from the platform identifier, mapping Linux `amzn` to `Amazon` and `rhel` to `Redhat`, and yielding `OtherLinux` when Linux has no identifiable distribution while preserving the detected value otherwise. `get_distribution_version` must return the... |
ansible/ansible | 96905120698e3118d8bafaee5ebe8f83d2bbd607 | 58,184 | 73,708 | {
"nodes": [
{
"id": "lib/ansible/plugins/strategy/__init__.py::StrategyBase::_execute_meta"
},
{
"id": "lib/ansible/plugins/strategy/free.py::StrategyModule::run"
},
{
"id": "lib/ansible/plugins/strategy/linear.py::StrategyModule::run"
}
],
"edges": [
{
"source... | These functions govern Ansible play execution, where strategy plugins coordinate tasks across managed hosts: the free and linear run methods provide independent host progress and coordinated host-batch execution, respectively, using play iteration and execution context. Both strategies share _execute_meta to execute me... |
ansible/ansible | 20209c508f13b018b8f44f77749001979aa5f048 | 64,113 | 70,624 | {
"nodes": [
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_connect"
},
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_kerb_auth"
},
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_winrm_connect"
},
{
"id": "lib/ansible... | The WinRM connection scope must establish a usable protocol and UTF-8 shell only when needed, deriving the configured endpoint (including IPv6 formatting), transport order, timeouts, and authentication; managed Kerberos must obtain a private ticket with delegation options and never expose the password in diagnostics. C... |
ansible/ansible | bf7d4ce260dc4ffc6074b2a392b9ff4d3794308b | 65,386 | 74,147 | {
"nodes": [
{
"id": "lib/ansible/cli/playbook.py::PlaybookCLI::run"
},
{
"id": "lib/ansible/executor/playbook_executor.py::PlaybookExecutor::run"
},
{
"id": "lib/ansible/playbook/__init__.py::Playbook::_load_playbook_data"
},
{
"id": "lib/ansible/playbook/__init__.... | The scope must load each requested playbook through the executor, resolving paths (including collection-qualified and relative imports) with the loader’s basedir correctly set and restored. A playbook is valid only when its source is a non-empty list of mapping entries; ordinary entries become validated Play objects, w... |
ansible/ansible | 96905120698e3118d8bafaee5ebe8f83d2bbd607 | 66,414 | 73,708 | {
"nodes": [
{
"id": "lib/ansible/plugins/connection/ssh.py::Connection::reset"
}
],
"edges": []
} | Connection.reset provides the SSH connection plugin’s reset operation, interrupting the persistent SSH connection used by Ansible to communicate with a target machine. Persistent SSH connections allow communication to be reused across operations; reset serves as a connection lifecycle control. |
ansible/ansible | 03320466995a91f8a4d311e66cdf3eaee3f44934 | 69,848 | 72,208 | {
"nodes": [
{
"id": "lib/ansible/executor/play_iterator.py::PlayIterator::_get_next_task_from_state"
},
{
"id": "lib/ansible/playbook/block.py::Block::_load_always"
},
{
"id": "lib/ansible/playbook/block.py::Block::_load_block"
},
{
"id": "lib/ansible/playbook/bloc... | The scope must preserve Ansible’s task/block execution semantics: block, rescue, and always sections are parsed into task objects while retaining play, parent-block, role, handler, variable, and loader context, with malformed structures rejected as parser errors; task lists must distinguish nested blocks and task/role ... |
ansible/ansible | 20209c508f13b018b8f44f77749001979aa5f048 | 70,134 | 70,610 | {
"nodes": [
{
"id": "hacking/test-module.py::boilerplate_module"
},
{
"id": "hacking/test-module.py::main"
},
{
"id": "lib/ansible/executor/module_common.py::InternalRedirectModuleInfo::__init__"
},
{
"id": "lib/ansible/executor/module_common.py::_find_module_utils... | These functions support Ansible’s controller-side action plugins, which coordinate playbook tasks with executable modules on managed hosts, and a standalone module development utility. Their shared responsibilities include preparing module code, arguments and utility dependencies, executing modules, and obtaining remot... |
ansible/ansible | 381bd1a575ff830cbbe397379b80d1a95683733e | 72,918 | 73,864 | {
"nodes": [
{
"id": "lib/ansible/plugins/action/package.py::ActionModule::run"
}
],
"edges": []
} | ActionModule.run handles Ansible’s generic operating-system package operations, providing a common task interface across systems with different package managers. It coordinates execution through the underlying package-manager module using the task’s package-management arguments and execution context, and returns the ta... |
ansible/ansible | 79f67ed56116be11b1c992fade04acf06d9208d1 | 74,397 | 78,569 | {
"nodes": [
{
"id": "lib/ansible/galaxy/api.py::GalaxyAPI::_call_galaxy"
},
{
"id": "lib/ansible/galaxy/collection/concrete_artifact_manager.py::ConcreteArtifactsManager::get_galaxy_artifact_path"
},
{
"id": "lib/ansible/galaxy/collection/concrete_artifact_manager.py::_download_... | This scope provides a consistent HTTP(S)/FTP transport contract for Galaxy, collection artifacts, package keys/repositories, downloads, URI operations, and URL lookups: per-call settings override reusable defaults while preserving proxy, timeout, TLS/CA and client-certificate validation, credentials (including optional... |
ansible/ansible | 03cb40e712897d411efed3b901773773370e25cd | 75,072 | 75,078 | {
"nodes": [
{
"id": "lib/ansible/plugins/filter/core.py::to_nice_yaml"
},
{
"id": "lib/ansible/plugins/filter/core.py::to_yaml"
}
],
"edges": []
} | These Ansible template filters serialize structured data into YAML text, a textual format for representing structured information that can also aid debugging. `to_yaml` provides general YAML formatting, while `to_nice_yaml` emphasizes human-readable presentation. |
ansible/ansible | 1491ec8019b064374145dace41b1320e04fb494b | 80,252 | 80,251 | {
"nodes": [
{
"id": "lib/ansible/plugins/lookup/password.py::LookupModule::run"
},
{
"id": "lib/ansible/plugins/lookup/password.py::_parse_content"
}
],
"edges": [
{
"source": "lib/ansible/plugins/lookup/password.py::LookupModule::run",
"target": "lib/ansible/plugins/l... | LookupModule.run provides Ansible’s password lookup, accepting password-file references and lookup settings to retrieve or generate passwords for playbook use and return password strings. _parse_content interprets stored password-file content into a password and salt, supporting the lookup’s file-based password managem... |
ansible/ansible | 1491ec8019b064374145dace41b1320e04fb494b | 80,256 | 80,257 | {
"nodes": [
{
"id": "lib/ansible/modules/iptables.py::main"
}
],
"edges": []
} | `main` must validate module arguments and select the IPv4 or IPv6 iptables executable, requiring a chain except for table flushes and enforcing option dependencies (including logging and TEE gateway rules). It must adapt lock-wait usage to the detected iptables version, then apply the requested operation with clear pre... |
ansible/ansible | 5af5b4b6c8697b8cdd68f9591beba16f5a1018e6 | 81,092 | 81,520 | {
"nodes": [
{
"id": "lib/ansible/modules/unarchive.py::ZipArchive::is_unarchived"
}
],
"edges": []
} | `ZipArchive.is_unarchived` must determine whether the archive’s selected members (after include/exclude filtering) are already represented under the destination with matching entry type (regular file, directory, or symlink), file content (size and CRC), modification-time policy (`keep_newer`), permissions, and requeste... |
ansible/ansible | 5812cabaf53a7c972c73a4e45faa57032e5c1186 | 81,994 | 81,995 | {
"nodes": [
{
"id": "lib/ansible/cli/playbook.py::PlaybookCLI::run"
},
{
"id": "lib/ansible/executor/playbook_executor.py::PlaybookExecutor::run"
},
{
"id": "lib/ansible/executor/task_executor.py::TaskExecutor::_calculate_delegate_to"
},
{
"id": "lib/ansible/execut... | These functions support Ansible playbook execution: preparing task blocks, role definitions and dynamic inclusions, coordinating plays and host tasks through execution strategies, and collecting execution results. They supply contextual variables and delegation information, supporting tasks assigned to another host, an... |
ansible/ansible | 2e60bef85587f88d1d851afea30e656f0253580f | 82,075 | 83,403 | {
"nodes": [
{
"id": "lib/ansible/module_utils/common/text/formatters.py::human_to_bytes"
},
{
"id": "lib/ansible/module_utils/common/validation.py::check_type_bits"
},
{
"id": "lib/ansible/module_utils/common/validation.py::check_type_bytes"
},
{
"id": "lib/ansible... | These functions convert human-readable data quantities expressed in bit or byte units into integer counts, connecting unit-bearing text with numeric data-size representations. The formatter provides the shared conversion utility, check_type_bits and check_type_bytes expose it for type validation and conversion, and the... |
ansible/ansible | bf9509bf33b2675d73f4abe72bebb91815d284f5 | 82,387 | 82,388 | {
"nodes": [
{
"id": "lib/ansible/config/manager.py::ConfigManager::get_config_value"
},
{
"id": "lib/ansible/config/manager.py::ConfigManager::get_config_value_and_origin"
},
{
"id": "lib/ansible/config/manager.py::ConfigManager::get_plugin_options"
},
{
"id": "lib... | These functions provide access to Ansible configuration settings: get_config_value retrieves a setting’s value, while get_config_value_and_origin also reports its source, making configuration provenance available alongside the setting. get_plugin_options retrieves configuration options for a named plugin, an Ansible ex... |
ansible/ansible | 802e95f5808f9a06c8f4b64c4cb5203abaaa8164 | 83,140 | 83,157 | {
"nodes": [
{
"id": "lib/ansible/module_utils/facts/hardware/linux.py::LinuxHardware::populate"
}
],
"edges": []
} | LinuxHardware.populate gathers Linux host hardware information and returns it as Ansible facts, covering processor, memory, firmware-provided system identity (DMI), and device information. Facts are host attributes exposed as variables for use in playbooks, and this method provides the Linux-specific hardware contribut... |
ansible/ansible | 2a3c93f593f4c0ea11e34b946aa45e5e6f463e76 | 84,731 | 84,735 | {
"nodes": [
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_connect"
},
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_kerb_auth"
},
{
"id": "lib/ansible/plugins/connection/winrm.py::Connection::_winrm_connect"
},
{
"id": "lib/ansible... | The scope must maintain a coherent WinRM session lifecycle: required dependencies and connection options are validated, a protocol and shell are established only when no protocol is active, and the connection is usable only after success. The configured HTTP/HTTPS endpoint (including valid IPv6 formatting) is used, tra... |
ansible/ansible | 8b9ddf554474bd192af27d10930f5587db31d4b2 | 85,085 | 85,119 | {
"nodes": [
{
"id": "lib/ansible/config/manager.py::ensure_type"
},
{
"id": "lib/ansible/plugins/action/template.py::ActionModule::run"
}
],
"edges": [
{
"source": "lib/ansible/plugins/action/template.py::ActionModule::run",
"target": "lib/ansible/config/manager.py::en... | `ensure_type` must leave `None` unchanged, perform the documented boolean, numeric, sequence, mapping, string, and path conversions (including origin-based path resolution and temporary-directory creation), preserve value metadata where applicable, and reject invalid inputs with `ValueError` while passing through unkno... |
apache/dubbo | b73b9d131b31ed43869778abbbe799b8cd0d1d1b | 16,521 | 16,524 | {
"nodes": [
{
"id": "dubbo-common/src/main/java/org/apache/dubbo/common/utils/CompatibleTypeUtils.java::CompatibleTypeUtils::compatibleTypeConvert"
},
{
"id": "dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java::PojoInvocationHandler::invoke"
},
{
"id": "dub... | These functions support type adaptation between generalized object representations and the Java types used by Dubbo service interfaces. PojoUtils.realize and its internal realization functions reconstruct typed objects using target class and generic type information, while PojoInvocationHandler.invoke provides invocati... |
apache/dubbo | 1afcdf7883553d93965cc402a608d3a6c7d4f3cb | 16,559 | 16,560 | {
"nodes": [
{
"id": "dubbo-plugin/dubbo-rest-jaxrs/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/jaxrs/MatrixParamArgumentResolver.java::MatrixParamArgumentResolver::doResolveCollectionValue"
},
{
"id": "dubbo-plugin/dubbo-rest-jaxrs/src/main/java/org/apache/dubbo/rpc/protocol/... | These functions support HTTP request argument binding in Dubbo Triple REST through JAX-RS, Spring, and Dubbo parameter APIs, resolving request data into individual, collection, or map-valued service arguments. Their shared path and matrix utilities retrieve path variables and parse matrix parameters: path variables rep... |
astral-sh/uv | e4c55567ada966de4911513b5c526070e6cddd3f | 22,966 | 22,977 | {
"nodes": [
{
"id": "crates/uv-trampoline/src/bounce.rs::bounce"
},
{
"id": "crates/uv-trampoline/src/bounce.rs::close_handles"
}
],
"edges": [
{
"source": "crates/uv-trampoline/src/bounce.rs::bounce",
"target": "crates/uv-trampoline/src/bounce.rs::close_handles"
}... | `bounce` provides the execution entry point for a Windows trampoline, an executable launcher that delegates to Python to run a script or serve as a Python proxy; its interface distinguishes console and GUI use and does not return. The supplied `close_handles` node has no declaration or documentation in the current repo... |
astropy/astropy | c3319952ebd2a9d4969f6dfb84fc61c84a240cbd | 13,009 | 13,033 | {
"nodes": [
{
"id": "astropy/timeseries/core.py::BaseTimeSeries::_check_required_columns"
},
{
"id": "astropy/timeseries/core.py::BaseTimeSeries::_delay_required_column_checks"
}
],
"edges": [
{
"source": "astropy/timeseries/core.py::BaseTimeSeries::_delay_required_column_ch... | Astropy time series are tables that associate measurements with observation times or time bins through dedicated time-related columns. Within BaseTimeSeries, _check_required_columns supports consistency with required-column contracts, while _delay_required_column_checks provides a context for deferring that validation ... |
astropy/astropy | 6ed769d58d89380ebaa1ef52b300691eefda8928 | 13,235 | 13,236 | {
"nodes": [
{
"id": "astropy/table/table.py::Table::__setitem__"
},
{
"id": "astropy/table/table.py::Table::_convert_data_to_col"
},
{
"id": "astropy/table/table.py::Table::_init_from_list"
},
{
"id": "astropy/table/table.py::Table::_init_from_ndarray"
},
{... | These functions support constructing and modifying Astropy tables, which organize heterogeneous data into named columns with associated metadata. They initialize tables from column lists or NumPy arrays, convert column-like data into supported column objects, and provide assignment, single-column and multiple-column ad... |
astropy/astropy | 0df94ff7097961e92fd7812036a24b145bc13ca8 | 13,488 | 13,579 | {
"nodes": [
{
"id": "astropy/wcs/wcsapi/wrappers/sliced_wcs.py::SlicedLowLevelWCS::world_to_pixel_values"
}
],
"edges": [
{
"source": "astropy/wcs/wcsapi/wrappers/sliced_wcs.py::SlicedLowLevelWCS::world_to_pixel_values",
"target": "astropy/wcs/wcsapi/wrappers/sliced_wcs.py::SlicedLo... | SlicedLowLevelWCS.world_to_pixel_values converts numerical world-coordinate scalars or arrays, expressed in the WCS’s declared units, into pixel-coordinate scalars or arrays for a sliced WCS. World coordinates represent physical quantities associated with data, while pixel coordinates locate positions within it; this m... |
astropy/astropy | 5250b2442501e6c671c6b380536f1edb352602d1 | 13,976 | 13,977 | {
"nodes": [
{
"id": "astropy/units/quantity.py::Quantity::__array_ufunc__"
}
],
"edges": []
} | Quantity ufunc dispatch must determine the operation’s required input conversions and result unit before numerical evaluation, apply those conversions to raw array values, and delegate the ufunc without recursively re-entering Quantity dispatch. It must preserve NumPy’s `out` contract by validating that supplied destin... |
astropy/astropy | cdb66059a2feb44ee49021874605ba90801f9986 | 14,305 | 14,309 | {
"nodes": [
{
"id": "astropy/io/fits/connect.py::is_fits"
}
],
"edges": []
} | `is_fits` is the Table I/O identifier for FITS and must return a boolean using the most reliable available input: when given a readable file object, inspect its first 30 bytes for the exact FITS signature and restore the object’s original stream position; otherwise, when given a path, recognize case-insensitively only ... |
astropy/astropy | fa4e8d1cd279acf9b24560813c8652494ccd5922 | 14,355 | 14,369 | {
"nodes": [
{
"id": "astropy/units/format/cds.py::CDS::_make_parser"
}
],
"edges": []
} | CDS._make_parser must construct and return a parser for CDS unit expressions that evaluates valid syntax into Astropy unit objects: a standalone or multiplied numeric scale may prefix a unit expression; units may be multiplied with `.`, divided (including a leading reciprocal), grouped with parentheses, and raised to s... |
astropy/astropy | cb4a986b1b1faf505ac023638cf51c3b8b652c4b | 14,363 | 14,365 | {
"nodes": [
{
"id": "astropy/io/ascii/qdp.py::QDP::read"
},
{
"id": "astropy/io/ascii/qdp.py::_get_tables_from_qdp_file"
},
{
"id": "astropy/io/ascii/qdp.py::_get_type_from_list_of_lines"
},
{
"id": "astropy/io/ascii/qdp.py::_line_type"
},
{
"id": "as... | These functions support reading Quick and Dandy Plotter (QDP) text into Astropy tables: QDP.read provides the reader interface, _read_table_qdp reads an individual table, and _get_tables_from_qdp_file extracts the tables in a file. _line_type and _get_type_from_list_of_lines classify QDP text and describe its column la... |
astropy/astropy | a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c | 14,507 | 14,508 | {
"nodes": [
{
"id": "astropy/io/fits/card.py::_format_float"
},
{
"id": "astropy/io/fits/card.py::_format_value"
}
],
"edges": [
{
"source": "astropy/io/fits/card.py::_format_value",
"target": "astropy/io/fits/card.py::_format_float"
}
]
} | `_format_value` converts a Python/numpy card value into its fixed-width FITS value-field string, and it delegates float rendering to `_format_float`. Obligations: (1) type dispatch is exclusive and ordered — `str` first, then `bool`/`np.bool_` before any integer test (since bool is an int subtype), then integers (`_is_... |
astropy/astropy | c0a24c1dc957a3b565294213f435fefb2ec99714 | 14,523 | 14,539 | {
"nodes": [
{
"id": "astropy/io/fits/diff.py::TableDataDiff::_diff"
}
],
"edges": []
} | The table-data comparison must compare two table arrays by treating column names case-insensitively, honoring requested ignored fields (with "*" suppressing all further column differences), and separately recording unequal column counts and column definitions while retaining table order for reported one-sided names. It... |
astropy/astropy | d1cf21c7349280adbb1606fab1d7ca5b375add72 | 14,581 | 14,598 | {
"nodes": [
{
"id": "astropy/io/fits/card.py::Card::_fix_value"
},
{
"id": "astropy/io/fits/card.py::Card::_parse_comment"
},
{
"id": "astropy/io/fits/card.py::Card::_parse_value"
},
{
"id": "astropy/io/fits/card.py::Card::_split"
},
{
"id": "astropy/... | A FITS Card must lazily derive stable typed value and comment views from its serialized image: commentary or invalid cards retain their appropriate raw-text semantics, ordinary cards recognize boolean, quoted-string (including escaped quotes), numeric, complex, undefined, record-valued, and continued-long-string forms,... |
astropy/astropy | d0ab1b8264f424178f6d49e29db7f20059cacff9 | 14,978 | 14,995 | {
"nodes": [
{
"id": "astropy/nddata/ccddata.py::decorator::inner"
},
{
"id": "astropy/nddata/mixins/ndarithmetic.py::NDArithmeticMixin::_arithmetic"
},
{
"id": "astropy/nddata/mixins/ndarithmetic.py::NDArithmeticMixin::_arithmetic_mask"
},
{
"id": "astropy/nddata/m... | The scoped nodes implement NDData-style arithmetic dispatch and, for CCDData, a unit-enforcing wrapper. Public operations `add`, `multiply`, and `mean` are thin entry points that must delegate to `_prepare_then_do_arithmetic` with the matching numpy reducing/binary function (`np.add`, `np.multiply`, `np.mean` respectiv... |
astropy/astropy | 732d89c2940156bdc0e200bb36dc38b5e424bcba | 7,335 | 7,336 | {
"nodes": [
{
"id": "astropy/units/decorators.py::QuantityInput::__call__"
}
],
"edges": []
} | QuantityInput.__call__ takes a function and returns a decorated callable that enforces its declared unit requirements for quantity arguments and supports declared output units. In this context, quantities combine values with physical units, and unit compatibility expresses whether they represent compatible physical typ... |
astropy/astropy | a7141cd90019b62688d507ae056298507678c058 | 7,670 | 7,671 | {
"nodes": [
{
"id": "astropy/utils/introspection.py::minversion"
}
],
"edges": []
} | `minversion` checks whether a Python module satisfies a minimum version requirement and returns a Boolean result. It supports dependency compatibility assessment by relating a module’s reported version to a requested version requirement. |
astropy/astropy | 1a4462d72eb03f30dc83a879b1dd57aac8b2c18b | 8,340 | 14,096 | {
"nodes": [
{
"id": "astropy/coordinates/sky_coordinate.py::SkyCoord::__getattr__"
}
],
"edges": []
} | `SkyCoord.__getattr__` must provide a high-level, read-only attribute interface once its underlying coordinate frame is initialized: an alias for the current frame returns the same `SkyCoord`; any globally recognized frame attribute resolves to the underlying frame when that frame defines it, otherwise to the coordinat... |
astropy/astropy | b750a0e6ee76fb6b8a099a4d16ec51977be46bf6 | 8,613 | 8,872 | {
"nodes": [
{
"id": "astropy/units/quantity.py::Quantity::__new__"
}
],
"edges": []
} | `Quantity.__new__` must construct an ndarray-backed quantity whose numeric values and attached unit describe the same physical values as the input: normalize any supplied or discovered unit; parse numeric strings with optional units; use the first unit and convert every member for nonempty sequences of quantities; and,... |
astropy/astropy | a85a0747c54bac75e9c3b2fe436b105ea029d6cf | 8,706 | 8,707 | {
"nodes": [
{
"id": "astropy/io/fits/card.py::Card::_itersubcards"
},
{
"id": "astropy/io/fits/card.py::Card::_parse_comment"
},
{
"id": "astropy/io/fits/card.py::Card::_parse_value"
},
{
"id": "astropy/io/fits/card.py::Card::comment"
},
{
"id": "astr... | FITS card and header access must preserve lazy, repeatable interpretation of raw card images: Card parsing accepts text or bytes with equivalent card content, pads short images, and retains overlength images as logical long-string cards. A long card must split into complete 80-character subcards whose continuation piec... |
caddyserver/caddy | 754078da65b6d5e2901989b8c92d3fd51c3f8a4f | 8,272 | 8,025 | {
"nodes": [
{
"id": "modules/caddyhttp/encode/encode.go::AcceptedEncodings"
},
{
"id": "modules/caddyhttp/encode/encode.go::Encode::ServeHTTP"
},
{
"id": "modules/caddyhttp/fileserver/staticfiles.go::FileServer::ServeHTTP"
}
],
"edges": [
{
"source": "modules/c... | These functions support HTTP content-encoding negotiation, which relates client-supported compression formats to response delivery. AcceptedEncodings identifies the encodings supported by a request with client and server preferences taken into account; Encode.ServeHTTP provides response-encoding middleware, while FileS... |
caddyserver/caddy | 71c5812cfeb7ce9ab471d323ccd98e6fb7cf8d26 | 8,283 | 8,288 | {
"nodes": [
{
"id": "modules/caddytls/acmeissuer.go::ACMEIssuer::makeIssuerTemplate"
}
],
"edges": []
} | ACMEIssuer.makeIssuerTemplate prepares a CertMagic ACME issuer template from Caddy’s issuer configuration and context, returning the template and an error status. It supports certificate management through ACME (RFC 8555), the protocol used to automate interactions with certificate authorities. |
caddyserver/caddy | 71c5812cfeb7ce9ab471d323ccd98e6fb7cf8d26 | 8,286 | 8,287 | {
"nodes": [
{
"id": "caddyconfig/httpcaddyfile/tlsapp.go::consolidateAutomationPolicies"
}
],
"edges": []
} | consolidateAutomationPolicies accepts and returns a collection of TLS certificate automation policies, combining equivalent policies for cleaner configuration output. These policies govern automated certificate management, including obtaining, renewing, and revoking managed TLS certificates. |
caddyserver/caddy | eb04ed52be5e66c467e9e614bd917b8bb4150d1b | 8,308 | 8,309 | {
"nodes": [
{
"id": "modules/caddyhttp/reverseproxy/reverseproxy.go::Handler::finalizeResponse"
},
{
"id": "modules/caddyhttp/reverseproxy/reverseproxy.go::Handler::proxyLoopIteration"
},
{
"id": "modules/caddyhttp/reverseproxy/reverseproxy.go::Handler::reverseProxy"
},
... | These functions support reverse proxying: proxyLoopIteration coordinates a proxy attempt, reverseProxy exchanges an HTTP request and response with an upstream backend, and finalizeResponse prepares and copies the response to the client. handleUpgradeResponse handles protocol upgrades for bidirectional communication, wh... |
caddyserver/caddy | fbfc061e70d51f17b8004a71aed88dbd2a41f70e | 8,353 | 8,352 | {
"nodes": [
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::Match"
},
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::MatchWithError"
},
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::selectFile"
}
],
"edges": [
{
"source... | These functions support HTTP request matching based on filesystem existence, connecting request routing with files and directories under a site root. Match and MatchWithError expose a match decision through interfaces without and with an error return, while selectFile supplies their shared file-selection responsibility... |
caddyserver/caddy | e3271947ee053b0c43df2fad88a36728482bc3ff | 8,367 | 8,372 | {
"nodes": [
{
"id": "modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go::parsePHPFastCGI"
}
],
"edges": []
} | parsePHPFastCGI translates the Caddyfile php_fastcgi directive into HTTP handler configuration for serving PHP applications through FastCGI, a protocol connecting a web server to an application responder. It provides a PHP-oriented configuration shortcut using reverse-proxy directive syntax and returns configuration va... |
caddyserver/caddy | 9ea3108377d2abec102866808133c40ac9582162 | 8,390 | 8,391 | {
"nodes": [
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::Match"
},
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::MatchWithError"
},
{
"id": "modules/caddyhttp/fileserver/matcher.go::MatchFile::cleanSplit"
},
{
"id": "modules/caddyhttp... | These functions support HTTP request matching based on filesystem existence: Match and MatchWithError expose a matching decision, with the latter also returning an error. Within that scope, selectFile selects a filesystem candidate under the configured root and selection policy, while cleanSplit normalizes and splits c... |
caddyserver/caddy | 258863f6f6485863f7a12bc9fa02a29472b29ed5 | 8,393 | 8,394 | {
"nodes": [
{
"id": "modules/caddytls/connpolicy.go::ClientAuthentication::ConfigureTLSConfig"
},
{
"id": "modules/caddytls/connpolicy.go::ConnectionPolicies::Provision"
},
{
"id": "modules/caddytls/connpolicy.go::ConnectionPolicy::buildStandardTLSConfig"
}
],
"edges": [... | These functions prepare connection policies governing TLS handshakes: ConnectionPolicies.Provision sets up the policies, and ConnectionPolicy.buildStandardTLSConfig prepares a policy’s standard-library TLS configuration for serving connections. ClientAuthentication.ConfigureTLSConfig applies TLS client authentication s... |
django/django | 36bc47069ce071e80c8129500de3b8664d2058a7 | 11,707 | 13,315 | {
"nodes": [
{
"id": "django/forms/models.py::BaseModelForm::__init__"
},
{
"id": "django/forms/models.py::apply_limit_choices_to_to_formfield"
}
],
"edges": [
{
"source": "django/forms/models.py::BaseModelForm::__init__",
"target": "django/forms/models.py::apply_limit_... | BaseModelForm.__init__ initializes a model-backed form using form data, model-instance context, and form configuration, supporting forms for creating and editing model records. Within that initialization scope, apply_limit_choices_to_to_formfield applies declared choice restrictions to a form field’s queryset, connecti... |
django/django | e1d673c373a7d032060872b690a92fc95496612e | 16,063 | 15,022 | {
"nodes": [
{
"id": "django/contrib/admin/options.py::ModelAdmin::get_search_results"
},
{
"id": "django/contrib/admin/views/autocomplete.py::AutocompleteJsonView::get"
},
{
"id": "django/contrib/admin/views/autocomplete.py::AutocompleteJsonView::get_queryset"
},
{
... | Admin search must operate on the model-admin queryset appropriate to the request and return both the narrowed queryset and an accurate indication of whether relation-spanning lookups can duplicate objects. When search fields and a nonempty term are present, each whitespace-delimited term (with quoted literals kept toge... |
django/django | 361bb8f786f112ee275be136795c0b1ecefff928 | 23,273 | 15,252 | {
"nodes": [
{
"id": "django/core/management/commands/migrate.py::Command::handle"
},
{
"id": "django/db/migrations/executor.py::MigrationExecutor::migrate"
}
],
"edges": [
{
"source": "django/core/management/commands/migrate.py::Command::handle",
"target": "django/db/m... | Django migrations represent model changes that can be applied to or unapplied from a database to evolve its schema. Command.handle provides the management-command entry point for synchronizing database state with models and migrations, delegating migration execution to MigrationExecutor.migrate, which brings the databa... |
django/django | ce69e34bd646558bb44ea92cecfd98b345a0b3e0 | 23,740 | 15,732 | {
"nodes": [
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::_delete_composed_index"
},
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::alter_unique_together"
}
],
"edges": [
{
"source": "django/db/backends/base/schema.py::BaseDatab... | These schema editor functions manage database schema changes involving groups of model fields, including joint uniqueness, where field values must be unique in combination. alter_unique_together updates a model table’s unique constraints to reflect changes in its declared field groups, while _delete_composed_index supp... |
django/django | 8c3bd0b708b488a1f6e8bd8cc6b96569904605be | 25,255 | 14,500 | {
"nodes": [
{
"id": "django/core/management/commands/migrate.py::Command::handle"
},
{
"id": "django/db/migrations/executor.py::MigrationExecutor::_migrate_all_backwards"
},
{
"id": "django/db/migrations/executor.py::MigrationExecutor::migrate"
},
{
"id": "django/d... | The migrate command must validate the selected database’s migration history and reject conflicting targets before executing a non-dry-run plan; it must derive the requested targets, preserve fake/fake-initial choices only when work is planned, and hand migration execution a state representing currently applied migratio... |
django/django | e28671187903e6aca2428374fdd504fca3032aee | 26,431 | 11,477 | {
"nodes": [
{
"id": "django/urls/resolvers.py::RegexPattern::match"
},
{
"id": "django/urls/resolvers.py::URLResolver::resolve"
}
],
"edges": [
{
"source": "django/urls/resolvers.py::URLResolver::resolve",
"target": "django/urls/resolvers.py::RegexPattern::match"
}... | Django URL configurations map URL path expressions to views, with captured path components supplying view arguments. RegexPattern.match provides regular-expression matching of URL paths, while URLResolver.resolve uses URL configuration patterns to identify the corresponding view and produce resolution information conta... |
django/django | 335c9c94acf263901fb023404408880245b0c4b4 | 26,813 | 12,406 | {
"nodes": [
{
"id": "django/db/models/fields/related.py::ForeignKey::formfield"
},
{
"id": "django/forms/models.py::ModelChoiceField::__init__"
}
],
"edges": [
{
"source": "django/db/models/fields/related.py::ForeignKey::formfield",
"target": "django/db/models/fields/r... | Form fields for relationships must reject unresolved string related models; otherwise they must produce a model-choice field over the related model’s default manager on the requested database alias, identify submitted values by the foreign key’s target field, preserve caller-supplied overrides where supported, and requ... |
django/django | 882f99031e6e447384bfe22044cc980567d2f40d | 28,054 | 16,502 | {
"nodes": [
{
"id": "django/core/servers/basehttp.py::ServerHandler::cleanup_headers"
}
],
"edges": []
} | ServerHandler.cleanup_headers is a response-header preparation hook in Django’s development HTTP server. It operates within the server’s WSGI handling, where WSGI provides the standard interface between Python web applications and web servers, and HTTP response headers carry response metadata. |
django/django | c84b91b7603e488f7171fdff8f08368ef3d6b856 | 28,373 | 11,138 | {
"nodes": [
{
"id": "django/db/backends/mysql/operations.py::DatabaseOperations::_convert_field_to_tz"
},
{
"id": "django/db/backends/mysql/operations.py::DatabaseOperations::datetime_cast_date_sql"
},
{
"id": "django/db/backends/mysql/operations.py::DatabaseOperations::datetime... | Datetime date/time casts, extraction, and truncation must evaluate the stored timestamp in the requested timezone whenever timezone support is enabled and that timezone differs from the connection timezone; otherwise they must retain the original value. Each backend must then return the semantically correct date, time,... |
django/django | d687febce5868545f99974d2499a91f81a32fef5 | 28,384 | 16,661 | {
"nodes": [
{
"id": "django/contrib/admin/options.py::BaseModelAdmin::lookup_allowed"
},
{
"id": "django/contrib/admin/views/main.py::ChangeList::get_filters"
},
{
"id": "django/contrib/admin/views/main.py::ChangeList::get_queryset"
}
],
"edges": [
{
"source": ... | Admin changelist filtering must validate every non-ignored query-string lookup value before it affects the queryset: local or unresolvable-field lookups and ForeignKey limit-choice parameters remain permissible, while multi-relation traversals are permissible only when represented by the configured list filters or date... |
django/django | 179ee13eb37348cd87169a198aec18fedccc8668 | 28,607 | 14,053 | {
"nodes": [
{
"id": "django/contrib/staticfiles/management/commands/collectstatic.py::Command::collect"
},
{
"id": "django/contrib/staticfiles/management/commands/collectstatic.py::Command::handle"
},
{
"id": "django/contrib/staticfiles/storage.py::HashedFilesMixin::post_process... | Command.handle provides the management-command entry point, and Command.collect performs the collection of static assets into a shared deployment location. HashedFilesMixin.post_process prepares collected assets for cache-busting by producing content-hashed filenames and updating references between assets, reporting fi... |
django/django | f0adf3b9b7a19cdee05368ff0c0c2d087f011180 | 28,690 | 11,848 | {
"nodes": [
{
"id": "django/contrib/staticfiles/views.py::serve"
},
{
"id": "django/middleware/http.py::ConditionalGetMiddleware::process_response"
},
{
"id": "django/utils/cache.py::get_conditional_response"
},
{
"id": "django/utils/http.py::parse_http_date"
}... | Static-file serving must be limited to the permitted development context, normalize and safely resolve requested paths, reject missing resources and disallowed directory indexes, and delegate located static assets to the common file-serving behavior. File responses must honor a valid If-Modified-Since value (including ... |
django/django | ec5aa2161d8015a3fe57dcbbfe14200cd18f0a16 | 28,925 | 13,121 | {
"nodes": [
{
"id": "django/db/models/expressions.py::Combinable::__add__"
},
{
"id": "django/db/models/expressions.py::Combinable::__mod__"
},
{
"id": "django/db/models/expressions.py::Combinable::__mul__"
},
{
"id": "django/db/models/expressions.py::Combinable::_... | Arithmetic operators on combinable expressions must construct a CombinedExpression with the matching SQL connector and preserve operand order, including reversed addition, subtraction, and multiplication; non-expression operands must be incorporated as equivalent values, and timedelta operands must preserve duration se... |
django/django | 447980e72ac01da1594dd3373a03ba40b7ee6f80 | 29,224 | 12,708 | {
"nodes": [
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::alter_index_together"
}
],
"edges": []
} | BaseDatabaseSchemaEditor.alter_index_together manages database index changes associated with a model’s index_together setting, taking the model and its old and new index definitions. This setting groups model fields into combined indexes, and the method updates the model’s table indexes to reflect the revised definitio... |
django/django | b9cf764be62e77b4777b3a75ec256f6209a57671 | 29,528 | 10,097 | {
"nodes": [
{
"id": "django/core/validators.py::URLValidator::__call__"
}
],
"edges": [
{
"source": "django/core/validators.py::URLValidator::__call__",
"target": "django/core/validators.py::URLValidator::__call__"
}
]
} | URLValidator.__call__ must either accept a complete URL or raise ValidationError with its configured message and code. It must compare the scheme case-insensitively against the configured scheme list (defaulting to HTTP, HTTPS, FTP, and FTPS), require a syntactically valid authority and optional credentials, port, and ... |
django/django | 4b45b6c8e4d7c9701a332e80d3b1c84209dc36e2 | 29,706 | 11,066 | {
"nodes": [
{
"id": "django/contrib/contenttypes/management/__init__.py::RenameContentType::_rename"
},
{
"id": "django/contrib/contenttypes/management/__init__.py::RenameContentType::rename_backward"
},
{
"id": "django/contrib/contenttypes/management/__init__.py::RenameContentT... | RenameContentType must keep the content-type record for its configured app label aligned with a model rename on the schema editor’s database: forward migration maps old model name to new, while reversal applies the inverse mapping. It must use the migration-provided historical ContentType model and honor migration rout... |
django/django | 55b68de643b5c2d5f0a8ea7587ab3b2966021ccc | 29,744 | 11,333 | {
"nodes": [
{
"id": "django/conf/urls/i18n.py::is_language_prefix_patterns_used"
},
{
"id": "django/contrib/admindocs/views.py::ViewDetailView::_get_view_func"
},
{
"id": "django/core/handlers/base.py::BaseHandler::_get_response"
},
{
"id": "django/core/handlers/ex... | These functions connect Django’s URL configuration—the mapping between URL paths and views—to resolver access, path matching, URL generation, view lookup for administrative documentation, request dispatch, and exception-to-HTTP-response conversion. The common middleware hooks support request filtering and URL normaliza... |
django/django | 14d026cccb144c6877294ba4cd4e03ebf0842498 | 29,834 | 10,554 | {
"nodes": [
{
"id": "django/contrib/admin/templatetags/admin_list.py::date_hierarchy"
},
{
"id": "django/db/models/query.py::QuerySet::aggregate"
},
{
"id": "django/db/models/query.py::QuerySet::count"
},
{
"id": "django/db/models/sql/compiler.py::SQLCompiler::as_s... | The scope must return correct aggregate dictionaries and integer counts for the current QuerySet without mutating its externally observable query semantics: validate aggregate expressions and aliases, reuse a fully populated result cache for count, and represent an empty count as 0. Aggregation must apply filtering, sl... |
django/django | 927c903f3cd25c817c21738328b53991c035b415 | 29,871 | 12,273 | {
"nodes": [
{
"id": "django/db/models/base.py::Model::_set_pk_val"
}
],
"edges": []
} | Model._set_pk_val serves as the setter for a model instance’s pk property, accepting a value to assign to the model’s primary key. A primary key identifies a model record, and pk provides a uniform alias for the model’s primary-key field. |
django/django | c5e373d48cbdd923575956fed477b63d66d9603f | 29,998 | 12,325 | {
"nodes": [
{
"id": "django/db/models/base.py::ModelBase::__new__"
},
{
"id": "django/db/models/options.py::Options::_prepare"
}
],
"edges": []
} | Django models are Python classes that describe stored data and its behavior, while model metadata describes additional model characteristics exposed through the `_meta` API. `ModelBase.__new__` creates model classes from class declarations, and `Options._prepare` prepares a model’s metadata as part of model setup, supp... |
django/django | 838e432e3e5519c5383d12018e6c78f8ec7833c1 | 30,120 | 10,880 | {
"nodes": [
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::_model_indexes_sql"
},
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::add_field"
},
{
"id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::add_index"
},
... | These functions translate Django model, field, relationship, and index definitions into database schema changes and SQL, with Oracle and SQLite support for field alterations and table transformations. The scoped migration methods apply index additions and reverse index removals, while the index methods generate creatio... |
django/django | 36300ef336e3f130a0dadc1143163ff3d23dc843 | 30,141 | 10,999 | {
"nodes": [
{
"id": "django/db/models/fields/__init__.py::DurationField::to_python"
},
{
"id": "django/forms/fields.py::DurationField::to_python"
},
{
"id": "django/utils/dateparse.py::parse_duration"
}
],
"edges": [
{
"source": "django/db/models/fields/__init_... | Duration parsing must provide one canonical conversion from supported Django-style, ISO 8601, and PostgreSQL day-time interval strings to an equivalent `datetime.timedelta`, preserving sign, fractional-day/time values, and microsecond precision; syntactically unrecognized strings yield no parsed value, while representa... |
django/django | 8180ffba21bf10f4be905cb0d4890dc2bcff2788 | 30,191 | 11,087 | {
"nodes": [
{
"id": "django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py::Command::handle"
},
{
"id": "django/db/models/deletion.py::Collector::collect"
},
{
"id": "django/db/models/query.py::QuerySet::delete"
}
],
"edges": [
{
"source"... | These functions support Django’s model deletion workflow: Command.handle removes obsolete content-type records, which identify models, while QuerySet.delete removes queried model records and returns deletion counts. Collector.collect gathers model instances and their associated parent and related objects for deletion, ... |
django/django | e8fcdaad5c428878d0a5d6ba820d957013f75595 | 30,255 | 12,155 | {
"nodes": [
{
"id": "django/contrib/admindocs/utils.py::parse_docstring"
},
{
"id": "django/contrib/admindocs/utils.py::trim_docstring"
},
{
"id": "django/contrib/admindocs/views.py::ModelDetailView::get_context_data"
},
{
"id": "django/contrib/admindocs/views.py::... | Admin documentation must turn a callable or model docstring into a stable `(title, body, metadata)` representation: missing text produces empty values; common indentation is removed; the first paragraph is the title; and a final header-style paragraph is exposed as metadata only when it yields actual headers, otherwise... |
django/django | e245046bb6e8b32360aa48b8a41fb7050f0fc730 | 30,289 | 11,149 | {
"nodes": [
{
"id": "django/contrib/admin/options.py::InlineModelAdmin::_get_form_for_get_fields"
},
{
"id": "django/contrib/admin/options.py::InlineModelAdmin::get_formset"
},
{
"id": "django/contrib/admin/options.py::InlineModelAdmin::has_add_permission"
},
{
"id... | Admin add and change entry points must run through the same atomic change-form workflow: determine add versus existing-object mode (including save-as-new), enforce the parent object’s applicable access rights, bind and validate the parent form and all permitted inline formsets, and persist related changes only when eve... |
django/django | e6588aa4e793b7f56f4cadbfa155b581e0efc59a | 30,302 | 11,163 | {
"nodes": [
{
"id": "django/forms/models.py::BaseModelForm::__init__"
},
{
"id": "django/forms/models.py::model_to_dict"
}
],
"edges": [
{
"source": "django/forms/models.py::BaseModelForm::__init__",
"target": "django/forms/models.py::model_to_dict"
}
]
} | A model form must require an associated model class and retain the supplied instance; when initialized with an existing instance, its initial form data must be derived from that instance only through editable concrete, private, and many-to-many model fields, honoring the form’s configured field inclusion list and exclu... |
django/django | 19fc6376ce67d01ca37a91ef2f55ef769f50513a | 30,330 | 11,179 | {
"nodes": [
{
"id": "django/db/models/base.py::Model::delete"
},
{
"id": "django/db/models/deletion.py::Collector::delete"
}
],
"edges": [
{
"source": "django/db/models/base.py::Model::delete",
"target": "django/db/models/deletion.py::Collector::delete"
}
]
} | Model.delete provides the model-instance API for removing persisted objects, while Collector.delete carries out deletion for the collected objects within that operation. Their scope includes relational deletion, where foreign-key relationships and deletion policies govern related objects, and deletion reporting summari... |
django/django | 21aa2a5e785eef1f47beb1c3760fdd7d8915ae09 | 30,349 | 11,265 | {
"nodes": [
{
"id": "django/db/models/sql/query.py::Query::build_filter"
},
{
"id": "django/db/models/sql/query.py::Query::split_exclude"
},
{
"id": "django/db/models/sql/query.py::Query::trim_start"
}
],
"edges": [
{
"source": "django/db/models/sql/query.py::Q... | `Query.build_filter()` must turn one valid lookup into a composable WHERE clause while enforcing lookup/filterability and join-permission constraints, tracking reusable joins, and preserving SQL’s intended Python-level null semantics under negation (including the outer-join requirements that prevent nullable related ro... |
django/django | 571ab44e8a8936014c22e7eebe4948d9611fd7ce | 30,363 | 11,206 | {
"nodes": [
{
"id": "django/utils/numberformat.py::format"
}
],
"edges": []
} | The format function in django.utils.numberformat converts a number into a formatted string, with controls for decimal presentation, digit grouping, separators, and localization. |
django/django | 1f8382d34d54061eddc41df6994e20ee38c60907 | 30,449 | 11,400 | {
"nodes": [
{
"id": "django/contrib/admin/filters.py::RelatedFieldListFilter::__init__"
},
{
"id": "django/contrib/admin/filters.py::RelatedFieldListFilter::field_choices"
},
{
"id": "django/contrib/admin/filters.py::RelatedOnlyFieldListFilter::field_choices"
},
{
... | These functions support relation-based filtering in Django’s admin change list: RelatedFieldListFilter initializes the filter and supplies related-object choices, while RelatedOnlyFieldListFilter supplies choices representing objects participating in the relation. Field.get_choices and ForeignObjectRel.get_choices prov... |
django/django | 7991111af12056ec9a856f35935d273526338c1f | 30,543 | 11,551 | {
"nodes": [
{
"id": "django/contrib/admin/checks.py::ModelAdminChecks::_check_list_display"
},
{
"id": "django/contrib/admin/checks.py::ModelAdminChecks::_check_list_display_item"
},
{
"id": "django/contrib/admin/checks.py::ModelAdminChecks::check"
}
],
"edges": [
{
... | ModelAdmin validation must include list_display checks alongside the inherited and other ModelAdmin checks, returning the combined diagnostics. list_display itself must be a list or tuple; each entry is valid only when it is a callable, an attribute on the ModelAdmin, a model field, or an attribute or method on the mod... |
django/django | e065b293878b1e3ea56655aa9d33e87576cd77ff | 30,556 | 11,451 | {
"nodes": [
{
"id": "django/contrib/auth/backends.py::ModelBackend::authenticate"
}
],
"edges": []
} | ModelBackend.authenticate verifies user identifier and password credentials against Django’s configured user model, serving as the credential-verification entry point for Django’s default authentication backend. It accepts request context and credentials and produces an authentication result representing a user identit... |
django/django | 8dd5877f58f84f2b11126afbd0813e24545919ed | 30,557 | 11,555 | {
"nodes": [
{
"id": "django/contrib/admin/templatetags/admin_list.py::date_hierarchy"
},
{
"id": "django/db/models/query.py::QuerySet::aggregate"
},
{
"id": "django/db/models/query.py::QuerySet::count"
},
{
"id": "django/db/models/sql/compiler.py::SQLCompiler::as_s... | QuerySet aggregation must accept only valid aggregate expressions with stable aliases, leave the original query usable, and return a name-to-value mapping; count must return the cached result length when available, otherwise count the query’s filtered result set and normalize an empty aggregate result to zero. Aggregat... |
django/django | a7038adbd02c916315b16939b835f021c2ee8880 | 30,572 | 11,490 | {
"nodes": [
{
"id": "django/db/models/query.py::QuerySet::count"
},
{
"id": "django/db/models/sql/compiler.py::SQLCompiler::as_sql"
},
{
"id": "django/db/models/sql/compiler.py::SQLCompiler::get_combinator_sql"
},
{
"id": "django/db/models/sql/query.py::Query::get_... | QuerySet.count() must return the cached result length when available, otherwise the integer cardinality of the queryset’s constrained result set, with an empty aggregate result normalized to 0. Counting and other summary aggregates must operate over the already-defined result set: when grouping, annotations, slicing, d... |
django/django | a5308514fb4bc5086c9a16a8a24a945eeebb073c | 30,608 | 11,532 | {
"nodes": [
{
"id": "django/core/mail/backends/smtp.py::EmailBackend::open"
},
{
"id": "django/core/mail/utils.py::CachedDnsName::__str__"
},
{
"id": "django/core/mail/utils.py::CachedDnsName::get_fqdn"
}
],
"edges": [
{
"source": "django/core/mail/backends/smt... | Scope covers Django's lazy, process-wide DNS name cache and its use as the SMTP local hostname. CachedDnsName is instantiated once as the module-level DNS_NAME singleton, so every caller in this scope shares one cache. get_fqdn() must determine the fully qualified domain name of the local host at most once per instance... |
django/django | 003bb34b218adb23d1a7e67932a6ba9b3c4dcc81 | 30,691 | 11,740 | {
"nodes": [
{
"id": "django/core/management/commands/makemigrations.py::Command::handle"
},
{
"id": "django/core/management/commands/migrate.py::Command::handle"
},
{
"id": "django/db/migrations/autodetector.py::MigrationAutodetector::_detect_changes"
},
{
"id": "d... | The migration commands must derive pending schema changes by comparing the loaded migration project state with the current application state through a single autodetection result: `makemigrations` uses that result to produce migrations, honoring requested app conversion/trimming and graph-based naming/dependency arrang... |
django/django | 05457817647368be4b019314fcc655445a5b4c0c | 30,731 | 11,728 | {
"nodes": [
{
"id": "django/contrib/admindocs/utils.py::replace_named_groups"
},
{
"id": "django/contrib/admindocs/utils.py::replace_unnamed_groups"
},
{
"id": "django/contrib/admindocs/views.py::ViewIndexView::get_context_data"
},
{
"id": "django/contrib/admindocs... | The admin view index must produce one documentation entry per discovered URL view, retaining its fully qualified callable name and its namespace-qualified URL name while presenting a human-readable URL. URL patterns must be normalized by first replacing each complete named capture group—even when it contains nested or ... |
django/django | 999891bd80b3d02dd916731a7a239e1036174885 | 30,739 | 11,734 | {
"nodes": [
{
"id": "django/db/models/sql/query.py::Query::build_filter"
},
{
"id": "django/db/models/sql/query.py::Query::split_exclude"
}
],
"edges": [
{
"source": "django/db/models/sql/query.py::Query::build_filter",
"target": "django/db/models/sql/query.py::Query::... | Query.build_filter must turn one valid filter expression into a standalone WHERE clause while resolving conditional expressions, lookup paths, values, joins, and reusable aliases; it must reject malformed, non-filterable, or disallowed joined expressions, and preserve SQL/Python null semantics by choosing required oute... |
django/django | 350123f38c2b6217c38d70bfbd924a9ba3df1289 | 30,763 | 11,749 | {
"nodes": [
{
"id": "django/core/management/__init__.py::call_command"
}
],
"edges": []
} | Django management commands expose administrative actions that can be invoked from application code. `call_command` provides the primary public API for invoking a management command with arguments and named options, returning the command’s result. |
django/django | e02f67ef2d03d48128e7a118bf75f0418e24e8ac | 30,774 | 11,815 | {
"nodes": [
{
"id": "django/db/migrations/serializer.py::EnumSerializer::serialize"
}
],
"edges": [
{
"source": "django/db/migrations/serializer.py::EnumSerializer::serialize",
"target": "django/db/migrations/serializer.py::EnumSerializer::serialize"
}
]
} | EnumSerializer.serialize represents enumeration members as Python code for Django migration files, returning a textual representation and the imports it requires. This supports migrations’ role in preserving historical model definitions by making enumeration values expressible in migration source. |
django/django | b1d6b35e146aea83b171c1b921178bbaae2795ed | 30,776 | 11,790 | {
"nodes": [
{
"id": "django/contrib/auth/forms.py::AuthenticationForm::__init__"
}
],
"edges": []
} | AuthenticationForm.__init__ initializes Django’s username-and-password login form, accepting form data and request context for authentication customization by subclasses. It prepares a form used to collect credentials for establishing a user’s identity during login. |
django/django | c2678e49759e5c4c329bff0eeca2886267005d21 | 30,798 | 11,820 | {
"nodes": [
{
"id": "django/core/checks/model_checks.py::check_all_models"
},
{
"id": "django/db/models/base.py::Model::_check_ordering"
},
{
"id": "django/db/models/base.py::Model::check"
}
],
"edges": [
{
"source": "django/core/checks/model_checks.py::check_a... | Model checking must enumerate either all registered models or only those from the supplied app configurations, invoke each model’s class-level check with the received options, and aggregate its diagnostics while reporting an invalid non-method override of that check entry point. A model’s check must always include swap... |
django/django | 312049091288dbba2299de8d07ea3e3311ed7238 | 30,827 | 11,951 | {
"nodes": [
{
"id": "django/db/models/query.py::QuerySet::_batched_insert"
},
{
"id": "django/db/models/query.py::QuerySet::bulk_create"
}
],
"edges": [
{
"source": "django/db/models/query.py::QuerySet::bulk_create",
"target": "django/db/models/query.py::QuerySet::_bat... | Django’s QuerySet.bulk_create() provides efficient database insertion of collections of model instances, where instances represent records managed by the ORM. QuerySet._batched_insert() supports this bulk creation by handling insertion in batches, grouping database writes to reduce query overhead. |
Codit-Bench — Can Large Language Models Find Bugs in Code Auditing?
The Code Audit Benchmark (Codit-Bench) evaluates whether large language models can find unknown bugs through static code auditing. It contains 516 tasks.
Paper · Codit-Bench Website · GitHub
Task
Each task provides a buggy code snapshot identified by a commit, a bounded function-level call graph, and a behavioral specification with expected behavior and relevant domain knowledge. The evaluation uses a modified mini-swe-agent with read-only tools for file inspection and code search and a budget of 50 steps per task. Predictions identify directly faulty functions within the graph and explain the trigger conditions, faulty operation, and root cause. The model may inspect surrounding code for context.
A task passes if at least one prediction exactly matches the ground-truth set of faulty functions and its explanation semantically matches the ground truth.
Dataset fields
| Field | Description |
|---|---|
repo |
GitHub repository in owner/repo format |
buggy_commit |
Commit used to obtain the buggy source snapshot |
bug_issue |
Source issue or report number |
solve_pr |
Fixing pull request number |
call_graph |
Function nodes and caller-to-callee edges with callsites |
graph_spec |
Expected behavior and relevant domain knowledge |
The issue and pull request numbers are provenance metadata. Ground-truth bug labels and explanations are held privately for scoring.
Load the dataset
from datasets import load_dataset
dataset = load_dataset("FM-Agent/Codit-Bench", split="test")
Citation
@misc{feng2026coditbenchlargelanguage,
title={Codit-Bench - Can Large Language Models Find Bugs in Code Auditing?},
author={Yuesong Feng and Zheng Zhang and Haoran Ding and Zhaoguo Wang},
year={2026},
eprint={2612.01110},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2612.01110},
}
- Downloads last month
- 135