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
pytest-dev/pytest
e856638ba086fcf5bebf1bebea32d5cf78de87b4
6,194
6,197
{ "nodes": [ { "id": "src/_pytest/python.py::Package::collect" } ], "edges": [] }
Package collection treats the package’s directory as the collection root: it first exposes that package’s own `__init__.py` as a module only when it exists and matches the configured Python-file patterns, then traverses entries deterministically while honoring directory-recursion and collection-ignore policy. The root ...
pytest-dev/pytest
741a8b8023ecc72635e6b258cd88212620e06ff5
7,126
7,205
{ "nodes": [ { "id": "src/_pytest/setuponly.py::_show_fixture_action" }, { "id": "src/_pytest/setuponly.py::pytest_fixture_post_finalizer" } ], "edges": [ { "source": "src/_pytest/setuponly.py::pytest_fixture_post_finalizer", "target": "src/_pytest/setuponly.py::_show_f...
These functions support reporting fixture lifecycle activity in pytest. `_show_fixture_action` presents fixture action information, while `pytest_fixture_post_finalizer` connects fixture teardown to that reporting.
pytest-dev/pytest
c98bc4cd3d687fe9b392d8eecd905627191d4f06
7,215
7,236
{ "nodes": [ { "id": "src/_pytest/unittest.py::TestCaseFunction::runtest" } ], "edges": [] }
TestCaseFunction.runtest executes a collected unittest.TestCase test method within pytest’s test-running lifecycle. It bridges unittest’s class-based testing model with pytest’s role as a test runner, allowing existing unittest suites to run under pytest.
pytest-dev/pytest
cc283cfe79b9ab97edd2d10fb05d217ff498b809
7,322
7,324
{ "nodes": [ { "id": "src/_pytest/mark/__init__.py::deselect_by_keyword" }, { "id": "src/_pytest/mark/__init__.py::deselect_by_mark" }, { "id": "src/_pytest/mark/__init__.py::pytest_collection_modifyitems" }, { "id": "src/_pytest/mark/evaluate.py::MarkEvaluator::_is...
Collection filtering must apply `-k` before `-m`, compile each nonempty selector into the restricted boolean expression language, and retain only items whose keyword or marker matcher satisfies it; deselection must be reported and replace the collection in place. Expressions must reject invalid syntax with a position-a...
pytest-dev/pytest
61014c5f94b99624c47b1aad9ae47782597dc88f
7,392
7,432
{ "nodes": [ { "id": "src/_pytest/skipping.py::pytest_runtest_makereport" } ], "edges": [] }
As a report-wrapper hook, obtain the completed phase report and normalize it according to the item’s stored skip/xfail state without disturbing ordinary outcomes when `--runxfail` is enabled. A call-phase unexpected success must be reported as a failure with an appropriate message. An explicit xfail exception becomes a...
pytest-dev/pytest
7f7a36478abe7dd1fa993b115d22606aa0e35e88
7,486
7,490
{ "nodes": [ { "id": "src/_pytest/skipping.py::pytest_runtest_call" } ], "edges": [] }
The skipping plugin’s pytest_runtest_call hook participates in the call phase of a test item, integrating expected-failure support with test execution. Expected failure (xfail) is pytest’s concept for identifying tests anticipated to fail as part of the suite’s declared expectations.
pytest-dev/pytest
41d211c24a6781843b174379d6d6538f5c17adb9
7,517
7,521
{ "nodes": [ { "id": "src/_pytest/capture.py::FDCaptureBinary::__init__" } ], "edges": [] }
FDCaptureBinary.__init__ initializes a binary I/O capture object for a specified operating-system file descriptor. File descriptors identify I/O channels at the operating-system level; this object supports pytest’s descriptor-level capture, with captured data represented as bytes.
pytest-dev/pytest
422685d0bdc110547535036c1ff398b5e1c44145
7,569
7,571
{ "nodes": [ { "id": "src/_pytest/logging.py::LogCaptureFixture::__init__" }, { "id": "src/_pytest/logging.py::LogCaptureFixture::_finalize" }, { "id": "src/_pytest/logging.py::LogCaptureFixture::set_level" }, { "id": "src/_pytest/logging.py::caplog" } ], "e...
These functions provide pytest’s test-scoped log capture fixture, giving tests access to captured logging output for inspection and assertions. LogCaptureFixture.__init__ creates the fixture for a test node, caplog exposes it to tests, set_level controls capture verbosity through logging levels, and _finalize restores ...
pytest-dev/pytest
24ef7c98e88081fbd1d4050374bb50a5a3c6cb0e
7,792
10,356
{ "nodes": [ { "id": "src/_pytest/mark/structures.py::MarkDecorator::__call__" }, { "id": "src/_pytest/mark/structures.py::get_unpacked_marks" }, { "id": "src/_pytest/mark/structures.py::store_mark" }, { "id": "src/_pytest/python.py::Class::newinstance" }, {...
These functions support applying, storing, and retrieving pytest marks on Python test objects, including configuring mark decorators. They also provide access to the underlying Python objects represented by collection and test nodes, create test-class instances, and obtain the callable associated with a test-function i...
pytest-dev/pytest
a7e38c5c61928033a2dc1915cbee8caa8544a4d0
7,981
7,982
{ "nodes": [ { "id": "src/_pytest/main.py::Session::collect" }, { "id": "src/_pytest/pathlib.py::visit" }, { "id": "src/_pytest/python.py::Package::collect" } ], "edges": [ { "source": "src/_pytest/main.py::Session::collect", "target": "src/_pytest/pathlib...
Directory collection must traverse deterministically: enumerate each directory’s entries in name order, expose those entries before descending, and descend only into directories accepted by the caller’s recursion policy. Session-level collection must apply that policy, process a directory’s package initializer before i...
pytest-dev/pytest
c14a9adba35ac675ce3e825d34d01d5bb51748c3
8,394
8,399
{ "nodes": [ { "id": "src/_pytest/python.py::Class::_inject_setup_class_fixture" }, { "id": "src/_pytest/python.py::Class::_inject_setup_method_fixture" }, { "id": "src/_pytest/python.py::Class::collect" }, { "id": "src/_pytest/python.py::Module::_inject_setup_funct...
These functions support collection of Python test classes and unittest.TestCase tests into pytest’s test hierarchy, and integrate their lifecycle hooks with pytest’s fixture system. The fixture injection and construction functions adapt module, class, function, and method setup and teardown responsibilities into automa...
qutebrowser/qutebrowser
690813e1b10fee83660a6740ab3aabc575a9b125
7,866
7,933
{ "nodes": [ { "id": "qutebrowser/browser/webengine/webview.py::WebEnginePage::chooseFiles" } ], "edges": [ { "source": "qutebrowser/browser/webengine/webview.py::WebEnginePage::chooseFiles", "target": "qutebrowser/browser/webengine/webview.py::WebEnginePage::chooseFiles" } ] }
File selection handling must preserve the browser’s file-input selection semantics while honoring the configured handler: with native/default handling, it must honor the requested mode and prior selections and make every file allowed by the full accepted-type constraint available, including equivalent filename forms, w...
qutebrowser/qutebrowser
434f6906f9088172494fa7e219a856d893ed55ba
7,928
7,935
{ "nodes": [ { "id": "qutebrowser/browser/webengine/darkmode.py::_variant" }, { "id": "qutebrowser/browser/webengine/darkmode.py::settings" }, { "id": "qutebrowser/config/qtargs.py::_qtwebengine_args" }, { "id": "qutebrowser/config/qtargs.py::qt_args" } ], "...
qt_args must return the final argument vector for Qt: it preserves ordinary user flags and qt.args entries, stops after them for non-QtWebEngine backends, and for QtWebEngine inserts `--webEngineArgs` right after argv[0] when the WebEngine version is >= 6.4 so subsequent Chromium switches are treated as web-engine argu...
redis/redis
d1a17fad7825545ce898242937036e8d5cf08ee6
16,004
16,006
{ "nodes": [ { "id": "src/t_stream.c::streamTrim" }, { "id": "src/t_stream.c::xaddCommand" }, { "id": "src/t_stream.c::xtrimCommand" } ], "edges": [ { "source": "src/t_stream.c::xaddCommand", "target": "src/t_stream.c::streamTrim" }, { "sourc...
Redis streams hold messages identified by entry IDs and containing field-value data. Within this scope, xaddCommand appends messages and supports trimming, while xtrimCommand exposes trimming as a standalone command; streamTrim provides their shared responsibility for removing entries according to trimming criteria. Ad...
redis/redis
da47cd5bf47ccff66b5f406b1b4677bda0136d42
16,025
16,026
{ "nodes": [ { "id": "src/hotkeys.c::hotkeysCommand" } ], "edges": [] }
hotkeysCommand handles Redis client requests to manage hot-key tracking, retrieve tracking statistics, release tracking resources, and obtain command help. Hot keys are keys associated with prominent CPU-time or network-byte consumption; this command provides an administrative interface for identifying those resource-i...
redis/redis
9e190968035ff4a72c17c28d2b461a803a418166
16,051
16,053
{ "nodes": [ { "id": "src/redis-cli.c::clusterManagerCommandAddNode" } ], "edges": [] }
clusterManagerCommandAddNode handles redis-cli’s cluster-management command for adding a Redis server to an existing cluster, using addresses identifying the new server and an existing member. Its role is to extend cluster membership within Redis’s primary–replica model, where replicas maintain copies of a primary serv...
redis/redis
33c2a2a145d3f09b42503df27d3ffbc76f34e32c
16,095
16,096
{ "nodes": [ { "id": "src/aof.c::loadAppendOnlyFiles" }, { "id": "src/aof.c::loadPreLoadAOFFile" }, { "id": "src/aof.c::loadPreLoadManifestFile" }, { "id": "src/aof.c::loadSingleAppendOnlyFile" }, { "id": "src/debug.c::debugCommand" }, { ...
These functions connect Redis server startup and disk-data restoration with command execution: the AOF loaders restore persisted data from append-only command logs, including individual files and manifest-described file sets supplied for preloading. The execution scope covers core command invocation, commands issued by...
redis/redis
9a5c6e97884e7d8e456eaabd2a1e50f686f60125
16,107
16,120
{ "nodes": [ { "id": "src/db.c::delexCommand" } ], "edges": [] }
`delexCommand` implements Redis’s DELEX command for conditional key removal using value or digest comparisons. It accepts a key and optional comparison criteria and reports the deletion outcome, supporting conditional updates to Redis’s key-value database.
scikit-learn/scikit-learn
b90661d6a46aa3619d3eec94d5281f5888add501
10,901
10,908
{ "nodes": [ { "id": "sklearn/feature_extraction/text.py::CountVectorizer::get_feature_names" } ], "edges": [] }
CountVectorizer.get_feature_names exposes the feature names associated with integer feature indices in the vectorizer’s token-count representation of text documents. It connects the numerical features of the document matrix to the vocabulary terms they represent.
scikit-learn/scikit-learn
c49a5bf8a8f550a8175b5f84a5842ab4b7093700
12,650
12,682
{ "nodes": [ { "id": "sklearn/decomposition/dict_learning.py::DictionaryLearning::fit" }, { "id": "sklearn/decomposition/dict_learning.py::MiniBatchDictionaryLearning::fit" }, { "id": "sklearn/decomposition/dict_learning.py::MiniBatchDictionaryLearning::partial_fit" }, { ...
These functions support sparse representations of data: dictionary learning fits a set of basis elements called atoms and corresponding sparse coefficients, while sparse coding and transformation express data using an existing dictionary. The dictionary-learning functions and estimator methods provide batch, online, an...
scikit-learn/scikit-learn
a7b8b9e9e16d4e15fabda5ae615086c2e1c47d8a
12,972
12,973
{ "nodes": [ { "id": "sklearn/linear_model/least_angle.py::LassoLarsIC::fit" } ], "edges": [] }
LassoLarsIC.fit trains a Lasso linear regression model from feature data and target values using least angle regression, returning the fitted estimator. Lasso encourages sparse coefficients through L1 regularization, while information criteria (AIC or BIC) select the regularization strength by balancing goodness of fit...
scikit-learn/scikit-learn
c2d56a6c8fef79dadcca1db4eb8c5b1e78c30d28
13,110
13,124
{ "nodes": [ { "id": "sklearn/model_selection/_split.py::StratifiedKFold::_iter_test_masks" }, { "id": "sklearn/model_selection/_split.py::StratifiedKFold::_make_test_folds" } ], "edges": [ { "source": "sklearn/model_selection/_split.py::StratifiedKFold::_iter_test_masks", ...
These methods support stratified K-fold cross-validation, which partitions labeled samples into training and test folds while preserving class proportions. `_make_test_folds` supplies test-fold assignments, and `_iter_test_masks` exposes test-set membership as Boolean masks for the cross-validation splits.
scikit-learn/scikit-learn
703991f3f9bdf5bc95755b84a387b63394a825ee
13,314
13,328
{ "nodes": [ { "id": "sklearn/linear_model/huber.py::HuberRegressor::fit" } ], "edges": [] }
HuberRegressor.fit must validate numeric single-target training data (including CSR input) and sample-weight length, treating omitted weights as unit weights and rejecting epsilon below 1. It must optimize the regularized, scale-aware Huber objective with a strictly positive scale, using quadratic residual loss inside ...
scikit-learn/scikit-learn
abf77219043a13efbd3e709cd017eeef60852892
13,976
14,053
{ "nodes": [ { "id": "sklearn/tree/export.py::export_text" } ], "edges": [] }
export_text must return a deterministic, newline-delimited textual rule tree for a fitted decision-tree classifier or regressor: each internal node emits its feature name and rounded threshold for the <= left-child branch before the > right-child branch, with indentation derived from depth and spacing; leaves emit the ...
scikit-learn/scikit-learn
da14dfdea2712c5bff08f62b6954e94cc4ab47d2
14,421
14,496
{ "nodes": [ { "id": "sklearn/cluster/optics_.py::OPTICS::fit" }, { "id": "sklearn/cluster/optics_.py::cluster_optics_xi" }, { "id": "sklearn/cluster/optics_.py::compute_optics_graph" } ], "edges": [ { "source": "sklearn/cluster/optics_.py::OPTICS::fit", "...
These functions support OPTICS density-based clustering, whose reachability representation captures clustering structure across varying densities. `OPTICS.fit` fits the estimator to sample features or pairwise distances and assigns clustering results; `compute_optics_graph` produces the sample ordering and associated d...
scikit-learn/scikit-learn
4b6273b87442a4437d8b3873ea3022ae163f4fdf
14,709
14,710
{ "nodes": [ { "id": "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py::BaseHistGradientBoosting::_check_early_stopping_scorer" }, { "id": "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py::BaseHistGradientBoosting::fit" } ], "edges": [ { "source": "...
BaseHistGradientBoosting.fit trains a histogram-based gradient boosting tree model from input samples and target values and returns the fitted estimator. Within fitting, _check_early_stopping_scorer assesses model performance on training or validation data to determine whether training should stop early, connecting mod...
scikit-learn/scikit-learn
fdbaa58acbead5a254f2e6d597dc1ab3b947f4c6
14,893
14,894
{ "nodes": [ { "id": "sklearn/svm/base.py::BaseLibSVM::_sparse_fit" } ], "edges": [] }
BaseLibSVM._sparse_fit provides sparse-data model fitting for libsvm-backed support vector machine estimators, using training features and associated fitting inputs to establish the learned model. Support vector machines use a subset of training samples, called support vectors, to define their decision function; this m...
scikit-learn/scikit-learn
2c867b8f822eb7a684f0d5c4359e4426e1c9cfe0
25,730
25,747
{ "nodes": [ { "id": "sklearn/utils/_set_output.py::_wrap_data_with_container" }, { "id": "sklearn/utils/_set_output.py::_wrap_in_pandas_container" }, { "id": "sklearn/utils/_set_output.py::_wrap_method_output::wrapped" } ], "edges": [ { "source": "sklearn/utils...
The wrapped transform/fit-transform result must remain unchanged when dense output is configured as default or the estimator is not eligible for automatic wrapping. For configured pandas output, the primary result must be a pandas DataFrame using the original input’s index when creating a new frame and feature names ob...
scikit-learn/scikit-learn
e3d1f9ac39e4bf0f31430e779acc50fb05fe1b64
25,844
25,931
{ "nodes": [ { "id": "sklearn/ensemble/_iforest.py::IsolationForest::decision_function" }, { "id": "sklearn/ensemble/_iforest.py::IsolationForest::fit" }, { "id": "sklearn/ensemble/_iforest.py::IsolationForest::predict" }, { "id": "sklearn/ensemble/_iforest.py::Isol...
Scope: IsolationForest's fitted-scoring path (fit, score_samples, decision_function, predict) in sklearn/ensemble/_iforest.py. Obligations: (1) fit must produce a usable model state: it validates X once, resolves max_samples to an integer in [1, n_samples] (clamping values above n_samples, "auto" meaning min(256, n_sa...
scikit-learn/scikit-learn
01b9050b690ebb07870454720f5f67ac235348e4
25,957
25,973
{ "nodes": [ { "id": "sklearn/feature_selection/_sequential.py::SequentialFeatureSelector::_get_best_new_feature_score" }, { "id": "sklearn/feature_selection/_sequential.py::SequentialFeatureSelector::fit" } ], "edges": [ { "source": "sklearn/feature_selection/_sequential.py:...
SequentialFeatureSelector.fit must validate feature-selection settings and input data, derive a valid target count, and build a boolean support mask greedily from an initially empty selection/exclusion mask. At every step, _get_best_new_feature_score must evaluate each still-eligible single-feature change using the sam...
scikit-learn/scikit-learn
e886ce4e1444c61b865e7839c9cff5464ee20ace
26,193
26,194
{ "nodes": [ { "id": "sklearn/metrics/_plot/roc_curve.py::RocCurveDisplay::from_predictions" }, { "id": "sklearn/metrics/_ranking.py::_binary_roc_auc_score" }, { "id": "sklearn/metrics/_ranking.py::_multiclass_roc_auc_score" }, { "id": "sklearn/metrics/_ranking.py::...
This scope computes binary ROC curves, their areas, and a plotting wrapper, and must preserve the following. roc_curve is binary-only and returns fpr, tpr, thresholds that trace the same curve: fpr and tpr are non-decreasing within [0,1], thresholds are non-increasing with the initial threshold set to +inf so the curve...
scikit-learn/scikit-learn
e860fd2d125f7869ec985599edcb6efc7b0df913
8,720
11,578
{ "nodes": [ { "id": "sklearn/linear_model/logistic.py::LogisticRegressionCV::fit" }, { "id": "sklearn/linear_model/logistic.py::_log_reg_scoring_path" } ], "edges": [ { "source": "sklearn/linear_model/logistic.py::LogisticRegressionCV::fit", "target": "sklearn/linear_m...
`LogisticRegressionCV.fit` must validate classifier input and compatible solver options, encode labels while preserving original labels for public result keys, construct stratified classifier folds, and evaluate every requested regularization value for each required OvR class (or once for multinomial) on each fold. Eac...
scikit-learn/scikit-learn
c61a69437568c84a2b193799b99c698c0a30f04f
9,515
10,844
{ "nodes": [ { "id": "sklearn/metrics/cluster/supervised.py::fowlkes_mallows_score" } ], "edges": [] }
`fowlkes_mallows_score` must validate that the two one-dimensional cluster labelings describe the same number of samples, then compare their induced same-cluster pair relationships rather than the numeric identities of labels. It must form the joint contingency counts and return the Fowlkes–Mallows index TP / sqrt((TP ...
scikit-learn/scikit-learn
a7a834bdb7a51ec260ff005715d50ab6ed01a16b
9,784
9,288
{ "nodes": [ { "id": "sklearn/cluster/bicluster.py::BaseSpectral::_k_means" }, { "id": "sklearn/cluster/bicluster.py::BaseSpectral::fit" }, { "id": "sklearn/cluster/bicluster.py::SpectralBiclustering::_fit" }, { "id": "sklearn/cluster/bicluster.py::SpectralBicluster...
Spectral clustering `fit` must validate a finite float CSR-or-dense input and supported parameters, then derive row and column partitions from normalized spectral embeddings using the configured, reproducible k-means variant. Co-clustering must jointly cluster the scaled row and column embeddings and split the resultin...
sphinx-doc/sphinx
cab2d93076d0cca7c53fac885f927dde3e2a5fec
10,104
10,466
{ "nodes": [ { "id": "sphinx/builders/gettext.py::Catalog::__iter__" } ], "edges": [] }
Catalog.__iter__ provides iteration over a catalog’s translatable message entries, yielding Message objects. In Sphinx’s internationalization workflow, message catalogs collect documentation text for translation, and this interface exposes those entries for consumption.
sphinx-doc/sphinx
9141464b8bcd4f2ade902107872fd001655a5131
10,318
10,323
{ "nodes": [ { "id": "sphinx/directives/code.py::LiteralIncludeReader::read" } ], "edges": [] }
LiteralIncludeReader.read supplies external-file text for Sphinx’s literalinclude directive, which embeds code or other plain text as a literal block in documentation. It serves as the reader’s content retrieval interface and returns a text-and-integer pair.
sphinx-doc/sphinx
f1061c012e214f16fd8790dec3c283d787e3daa8
10,434
10,435
{ "nodes": [ { "id": "sphinx/writers/latex.py::LaTeXTranslator::visit_literal" } ], "edges": [] }
LaTeXTranslator.visit_literal handles inline literal document nodes as part of Sphinx’s LaTeX translation, contributing their formatting to the generated LaTeX output. Inline literals represent text presented literally within surrounding prose, including code.
sphinx-doc/sphinx
ac2b7599d212af7d04649959ce6926c63c3133fa
10,570
10,614
{ "nodes": [ { "id": "sphinx/ext/inheritance_diagram.py::html_visit_inheritance_diagram" } ], "edges": [] }
When visiting an inheritance-diagram node for HTML, the renderer must generate a stable, diagram-specific Graphviz name from the directive content and displayed-name setting, then emit the inheritance graph with the builder’s configured attributes and resolved class links. Each resolved reference must be associated wit...
sphinx-doc/sphinx
de6b18ac7de317030be4344ea7a9d553c423ffcf
10,678
11,510
{ "nodes": [ { "id": "sphinx/directives/other.py::Include::run" } ], "edges": [ { "source": "sphinx/directives/other.py::Include::run", "target": "sphinx/directives/other.py::Include::run" } ] }
`Include.run` processes Sphinx’s reStructuredText include directive, which incorporates content from another source file into the current document. Its role supports reuse of documentation text within Sphinx’s document parsing framework, with a declared return type of document nodes.
sphinx-doc/sphinx
d3c91f951255c6729a53e38c895ddc0af036b5b9
11,437
11,445
{ "nodes": [ { "id": "sphinx/parsers.py::RSTParser::decorate" }, { "id": "sphinx/parsers.py::RSTParser::parse" }, { "id": "sphinx/util/rst.py::prepend_prolog" } ], "edges": [ { "source": "sphinx/parsers.py::RSTParser::decorate", "target": "sphinx/util/rst....
RSTParser must normalize string input into source-associated, tab-aware reST lines while preserving a supplied StringList, then decorate that same content before building the document tree. Decoration must make configured global reST available to every parsed source: a nonempty prolog is inserted after any initial docu...
sphinx-doc/sphinx
27ac10de04697e2372d31db5548e56a7c6d9265d
4,258
7,910
{ "nodes": [ { "id": "sphinx/ext/napoleon/__init__.py::_skip_member" }, { "id": "sphinx/ext/napoleon/__init__.py::setup" } ], "edges": [ { "source": "sphinx/ext/napoleon/__init__.py::setup", "target": "sphinx/ext/napoleon/__init__.py::_skip_member" } ] }
The scope covers the napoleon extension's Sphinx entry point `setup` and the autodoc member filter `_skip_member` it wires up. `setup` must act as the extension's registration boundary: for a real `Sphinx` application it must install the `autodoc-skip-member` handler `_skip_member` (the graph edge), ensure the autodoc ...
sphinx-doc/sphinx
b428cd2404675475a5c3dc2a2b0790ba57676202
6,640
8,120
{ "nodes": [ { "id": "sphinx/application.py::Sphinx::__init__" }, { "id": "sphinx/application.py::Sphinx::_init_i18n" } ], "edges": [ { "source": "sphinx/application.py::Sphinx::__init__", "target": "sphinx/application.py::Sphinx::_init_i18n" } ] }
Sphinx.__init__ creates the main documentation application from project directories, a builder selection, configuration, and runtime settings. Its initialization scope includes _init_i18n, which loads translated strings from configured locale resources to support internationalization—the use of message catalogs that ma...
sphinx-doc/sphinx
2e506c5ab457cba743bb47eb5b8c8eb9dd51d23d
7,294
7,590
{ "nodes": [ { "id": "sphinx/domains/cpp.py::DefinitionParser::_parse_cast_expression" }, { "id": "sphinx/domains/cpp.py::DefinitionParser::_parse_fold_or_paren_expression" }, { "id": "sphinx/domains/cpp.py::DefinitionParser::_parse_literal" }, { "id": "sphinx/domai...
These functions parse C++ expression syntax into expression representations for Sphinx’s C++ documentation domain, covering literals, primary expressions, parenthesized and fold expressions, postfix and unary expressions, casts, and the expression parser used within binary-operator parsing. These categories describe ba...
sphinx-doc/sphinx
4caa7d7c379025052da8774a648dccf29426d5f0
7,418
7,440
{ "nodes": [ { "id": "sphinx/domains/std.py::Glossary::run" }, { "id": "sphinx/domains/std.py::make_glossary_term" }, { "id": "sphinx/transforms/i18n.py::Locale::apply" } ], "edges": [ { "source": "sphinx/domains/std.py::Glossary::run", "target": "sphinx/d...
Glossary.run turns glossary directive content into document nodes representing terms and definitions that readers can cross-reference. make_glossary_term provides shared construction of individual glossary term nodes for glossary creation and localization. Locale.apply replaces translatable document content with transl...
sphinx-doc/sphinx
aca3f825f2e4a8817190f3c885a242a285aa0dba
7,445
7,454
{ "nodes": [ { "id": "sphinx/domains/python.py::PyObject::handle_signature" }, { "id": "sphinx/domains/python.py::_parse_annotation" }, { "id": "sphinx/domains/python.py::_parse_annotation::make_xref" }, { "id": "sphinx/domains/python.py::_parse_arglist" } ], ...
These functions support Sphinx’s Python-domain API descriptions by turning Python signatures into documentation nodes: `PyObject.handle_signature` handles the overall signature and returns object identity information, while `_parse_arglist` represents its parameters. `_parse_annotation` represents type annotations, whi...
sphinx-doc/sphinx
e188d56ed1248dead58f3f8018c0e9a3f99193f7
7,780
8,056
{ "nodes": [ { "id": "sphinx/ext/napoleon/docstring.py::GoogleDocstring::_consume_fields" }, { "id": "sphinx/ext/napoleon/docstring.py::GoogleDocstring::_parse_parameters_section" } ], "edges": [ { "source": "sphinx/ext/napoleon/docstring.py::GoogleDocstring::_parse_parameter...
These functions support converting Google-style parameter documentation, which describes argument names, types, and meanings, into reStructuredText for Sphinx. `_consume_fields` gathers docstring field information, while `_parse_parameters_section` uses that information to produce the parameter section’s documentation ...
sphinx-doc/sphinx
fabe685638c7f8fa24b3b0a44ac264cff5f1d160
8,131
8,475
{ "nodes": [ { "id": "sphinx/builders/linkcheck.py::CheckExternalLinksBuilder::check_thread" }, { "id": "sphinx/builders/linkcheck.py::CheckExternalLinksBuilder::check_thread::check_uri" }, { "id": "sphinx/builders/linkcheck.py::check_thread::check" } ], "edges": [ { ...
These functions support Sphinx’s external-link checking: check_thread provides the worker context, while check and check_uri assess document links and produce link-check results. External links reference resources outside the documentation, and this scope contributes to identifying broken links and redirects for the bu...
sphinx-doc/sphinx
9175da437ed84e43b00ed4c28ccfe629260d3c13
8,268
8,269
{ "nodes": [ { "id": "sphinx/builders/linkcheck.py::CheckExternalLinksBuilder::check_thread" }, { "id": "sphinx/builders/linkcheck.py::CheckExternalLinksBuilder::check_thread::check_uri" }, { "id": "sphinx/builders/linkcheck.py::check_thread::check" } ], "edges": [ { ...
Each worker must continuously consume queued link records until a sentinel is received, classify each URI exactly once into the reported status tuple, and enqueue the original URI/location together with that result. Empty, fragment-only, mailto, unsupported-scheme, ignored, and local-path links must be resolved without...
sphinx-doc/sphinx
00db1ea631bf72103d32cdb1edf4304b980502de
8,365
8,551
{ "nodes": [ { "id": "sphinx/domains/python.py::PyXrefMixin::make_xref" }, { "id": "sphinx/util/docfields.py::DocFieldTransformer::transform" }, { "id": "sphinx/util/docfields.py::DocFieldTransformer::transform_all" } ], "edges": [ { "source": "sphinx/util/docfi...
These functions support Sphinx object documentation, where doc fields describe aspects of an API and cross-references connect references to documented objects. DocFieldTransformer.transform reformats a single field list using domain field definitions, while transform_all applies that responsibility across an object des...
sphinx-doc/sphinx
8a622ba7ea4306a07d4b700a3776fcbc018402bd
8,452
8,459
{ "nodes": [ { "id": "sphinx/ext/autodoc/typehints.py::record_typehints" } ], "edges": [] }
`record_typehints` records a documented object's type hints in the Sphinx environment as part of autodoc processing, supporting the generation of documentation from type annotations.
sphinx-doc/sphinx
07983a5a8704ad91ae855218ecbda1c8598200ca
8,592
8,593
{ "nodes": [ { "id": "sphinx/ext/autodoc/__init__.py::ModuleDocumenter::get_object_members" } ], "edges": [] }
ModuleDocumenter.get_object_members supplies module members for Sphinx autodoc’s automatic module documentation, where members are objects exposed by a Python module. Its interface accepts a member-selection request and returns member information together with an indicator concerning module-membership checking.
sphinx-doc/sphinx
82ef497a8c88f0f6e50d84520e7276bfbf65025d
8,720
8,721
{ "nodes": [ { "id": "sphinx/ext/viewcode.py::collect_pages" } ], "edges": [] }
The `collect_pages` function supplies additional HTML pages for the viewcode extension’s highlighted source-code presentation. It accepts the Sphinx application and yields page descriptions containing page names, rendering context, and template names for the HTML builder.
sphinx-doc/sphinx
1513d5077439b6f1e69108233d1a08059f420970
9,224
9,230
{ "nodes": [ { "id": "sphinx/util/docfields.py::DocFieldTransformer::transform" }, { "id": "sphinx/util/docfields.py::DocFieldTransformer::transform_all" } ], "edges": [ { "source": "sphinx/util/docfields.py::DocFieldTransformer::transform_all", "target": "sphinx/util/d...
These methods improve the presentation of doc fields—reStructuredText field lists within object descriptions—using field definitions supplied by a Sphinx domain. `transform` updates a single field list, while `transform_all` applies that transformation to the field list children of an object-description content node.
sphinx-doc/sphinx
03c4b56c6e1be86c64d5ec3d0944dff9cd206c41
9,319
9,320
{ "nodes": [ { "id": "sphinx/cmd/quickstart.py::ask_user" }, { "id": "sphinx/cmd/quickstart.py::main" } ], "edges": [ { "source": "sphinx/cmd/quickstart.py::main", "target": "sphinx/cmd/quickstart.py::ask_user" } ] }
These functions support initializing a Sphinx documentation project, whose source directory contains document sources and configuration for building documentation. `main` is the command-line entry point for creating this initial project setup, while `ask_user` collects project information and setup preferences through ...
sphinx-doc/sphinx
23ab36bcd721128b46876eae6c3fdeef96885665
9,575
10,449
{ "nodes": [ { "id": "sphinx/ext/autodoc/typehints.py::merge_typehints" }, { "id": "sphinx/ext/autodoc/typehints.py::modify_field_list" } ], "edges": [] }
These functions support autodoc’s presentation of Python type hints—annotations describing parameter and return types—in generated function and method descriptions. `merge_typehints` integrates this type information into object-description content, while `modify_field_list` updates documentation field lists with annota...
sphinx-doc/sphinx
80fbbb8462f075644e229c9d00293d4afde7adf2
9,576
9,602
{ "nodes": [ { "id": "sphinx/domains/python.py::PyObject::handle_signature" }, { "id": "sphinx/domains/python.py::PyProperty::handle_signature" }, { "id": "sphinx/domains/python.py::_parse_annotation" }, { "id": "sphinx/domains/python.py::_parse_annotation::unparse"...
These functions support Sphinx’s Python-domain documentation by turning Python object and property signatures into documentation nodes and returning identifying name information. Argument lists describe callable parameters, while type annotations express parameter, return, and property types; the scoped argument and an...
sphinx-doc/sphinx
a05dc0b41992b92fc4e352439a27eddd0f5a88a9
9,657
9,658
{ "nodes": [ { "id": "sphinx/ext/autodoc/mock.py::_MockModule::__getattr__" }, { "id": "sphinx/ext/autodoc/mock.py::_MockObject::__getattr__" }, { "id": "sphinx/ext/autodoc/mock.py::_MockObject::__init__" }, { "id": "sphinx/ext/autodoc/mock.py::_make_subclass" }...
These functions support Sphinx autodoc’s dependency mocking, which supplies placeholders for external dependencies during documentation builds. The two attribute-access methods provide mock objects for module and object attributes, while the initializer and subclass factory support creating those placeholders from gene...
sympy/sympy
1e14c7c06fd37a3aa26d6c7d721b2db9c9fe8caf
11,617
11,618
{ "nodes": [ { "id": "sympy/geometry/ellipse.py::Ellipse::tangent_lines" }, { "id": "sympy/geometry/line.py::Segment::length" }, { "id": "sympy/geometry/point.py::Point::distance" } ], "edges": [ { "source": "sympy/geometry/ellipse.py::Ellipse::tangent_lines", ...
Ellipse.tangent_lines provides geometric lines tangent to an ellipse through a supplied point, expressing the geometric concept of tangency. Point.distance measures Euclidean separation between points as a number or symbolic expression, while Segment.length expresses that same distance concept as the length between a s...
sympy/sympy
d7c3045115693e887bcd03599b7ca4650ac5f2cb
12,092
12,096
{ "nodes": [ { "id": "sympy/core/function.py::Function::_eval_evalf" } ], "edges": [] }
Function._eval_evalf is the numerical-evaluation hook for applied mathematical functions in SymPy, supporting the conversion of symbolic function expressions into numerical approximations at a requested precision. It connects symbolic mathematical functions with SymPy’s broader numerical-evaluation interface.
sympy/sympy
d4e0231b08147337745dcf601e62de7eefe2fb2d
12,420
17,318
{ "nodes": [ { "id": "sympy/simplify/radsimp.py::radsimp" }, { "id": "sympy/simplify/radsimp.py::radsimp::handle" }, { "id": "sympy/simplify/simplify.py::_nthroot_solve" }, { "id": "sympy/simplify/simplify.py::nthroot" }, { "id": "sympy/simplify/sqrtde...
This scope must preserve exact symbolic meaning while simplifying nested square roots and radical denominators: `sqrtdenest` expands structurally, applies denesting recursively for at most `max_iter` passes, and otherwise returns an equivalent unchanged expression; it may replace a square root only through algebraicall...
sympy/sympy
739e6411c512c0649847a7a2f6ed74c2413b9876
12,465
12,489
{ "nodes": [ { "id": "sympy/combinatorics/permutations.py::Permutation::__add__" }, { "id": "sympy/combinatorics/permutations.py::Permutation::__invert__" }, { "id": "sympy/combinatorics/permutations.py::Permutation::__mul__" }, { "id": "sympy/combinatorics/permutat...
A `Permutation` represents a bijection of the contiguous zero-based domain `0..size-1`, stored in an array form whose length defines its size; construction must accept supported array, cycle, `Cycle`, and existing-permutation forms, reject invalid/noncontiguous inputs, and may extend with fixed points for a larger requ...
sympy/sympy
e8f522a4e652e41ce24acb20576e88f5d786b19b
12,712
13,615
{ "nodes": [ { "id": "sympy/sets/sets.py::Interval::_complement" }, { "id": "sympy/sets/sets.py::Set::_complement" } ], "edges": [ { "source": "sympy/sets/sets.py::Interval::_complement", "target": "sympy/sets/sets.py::Set::_complement" } ] }
Set._complement and Interval._complement support symbolic relative complementation: forming the set of elements in a reference set that do not belong to the set being complemented. Set._complement provides the general set-level role, while Interval._complement specializes it for real intervals, with both operating on s...
sympy/sympy
97b9c34b41d0b8372113c20cda970ac7d061cd38
13,076
13,372
{ "nodes": [ { "id": "sympy/assumptions/handlers/sets.py::AskAntiHermitianHandler::Add" }, { "id": "sympy/assumptions/handlers/sets.py::AskAntiHermitianHandler::Mul" }, { "id": "sympy/assumptions/handlers/sets.py::AskAntiHermitianHandler::Pow" }, { "id": "sympy/assu...
The scoped assumption handlers assess real, imaginary, Hermitian, and anti-Hermitian properties of sums, products, powers, and numeric expressions, connecting number classifications with operator properties; anti-Hermitian operators are described as imaginary multiples of Hermitian operators. The numerical functions ev...
sympy/sympy
d1320814eda6549996190618a21eaf212cfd4d1e
13,078
13,091
{ "nodes": [ { "id": "sympy/core/basic.py::Basic::__eq__" }, { "id": "sympy/core/basic.py::Basic::__ne__" }, { "id": "sympy/core/numbers.py::Float::__eq__" }, { "id": "sympy/core/numbers.py::Float::__ne__" }, { "id": "sympy/core/numbers.py::Integer::__...
Equality must return a concrete structural or numeric truth value while preserving Python comparison interoperability: symbolic trees are equal when they have the same type and hashable content (with identity fast-paths, safe sympification, and transparent unit-exponent powers), and unsupported symbolic-tree operands m...
sympy/sympy
a5e6a101869e027e7930e694f8b1cfb082603453
13,079
13,757
{ "nodes": [ { "id": "sympy/integrals/prde.py::limited_integrate" }, { "id": "sympy/integrals/prde.py::param_poly_rischDE" }, { "id": "sympy/integrals/prde.py::param_rischDE" }, { "id": "sympy/integrals/prde.py::parametric_log_deriv_heu" }, { "id": "sy...
The scope must preserve exact polynomial/rational arithmetic while solving Risch differential and limited-integration problems: any returned polynomial or rational family must satisfy the stated differential equation, obey its degree bound, and be accompanied by constant-coefficient linear constraints that characterize...
sympy/sympy
84b8f3357176ee339f31b923e3a2a00b4b798015
13,546
13,551
{ "nodes": [ { "id": "sympy/concrete/delta.py::deltaproduct" }, { "id": "sympy/concrete/products.py::Product::_eval_product" }, { "id": "sympy/concrete/products.py::Product::doit" }, { "id": "sympy/concrete/products.py::product" }, { "id": "sympy/parsi...
These functions support symbolic indexed products—repeated multiplication of expressions—including product evaluation, Kronecker-delta products, and Maxima parsing support. They also provide differential-equation solving through undetermined coefficients for linear constant-coefficient and Cauchy–Euler ODEs, and Lie sy...
sympy/sympy
62b1996e353fedc1e3fb51f626ffaae9583b74a6
13,779
13,974
{ "nodes": [ { "id": "sympy/physics/quantum/density.py::Density::_eval_trace" }, { "id": "sympy/physics/quantum/density.py::Density::_generate_outer_prod" }, { "id": "sympy/physics/quantum/density.py::Density::_represent" }, { "id": "sympy/physics/quantum/density.py...
These functions support density operators, which represent statistical mixtures of quantum states: Density.doit and _generate_outer_prod provide outer-product expressions, while _represent and _eval_trace support representation and trace evaluation. fidelity measures similarity between quantum states described by densi...
sympy/sympy
bde700855befc960923bb1f7e32246b0c8227940
13,835
13,877
{ "nodes": [ { "id": "sympy/algebras/quaternion.py::Quaternion::from_rotation_matrix" }, { "id": "sympy/crypto/crypto.py::decipher_hill" }, { "id": "sympy/matrices/dense.py::wronskian" }, { "id": "sympy/matrices/matrices.py::MatrixBase::inv_mod" }, { "...
The matrix-determinant scope must return the mathematical determinant for every square matrix, including the convention det([])=1 and direct 1x1–3x3 values, while rejecting nonsquare inputs and rejecting unsupported method names (accepting the documented aliases); Bareiss, Berkowitz, and LU selections must preserve tha...
sympy/sympy
205da797006360fc629110937e39a19c9561313e
14,530
14,531
{ "nodes": [ { "id": "sympy/printing/str.py::StrPrinter::_print_AppliedPredicate" }, { "id": "sympy/printing/str.py::StrPrinter::_print_ExprCondPair" }, { "id": "sympy/printing/str.py::StrPrinter::_print_FracField" }, { "id": "sympy/printing/str.py::StrPrinter::_pri...
These StrPrinter methods produce readable string representations of symbolic objects: applied predicates and relations express logical statements; expression–condition pairs associate expressions with conditions; lambdas, limits, and matrix elements represent symbolic functions, calculus constructs, and matrix entries....
sympy/sympy
c6753448b5c34f95e250105d76709fe4d349ca1f
14,710
14,711
{ "nodes": [ { "id": "sympy/physics/vector/vector.py::Vector::__add__" }, { "id": "sympy/physics/vector/vector.py::Vector::__sub__" } ], "edges": [ { "source": "sympy/physics/vector/vector.py::Vector::__sub__", "target": "sympy/physics/vector/vector.py::Vector::__add__"...
Vector.__add__ and Vector.__sub__ provide vector addition and subtraction, combining vector operands into vector-valued sums and differences. These operations support algebra on quantities with magnitude and direction, which the repository presents as building blocks for describing classical mechanics systems.
sympy/sympy
1592318e5d7006c197f55134dd8e9b59f012af64
15,493
15,599
{ "nodes": [ { "id": "sympy/core/mod.py::Mod::eval" } ], "edges": [] }
`Mod.eval(p, q)` must construct or simplify a modulo expression using Python’s remainder convention: whenever a remainder is determined, it has the divisor’s sign; a zero divisor raises `ZeroDivisionError`, and indeterminate/infinite operands yield `nan`. It must preserve exact numeric evaluation and safe symbolic dedu...
sympy/sympy
6fb3ee16d1faef2392c7a5d3093dfe4c24cfc5fa
15,718
15,976
{ "nodes": [ { "id": "sympy/printing/mathml.py::MathMLPresentationPrinter::_print_Symbol" } ], "edges": [] }
Presentation MathML symbol rendering must render a symbol name as Presentation MathML, separating its base name, superscript components, and subscript components with the printer’s standard name convention and translating recognized Greek identifiers in every component to their Unicode glyphs. A plain symbol is a singl...
sympy/sympy
2b4f967740cc56f864a2271c09215269a0983dd7
15,873
15,875
{ "nodes": [ { "id": "sympy/core/add.py::Add::_eval_is_zero" } ], "edges": [] }
`Add._eval_is_zero` must provide a conservative three-valued zero classification. It must return `True` when every summand is established real zero; it must return `False` when a proven nonzero real component remains, or when the real component cancels but a definitely imaginary component remains without any possibly-z...
sympy/sympy
7ec680459c66036cb9d023b2bc32df8ab313ba99
16,791
16,792
{ "nodes": [ { "id": "sympy/utilities/autowrap.py::autowrap" }, { "id": "sympy/utilities/autowrap.py::binary_function" }, { "id": "sympy/utilities/autowrap.py::ufuncify" }, { "id": "sympy/utilities/codegen.py::CodeGen::routine" }, { "id": "sympy/utilit...
This scope must turn symbolic expressions into routines and callable compiled interfaces without changing their declared input/output meaning: routine construction must derive inputs from free symbols (excluding requested globals and internal locals), represent equality left sides and matrix results as output or in-out...
sympy/sympy
6da7d01906895c8df0dc067c559b3a8f19a9ecbe
17,137
17,139
{ "nodes": [ { "id": "sympy/simplify/fu.py::TR16::f" }, { "id": "sympy/simplify/fu.py::TR5" }, { "id": "sympy/simplify/fu.py::TR6" }, { "id": "sympy/simplify/fu.py::_TR56" }, { "id": "sympy/simplify/fu.py::_TR56::_f" }, { "id": "sympy/sim...
The scoped transformations must preserve symbolic equivalence while rewriting eligible nonnegative real powers of sin or cos bottom-up: TR5 converts sin(x)**2 (and permitted even higher powers up to `max`) to expressions in 1 - cos(x)**2, and TR6 does the dual conversion; negative, non-real, oversized, odd, or (when `p...
sympy/sympy
30b12bacf3c837040eb71c5af4590cea9521f4e8
17,624
17,630
{ "nodes": [ { "id": "sympy/matrices/expressions/matexpr.py::get_postprocessor::_postprocessor" } ], "edges": [] }
The postprocessor for core Add or Mul expressions containing matrix-valued operands must separate matrix operands from scalar/non-matrix operands and return the appropriate matrix-expression form without requiring eager traversal of nested subexpressions. With no matrix operands, it must preserve the normal core operat...
sympy/sympy
3f8c8c2377cb8e0daaf8073e8d03ac7d87580813
17,737
22,080
{ "nodes": [ { "id": "sympy/printing/codeprinter.py::CodePrinter::_print_Mul" } ], "edges": [] }
CodePrinter._print_Mul must emit a precedence-preserving code expression for a product: honor the printer’s configured factor ordering (or retain the original factor sequence for legacy/no ordering), extract a leading negative coefficient as a single unary sign, and parenthesize factors whenever required by multiplicat...
sympy/sympy
270cf6880b441599bda9706e3c8caf696ef20302
18,186
18,189
{ "nodes": [ { "id": "sympy/solvers/diophantine.py::diophantine" } ], "edges": [] }
`diophantine` accepts an expression assumed equal to zero (or an equality, converted to lhs−rhs) and returns a set of solution tuples ordered by SymPy’s canonical symbol ordering, or by a valid requested symbol ordering. It must accept only polynomial equations with rational coefficients, normalize removable numeric fa...
sympy/sympy
92449d6a7687003f1f1501cc38d5e5e7c540b000
18,188
18,211
{ "nodes": [ { "id": "sympy/core/relational.py::Relational::_eval_as_set" } ], "edges": [] }
Relational._eval_as_set provides the relational expression’s contribution to conversion into a real set, representing the real values for which the relation holds. It connects symbolic equations and inequalities with their set-based interpretation as solution sets.
sympy/sympy
70381f282f2d9d039da860e391fe51649df2779d
18,755
18,763
{ "nodes": [ { "id": "sympy/printing/latex.py::LatexPrinter::_print_Subs" } ], "edges": [] }
LatexPrinter._print_Subs produces a LaTeX representation of a symbolic Subs expression. Subs represents unevaluated substitution and is commonly used to express derivatives evaluated at a point; this method provides its mathematical presentation within SymPy’s LaTeX printing system.
sympy/sympy
b9179e80d2daa1bb6cba1ffe35ca9e6612e115c9
18,895
19,040
{ "nodes": [ { "id": "sympy/polys/factortools.py::dmp_ext_factor" }, { "id": "sympy/polys/factortools.py::dmp_factor_list" }, { "id": "sympy/polys/factortools.py::dmp_factor_list_include" }, { "id": "sympy/polys/factortools.py::dmp_irreducible_p" }, { ...
The scoped routines must factor dense univariate and multivariate polynomials over their supported coefficient domains into a scalar coefficient and a deterministically sorted list of irreducible factor/multiplicity pairs whose product reconstructs the input. They must preserve extracted ground content and variable-pow...
sympy/sympy
82298df6a51491bfaad0c6d1980e7e3ca808ae93
19,005
20,916
{ "nodes": [ { "id": "sympy/printing/conventions.py::split_super_sub" }, { "id": "sympy/printing/pretty/pretty.py::PrettyPrinter::_print_BaseScalarField" }, { "id": "sympy/printing/pretty/pretty.py::PrettyPrinter::_print_Category" }, { "id": "sympy/printing/pretty/p...
These functions support readable mathematical pretty-printing of symbols, matrix symbols, function classes, category-theoretic objects, categories and composite morphisms, and differential-geometric base scalar fields and differentials. The domain-specific printers express concepts including compositions of morphisms, ...
sympy/sympy
33b47e4bd60e2302e42616141e76285038b724d6
19,378
20,438
{ "nodes": [ { "id": "sympy/core/relational.py::Equality::_eval_simplify" }, { "id": "sympy/core/relational.py::Relational::_eval_simplify" }, { "id": "sympy/sets/handlers/comparison.py::_eval_is_eq" } ], "edges": [] }
Relational._eval_simplify and Equality._eval_simplify support simplification of symbolic relations and mathematical equalities, producing simpler symbolic statements or truth values. The set comparison _eval_is_eq functions provide set-oriented mathematical equality evaluation within SymPy’s comparison framework, suppo...
sympy/sympy
de446c6d85f633271dfec1452f6f28ea783e293f
19,661
21,930
{ "nodes": [ { "id": "sympy/physics/secondquant.py::AntiSymmetricTensor::_latex" }, { "id": "sympy/physics/secondquant.py::CreateBoson::_latex" }, { "id": "sympy/physics/secondquant.py::CreateFermion::_latex" } ], "edges": [] }
These methods provide LaTeX representations of antisymmetric tensors and bosonic and fermionic creation operators through SymPy’s printing interface. They express second-quantization objects in mathematical notation: tensors with antisymmetric upper and lower index groups, and operators representing particle creation f...
sympy/sympy
87c9ea827f4b1b6cc34a7c707de1fd5d9819cb46
19,927
19,954
{ "nodes": [ { "id": "sympy/combinatorics/perm_groups.py::PermutationGroup::minimal_blocks" }, { "id": "sympy/combinatorics/perm_groups.py::PermutationGroup::sylow_subgroup" }, { "id": "sympy/combinatorics/perm_groups.py::sylow_subgroup::_sylow_reduce" } ], "edges": [ ...
`minimal_blocks` must reject intransitive actions with `False`; for a transitive action it must return each distinct minimal block system once, using the degree-indexed block representation and retaining only systems minimal under containment of the block containing 0. `sylow_subgroup(p)` must require prime `p` and ret...
sympy/sympy
026221a711a0c17f9dcea4292457df4b19f30593
20,427
20,428
{ "nodes": [ { "id": "sympy/polys/domains/expressiondomain.py::ExpressionDomain::Expression::__bool__" } ], "edges": [] }
ExpressionDomain.Expression.__bool__ supplies Python truth-value testing for an element of SymPy’s domain of arbitrary symbolic expressions. It returns a Boolean, enabling these domain elements to participate in Boolean contexts.
sympy/sympy
75232383e71161a909cd6bc2c581f41a7160253e
20,796
20,801
{ "nodes": [ { "id": "sympy/core/numbers.py::Float::__eq__" } ], "edges": [] }
Float.__eq__ provides equality comparison between a SymPy Float and another object, supporting the == operator with a Boolean comparison result. Float represents an arbitrary-precision floating-point number, so this method supplies equality comparison for that numeric representation.
sympy/sympy
624217179aaf8d094e6ff75b7493ad1ee47599b0
21,373
21,379
{ "nodes": [ { "id": "sympy/core/mod.py::Mod::eval" } ], "edges": [] }
`Mod.eval(p, q)` must implement Python-style remainder semantics: reject a zero divisor, yield `nan` when either operand is non-finite or `nan`, and ensure any determined remainder has the divisor’s sign. It should eagerly return exact results for numeric, integral-divisibility, parity, and safely bounded-sign cases, w...
sympy/sympy
b4777fdcef467b7132c055f8ac2c9a5059e6a145
21,537
21,612
{ "nodes": [ { "id": "sympy/printing/str.py::StrPrinter::_print_Mul" } ], "edges": [] }
`StrPrinter._print_Mul` must render a product as an unambiguous, precedence-correct readable expression: retain a leading negative coefficient as a single leading `-`; print numerator factors with `*`; and represent rational factors and commutative powers with negative exponents as denominator factors, using `/x` for o...
sympy/sympy
110997fe18b9f7d5ba7d22f624d156a29bf40759
21,595
21,596
{ "nodes": [ { "id": "sympy/sets/handlers/intersection.py::intersection_sets" }, { "id": "sympy/sets/sets.py::Intersection::__new__" }, { "id": "sympy/sets/sets.py::simplify_intersection" } ], "edges": [ { "source": "sympy/sets/sets.py::Intersection::__new__", ...
`Intersection` must represent the order-independent, idempotent meet of its set operands: normalize symbolic inputs, remove duplicates and neutral universal-set operands, flatten nested intersections, and retain a stable canonical unevaluated form when evaluation is disabled. During evaluation, it must reject non-sets,...
sympy/sympy
c43550c31ef6355c49c4461e90a23e9629291b93
22,684
22,714
{ "nodes": [ { "id": "sympy/geometry/point.py::Point::__new__" } ], "edges": [] }
Point.__new__ must accept either coordinate arguments, one coordinate sequence, or an existing Point; preserve and return an existing Point unchanged when its requested/default dimension matches. It must require at least two coordinates (or create the requested-dimensional all-zero point), require coordinates to be Sym...
sympy/sympy
fdc707f73a65a429935c01532cd3970d3355eab6
23,224
23,262
{ "nodes": [ { "id": "sympy/utilities/lambdify.py::_EvaluatorPrinter::doprint" }, { "id": "sympy/utilities/lambdify.py::_recursive_to_string" }, { "id": "sympy/utilities/lambdify.py::lambdastr" } ], "edges": [ { "source": "sympy/utilities/lambdify.py::_Evaluator...
These functions support turning symbolic expressions and argument specifications into Python function source text, bridging symbolic mathematics and executable evaluation. `_EvaluatorPrinter.doprint` produces function definition code, `lambdastr` produces text evaluable as a lambda function, and `_recursive_to_string` ...
sympy/sympy
10de1a18a0efac0b19b611e40c928250dda688bf
23,410
23,413
{ "nodes": [ { "id": "sympy/polys/matrices/normalforms.py::_hermite_normal_form" }, { "id": "sympy/polys/matrices/normalforms.py::hermite_normal_form" }, { "id": "sympy/polys/numberfields/modules.py::Module::submodule_from_gens" }, { "id": "sympy/polys/numberfields/...
Hermite-normal-form construction must accept only integer-domain matrices and return a canonical nonnegative-pivot HNF spanning the same integer column lattice, with pivots placed in the rightmost usable columns, entries to each pivot’s left zero, entries to its right reduced modulo that positive pivot, and zero/depend...
sympy/sympy
832c24fec1046eaa544a4cab4c69e3af3e651759
23,532
23,534
{ "nodes": [ { "id": "sympy/core/symbol.py::symbols" }, { "id": "sympy/core/symbol.py::var" } ], "edges": [ { "source": "sympy/core/symbol.py::var", "target": "sympy/core/symbol.py::symbols" } ] }
`symbols` must convert comma/whitespace-delimited strings or containers of name specifications into instances of the requested `cls`, forwarding assumptions/keyword arguments, expanding supported numeric and alphabetic ranges (while preserving escaped literal separators), and preserving the input’s intended result shap...
sympy/sympy
39de9a2698ad4bb90681c0fdb70b30a78233145f
23,823
23,824
{ "nodes": [ { "id": "sympy/physics/hep/gamma_matrices.py::_simplify_single_line" }, { "id": "sympy/physics/hep/gamma_matrices.py::gamma_trace" }, { "id": "sympy/physics/hep/gamma_matrices.py::kahane_simplify" }, { "id": "sympy/physics/hep/gamma_matrices.py::simplif...
This scope must preserve four-dimensional Dirac-gamma tensor algebra while keeping non-gamma tensor factors intact: simplification separates GammaMatrix factors from residual factors, applies contracted-gamma reduction only to the gamma line, and recombines the result without altering the residual expression. The reduc...
sympy/sympy
13ab4047a6b6ab7585a213f4c236ee9439cba05d
24,211
24,213
{ "nodes": [ { "id": "sympy/physics/units/quantities.py::Quantity::_collect_factor_and_dimension" }, { "id": "sympy/physics/units/unitsystem.py::UnitSystem::_collect_factor_and_dimension" } ], "edges": [ { "source": "sympy/physics/units/quantities.py::Quantity::_collect_facto...
Quantity._collect_factor_and_dimension must remain a deprecated compatibility entry point: resolve the requested UnitSystem (accepting a system instance or registered name) and delegate the expression unchanged to that system’s collector. UnitSystem._collect_factor_and_dimension must recursively decompose an expression...
sympy/sympy
809c53c077485ca48a206cee78340389cb83b7f1
24,442
24,443
{ "nodes": [ { "id": "sympy/combinatorics/homomorphisms.py::_check_homomorphism" }, { "id": "sympy/combinatorics/homomorphisms.py::group_isomorphism" }, { "id": "sympy/combinatorics/homomorphisms.py::homomorphism" }, { "id": "sympy/combinatorics/homomorphisms.py::is...
`homomorphism` must accept only supported group types, require supplied generators to belong to the domain’s generators and supplied images to belong to the codomain, require paired generator/image counts when images are provided, and map every unspecified domain generator to the codomain identity; unless checking is d...
sympy/sympy
e4c27fa9aec9eb642a2360a4f22f7a297410947a
24,543
24,562
{ "nodes": [ { "id": "sympy/core/numbers.py::Rational::__new__" } ], "edges": [] }
`Rational(p, q=None, gcd=None)` must construct an exact real rational value from integer-like inputs, existing rationals, finite floating values (using their exact binary ratio), or literal fraction/decimal/scientific strings; a one-argument value that cannot resolve to a Rational must raise `TypeError`, and malformed ...
sympy/sympy
42d10f7d8215678bb04428f733f9ca5ab992abbb
8,695
18,698
{ "nodes": [ { "id": "sympy/integrals/rubi/constraints.py::cons_f1103" }, { "id": "sympy/integrals/rubi/constraints.py::cons_f1128" }, { "id": "sympy/integrals/rubi/rules/exponential.py::With1915" }, { "id": "sympy/integrals/rubi/rules/exponential.py::With1927" ...
This scope must provide a square-free-factor-based canonical view of symbolic polynomial expressions while preserving their mathematical value, coefficients, multiplicities, numerator/denominator handling, requested generators/options, and the original container structure for composite inputs. Rubi’s predicates must re...
systemd/systemd
cc516b79edb75e9e6256d7398b618fde711b3f87
44,431
44,432
{ "nodes": [ { "id": "src/resolve/resolved-dns-scope.c::dns_scope_check_conflicts" } ], "edges": [] }
dns_scope_check_conflicts examines a DNS packet for naming or resource-record conflicts within a resolver scope. It supports conflict detection in systemd-resolved’s local-network name resolution, where LLMNR and Multicast DNS allow peers to publish and resolve names on local links.