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 |
|---|---|---|---|---|---|
internetarchive/openlibrary | 08c5f93d9ba1d3a93efa2257c7cc5fd3515914da | 2,410 | 8,296 | {
"nodes": [
{
"id": "openlibrary/catalog/add_book/__init__.py::find_enriched_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::find_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::load"
},
{
"id": "openlibrary/catalog/add_book/match.py::edit... | The scope must load an import record only after required metadata is validated and normalized, build a candidate pool, and search deterministically through quick/exact checks before enriched matching; if no candidate qualifies it creates a new edition, otherwise it resolves redirects and updates the matched edition/wor... |
internetarchive/openlibrary | 8221875b7c3f05c1a21ab7db1ddf542aee4fda3d | 6,294 | 6,979 | {
"nodes": [
{
"id": "openlibrary/plugins/upstream/addbook.py::addbook::POST"
},
{
"id": "openlibrary/plugins/upstream/addbook.py::addbook::find_matches"
},
{
"id": "openlibrary/plugins/upstream/addbook.py::addbook::try_edition_match"
},
{
"id": "openlibrary/plugins... | The `/books/add` POST entrypoint is the sole caller of `find_matches`: after spam/recaptcha screening it unflattens the form, and only when no new author was created does it delegate match lookup, then dispatch on the result's shape (a list renders the candidate check page, an Edition routes to the edition-match flow, ... |
internetarchive/openlibrary | 4871a56fea27916cf3241a29ca57d75f9f3033b9 | 7,264 | 7,652 | {
"nodes": [
{
"id": "openlibrary/catalog/marc/parse.py::read_author_person"
},
{
"id": "openlibrary/catalog/marc/parse.py::read_authors"
},
{
"id": "openlibrary/catalog/marc/parse.py::read_contributions"
},
{
"id": "openlibrary/catalog/marc/parse.py::read_edition"
... | These functions support importing bibliographic metadata into Open Library and accessing edition book pages by identifier. The MARC readers interpret library catalog records to produce author, contributor, title, publisher, and edition metadata; an edition is the book record prepared for import. The import interfaces a... |
internetarchive/openlibrary | 9a2c50c0e5a984b388fdea1b47cafb2cf46fdeca | 7,403 | 7,405 | {
"nodes": [
{
"id": "openlibrary/catalog/marc/parse.py::read_edition"
},
{
"id": "openlibrary/catalog/marc/parse.py::read_languages"
},
{
"id": "openlibrary/catalog/marc/parse_xml.py::parse"
},
{
"id": "openlibrary/plugins/importapi/code.py::ia_importapi::POST"
... | The scope must preserve a consistent MARC-to-edition contract across XML parsing, direct import parsing, and Archive.org import: `read_edition` builds an importable edition dictionary, selecting usable 008 data, deriving publication/copyright metadata and country, combining valid 008 and 041 language codes with canonic... |
internetarchive/openlibrary | 409914bf541b32b2160200b7623060f2b5fab6c0 | 8,245 | 8,463 | {
"nodes": [
{
"id": "openlibrary/plugins/openlibrary/lists.py::ListRecord::from_input"
},
{
"id": "openlibrary/plugins/openlibrary/lists.py::lists_edit::POST"
},
{
"id": "openlibrary/plugins/upstream/addbook.py::addbook::POST"
},
{
"id": "openlibrary/plugins/upstre... | The scoped handlers must decode submitted form/query data consistently: when prepopulation query parameters and submitted form fields provide the same key, the submitted form value must take precedence for the persisted record. `unflatten` recursively turns `--`-delimited keys into nested mappings and contiguous numeri... |
internetarchive/openlibrary | eb8da9e755f4bf59f8f0bd2b021d3e49a87ccf4e | 9,002 | 10,768 | {
"nodes": [
{
"id": "openlibrary/core/vendors.py::AmazonAPI::get_product"
},
{
"id": "openlibrary/core/vendors.py::AmazonAPI::get_products"
},
{
"id": "openlibrary/core/vendors.py::AmazonAPI::serialize"
},
{
"id": "openlibrary/core/vendors.py::clean_amazon_metadata... | Amazon lookups must accept one or many identifiers, honor throttling and marketplace/resource parameters, tolerate request/API failures, and return only present products; optional serialization must consistently transform each product into Open Library metadata, including affiliate URL/source record, ISBN-10/ISBN-13 de... |
internetarchive/openlibrary | 2fba6ec7a455ce752662d45579d65fc8361e8784 | 927 | 5,234 | {
"nodes": [
{
"id": "openlibrary/plugins/openlibrary/dev_instance.py::update_solr"
},
{
"id": "openlibrary/solr/update_work.py::do_updates"
},
{
"id": "openlibrary/solr/update_work.py::main"
},
{
"id": "openlibrary/solr/update_work.py::update_keys"
},
{
... | These functions maintain Open Library’s Solr search index, the searchable representation of its catalog records, through edit-triggered updates, updates identified by record keys, and bulk index building. The development hook, update helpers, and command-line entry points connect catalog edits and reindexing workflows ... |
internetarchive/openlibrary | 6e27575f742fee046afbbb422ee423c75ccf8eae | 9,794 | 9,839 | {
"nodes": [
{
"id": "openlibrary/catalog/add_book/__init__.py::find_exact_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::find_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::load"
},
{
"id": "openlibrary/core/imports.py::ImportItem::impor... | The scoped functions support matching, importing, and retrieving Open Library edition records using bibliographic metadata and identifiers such as ISBNs, which identify published editions. They connect general, staged, and Internet Archive imports with catalog lookup, and expose edition information through book links, ... |
internetarchive/openlibrary | 6e27575f742fee046afbbb422ee423c75ccf8eae | 9,808 | 9,839 | {
"nodes": [
{
"id": "openlibrary/catalog/add_book/__init__.py::find_exact_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::find_match"
},
{
"id": "openlibrary/catalog/add_book/__init__.py::load"
},
{
"id": "openlibrary/core/imports.py::ImportItem::impor... | These functions connect bibliographic identifiers and metadata to Open Library edition records, supporting catalog matching, staged imports, and imports from Internet Archive and Amazon. Editions represent particular publications associated with a broader work, while identifiers such as ISBNs support lookup and links t... |
kubernetes/kubernetes | ae4a6e5e0e2e695d331c4f2cce8e6220a0bd051f | 143,268 | 143,226 | {
"nodes": [
{
"id": "pkg/scheduler/backend/queue/scheduling_queue.go::PriorityQueue::MoveAllToActiveOrBackoffQueue"
},
{
"id": "pkg/scheduler/backend/queue/scheduling_queue.go::PriorityQueue::flushUnschedulableEntitiesLeftover"
},
{
"id": "pkg/scheduler/backend/queue/scheduling_... | These functions support the scheduler’s management of pods and pod groups awaiting scheduling by assessing whether queued entities merit reconsideration and moving them from the unschedulable pool to active or backoff queues. They cover event-related requeueing and the periodic reconsideration of entities left in the u... |
kubernetes/kubernetes | d285472482503c249133440979b51e49949030ea | 143,275 | 143,340 | {
"nodes": [
{
"id": "cmd/kube-proxy/app/options.go::Options::runLoop"
},
{
"id": "cmd/kube-proxy/app/server.go::ProxyServer::Run"
},
{
"id": "cmd/kube-proxy/app/server.go::proxyRun::Run"
},
{
"id": "pkg/proxy/config/config.go::NewNodeTopologyConfig"
},
{
... | The scoped run methods provide kube-proxy’s server execution contract and configuration monitoring, supporting its role in forwarding Kubernetes Service traffic on nodes. The node-topology functions construct tracking configuration, associate notification handlers, and process Node events to communicate changes in prox... |
kubernetes/kubernetes | 54618b159253bdf59a9a9624acc3c325443844cb | 143,292 | 143,288 | {
"nodes": [
{
"id": "staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_v3.go::supportsQueryParamV3"
},
{
"id": "staging/src/k8s.io/kubectl/pkg/cmd/util/factory_client_access.go::factoryImpl::Validator"
}
],
"edges": []
} | These functions support kubectl's handling of Kubernetes resource validation and API capabilities. Validator returns a schema for validating objects stored on disk, while supportsQueryParamV3 uses an OpenAPI v3 document to determine whether a resource's PATCH endpoint supports a query parameter. |
kubernetes/kubernetes | 2af1ee8d0b379c06efa5357d2e9c3c25546d96e5 | 143,361 | 143,765 | {
"nodes": [
{
"id": "pkg/scheduler/framework/plugins/noderesources/fit.go::NewFit"
},
{
"id": "pkg/scheduler/framework/plugins/noderesources/fit.go::getScorer"
}
],
"edges": []
} | NewFit constructs the NodeResourcesFit scheduler plugin from plugin configuration and scheduler framework context; the plugin supports assessing whether nodes have sufficient resources for Pods and scoring nodes by resource allocation. getScorer provides a resource-allocation scorer from a scoring strategy and feature ... |
kubernetes/kubernetes | 102768513626f23c4797733f528525f054ba76c6 | 143,373 | 143,376 | {
"nodes": [
{
"id": "pkg/controller/devicetainteviction/device_taint_eviction.go::Controller::claimEvictionTime"
},
{
"id": "pkg/controller/devicetainteviction/device_taint_eviction.go::Controller::handleClaimChange"
},
{
"id": "pkg/controller/devicetainteviction/device_taint_ev... | These controller methods coordinate device-taint eviction for pods using allocated ResourceClaims: they assess claim eviction timing from applicable NoExecute device taints and tolerations, and revisit affected claims and pods when claims, DeviceTaintRules, or ResourceSlices change. The worker method processes queued c... |
kubernetes/kubernetes | 64dc7059ed1ab699737ecbf6268b9e77c7f548c4 | 143,636 | 143,791 | {
"nodes": [
{
"id": "pkg/scheduler/schedule_one.go::Scheduler::ScheduleOne"
},
{
"id": "pkg/scheduler/schedule_one_podgroup.go::Scheduler::podGroupCycle"
},
{
"id": "pkg/scheduler/schedule_one_podgroup.go::Scheduler::scheduleOnePodGroup"
},
{
"id": "pkg/scheduler/s... | Run manages the scheduler’s watching and scheduling lifecycle, while ScheduleOne handles a scheduling entity: a pod or a pod group. scheduleOnePodGroup and podGroupCycle coordinate workload-aware scheduling for related pods organized into groups and group hierarchies. applyPodGroupPostFilterResult incorporates post-fil... |
kubernetes/kubernetes | de06dce3c02d5731a0dc4161861b9c34b1444280 | 143,719 | 143,727 | {
"nodes": [
{
"id": "pkg/volume/csi/nodeinfomanager/nodeinfomanager.go::nodeInfoManager::CreateCSINode"
},
{
"id": "pkg/volume/csi/nodeinfomanager/nodeinfomanager.go::nodeInfoManager::ensureNodeOwnsCSINode"
},
{
"id": "pkg/volume/csi/nodeinfomanager/nodeinfomanager.go::nodeInfoM... | These functions manage Kubernetes node information associated with the Container Storage Interface (CSI): a Node represents a worker machine, while a CSINode records the CSI drivers installed on it and references its owning Node. CreateCSINode creates and returns a CSINode resource, ensureNodeOwnsCSINode maintains its ... |
kubernetes/kubernetes | aa54d42eb56fe26378272b5f7cb9d6f5c010b1a8 | 143,789 | 143,790 | {
"nodes": [
{
"id": "pkg/controller/devicetainteviction/device_taint_eviction.go::Controller::addConditionAndDeletePod"
},
{
"id": "pkg/controller/devicetainteviction/device_taint_eviction.go::Controller::maybeDeletePod"
}
],
"edges": []
} | These functions support Pod eviction for Dynamic Resource Allocation, where device taints express usage restrictions and ResourceClaim tolerations describe which restrictions a claim accepts. Given a Pod reference, maybeDeletePod assesses and carries out deletion work, reporting retry timing and errors; addConditionAnd... |
libuv/libuv | 4cf8d9bf396e6370a7992fb59cb7901abc2aa05d | 5,358 | 5,361 | {
"nodes": [
{
"id": "docs/code/dns/main.c::main"
},
{
"id": "docs/code/dns/main.c::on_resolved"
},
{
"id": "src/unix/tcp.c::uv__tcp_connect"
},
{
"id": "src/uv-common.c::uv_tcp_connect"
}
],
"edges": [
{
"source": "docs/code/dns/main.c::main",
... | These functions illustrate asynchronous DNS resolution followed by TCP connection establishment: the DNS example’s main function runs the demonstration, and on_resolved receives address-resolution results and initiates a connection. DNS resolution translates host and service names into network addresses; uv_tcp_connect... |
libuv/libuv | a267f5688be25e8d4628e296245a041adc2ca072 | 5,359 | 5,360 | {
"nodes": [
{
"id": "src/unix/linux.c::uv__get_cgroup1_memory_limits"
},
{
"id": "src/unix/linux.c::uv__get_cgroup_constrained_memory"
},
{
"id": "src/unix/linux.c::uv_get_available_memory"
},
{
"id": "src/unix/linux.c::uv_get_constrained_memory"
}
],
"edge... | These functions support Linux process memory reporting under cgroups, the operating system mechanism for imposing resource limits on groups of processes. The internal helpers obtain cgroup v1 memory limits and determine cgroup-constrained memory, supporting public APIs that report the process’s total memory allowance a... |
libuv/libuv | 19bbf90e1a7a1526da6daa1c79eec2e3ff8b6c55 | 5,374 | 5,378 | {
"nodes": [
{
"id": "src/unix/linux.c::uv__get_cgroupv2_constrained_cpu"
},
{
"id": "src/unix/linux.c::uv__get_constrained_cpu"
}
],
"edges": [
{
"source": "src/unix/linux.c::uv__get_constrained_cpu",
"target": "src/unix/linux.c::uv__get_cgroupv2_constrained_cpu"
}... | These functions obtain Linux cgroup CPU quota information, representing limits on the CPU resources available to a process. uv__get_constrained_cpu provides the general retrieval interface, while uv__get_cgroupv2_constrained_cpu accepts cgroup information and supplies the cgroup v2-specific quota result. |
libuv/libuv | 716390fe9e0a0ef38ac26e18d894672fc35dc870 | 5,410 | 5,413 | {
"nodes": [
{
"id": "src/unix/linux.c::uv_cpu_info"
}
],
"edges": []
} | uv_cpu_info retrieves information about the system’s CPUs, providing CPU records and their count. Each record describes the processor’s model and speed alongside CPU time accounting across execution and idle categories, supporting inspection of processor characteristics and activity. |
matplotlib/matplotlib | 5ca694b38d861c0e24cd8743753427dda839b90b | 12,926 | 26,113 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_axes.py::Axes::hexbin"
}
],
"edges": []
} | `Axes.hexbin` must convert paired x/y data (and optional per-point C values) into a `PolyCollection` of hexagonal cells whose centers and values reflect a regular grid over the supplied or data-derived extent. It must discard masked/nonfinite paired inputs consistently; reject non-positive coordinates when a logarithmi... |
matplotlib/matplotlib | a3e2897bfaf9eaac1d6649da535c4e721c89fa69 | 13,982 | 13,989 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_axes.py::Axes::hist"
}
],
"edges": []
} | `Axes.hist` must accept a scalar, one dataset, or multiple datasets (including 2-D column-wise input), convert their x-units consistently, validate per-dataset weights and colors, and derive one shared set of bin edges across datasets; when `range` is explicitly supplied and bins are not explicit edges, the returned bi... |
matplotlib/matplotlib | 5140177a69f4bfc195975aa24f244e97e2ff1ab6 | 17,566 | 26,466 | {
"nodes": [
{
"id": "lib/matplotlib/text.py::Annotation::__init__"
},
{
"id": "lib/matplotlib/text.py::_AnnotationBase::__init__"
}
],
"edges": [
{
"source": "lib/matplotlib/text.py::Annotation::__init__",
"target": "lib/matplotlib/text.py::_AnnotationBase::__init__"
... | Scope covers `Annotation.__init__` and the base initializer it delegates to, `_AnnotationBase.__init__`. Correctness obligations are stated as observable behavior of a constructed annotation. The base step must run first and fully establish annotation state before the Text state, and the Text base must be initialized l... |
matplotlib/matplotlib | f285c3f3f126fef862b6d3c73208c5171f409da6 | 20,044 | 24,637 | {
"nodes": [
{
"id": "lib/matplotlib/offsetbox.py::AnnotationBbox::draw"
}
],
"edges": []
} | AnnotationBbox.draw renders a box-based annotation and its associated visual elements using a supplied Matplotlib renderer. An AnnotationBbox associates OffsetBox content with a point in a plot, allowing boxed content to serve as an annotation with a connecting arrow. |
matplotlib/matplotlib | 2a3037fdefa2daab0b5e27cc400c6d9453bc091b | 20,487 | 20,488 | {
"nodes": [
{
"id": "lib/matplotlib/image.py::AxesImage::make_image"
},
{
"id": "lib/matplotlib/image.py::BboxImage::make_image"
},
{
"id": "lib/matplotlib/image.py::FigureImage::make_image"
},
{
"id": "lib/matplotlib/image.py::_ImageBase::_make_image"
}
],
... | These image renderers must delegate their array, placement geometry, clipping region, magnification, and unsampled mode to the shared image builder, which returns either a uint8 RGBA image with its pixel-space draw origin and affine transform, or an empty result when the display region has no intersection or zero size.... |
matplotlib/matplotlib | 6786f437df54ca7780a047203cbcfaa1db8dc542 | 20,665 | 20,676 | {
"nodes": [
{
"id": "lib/matplotlib/widgets.py::SpanSelector::__init__"
},
{
"id": "lib/matplotlib/widgets.py::SpanSelector::_setup_edge_handle"
},
{
"id": "lib/matplotlib/widgets.py::SpanSelector::direction"
}
],
"edges": [
{
"source": "lib/matplotlib/widgets.... | SpanSelector must accept only horizontal or vertical directions and use the selected data axis consistently. Construction must create the span rectangle for that direction and, when interaction is enabled, add exactly two edge-handle artists initially positioned at the corresponding axis bounds, with handle styling der... |
matplotlib/matplotlib | a0d2e399729d36499a1924e5ca5bc067c8396810 | 20,721 | 20,826 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::tick_params"
},
{
"id": "lib/matplotlib/axis.py::Axis::_reset_minor_tick_kw"
},
{
"id": "lib/matplotlib/axis.py::Axis::cla"
},
{
"id": "lib/matplotlib/axis.py::Axis::clear"
},
{
"id": "lib/... | This scope covers tick-appearance parameter handling for 2D axes and their axes, plus the 3D override. `_AxesBase.tick_params` must validate `axis` in {'x','y','both'}, defaulting to 'both', and forward the caller's keyword arguments to the selected axes: for the x-axis it must drop right-side-specific keys (`left`, `r... |
matplotlib/matplotlib | 64619e53e9d0ed417daba287ac0d3a06943a54d5 | 20,723 | 20,859 | {
"nodes": [
{
"id": "lib/matplotlib/legend.py::Legend::__init__"
}
],
"edges": []
} | Legend.__init__ initializes a legend associated with an Axes or Figure from graphical artist handles and descriptive labels. A legend connects visual keys to text so readers can identify what plotted elements represent; the constructor also accepts controls for its placement, layout, and appearance. |
matplotlib/matplotlib | b525983fb5ad295ee8a789df46989574b452369a | 21,518 | 21,568 | {
"nodes": [
{
"id": "lib/matplotlib/dates.py::ConciseDateFormatter::format_ticks"
},
{
"id": "lib/matplotlib/dates.py::DateFormatter::__call__"
},
{
"id": "lib/matplotlib/dates.py::_wrap_in_tex"
}
],
"edges": [
{
"source": "lib/matplotlib/dates.py::ConciseDateF... | These functions produce readable axis labels from Matplotlib date tick values, which represent time as days since an epoch. ConciseDateFormatter.format_ticks provides compact labels across a collection of ticks while retaining complete date context, and DateFormatter.__call__ formats an individual tick using a strftime... |
matplotlib/matplotlib | a7b7260bf06c20d408215d95ce20a1a01c12e5b1 | 22,472 | 22,871 | {
"nodes": [
{
"id": "lib/matplotlib/dates.py::ConciseDateFormatter::format_ticks"
}
],
"edges": []
} | The formatter must convert each numeric tick to its configured timezone and return one concise, order-preserving label per input value. It must select the finest calendar/time field that varies across the displayed ticks, use the corresponding normal or boundary (zero) format so transitions such as a new year, month, d... |
matplotlib/matplotlib | f06c2c3abdaf4b90285ce5ca7fedbb8ace715911 | 22,977 | 23,412 | {
"nodes": [
{
"id": "lib/matplotlib/patches.py::Arc::draw"
},
{
"id": "lib/matplotlib/patches.py::Patch::draw"
}
],
"edges": [
{
"source": "lib/matplotlib/patches.py::Arc::draw",
"target": "lib/matplotlib/patches.py::Patch::draw"
}
]
} | Drawing an Arc must be a no-op when it is invisible; otherwise it must recompute its geometry, convert dimensions to display scale, and preserve the requested counterclockwise angular extent (including correct angle handling for non-circular ellipses and full turns). For arcs whose ordinary Bezier approximation is sub-... |
matplotlib/matplotlib | d58e966dd12c1aec3654e384ddce178573b6e440 | 23,298 | 23,299 | {
"nodes": [
{
"id": "lib/matplotlib/__init__.py::rc_context"
}
],
"edges": []
} | Matplotlib’s rc_context returns a context manager for temporarily customizing rcParams, the package-wide runtime settings that govern plotting defaults and appearance. It accepts settings through a mapping or a configuration file, supporting scoped customization of plotting code. |
matplotlib/matplotlib | 33a0599711d26dc2b79f851c6daed4947df7c167 | 23,471 | 23,476 | {
"nodes": [
{
"id": "lib/matplotlib/figure.py::Figure::__getstate__"
}
],
"edges": [
{
"source": "lib/matplotlib/figure.py::Figure::__getstate__",
"target": "lib/matplotlib/figure.py::Figure::__getstate__"
}
]
} | Figure.__getstate__ supplies a figure’s state for Python pickle serialization, supporting short-term storage of plots for later restoration and modification. A Figure is the top-level container for plot elements, so this method participates in preserving the plot as an object. |
matplotlib/matplotlib | 5c4595267ccd3daf78f5fd05693b7ecbcd575c1e | 24,024 | 24,026 | {
"nodes": [
{
"id": "lib/matplotlib/stackplot.py::stackplot"
}
],
"edges": []
} | `stackplot` must interpret the supplied y inputs as unstacked series sharing the x positions, promote accumulation to a floating-capable dtype, and render exactly one filled `PolyCollection` per series: the first between the selected baseline and the first cumulative boundary, then each later one between adjacent cumul... |
matplotlib/matplotlib | c744161bdaf8b2a40bf96dcc0ebcd37ea0444319 | 24,097 | 24,177 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_axes.py::Axes::fill"
},
{
"id": "lib/matplotlib/axes/_axes.py::Axes::stairs"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::_unit_change_handler"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::_update_patch_limi... | Axes.fill must turn each supplied polygonal fill into an Axes-owned patch, return the complete patch list, and request autoscaling after their data limits have been incorporated. Axes.stairs must construct and register a unit-converted StepPatch with the requested orientation, baseline, fill styling, and default edges ... |
matplotlib/matplotlib | 60660c54c4a75a58b7faa1d599e7a275a05bd774 | 24,386 | 24,570 | {
"nodes": [
{
"id": "lib/matplotlib/offsetbox.py::HPacker::get_extent_offsets"
},
{
"id": "lib/matplotlib/offsetbox.py::_get_aligned_offsets"
}
],
"edges": [
{
"source": "lib/matplotlib/offsetbox.py::HPacker::get_extent_offsets",
"target": "lib/matplotlib/offsetbox.py:... | HPacker must lay out only visible children horizontally, converting point-based padding and separation through the renderer while retaining pixel-based requested dimensions. With no visible children it returns a padding-only extent and no offsets. Otherwise it derives each child’s vertical (height, descent) geometry an... |
matplotlib/matplotlib | 5ec2bd279729ff534719b8bf238dbbca907b93c5 | 24,821 | 25,122 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_axes.py::Axes::cohere"
},
{
"id": "lib/matplotlib/axes/_axes.py::Axes::csd"
},
{
"id": "lib/matplotlib/axes/_axes.py::Axes::psd"
},
{
"id": "lib/matplotlib/axes/_axes.py::Axes::specgram"
},
{
"id": "lib/matplo... | The spectral routines must compute consistently aligned Welch-style spectra: split 1-D signals into overlapping NFFT-length segments, zero-pad inputs shorter than NFFT, detrend and window each segment, FFT to `pad_to`, and return frequencies and segment-center times matching the spectrum rows and columns. Defaults are ... |
matplotlib/matplotlib | a3011dfd1aaa2487cce8aa7369475533133ef777 | 24,865 | 24,970 | {
"nodes": [
{
"id": "lib/matplotlib/colors.py::Colormap::__call__"
}
],
"edges": []
} | Colormap.__call__ must lazily initialize its lookup table, then map scalar or array-like inputs to RGBA by treating floating values in [0, 1] as quantized positions (with exactly 1 selecting the final regular color) and integer values as direct color indices. Values below or above the regular index range must use the c... |
matplotlib/matplotlib | 9ff38a890e50a58f7f3497329854bc9f760c6f5e | 25,165 | 25,287 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::__clear"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::__init__"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::cla"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::clear"
},
{
... | These functions construct and clear Matplotlib Axes—the plotting regions within figures—and their associated x- and y-axis objects, which manage coordinate scales, ticks, and labels. The axis initialization functions establish labels and tick-offset text, while the clearing functions reset plotting and axis state; the ... |
matplotlib/matplotlib | 17db60b4de127347b319e60a7ae24224efbea09e | 25,300 | 25,311 | {
"nodes": [
{
"id": "lib/matplotlib/offsetbox.py::DraggableBase::__init__"
}
],
"edges": []
} | Initializing a draggable helper must retain the referenced artist, ensure that artist can emit pick events without overriding an existing picker, start with no active drag, and derive blitting eligibility from both the caller’s request and the owning canvas’s capabilities. It must register pick and button-release callb... |
matplotlib/matplotlib | 7d7f6da20ef11afb8eed37bce32286ad4ec43431 | 25,511 | 25,960 | {
"nodes": [
{
"id": "lib/matplotlib/figure.py::FigureBase::subfigures"
}
],
"edges": []
} | FigureBase.subfigures creates and returns a grid of subfigures within a figure or another subfigure, accepting layout dimensions, spacing, and relative sizing parameters. Subfigures are figure-like containers with their own artists and layouts, supporting grouped or nested plot compositions within a larger figure. |
matplotlib/matplotlib | f0f133943d3e4f1e2e665291fe1c8f658a84cc09 | 26,194 | 26,208 | {
"nodes": [
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::twinx"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::twiny"
}
],
"edges": []
} | `twinx` and `twiny` must create and return a distinct, overlaid Axes that remains geometrically coupled to the original and is registered as its twin, while sharing exactly the requested coordinate dimension (`x` for `twinx`, `y` for `twiny`) and retaining an independent opposite dimension. The twin must inherit autosc... |
matplotlib/matplotlib | fff2a79ce22ab39bea95067d30438bfdbe47f560 | 26,287 | 26,291 | {
"nodes": [
{
"id": "lib/mpl_toolkits/axes_grid1/inset_locator.py::AnchoredLocatorBase::__call__"
}
],
"edges": []
} | The anchored layout operation must successfully return the anchored box’s final position and size in the containing subfigure’s normalized coordinate system, including during tight-bounding-box processing when no renderer is available. The result must reflect anchor-dependent geometry, preserve the resolved width and h... |
matplotlib/matplotlib | 1d1d8bad098caf498871f3e8ac8df1fdfafeccae | 5,087 | 25,479 | {
"nodes": [
{
"id": "lib/matplotlib/cm.py::ColormapRegistry::register"
}
],
"edges": []
} | ColormapRegistry.register makes a colormap available by name for use through Matplotlib’s colormap interfaces. Colormaps map scalar data to colors, and registration lets plotting APIs refer to these mappings through a shared named registry. |
matplotlib/matplotlib | 0aac9f17b9373f66c709f436149568bda69595b3 | 6,982 | 24,627 | {
"nodes": [
{
"id": "lib/matplotlib/animation.py::Animation::_on_resize"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::__clear"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::cla"
},
{
"id": "lib/matplotlib/axes/_base.py::_AxesBase::clear"
},
{... | Axes clearing must provide the same complete reset through either `clear()` or `cla()`, while honoring subclasses that override the legacy `cla` entry point without recursion or bypassing that override. A reset must detach existing child artists and rebuild the axes’ baseline state: axes and spines, callbacks, rcParam-... |
mwaskom/seaborn | 22cdfb0c93f8ec78492d87edb810f10cb7f57a31 | 3,174 | 3,187 | {
"nodes": [
{
"id": "seaborn/_core/scales.py::ContinuousBase::_setup"
},
{
"id": "seaborn/relational.py::_LinePlotter::plot"
},
{
"id": "seaborn/relational.py::_RelationalPlotter::add_legend_data"
},
{
"id": "seaborn/relational.py::_ScatterPlotter::plot"
},
... | Continuous-scale setup must establish unit conversion, the selected transform, optional normalization over either explicit or data-derived limits, and property mapping as one coherent pipeline; when legend values are enabled, it must retain only locator positions inside those limits and format them without unrepresente... |
navidrome/navidrome | 4e0177ee5340b888126092d1146c1c7b6a92fed8 | 1,091 | 1,138 | {
"nodes": [
{
"id": "core/agents/interfaces.go::ArtistTopSongsRetriever::GetTopSongs"
},
{
"id": "core/agents/lastfm.go::lastfmAgent::GetBiography"
},
{
"id": "core/agents/lastfm.go::lastfmAgent::GetSimilar"
},
{
"id": "core/agents/lastfm.go::lastfmAgent::GetTopSon... | These functions support external artist metadata and music discovery: biographies and profile links describe artists, while similar artists and top tracks provide related music and prominent songs. The scoped contracts connect artist and song retrieval through the Last.fm agent and API client, including request handlin... |
navidrome/navidrome | 5360283bb0368c5226b301f99b7095a54407b053 | 1,928 | 3,182 | {
"nodes": [
{
"id": "core/players.go::players::Register"
},
{
"id": "persistence/player_repository.go::playerRepository::FindMatch"
},
{
"id": "server/subsonic/api.go::Router::routes"
},
{
"id": "server/subsonic/middlewares.go::getPlayer"
}
],
"edges": [
... | Router.routes must place getPlayer before every player-dependent Subsonic handler. getPlayer derives the authenticated username and client from request context, canonicalizes the User-Agent and remote IP, resolves the username-scoped player cookie, and invokes Players.Register; on success it refreshes that cookie and a... |
navidrome/navidrome | 53607fe11446a1bac581bc551ba740456dd4720d | 2,630 | 2,633 | {
"nodes": [
{
"id": "scanner/tag_scanner.go::TagScanner::Scan"
},
{
"id": "scanner/walk_dir_tree.go::isDirReadable"
},
{
"id": "scanner/walk_dir_tree.go::loadDir"
},
{
"id": "scanner/walk_dir_tree.go::walkDirTree"
},
{
"id": "scanner/walk_dir_tree.go:... | These functions support music-library scanning, connecting music files and their metadata with Navidrome’s library records. TagScanner.Scan detects library changes and reports progress and a change count; walkDirTree and walkFolder provide directory traversal, loadDir gathers directory information, and isDirReadable as... |
netty/netty | 23540b042cbe95e8044eb5deb8a02c64e1ea256f | 17,784 | 17,943 | {
"nodes": [
{
"id": "codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateEncoder.java::DeflateEncoder::encode"
}
],
"edges": []
} | DeflateEncoder.encode compresses outbound WebSocket frame payloads using DEFLATE and produces encoded WebSocket frames for the outbound pipeline. It supports WebSocket compression extensions, which reduce the size of payload data transmitted over a WebSocket connection. |
netty/netty | 12c5eb76d620212b63f33e52062bdc28d84a9dc5 | 17,897 | 18,035 | {
"nodes": [
{
"id": "transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java::SingleThreadIoEventLoop::registerForIo0"
},
{
"id": "transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java::SingleThreadIoEventLoop::run"
}
],
"edges": []
} | These functions support a single-thread I/O event loop: one registers an `IoHandle` for I/O processing and obtains a future for its registration, while the loop’s run method coordinates task execution with I/O dispatch through its `IoHandler`. Together, they connect registered handles to the event loop that processes t... |
netty/netty | c9aba2dd96aa46186654140f995d315dded18599 | 18,249 | 18,263 | {
"nodes": [
{
"id": "resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java::DnsQueryContextManager::getOrCreateContextMap"
}
],
"edges": []
} | The scoped function provides access to DNS query-context tracking for a nameserver address, establishing that tracking as needed. Its role supports associating DNS query identifiers with the contexts representing queries sent to that server. |
netty/netty | be3e8d42e821318795c8dbf7aab0acdbbd5cfb18 | 18,318 | 18,322 | {
"nodes": [
{
"id": "codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandler.java::WebSocketClientExtensionHandler::channelRead"
}
],
"edges": []
} | WebSocketClientExtensionHandler.channelRead handles inbound messages as part of client-side WebSocket extension negotiation and initialization. WebSocket extensions augment the protocol through negotiated encoding and decoding capabilities; this handler’s inbound role supports establishing those capabilities with the s... |
nginx/nginx | 797c039a9884f69aae96286dcdf1ba633e5ebf81 | 1,907 | 1,908 | {
"nodes": [
{
"id": "src/http/modules/ngx_http_geoip_module.c::ngx_http_geoip_city_float_variable"
},
{
"id": "src/http/modules/ngx_http_geoip_module.c::ngx_http_geoip_float"
},
{
"id": "src/stream/ngx_stream_geoip_module.c::ngx_stream_geoip_city_float_variable"
},
{
... | The HTTP and stream geoip_city_float_variable functions expose geographic coordinates from IP geolocation data as NGINX variables for requests and sessions, respectively; latitude and longitude describe geographic position. Their corresponding geoip_float functions retrieve floating-point values from MaxMind database e... |
nushell/nushell | c7c8ebaa9e0d0f61322d01fabb14dc075a828147 | 19,357 | 19,358 | {
"nodes": [
{
"id": "crates/nu-cli/src/repl.rs::evaluate_repl"
},
{
"id": "crates/nu-cli/src/repl.rs::run_command"
},
{
"id": "crates/nu-cli/src/repl.rs::run_shell_integration_osc7"
},
{
"id": "src/main.rs::main"
},
{
"id": "src/run.rs::run_repl"
... | These functions support Nushell’s interactive shell: main is the application entry point, run_repl launches an interactive session using shell state and command-line arguments, and evaluate_repl manages the prompt and read–evaluate–print loop. Within that session, run_command executes entered commands in the shell cont... |
prometheus/prometheus | c052a79dc7fd0f2df2219ffe336f510b0d149b72 | 20,045 | 20,046 | {
"nodes": [
{
"id": "cmd/promtool/main.go::main"
},
{
"id": "cmd/promtool/unittest.go::RulesUnitTest"
},
{
"id": "cmd/promtool/unittest.go::RulesUnitTestResult"
},
{
"id": "cmd/promtool/unittest.go::ruleUnitTest"
},
{
"id": "cmd/promtool/unittest.go::... | These functions support promtool’s rule unit testing: main provides the command-line entry point, while RulesUnitTest, RulesUnitTestResult, ruleUnitTest, and testGroup.test coordinate test files and groups, report results, and return status or errors. Tests associate time-series samples with checks of alerting rules an... |
prometheus/prometheus | 3ba925757f8ff39315e7530414e51652379a710b | 20,066 | 20,073 | {
"nodes": [
{
"id": "tsdb/head_append_v2.go::headAppenderV2::appendFloat"
},
{
"id": "tsdb/head_append_v2.go::headAppenderV2::appendFloatHistogram"
},
{
"id": "tsdb/head_append_v2.go::headAppenderV2::appendHistogram"
}
],
"edges": []
} | These functions append timestamped samples to time series in the TSDB Head: appendFloat handles scalar floating-point samples, appendHistogram handles histograms with integer counts, and appendFloatHistogram handles histograms with floating-point counts. Histograms represent distributions of observations across buckets... |
prometheus/prometheus | 798401c7557d0ce4a9b8521e8087b89b42c9089a | 20,067 | 20,074 | {
"nodes": [
{
"id": "tsdb/agent/db_append_v2.go::appenderV2::bestEffortAppendSTZeroSample"
},
{
"id": "tsdb/head_append_v2.go::headAppenderV2::bestEffortAppendSTZeroSample"
}
],
"edges": []
} | The two bestEffortAppendSTZeroSample methods support start-timestamp ingestion by attempting to append synthetic zero-valued samples associated with a time series, respectively in the agent and TSDB head appenders. Start timestamps, also called created timestamps, describe the beginning of a metric’s accumulation perio... |
prometheus/prometheus | 1d4faeaf10281aa16c4a5e73e4bfda92f81bc366 | 20,085 | 20,401 | {
"nodes": [
{
"id": "storage/remote/otlptranslator/prometheusremotewrite/helper.go::PrometheusConverter::addResourceTargetInfo"
},
{
"id": "storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw.go::PrometheusConverter::FromMetrics"
},
{
"id": "storage/remote/write_o... | These functions support ingestion of OpenTelemetry metrics into Prometheus: rwExporter.ConsumeMetrics accepts metric batches for ingestion, and PrometheusConverter.FromMetrics translates and appends them to Prometheus storage, returning annotations and errors. Within that conversion, addResourceTargetInfo represents re... |
prometheus/prometheus | ef78ff64267724c8ecd1a1283cad49b365a8b67f | 20,253 | 20,250 | {
"nodes": [
{
"id": "cmd/prometheus/main.go::main"
},
{
"id": "cmd/promtool/main.go::CheckConfig"
},
{
"id": "cmd/promtool/main.go::CheckRules"
},
{
"id": "cmd/promtool/main.go::checkRules"
},
{
"id": "cmd/promtool/main.go::checkRulesFromStdin"
},... | These functions connect the Prometheus server and promtool entry points to configuration checking and rule parsing, validation, loading, and manager updates. Recording rules precompute time series from expressions, while alerting rules define expression-based alert conditions; both are organized into rule groups. Withi... |
prometheus/prometheus | 4a933f89fa96c56ad69e7c02dc5f40e06d93440e | 20,297 | 20,299 | {
"nodes": [
{
"id": "model/textparse/openmetricsparse.go::OpenMetricsParser::Exemplar"
}
],
"edges": []
} | OpenMetricsParser.Exemplar exposes exemplar information associated with the current sample parsed from OpenMetrics text, writing it into a caller-provided exemplar and returning an availability indicator. Exemplars provide additional context linking metric observations to data outside the metrics themselves. |
protocolbuffers/protobuf | 8dd0a018df315fd44d7a7ae27db4df078396b5dc | 31,030 | 31,047 | {
"nodes": [
{
"id": "upb/conformance/conformance_upb.c::DoTestIo"
},
{
"id": "upb/conformance/conformance_upb.c::main"
},
{
"id": "upb/conformance/conformance_upb_harness.c::DoTest"
},
{
"id": "upb/conformance/conformance_upb_harness.c::serialize_json"
},
{... | These functions support upb’s Protocol Buffers conformance testee, exchanging serialized test requests and responses through a harness and standard input/output to assess parsing and serialization compatibility. The scoped JSON encoding functions convert protobuf messages into JSON using schema reflection, covering mes... |
psf/requests | 22623bd8c265b78b161542663ee980738441c307 | 1,051 | 1,142 | {
"nodes": [
{
"id": "requests/api.py::get"
},
{
"id": "requests/api.py::request"
},
{
"id": "requests/models.py::PreparedRequest::prepare_auth"
},
{
"id": "requests/models.py::PreparedRequest::prepare_body"
},
{
"id": "requests/models.py::PreparedRequ... | The module-level and Session request/get functions provide general HTTP request and GET interfaces, accepting destination and request information and returning Response objects representing server replies; the Session interfaces operate within a context that persists request parameters and cookies. Request.prepare prod... |
psf/requests | 1ba83c47ce7b177efe90d5f51f7760680f72eda0 | 1,723 | 1,724 | {
"nodes": [
{
"id": "requests/api.py::request"
}
],
"edges": []
} | The public `requests.api.request` function constructs and sends an HTTP request using a method, a destination URL, and optional request content and communication settings, returning a `Response` object. It provides a general entry point for HTTP’s request–response exchange, where the method expresses the requested oper... |
psf/requests | 847735553aeda6e6633f2b32e14ba14ba86887a4 | 1,765 | 1,766 | {
"nodes": [
{
"id": "requests/auth.py::HTTPDigestAuth::__call__"
},
{
"id": "requests/auth.py::HTTPDigestAuth::build_digest_header"
},
{
"id": "requests/auth.py::HTTPDigestAuth::handle_401"
}
],
"edges": [
{
"source": "requests/auth.py::HTTPDigestAuth::__call__... | These methods support HTTP Digest authentication within Requests, connecting request authentication with response-based authentication negotiation. `__call__` applies the authentication handler during request setup, `build_digest_header` constructs Digest authorization header content for an HTTP method and URL, and `ha... |
psf/requests | 3c88e520da24ae6f736929a750876e7654accc3d | 1,920 | 1,921 | {
"nodes": [
{
"id": "requests/sessions.py::Session::prepare_request"
},
{
"id": "requests/sessions.py::Session::request"
},
{
"id": "requests/sessions.py::merge_setting"
}
],
"edges": [
{
"source": "requests/sessions.py::Session::prepare_request",
"target... | These functions support HTTP requests within a Session, which provides shared settings across requests. Session.request accepts an HTTP method, URL, and request options to construct, prepare, and send a request and return a Response; Session.prepare_request produces a transmission-ready PreparedRequest incorporating re... |
psf/requests | 091991be0da19de9108dbe5e3752917fea3d7fdc | 2,316 | 2,317 | {
"nodes": [
{
"id": "requests/sessions.py::Session::request"
}
],
"edges": []
} | Session.request provides the session-level interface for making HTTP requests, accepting a method, destination URL, and request data and settings, and returning a Response representing the server’s reply. It operates within a Session, which provides shared configuration, persistent cookies, and connection pooling acros... |
psf/requests | 5f7a3a74aab1625c2bb65f643197ee885e3da576 | 2,930 | 2,931 | {
"nodes": [
{
"id": "requests/api.py::delete"
},
{
"id": "requests/api.py::head"
},
{
"id": "requests/api.py::options"
},
{
"id": "requests/api.py::patch"
},
{
"id": "requests/api.py::post"
},
{
"id": "requests/api.py::request"
},
... | The scoped API and Session methods provide general and HTTP-method-specific interfaces for sending requests from URLs, request data, and configuration and returning Response objects; sessions supply persistent settings and cookies across requests. Request.prepare, Session.prepare_request, and PreparedRequest.prepare tu... |
psf/requests | 39d0fdd9096f7dceccbc8f82e1eda7dd64717a8e | 5,367 | 5,414 | {
"nodes": [
{
"id": "requests/api.py::delete"
},
{
"id": "requests/api.py::get"
},
{
"id": "requests/api.py::head"
},
{
"id": "requests/api.py::options"
},
{
"id": "requests/api.py::patch"
},
{
"id": "requests/api.py::post"
},
{
... | All module-level and Session verb helpers must delegate with their intended HTTP method and preserve caller-supplied request options; GET supplies query parameters, POST carries both data and JSON, and HEAD defaults to not following redirects unless explicitly overridden. The module-level API must perform the request t... |
psf/requests | 0192aac24123735b3eaf9b08df46429bb770c283 | 6,027 | 6,028 | {
"nodes": [
{
"id": "requests/adapters.py::HTTPAdapter::get_connection"
},
{
"id": "requests/adapters.py::HTTPAdapter::send"
},
{
"id": "requests/utils.py::prepend_scheme_if_needed"
}
],
"edges": [
{
"source": "requests/adapters.py::HTTPAdapter::get_connection"... | HTTPAdapter.send must obtain the connection selected for the prepared request URL and its applicable proxy settings, then send through that connection with TLS verification/client-certificate configuration, the proxy-appropriate request target, request headers and body, configured retries, and normalized connect/read t... |
pydata/xarray | aebe60c8593447c7ef95ca6af6eaef1f7fedc6d5 | 2,097 | 2,905 | {
"nodes": [
{
"id": "xarray/core/variable.py::Variable::__setitem__"
},
{
"id": "xarray/core/variable.py::as_compatible_data"
}
],
"edges": [
{
"source": "xarray/core/variable.py::Variable::__setitem__",
"target": "xarray/core/variable.py::as_compatible_data"
}
]... | `Variable.__setitem__` must apply orthogonal indexed assignment while treating a non-`Variable` right-hand side as compatible variable data: preserve supported array backends and existing Variables appropriately, unwrap pandas/xarray containers to their values, represent tuples as scalar object data, normalize timestam... |
pydata/xarray | 83706af66c9cb42032dbc5536b30be1da38100c0 | 2,840 | 4,695 | {
"nodes": [
{
"id": "xarray/core/dataarray.py::_LocIndexer::__getitem__"
}
],
"edges": []
} | `DataArray.loc[...]` must provide label-based selection and return the corresponding new `DataArray`. A mapping key is passed through as named label indexers; a non-mapping key is interpreted positionally across the array’s dimensions, with ellipses expanded to the full dimensionality and each resulting label bound to ... |
pydata/xarray | 8f0d9e5c9909c93a90306ed7cb5a80c1c2e1c97d | 3,094 | 3,095 | {
"nodes": [
{
"id": "xarray/core/variable.py::IndexVariable::copy"
}
],
"edges": []
} | `IndexVariable.copy` must return a new instance of the same index-variable type that preserves the sole dimension and independent attribute and encoding mappings. With no replacement data, it must copy the underlying pandas-index representation using the requested `deep` argument while retaining index semantics and the... |
pydata/xarray | 118f4d996e7711c9aced916e6049af9f28d5ec66 | 3,150 | 3,151 | {
"nodes": [
{
"id": "xarray/backends/api.py::open_mfdataset"
},
{
"id": "xarray/core/combine.py::combine_by_coords"
}
],
"edges": [
{
"source": "xarray/backends/api.py::open_mfdataset",
"target": "xarray/core/combine.py::combine_by_coords"
}
]
} | With `combine='by_coords'`, `open_mfdataset` must open every requested input dataset (applying any preprocessing first) and delegate their combination to `combine_by_coords`, forwarding the compatibility and variable/coordinate selection policies. The result must be determined by varying dimension-coordinate values rat... |
pydata/xarray | 69c7e01e5167a3137c285cb50d1978252bb8bcbf | 3,304 | 3,305 | {
"nodes": [
{
"id": "xarray/core/dataset.py::Dataset::quantile"
},
{
"id": "xarray/core/variable.py::Variable::quantile"
}
],
"edges": []
} | Dataset.quantile must validate requested dimensions, coerce q to floating-point quantile values, and compute NaN-skipping percentiles for each eligible data variable using the selected interpolation rule. Each variable must reduce only over its requested dimensions (or all of its dimensions when appropriate), preservin... |
pydata/xarray | ef6e6a7b86f8479b9a1fecf15ad5b88a2326b31e | 3,676 | 3,677 | {
"nodes": [
{
"id": "xarray/core/dataset.py::Dataset::_calculate_binary_op"
},
{
"id": "xarray/core/dataset.py::Dataset::merge"
},
{
"id": "xarray/core/dataset.py::_binary_op::func"
},
{
"id": "xarray/core/dataset.py::_inplace_binary_op::func"
}
],
"edges":... | Dataset binary operators must first handle grouped operands according to their supported protocol, align Dataset/DataArray operands using the selected arithmetic join (including operand reversal for reflected operators), and then apply the operation independently to data variables while preserving compatible coordinate... |
pydata/xarray | 484d1ce5ff8969b6ca6fa942b344379725f33b9c | 4,049 | 4,094 | {
"nodes": [
{
"id": "xarray/core/dataarray.py::DataArray::to_unstacked_dataset"
}
],
"edges": []
} | `DataArray.to_unstacked_dataset(dim, level=0)` must convert a DataArray whose named dimension has a pandas MultiIndex into a Dataset by treating the selected MultiIndex level as the variable axis. It must reject a dimension that is not stacked, resolve `level` by either its integer position or name, and create one Data... |
pydata/xarray | 2542a63f6ebed1a464af7fc74b9f3bf302925803 | 4,074 | 4,075 | {
"nodes": [
{
"id": "xarray/core/weighted.py::Weighted::_sum_of_weights"
},
{
"id": "xarray/core/weighted.py::Weighted::_weighted_mean"
}
],
"edges": [
{
"source": "xarray/core/weighted.py::Weighted::_weighted_mean",
"target": "xarray/core/weighted.py::Weighted::_sum_o... | These functions support weighted reductions of labeled array data, where associated weights determine each value’s contribution. `_sum_of_weights` produces weight totals across dimensions while accounting for missing data, and `_weighted_mean` produces a weighted average across dimensions, using those totals as its nor... |
pydata/xarray | d9ebcafaddf0bb80052d30f43ca5ea18a5c7229f | 4,354 | 4,356 | {
"nodes": [
{
"id": "xarray/core/nanops.py::_maybe_null_out"
},
{
"id": "xarray/core/nanops.py::nanprod"
},
{
"id": "xarray/core/nanops.py::nansum"
}
],
"edges": [
{
"source": "xarray/core/nanops.py::nanprod",
"target": "xarray/core/nanops.py::_maybe_null... | `nansum` and `nanprod` provide missing-value-aware sum and product reductions, aggregating array data across axes into reduced results. In this scope, NaN denotes missing data, and `_maybe_null_out` supports both reductions by managing result missingness in relation to valid-data count requirements. |
pydata/xarray | 180e76d106c697b1dd94b814a49dc2d7e58c8551 | 4,627 | 4,629 | {
"nodes": [
{
"id": "xarray/core/concat.py::_dataarray_concat"
},
{
"id": "xarray/core/concat.py::_dataset_concat"
},
{
"id": "xarray/core/concat.py::concat"
},
{
"id": "xarray/core/dataset.py::Dataset::__init__"
},
{
"id": "xarray/core/merge.py::data... | The scope covers xarray's shared attribute-combination and labeled-merge paths. merge_attrs is the common sink from both concat entry points and from merge_core: for a nonempty sequence of attribute mappings it must apply combine_attrs deterministically ('drop' yields an empty mapping, 'override' copies only the first ... |
pydata/xarray | bdba889aa187b905343c94f3168703801f265e5b | 4,682 | 4,687 | {
"nodes": [
{
"id": "xarray/core/computation.py::where"
}
],
"edges": []
} | The where function provides elementwise conditional selection between two sources of values, accepting scalars, arrays, and xarray objects and returning array-like or labeled data. It supports xarray’s dimension-aware broadcasting, which lets computations span named dimensions, within a contract of aligned dimension co... |
pydata/xarray | f74c446332feba47615fa02e75cda961c974c2c0 | 4,954 | 4,966 | {
"nodes": [
{
"id": "xarray/coding/variables.py::UnsignedIntegerCoder::decode"
}
],
"edges": []
} | UnsignedIntegerCoder.decode converts a serialized variable into an xarray variable with the integer signedness interpretation described by serialization metadata. It participates in xarray’s variable decoding conventions, where metadata conveys how stored numeric data should be interpreted in the in-memory data model. |
pydata/xarray | 8389fe6e8c86a04d57f25fe137b6f2db77065523 | 6,444 | 6,461 | {
"nodes": [
{
"id": "xarray/core/computation.py::where"
}
],
"edges": []
} | `where(cond, x, y, keep_attrs=None)` performs elementwise conditional selection—taking `x` wherever `cond` is true and `y` otherwise—while applying xarray’s labeled broadcasting and coordinate merging rules. Any indexes requiring alignment among labeled inputs must already be exactly equal, and Dataset inputs must expo... |
pydata/xarray | 6bb2b855498b5c68d7cca8cceb710365d58e6048 | 6,597 | 6,599 | {
"nodes": [
{
"id": "xarray/core/computation.py::_ensure_numeric"
},
{
"id": "xarray/core/computation.py::polyval"
}
],
"edges": [
{
"source": "xarray/core/computation.py::polyval",
"target": "xarray/core/computation.py::_ensure_numeric"
}
]
} | `polyval` evaluates polynomials represented by coefficients along a polynomial-degree dimension at supplied values, accepting and returning xarray DataArray or Dataset objects. `_ensure_numeric` supports this numerical evaluation by converting datetime-valued variables to numeric representations within those objects, c... |
pydata/xarray | c4e40d991c28be51de9ac560ce895ac7f9b14924 | 6,931 | 6,938 | {
"nodes": [
{
"id": "xarray/core/variable.py::IndexVariable::to_index_variable"
}
],
"edges": []
} | IndexVariable.to_index_variable returns the variable as an xarray.IndexVariable, providing its index-oriented representation. An IndexVariable accommodates a pandas.Index within xarray’s variable model, representing immutable, one-dimensional values associated with a named dimension. |
pydata/xarray | 076bd8e15f04878d7b97100fb29177697018138f | 7,220 | 7,229 | {
"nodes": [
{
"id": "xarray/core/computation.py::where"
}
],
"edges": []
} | `where(cond, x, y, keep_attrs=None)` must perform elementwise conditional selection—choosing `x` where `cond` is true and `y` otherwise—while applying xarray’s labeled broadcasting across all three inputs. Labeled indexes and Dataset data-variable sets that require alignment must match exactly, rather than being implic... |
pydata/xarray | c92102bca4a20b4e9f2aacf722b7008698522c8a | 7,232 | 7,233 | {
"nodes": [
{
"id": "xarray/core/rolling.py::Coarsen::construct"
}
],
"edges": []
} | Coarsen.construct must require one unambiguous mapping—passed directly or as keywords—that assigns every and only coarsened source dimension to exactly two non-string output dimension names. It must reshape each variable that uses a coarsened dimension by replacing that dimension with the mapped pair, whose inner size ... |
pylint-dev/pylint | 99589b08de8c5a2c6cc61e13a37420a868c80599 | 4,603 | 4,604 | {
"nodes": [
{
"id": "pylint/checkers/variables.py::VariablesChecker::_store_type_annotation_names"
},
{
"id": "pylint/checkers/variables.py::VariablesChecker::_store_type_annotation_node"
},
{
"id": "pylint/checkers/variables.py::VariablesChecker::leave_assign"
},
{
... | These VariablesChecker methods support static analysis of Python variable usage and scope by processing assignment, loop, context-manager, function, and argument declarations, while accounting for names referenced in type annotations. Together they connect AST traversal events with the checker’s broader checks for cons... |
pylint-dev/pylint | 754b487f4d892e3d4872b6fc7468a71db4e31c13 | 6,385 | 6,386 | {
"nodes": [
{
"id": "pylint/checkers/base_checker.py::BaseChecker::__init__"
},
{
"id": "pylint/config/argument.py::_CallableArgument::__init__"
},
{
"id": "pylint/config/arguments_manager.py::_ArgumentsManager::_add_parser_option"
},
{
"id": "pylint/config/argumen... | Run initialization must preprocess only the designated early command-line options before creating the linter: consume them (including either `--option=value` or a following non-option value when required), apply their effects to the Run state, preserve all other arguments in order, and reject missing required values or... |
pylint-dev/pylint | 0220a39f6d4dddd1bf8f2f6d83e11db58a093fbe | 6,471 | 6,528 | {
"nodes": [
{
"id": "pylint/lint/pylinter.py::PyLinter::_discover_files"
},
{
"id": "pylint/lint/pylinter.py::PyLinter::check"
},
{
"id": "pylint/lint/run.py::Run::__init__"
}
],
"edges": [
{
"source": "pylint/lint/pylinter.py::PyLinter::check",
"target":... | These functions support Pylint’s analysis of Python code for errors, coding-standard issues, and code smells. Run.__init__ provides the command-line-oriented startup interface and initiates linting; PyLinter.check is the main entry point for checking named files or modules; and PyLinter._discover_files identifies Pytho... |
pylint-dev/pylint | 79dfe9d77f2383e2be70bf1dd93bf1473e34afe1 | 6,902 | 6,903 | {
"nodes": [
{
"id": "pylint/lint/run.py::Run::__init__"
},
{
"id": "pylint/lint/run.py::_cpu_count"
}
],
"edges": [
{
"source": "pylint/lint/run.py::Run::__init__",
"target": "pylint/lint/run.py::_cpu_count"
}
]
} | Run.__init__ provides the entry point for starting a Pylint analysis from command-line-style arguments, coordinating configuration, linting, and reporting with support for a supplied reporter. _cpu_count supplies an available processor count for parallel linting, accounting for virtualized or containerized execution en... |
pylint-dev/pylint | cfc393a8dff9ec09bd2fcb25857e772ae04a4991 | 7,229 | 8,898 | {
"nodes": [
{
"id": "pylint/config/argument.py::_regexp_csv_transfomer"
}
],
"edges": []
} | `_regexp_csv_transfomer` converts a comma-separated string of regular expressions into a sequence of compiled patterns for Pylint’s option-parsing system. Regular expressions describe text-matching patterns, allowing configuration options to express multiple matching criteria. |
pylint-dev/pylint | 684a1d6aa0a6791e20078bc524f97c8906332390 | 7,231 | 7,277 | {
"nodes": [
{
"id": "pylint/__init__.py::modify_sys_path"
}
],
"edges": []
} | `modify_sys_path` mutates `sys.path` for module execution so imports do not resolve from the current working directory: it removes an initial empty string, `'.'`, or exact cwd entry; then, when `PYTHONPATH` begins or ends with an empty path component, removes the corresponding cwd-derived entry near the front unless `P... |
pytest-dev/pytest | da9a2b584eb7a6c7e924b2621ed0ddaeca0a7bea | 10,060 | 10,081 | {
"nodes": [
{
"id": "src/_pytest/unittest.py::TestCaseFunction::runtest"
}
],
"edges": []
} | The `runtest` method executes a collected standard-library `unittest.TestCase` test through pytest’s test-item interface. It serves as the integration point between unittest’s test execution and result protocol and pytest’s test-running and reporting model. |
pytest-dev/pytest | c98e7aed940d4f3b36f537d66079b4dc3490e5d4 | 5,606 | 5,631 | {
"nodes": [
{
"id": "src/_pytest/compat.py::getfuncargnames"
},
{
"id": "src/_pytest/compat.py::num_mock_patch_args"
},
{
"id": "src/_pytest/fixtures.py::FixtureDef::__init__"
},
{
"id": "src/_pytest/fixtures.py::FixtureManager::getfixtureinfo"
},
{
"... | Python collection must traverse an object's own and inherited namespace deterministically, honor opt-out and configured test naming rules, defer item creation through the collection hook, and provide default handling that recognizes eligible classes and callable test functions while rejecting non-functions with an appr... |
pytest-dev/pytest | 0215bcd84e900d9271558df98bed89f4b96187f8 | 5,786 | 5,787 | {
"nodes": [
{
"id": "src/_pytest/reports.py::BaseReport::_from_json"
},
{
"id": "src/_pytest/reports.py::BaseReport::_to_json"
},
{
"id": "src/_pytest/reports.py::pytest_report_from_serializable"
},
{
"id": "src/_pytest/reports.py::pytest_report_to_serializable"
... | These functions support converting pytest test-execution and collection reports into serializable data and restoring report objects, enabling report exchange by plugins. BaseReport._to_json and BaseReport._from_json provide the report-level conversion interface, while pytest_report_to_serializable and pytest_report_fro... |
pytest-dev/pytest | 8aba863a634f40560e25055d179220f0eefabe9a | 5,806 | 5,809 | {
"nodes": [
{
"id": "src/_pytest/pastebin.py::create_new_paste"
},
{
"id": "src/_pytest/pastebin.py::pytest_terminal_summary"
},
{
"id": "src/_pytest/pastebin.py::pytest_unconfigure"
}
],
"edges": [
{
"source": "src/_pytest/pastebin.py::pytest_terminal_summary"... | These functions support sharing pytest failure reports and test-session logs through a pastebin, a remote service that makes submitted text accessible by URL. create_new_paste accepts report contents and returns a paste URL; pytest_terminal_summary integrates failure-report sharing with terminal summary reporting, whil... |
pytest-dev/pytest | 73c5b7f4b11a81e971f7d1bb18072e06a87060f4 | 5,819 | 5,840 | {
"nodes": [
{
"id": "src/_pytest/config/__init__.py::Config::_getconftest_pathlist"
},
{
"id": "src/_pytest/config/__init__.py::Config::_preparse"
},
{
"id": "src/_pytest/config/__init__.py::Config::fromdictargs"
},
{
"id": "src/_pytest/config/__init__.py::Config::... | The scoped functions support pytest configuration and test discovery, constructing configuration from options and arguments and loading or consulting conftest.py files, which provide directory-scoped plugin hooks and settings. Session, package, and doctest collection discover collectors and test items from filesystem a... |
pytest-dev/pytest | 3a668ea6ff24b0c8f00498c3144c63bac561d925 | 6,189 | 6,202 | {
"nodes": [
{
"id": "src/_pytest/python.py::PyobjMixin::getmodpath"
},
{
"id": "src/_pytest/python.py::PyobjMixin::reportinfo"
}
],
"edges": [
{
"source": "src/_pytest/python.py::PyobjMixin::reportinfo",
"target": "src/_pytest/python.py::PyobjMixin::getmodpath"
}
... | PyobjMixin must derive a stable dotted path from a node’s collection ancestry: omit instance wrapper nodes, strip a module filename’s extension, and by default stop before the containing module so the result names the object within that module; optional flags must allow retaining the module component or continuing beyo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.