selection_rank
int64
0
10k
uid
stringlengths
17
29
source
stringclasses
7 values
split
stringclasses
3 values
row_idx
int64
0
58.9k
instance_id
stringlengths
14
120
repo
stringclasses
246 values
repo_canon
stringclasses
232 values
language
stringclasses
8 values
base_commit
stringlengths
40
40
⌀
problem_statement
stringlengths
84
23.6k
extra_context
stringclasses
626 values
hints
stringlengths
0
59.3k
patch
stringlengths
252
175k
test_patch
stringlengths
0
358k
f2p
stringlengths
10
155k
⌀
p2p
stringlengths
2
1.75M
⌀
env_image
stringlengths
41
154
⌀
env_available
bool
1 class
created_at
stringlengths
10
20
⌀
n_src_files
int64
1
15
src_lines
int64
1
1.48k
n_f2p
float64
1
1.87k
⌀
ps_chars
int64
84
23.6k
leak_ratio
float64
0
0.6
s_prior
float64
0.6
1
s_verif
float64
0.75
1
s_ps
float64
0.04
1
s_patch
float64
0.07
1
s_tiebreak
float64
0.02
1
score
float64
47.9
98.6
9,800
swe_bench::test::1077
swe_bench
test
1,077
matplotlib__matplotlib-25425
matplotlib/matplotlib
matplotlib/matplotlib
python
cb2bdb1300f40ae8746a1916480af4d0d7af5f77
[ENH]: Add `get_shape` as alias for `get_size` in AxesImage, or make that include depth too ### Problem #22485 changed `AxesImage.__str__` to `AxesImage(size=(nrows, ncols))`. While this indeed corresponds to `AxesImage.get_size`, this is not consistent with the numpy API, where `array.shape = (nrows, ncols)` and `ar...
Good point! Either seems to make sense to me. I am attempting to do this and choose the second way suggested. What should I do with the get_size() method? I'm guessing I should just leave it the same as it is probably being used in other code right now.
diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -275,8 +275,8 @@ def __init__(self, ax, def __str__(self): try: - size = self.get_size() - return f"{type(self).__name__}(size={size!r})" + shape...
diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py --- a/lib/matplotlib/tests/test_image.py +++ b/lib/matplotlib/tests/test_image.py @@ -1468,3 +1468,15 @@ def test__resample_valid_output(): resample(np.zeros((9, 9), np.uint8), np.zeros((9, 9))) with pytest.raises(ValueEr...
["lib/matplotlib/tests/test_image.py::test_axesimage_get_shape"]
["lib/matplotlib/tests/test_image.py::test_image_interps[png]", "lib/matplotlib/tests/test_image.py::test_image_interps[pdf]", "lib/matplotlib/tests/test_image.py::test_alpha_interp[png]", "lib/matplotlib/tests/test_image.py::test_interp_nearest_vs_none[pdf]", "lib/matplotlib/tests/test_image.py::test_figimage[png-Fals...
null
true
2023-03-10T11:39:00Z
1
12
1
768
0
0.8
1
0.4
1
0.168
76.604
9,801
swe_bench::test::1713
swe_bench
test
1,713
scikit-learn__scikit-learn-3840
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
6b5440a9964480ccb0fe1b59ab516d9228186571
partial AUC I suggest adding partial AUC to the metrics. this would compute the area under the curve up to a specified FPR (in the case of the ROC curve). this measure is important for comparing classifiers in cases where FPR is much more important than TPR. The partial AUC should also allow applying the McClish correc...
+1 +1 @arjoly @mblondel is anyone working on this right now? Hi, I'd like to help. @arjoly @mblondel @MechCoder , may I take this one? Only if it is ok for you @MechCoder . You can take this one. :-) sure :) Ok! I'll try my best. :) @eyaler In this pROC package, it is possible to choose between "specificity"...
diff --git a/sklearn/metrics/ranking.py b/sklearn/metrics/ranking.py --- a/sklearn/metrics/ranking.py +++ b/sklearn/metrics/ranking.py @@ -217,7 +217,8 @@ def _binary_uninterpolated_average_precision( sample_weight=sample_weight) -def roc_auc_score(y_true, y_score, average="macro",...
diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py --- a/sklearn/metrics/tests/test_common.py +++ b/sklearn/metrics/tests/test_common.py @@ -163,6 +163,7 @@ "samples_roc_auc": partial(roc_auc_score, average="samples"), "micro_roc_auc": partial(roc_auc_score, average="micr...
["sklearn/metrics/tests/test_common.py::test_sample_order_invariance_multilabel_and_multioutput", "sklearn/metrics/tests/test_common.py::test_invariance_string_vs_numbers_labels", "sklearn/metrics/tests/test_common.py::test_inf_nan_input", "sklearn/metrics/tests/test_ranking.py::test_partial_roc_auc_score"]
["sklearn/metrics/tests/test_common.py::test_symmetry", "sklearn/metrics/tests/test_common.py::test_sample_order_invariance", "sklearn/metrics/tests/test_common.py::test_format_invariance_with_1d_vectors", "sklearn/metrics/tests/test_common.py::test_multioutput_number_of_output_differ", "sklearn/metrics/tests/test_comm...
null
true
2014-11-07T23:15:42Z
1
30
4
388
0
0.8
1
0.4
1
0.164667
76.594
9,802
swe_bench::dev::95
swe_bench
dev
95
pydicom__pydicom-1439
pydicom/pydicom
pydicom/pydicom
python
506ecea8f378dc687d5c504788fc78810a190b7a
Exception decompressing RLE encoded data with non-conformant padding Getting Following error "Could not convert: The amount of decoded RLE segment data doesn't match the expected amount (786433 vs. 786432 bytes)" For following code plt.imsave(os.path.join(output_folder,file)+'.png', convert_color_space(ds.pixel_array,...
It looks like the RLE segment has been padded out to 786433 bytes even though: > Each RLE segment must be an even number of bytes or padded at its end with zero to make it even. The solution would be to only raise an exception if the segment is shorter than expected and trim excess padding. There's no simple w...
diff --git a/pydicom/pixel_data_handlers/rle_handler.py b/pydicom/pixel_data_handlers/rle_handler.py --- a/pydicom/pixel_data_handlers/rle_handler.py +++ b/pydicom/pixel_data_handlers/rle_handler.py @@ -38,6 +38,7 @@ from struct import unpack import sys from typing import List, TYPE_CHECKING, cast +import warnings ...
diff --git a/pydicom/tests/test_rle_pixel_data.py b/pydicom/tests/test_rle_pixel_data.py --- a/pydicom/tests/test_rle_pixel_data.py +++ b/pydicom/tests/test_rle_pixel_data.py @@ -881,11 +881,10 @@ def test_invalid_nr_segments_raises(self, header, samples, bits): header, rows=1, columns=1, nr_samples=sa...
["pydicom/tests/test_rle_pixel_data.py::TestNumpy_RLEDecodeFrame::test_nonconf_segment_padding_warns"]
["pydicom/tests/test_rle_pixel_data.py::test_unsupported_syntaxes", "pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_environment", "pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can_access_supported_dataset", "pydicom/tests/test_rle_pixel_data.py::TestNumpy_NoRLEHandler::test_can...
null
true
2021-07-13T00:43:22Z
1
18
1
603
0
0.8
1
0.4
1
0.1605
76.5815
9,803
swe_bench::test::1557
swe_bench
test
1,557
scikit-learn__scikit-learn-12656
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
52e9cc5add6ffe6398fed529f5f110f0961ad28a
Fix Issue #10580 #### Reference Issues/PRs Fixes #10580 #### What does this implement/fix? Explain your changes. Removed the labels parameter in hamming_loss function. Removed all instances of labels within the method. Since hamming_loss is used only with mulitlabel input, changed len(labels) to y_true.shape[1]. ##...
@qmick it seems you have been beaten to the task. @lialexj, it is appropriate etiquette to let us know with a comment that you intend to solve an issue. Not doing so adds unecessary work for maintainers. This pr should also raise a warning if a value for labels is passed @jnothman It looks like a check failed. I'm n...
diff --git a/sklearn/metrics/classification.py b/sklearn/metrics/classification.py --- a/sklearn/metrics/classification.py +++ b/sklearn/metrics/classification.py @@ -1805,11 +1805,16 @@ def hamming_loss(y_true, y_pred, labels=None, sample_weight=None): y_pred : 1d array-like, or label indicator array / sparse mat...
diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py --- a/sklearn/metrics/tests/test_classification.py +++ b/sklearn/metrics/tests/test_classification.py @@ -529,8 +529,10 @@ def test_cohen_kappa(): y1 = np.array([0] * 46 + [1] * 44 + [2] * 10) y2 = np.arra...
["sklearn/metrics/tests/test_classification.py::test_multilabel_hamming_loss"]
["sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_multilabel_accuracy_score_subset_accuracy", "sklearn/metrics/tests/test_classification.py::test_precision_recall_f1_score_binary", "sklearn/metrics/tests/test_classification...
null
true
2018-11-22T23:13:24Z
1
18
1
597
0
0.8
1
0.4
1
0.1595
76.5785
9,804
swe_bench::test::1582
swe_bench
test
1,582
scikit-learn__scikit-learn-13157
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
85440978f517118e78dc15f84e397d50d14c8097
Different r2_score multioutput default in r2_score and base.RegressorMixin We've changed multioutput default in r2_score to "uniform_average" in 0.19, but in base.RegressorMixin, we still use ``multioutput='variance_weighted'`` (#5143). Also see the strange things below: https://github.com/scikit-learn/scikit-learn/blo...
Should we be deprecating and changing the `multioutput` used in RegressorMixin? How do we allow the user to select the new approach in a deprecation period? @agramfort @ogrisel can you explain the rational behind this? It looks to me like the behavior before the PR was exactly what we wanted an the PR broke the deprec...
diff --git a/sklearn/base.py b/sklearn/base.py --- a/sklearn/base.py +++ b/sklearn/base.py @@ -359,10 +359,32 @@ def score(self, X, y, sample_weight=None): ------- score : float R^2 of self.predict(X) wrt. y. + + Notes + ----- + The R2 score used when calling ``score`...
diff --git a/sklearn/cross_decomposition/tests/test_pls.py b/sklearn/cross_decomposition/tests/test_pls.py --- a/sklearn/cross_decomposition/tests/test_pls.py +++ b/sklearn/cross_decomposition/tests/test_pls.py @@ -1,3 +1,4 @@ +import pytest import numpy as np from numpy.testing import assert_approx_equal @@ -377,6...
["sklearn/tests/test_base.py::test_regressormixin_score_multioutput"]
["sklearn/cross_decomposition/tests/test_pls.py::test_pls", "sklearn/cross_decomposition/tests/test_pls.py::test_convergence_fail", "sklearn/cross_decomposition/tests/test_pls.py::test_PLSSVD", "sklearn/cross_decomposition/tests/test_pls.py::test_univariate_pls_regression", "sklearn/cross_decomposition/tests/test_pls.p...
null
true
2019-02-13T12:55:30Z
3
28
1
395
0
0.8
1
0.4
1
0.159167
76.5775
9,805
r2e_gym::train::4941
r2e_gym
train
4,941
datalad__a579fd373c58c2bcc9b68c36cb90c2042bc83a10
datalad
datalad/datalad
python
a579fd373c58c2bcc9b68c36cb90c2042bc83a10
**Analysis:** - **Key Parts from Commit Details:** - **Commit Message:** Enhances `shortened_repr` to inform how many characters are not shown. - **Changes:** Replaces `...` with `++??? chars++` in the middle of the representation, showing the trailer of the original `repr`. - **Test Change:** The `test_auto_rep...
diff --git a/datalad/utils.py b/datalad/utils.py --- a/datalad/utils.py +++ b/datalad/utils.py @@ -191,7 +191,11 @@ if hasattr(value, '__repr__') and (value.__repr__ is not object.__repr__): value_repr = repr(value) if not value_repr.startswith('<') and len(value_repr) > l: - ...
diff --git a/datalad/tests/test_utils.py b/datalad/tests/test_utils.py --- a/datalad/tests/test_utils.py +++ b/datalad/tests/test_utils.py @@ -430,7 +430,7 @@ assert_equal( repr(buga()), - "buga(a=1, b=<<[0, 1, 2, 3, 4, 5, 6, ...>>, c=<WithoutReprClass>)" + "buga(a=1, b=<<[0, 1, 2, 3, 4++3...
null
null
namanjain12/datalad_final:a579fd373c58c2bcc9b68c36cb90c2042bc83a10
true
null
1
6
null
3,078
0
0.75
1
0.465
1
0.52
76.5625
9,806
swe_bench::test::1205
swe_bench
test
1,205
psf__requests-863
psf/requests
psf/requests
python
a0df2cbb10419037d11d04352b3175405ab52941
Allow lists in the dict values of the hooks argument Currently the Request class has a .register_hook() method but it parses the dictionary it expects from it's hooks argument weirdly: the argument can only specify one hook function per hook. If you pass in a list of hook functions per hook the code in Request.**init*...
If anyone OKs this feature request, I'd be happy to dig into it. @sigmavirus24 :+1: Just need to make sure that the current workflow also continues to work with this change. Once @kennethreitz has time to review #833, I'll start working on this. I have a feeling opening a branch for this would cause a merge conflict...
diff --git a/requests/models.py b/requests/models.py --- a/requests/models.py +++ b/requests/models.py @@ -462,8 +462,10 @@ def path_url(self): def register_hook(self, event, hook): """Properly register a hook.""" - - self.hooks[event].append(hook) + if isinstance(hook, (list, tuple, set))...
diff --git a/tests/test_requests.py b/tests/test_requests.py --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -744,6 +744,40 @@ def add_bar_header(args): assert 'foo' in response.text assert 'bar' in response.text + def test_allow_list_of_hooks_to_register_hook(self): + ...
["tests/test_requests.py::RequestsTestSuite::test_POSTBIN_GET_POST_FILES_WITH_HEADERS", "tests/test_requests.py::RequestsTestSuite::test_nonurlencoded_postdata", "tests/test_requests.py::RequestsTestSuite::test_prefetch_redirect_bug", "tests/test_requests.py::RequestsTestSuite::test_urlencoded_post_data"]
["tests/test_requests.py::RequestsTestSuite::test_BASICAUTH_HTTP_200_OK_GET", "tests/test_requests.py::RequestsTestSuite::test_BASICAUTH_TUPLE_HTTP_200_OK_GET", "tests/test_requests.py::RequestsTestSuite::test_GET_no_redirect", "tests/test_requests.py::RequestsTestSuite::test_HEAD_no_redirect", "tests/test_requests.py:...
null
true
2012-09-20T15:48:00Z
1
6
4
803
0
0.8
1
0.4
1
0.153833
76.5615
9,807
swe_bench::dev::224
swe_bench
dev
224
sqlfluff__sqlfluff-905
sqlfluff/sqlfluff
sqlfluff/sqlfluff
python
62e8dc3a148c40c0c28f62b23e943692a3198846
Enhance rule L036 to put all columns on separate lines if any of them are The current description is ambiguous, but after discussion, we decided to update the rule and keep the description at least _similar_ to what it is currently.. See discussion on #769.
FWIW I'm a +1 for this...
diff --git a/src/sqlfluff/core/rules/std/L036.py b/src/sqlfluff/core/rules/std/L036.py --- a/src/sqlfluff/core/rules/std/L036.py +++ b/src/sqlfluff/core/rules/std/L036.py @@ -90,21 +90,26 @@ def _get_indexes(segment): ) def _eval_multiple_select_target_elements(self, select_targets_info, segment): - ...
diff --git a/test/api/simple_test.py b/test/api/simple_test.py --- a/test/api/simple_test.py +++ b/test/api/simple_test.py @@ -121,7 +121,14 @@ def test__api__fix_string(): # Check return types. assert isinstance(result, str) # Check actual result - assert result == "SELECT\n *, 1, blah AS foo FROM...
["test/api/simple_test.py::test__api__fix_string"]
["test/api/simple_test.py::test__api__lint_string_without_violations", "test/api/simple_test.py::test__api__lint_string", "test/api/simple_test.py::test__api__lint_file", "test/api/simple_test.py::test__api__lint_string_specific", "test/api/simple_test.py::test__api__fix_string_specific", "test/api/simple_test.py::test...
null
true
2021-03-28T21:22:12Z
1
33
1
257
0
0.8
1
0.4
1
0.152833
76.5585
9,808
swe_bench::test::1884
swe_bench
test
1,884
sphinx-doc__sphinx-9459
sphinx-doc/sphinx
sphinx-doc/sphinx
python
8dd84bc8aba782d924854174c5f9ad4a65cfccf1
Add an option to not use intersphinx references as a fallback That intersphinx references are used as fallbacks if a reference is not available in a project recently caused us a problem. We have a site (`latest`) which is the latest build of `master`. We use intersphinx as follows, so we can link to the latest docume...
The initial PR adding this is https://github.com/sphinx-doc/sphinx/pull/8981
diff --git a/sphinx/ext/intersphinx.py b/sphinx/ext/intersphinx.py --- a/sphinx/ext/intersphinx.py +++ b/sphinx/ext/intersphinx.py @@ -29,11 +29,11 @@ import sys import time from os import path -from typing import IO, Any, Dict, List, Tuple +from typing import IO, Any, Dict, List, Optional, Tuple from urllib.parse ...
diff --git a/tests/test_ext_intersphinx.py b/tests/test_ext_intersphinx.py --- a/tests/test_ext_intersphinx.py +++ b/tests/test_ext_intersphinx.py @@ -42,6 +42,12 @@ def reference_check(app, *args, **kwds): return missing_reference(app, app.env, node, contnode) +def set_config(app, mapping): + app.config.in...
["tests/test_ext_intersphinx.py::test_missing_reference", "tests/test_ext_intersphinx.py::test_missing_reference_disabled_domain"]
["tests/test_ext_intersphinx.py::test_fetch_inventory_redirection", "tests/test_ext_intersphinx.py::test_missing_reference_pydomain", "tests/test_ext_intersphinx.py::test_missing_reference_stddomain", "tests/test_ext_intersphinx.py::test_missing_reference_cppdomain", "tests/test_ext_intersphinx.py::test_missing_referen...
null
true
2021-07-16T13:12:15Z
2
301
2
1,240
0
0.8
1
0.55
0.75
0.706667
76.5575
9,809
swe_bench::test::1409
swe_bench
test
1,409
pytest-dev__pytest-5559
pytest-dev/pytest
pytest-dev/pytest
python
60a358fa2dc82a571c68d1be2d25703b51351538
pytest stepwise doesn't work with xfail strict failures ``` graingert@onomastic:~/projects/foo$ cat tests/test_foo.py import pytest @pytest.mark.xfail(reason="pass") def test_a(): pass @pytest.mark.xfail(reason="pass") def test_b(): pass graingert@onomastic:~/projects/foo$ cat tests/pytest.ini [pytest] addopt...
Going foward it's probably better to recommend only the conditional requirement https://github.com/pytest-dev/pytest-runner#conditional-requirement I agree - that section should at least discuss the downsides of using `pytest-runner`. IMO we should present the manual option first, then discuss how this bypasses s...
diff --git a/doc/en/example/nonpython/conftest.py b/doc/en/example/nonpython/conftest.py --- a/doc/en/example/nonpython/conftest.py +++ b/doc/en/example/nonpython/conftest.py @@ -3,7 +3,7 @@ def pytest_collect_file(parent, path): - if path.ext == ".yml" and path.basename.startswith("test"): + if path.ext == ...
diff --git a/doc/en/example/nonpython/test_simple.yml b/doc/en/example/nonpython/test_simple.yaml similarity index 75% rename from doc/en/example/nonpython/test_simple.yml rename to doc/en/example/nonpython/test_simple.yaml --- a/doc/en/example/nonpython/test_simple.yml +++ b/doc/en/example/nonpython/test_simple.yaml @...
["testing/python/raises.py::TestRaises::test_raises_match", "testing/python/raises.py::TestRaises::test_match_failure_string_quoting", "testing/test_stepwise.py::test_xfail_handling"]
["testing/python/raises.py::TestRaises::test_raises", "testing/python/raises.py::TestRaises::test_raises_exec", "testing/python/raises.py::TestRaises::test_raises_exec_correct_filename", "testing/python/raises.py::TestRaises::test_raises_syntax_error", "testing/python/raises.py::TestRaises::test_raises_function", "test...
null
true
2019-07-05T11:15:03Z
2
4
3
1,783
0
0.8
1
0.55
0.8
0.3105
76.5565
9,810
swe_bench::test::1423
swe_bench
test
1,423
pytest-dev__pytest-6323
pytest-dev/pytest
pytest-dev/pytest
python
e8c8559efa2461104ac748c66d75764ff5c90a29
disallow absolute and non-normalized paths for mktemp followup to #4202 this is an potential issue and attack vector, absolute paths are no tmpdir and escaping paths aren't either, just normalizing would also break the world so we should only ever accept normalized relative paths for it
Hi, Can I try to work on this. I am new, but this seems not a difficult job. Great @gftea, feel free to open a PR (even if incomplete) and we can discuss it from there. 👍
diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py --- a/src/_pytest/tmpdir.py +++ b/src/_pytest/tmpdir.py @@ -45,8 +45,30 @@ def from_config(cls, config) -> "TempPathFactory": given_basetemp=config.option.basetemp, trace=config.trace.get("tmpdir") ) + def _ensure_relative_to_basetemp...
diff --git a/testing/test_tmpdir.py b/testing/test_tmpdir.py --- a/testing/test_tmpdir.py +++ b/testing/test_tmpdir.py @@ -74,19 +74,38 @@ def test_1(tmpdir): assert not mytemp.join("hello").check() -def test_basetemp(testdir): +testdata = [ + ("mypath", True), + ("/mypath1", False), + ("./mypath1...
["testing/test_tmpdir.py::test_mktemp[/mypath1-False]", "testing/test_tmpdir.py::test_mktemp[../mypath3-False]", "testing/test_tmpdir.py::test_mktemp[../../mypath4-False]", "testing/test_tmpdir.py::test_mktemp[mypath5/..-False]", "testing/test_tmpdir.py::test_mktemp[mypath6/../mypath6-True]", "testing/test_tmpdir.py::t...
["testing/test_tmpdir.py::TestTempdirHandler::test_mktemp", "testing/test_tmpdir.py::TestTempdirHandler::test_tmppath_relative_basetemp_absolute", "testing/test_tmpdir.py::test_get_user_uid_not_found", "testing/test_tmpdir.py::TestNumberedDir::test_make", "testing/test_tmpdir.py::TestNumberedDir::test_cleanup_lock_crea...
null
true
2019-12-06T21:28:13Z
1
31
6
289
0
0.8
1
0.4
1
0.1515
76.5545
9,811
swe_bench::test::1003
swe_bench
test
1,003
matplotlib__matplotlib-23049
matplotlib/matplotlib
matplotlib/matplotlib
python
17a7aca12399311f6252c55db0ece3694c5758b2
[MNT]: Should plt.xticks() get a minor keyword argument ### Summary Extracted as remaining question from #15005. Currently `plt.xticks()` does not support a *minor* kwarg, in contrast to `ax.set_xticks()`. it's not strictly necessary because pyplot may have less functionality than the OOP interface; but it doesn't hu...
I think the more consistent the better? (so yes)
diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -1751,7 +1751,7 @@ def ylim(*args, **kwargs): return ret -def xticks(ticks=None, labels=None, **kwargs): +def xticks(ticks=None, labels=None, *, minor=False, **kwargs): """ ...
diff --git a/lib/matplotlib/tests/test_pyplot.py b/lib/matplotlib/tests/test_pyplot.py --- a/lib/matplotlib/tests/test_pyplot.py +++ b/lib/matplotlib/tests/test_pyplot.py @@ -383,3 +383,18 @@ def test_doc_pyplot_summary(): f"The following functions are listed in the pyplot documentation, " f"b...
["lib/matplotlib/tests/test_pyplot.py::test_minor_ticks"]
["lib/matplotlib/tests/test_pyplot.py::test_pyplot_up_to_date", "lib/matplotlib/tests/test_pyplot.py::test_copy_docstring_and_deprecators", "lib/matplotlib/tests/test_pyplot.py::test_pyplot_box", "lib/matplotlib/tests/test_pyplot.py::test_stackplot_smoke", "lib/matplotlib/tests/test_pyplot.py::test_nrows_error", "lib/m...
null
true
2022-05-14T14:58:51Z
1
26
1
363
0
0.8
1
0.4
1
0.147167
76.5415
9,812
swe_bench::test::1443
swe_bench
test
1,443
pytest-dev__pytest-7466
pytest-dev/pytest
pytest-dev/pytest
python
678c1a0745f1cf175c442c719906a1f13e496910
Support NO_COLOR to disable colored output `NO_COLOR` is a [community standard environement](https://no-color.org/ ) variable. The general behavior is: * A command line application emits colour when attached to a TTY, but no colour otherwise e.g. when attached to a pipe. * `NO_COLOR` stops the application from emittin...
`PY_COLOR` is also pytest specific, so I think if it happens that both are set, we should give preference over `PY_COLOR` over `NO_COLOR`. fwiw, I think `NO_COLOR` is ~slightly flawed in that `NO_COLOR=` (empty environment variable) is treated as `NO_COLOR=1`. this diverges from standard expected posix behaviour where...
diff --git a/src/_pytest/_io/terminalwriter.py b/src/_pytest/_io/terminalwriter.py --- a/src/_pytest/_io/terminalwriter.py +++ b/src/_pytest/_io/terminalwriter.py @@ -27,11 +27,12 @@ def should_do_markup(file: TextIO) -> bool: return True if os.environ.get("PY_COLORS") == "0": return False + i...
diff --git a/testing/io/test_terminalwriter.py b/testing/io/test_terminalwriter.py --- a/testing/io/test_terminalwriter.py +++ b/testing/io/test_terminalwriter.py @@ -154,8 +154,7 @@ def test_attr_hasmarkup() -> None: assert "\x1b[0m" in s -def test_should_do_markup_PY_COLORS_eq_1(monkeypatch: MonkeyPatch) -> ...
["testing/io/test_terminalwriter.py::test_should_not_do_markup_NO_COLOR", "testing/io/test_terminalwriter.py::test_should_do_markup_FORCE_COLOR", "testing/io/test_terminalwriter.py::test_should_not_do_markup_NO_COLOR_and_FORCE_COLOR"]
["testing/io/test_terminalwriter.py::test_terminal_width_COLUMNS", "testing/io/test_terminalwriter.py::test_terminalwriter_width_bogus", "testing/io/test_terminalwriter.py::test_terminalwriter_computes_width", "testing/io/test_terminalwriter.py::test_terminalwriter_dumb_term_no_markup", "testing/io/test_terminalwriter....
null
true
2020-07-08T19:54:01Z
1
9
3
664
0
0.8
1
0.4
1
0.140667
76.522
9,813
swe_bench::test::1217
swe_bench
test
1,217
pydata__xarray-3364
pydata/xarray
pydata/xarray
python
863e49066ca4d61c9adfe62aca3bf21b90e1af8c
Ignore missing variables when concatenating datasets? Several users (@raj-kesavan, @richardotis, now myself) have wondered about how to concatenate xray Datasets with different variables. With the current `xray.concat`, you need to awkwardly create dummy variables filled with `NaN` in datasets that don't have them (or...
Closing as stale, please reopen if still relevant
diff --git a/xarray/core/concat.py b/xarray/core/concat.py --- a/xarray/core/concat.py +++ b/xarray/core/concat.py @@ -312,15 +312,9 @@ def _dataset_concat( to_merge = {var: [] for var in variables_to_merge} for ds in datasets: - absent_merge_vars = variables_to_merge - set(ds.variables) ...
diff --git a/xarray/tests/test_combine.py b/xarray/tests/test_combine.py --- a/xarray/tests/test_combine.py +++ b/xarray/tests/test_combine.py @@ -782,12 +782,11 @@ def test_auto_combine_previously_failed(self): actual = auto_combine(datasets, concat_dim="t") assert_identical(expected, actual) - ...
["xarray/tests/test_combine.py::TestAutoCombineOldAPI::test_auto_combine_with_new_variables", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_merge_variables_present_in_some_datasets"]
["xarray/tests/test_combine.py::TestTileIDsFromNestedList::test_1d", "xarray/tests/test_combine.py::TestTileIDsFromNestedList::test_2d", "xarray/tests/test_combine.py::TestTileIDsFromNestedList::test_3d", "xarray/tests/test_combine.py::TestTileIDsFromNestedList::test_single_dataset", "xarray/tests/test_combine.py::Test...
null
true
2019-10-01T21:15:54Z
1
10
2
639
0
0.8
1
0.4
1
0.139833
76.5195
9,814
swe_bench::test::1527
swe_bench
test
1,527
scikit-learn__scikit-learn-11151
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
1c61b8ac1b66254208ba6a51c1eed6ad66dc0330
catch more warnings in common tests Right now the output of travis is too large to render, partially because a lot of deprecation warnings and partially because of warnings from the common tests. The common tests should catch all the deprecation warnings and probably also convergence warnings or numerical warnings (we ...
Do you mean deprecation warnings like the one below? If you can guide me a little, I am happy to work on this issue. ![image](https://user-images.githubusercontent.com/5948157/40274153-453622a6-5c02-11e8-8e50-29d341612e02.png) I meant deprecation warnings raised in scikit-learn, not in Numpy. That one you mention i...
diff --git a/sklearn/utils/estimator_checks.py b/sklearn/utils/estimator_checks.py --- a/sklearn/utils/estimator_checks.py +++ b/sklearn/utils/estimator_checks.py @@ -301,10 +301,10 @@ def check_estimator(Estimator): for check in _yield_all_checks(name, estimator): try: check(name, estimator)...
diff --git a/sklearn/gaussian_process/tests/test_gaussian_process.py b/sklearn/gaussian_process/tests/test_gaussian_process.py --- a/sklearn/gaussian_process/tests/test_gaussian_process.py +++ b/sklearn/gaussian_process/tests/test_gaussian_process.py @@ -15,6 +15,7 @@ from sklearn.datasets import make_regression from...
["sklearn/utils/tests/test_testing.py::TestWarns::test_warn"]
["sklearn/gaussian_process/tests/test_gaussian_process.py::test_1d", "sklearn/gaussian_process/tests/test_gaussian_process.py::test_2d", "sklearn/gaussian_process/tests/test_gaussian_process.py::test_2d_2d", "sklearn/gaussian_process/tests/test_gaussian_process.py::test_wrong_number_of_outputs", "sklearn/gaussian_proce...
null
true
2018-05-27T20:13:49Z
2
22
1
374
0
0.8
1
0.4
1
0.135667
76.507
9,815
swe_bench::test::1833
swe_bench
test
1,833
sphinx-doc__sphinx-8552
sphinx-doc/sphinx
sphinx-doc/sphinx
python
57ed10c68057c96491acbd3e62254ccfaf9e3861
Napoleon: Support NumpyDoc "Receives" docstring section Support the "Receives" section of NumpyDoc guidelines; it is related to Yields, which is already supported. https://numpydoc.readthedocs.io/en/latest/format.html#sections Receives Explanation of parameters passed to a generator’s .send() method, formatted as...
Reasonable. It should be supported.
diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py --- a/sphinx/ext/napoleon/docstring.py +++ b/sphinx/ext/napoleon/docstring.py @@ -179,6 +179,8 @@ def __init__(self, docstring: Union[str, List[str]], config: SphinxConfig = None 'notes': self._parse_notes_section, ...
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -303,6 +303,34 @@ class GoogleDocstringTest(BaseDocstringTest): """ Single line summary + Receive: + arg1 ...
["tests/test_ext_napoleon_docstring.py::GoogleDocstringTest::test_docstrings", "tests/test_ext_napoleon_docstring.py::NumpyDocstringTest::test_docstrings"]
["tests/test_ext_napoleon_docstring.py::NamedtupleSubclassTest::test_attributes_docstring", "tests/test_ext_napoleon_docstring.py::InlineAttributeTest::test_class_data_member", "tests/test_ext_napoleon_docstring.py::InlineAttributeTest::test_class_data_member_inline", "tests/test_ext_napoleon_docstring.py::InlineAttrib...
null
true
2020-12-19T11:29:43Z
1
11
2
579
0
0.8
1
0.4
1
0.133167
76.4995
9,816
swe_bench::test::1267
swe_bench
test
1,267
pydata__xarray-5187
pydata/xarray
pydata/xarray
python
b2351cbe3f3e92f0e242312dae5791fc83a4467a
bfill behavior dask arrays with small chunk size ```python data = np.random.rand(100) data[25] = np.nan da = xr.DataArray(data) #unchunked print('output : orig',da[25].values, ' backfill : ',da.bfill('dim_0')[25].values ) output : orig nan backfill : 0.024710724099643477 #small chunk da1 = da.chunk({'dim_0':1}) pri...
Thanks for the clear report. Indeed, this looks like a bug. `bfill()` and `ffill()` are implemented on dask arrays via `apply_ufunc`, but they're applied independently on each chunk -- there's no filling between chunks: https://github.com/pydata/xarray/blob/ddacf405fb256714ce01e1c4c464f829e1cc5058/xarray/core/missi...
diff --git a/xarray/core/dask_array_ops.py b/xarray/core/dask_array_ops.py --- a/xarray/core/dask_array_ops.py +++ b/xarray/core/dask_array_ops.py @@ -51,3 +51,24 @@ def least_squares(lhs, rhs, rcond=None, skipna=False): # See issue dask/dask#6516 coeffs, residuals, _, _ = da.linalg.lstsq(lhs_da, rhs)...
diff --git a/xarray/tests/test_duck_array_ops.py b/xarray/tests/test_duck_array_ops.py --- a/xarray/tests/test_duck_array_ops.py +++ b/xarray/tests/test_duck_array_ops.py @@ -20,6 +20,7 @@ mean, np_timedelta64_to_float, pd_timedelta_to_float, + push, py_timedelta_to_float, stack, timede...
["xarray/tests/test_duck_array_ops.py::TestOps::test_first", "xarray/tests/test_duck_array_ops.py::TestOps::test_last", "xarray/tests/test_duck_array_ops.py::TestOps::test_count", "xarray/tests/test_duck_array_ops.py::TestOps::test_where_type_promotion", "xarray/tests/test_duck_array_ops.py::TestOps::test_stack_type_pr...
["xarray/tests/test_duck_array_ops.py::test_cftime_datetime_mean", "xarray/tests/test_duck_array_ops.py::test_cftime_datetime_mean_long_time_period", "xarray/tests/test_duck_array_ops.py::test_cftime_datetime_mean_dask_error", "xarray/tests/test_duck_array_ops.py::test_reduce[None-False-sum-True-float-1]", "xarray/test...
null
true
2021-04-18T17:00:51Z
5
56
422
1,514
0
0.8
0.75
0.7
0.85
0.439
76.467
9,817
swe_bench::test::56
swe_bench
test
56
astropy__astropy-14439
astropy/astropy
astropy/astropy
python
a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c
Regarding FITS standard definition for 'Jy/beam' Astropy unit definition for Jy/beam currently exports it as 'beam-1 Jy' `from astropy import units as u` `(u.Jy/u.beam).to_string('FITS')` 'beam-1 Jy' This is contrary to how most radio astronomy packages define the unit. 'Jy/beam' seems to be the accepted convention. T...
Welcome to Astropy 👋 and thank you for your first issue! A project member will respond to you as soon as possible; in the meantime, please double-check the [guidelines for submitting issues](https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md#reporting-issues) and make sure you've provided the requested deta...
diff --git a/astropy/modeling/physical_models.py b/astropy/modeling/physical_models.py --- a/astropy/modeling/physical_models.py +++ b/astropy/modeling/physical_models.py @@ -47,7 +47,7 @@ class BlackBody(Fittable1DModel): >>> from astropy import units as u >>> bb = models.BlackBody(temperature=5000*u.K) ...
diff --git a/astropy/nddata/tests/test_nddata.py b/astropy/nddata/tests/test_nddata.py --- a/astropy/nddata/tests/test_nddata.py +++ b/astropy/nddata/tests/test_nddata.py @@ -478,7 +478,7 @@ def test_nddata_str(): # what if it had these units? arr = NDData(np.array([1, 2, 3]), unit="erg cm^-2 s^-1 A^-1") - ...
["astropy/nddata/tests/test_nddata.py::test_nddata_str", "astropy/units/tests/test_format.py::test_format_styles[generic-erg", "astropy/units/tests/test_format.py::test_format_styles[s-erg", "astropy/units/tests/test_format.py::test_format_styles[>25s-", "astropy/units/tests/test_format.py::test_format_styles[ogip-10",...
["astropy/nddata/tests/test_nddata.py::test_uncertainty_setter", "astropy/nddata/tests/test_nddata.py::test_mask_setter", "astropy/nddata/tests/test_nddata.py::test_nddata_empty", "astropy/nddata/tests/test_nddata.py::test_nddata_init_data_nonarray", "astropy/nddata/tests/test_nddata.py::test_nddata_init_data_ndarray",...
null
true
2023-02-22T21:10:30Z
2
7
26
590
0
0.8
1
0.4
1
0.121667
76.465
9,818
swe_bench::test::1335
swe_bench
test
1,335
pylint-dev__pylint-5446
pylint-dev/pylint
pylint-dev/pylint
python
a1df7685a4e6a05b519ea011f16a2f0d49d08032
The duplicate-code (R0801) can't be disabled Originally reported by: **Anonymous** --- It's seems like it's not possible to disable the duplicate code check on portions of a file. Looking at the source, I can see why as it's not a trivial thing to do (if you want to maintain the same scope semantics as other #pylint:...
_Original comment by_ **Radek Holý (BitBucket: [PyDeq](http://bitbucket.org/PyDeq), GitHub: @PyDeq?)**: --- Pylint marks even import blocks as duplicates. In my case, it is: ``` #!python import contextlib import io import itertools import os import subprocess import tempfile ``` I doubt it is possible to clean up/...
diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -381,10 +381,19 @@ def append_stream( else: readlines = stream.readlines # type: ignore[assignment] # hint parameter is incorrectly typed as non-optional ...
diff --git a/tests/regrtest_data/duplicate_data_raw_strings/__init__.py b/tests/regrtest_data/duplicate_code/raw_strings_all/__init__.py similarity index 100% rename from tests/regrtest_data/duplicate_data_raw_strings/__init__.py rename to tests/regrtest_data/duplicate_code/raw_strings_all/__init__.py diff --git a/test...
["tests/test_similar.py::TestSimilarCodeChecker::test_duplicate_code_raw_strings_disable_file_double", "tests/test_similar.py::TestSimilarCodeChecker::test_duplicate_code_raw_strings_disable_line_disable_all", "tests/test_similar.py::TestSimilarCodeChecker::test_duplicate_code_raw_strings_disable_line_midle", "tests/te...
["tests/test_self.py::TestRunTC::test_pkginfo", "tests/test_self.py::TestRunTC::test_all", "tests/test_self.py::TestRunTC::test_no_ext_file", "tests/test_self.py::TestRunTC::test_w0704_ignored", "tests/test_self.py::TestRunTC::test_exit_zero", "tests/test_self.py::TestRunTC::test_generate_config_option", "tests/test_se...
null
true
2021-11-30T16:56:42Z
1
11
4
496
0
0.8
1
0.4
1
0.119333
76.458
9,819
r2e_gym::train::5644
r2e_gym
train
5,644
scrapy__76220e8733b1462ecaa5db1cdd4a58ad4e93ceb3
scrapy
scrapy/scrapy
python
76220e8733b1462ecaa5db1cdd4a58ad4e93ceb3
**Analysis:** - **Key Parts from Commit Details and Test Results:** - **Commit Change:** Replaced `vars(spidercls).items()` with `getmembers(spidercls)` in the `tested_methods_from_spidercls` method. - **Test Outcome:** The test `test_inherited_contracts` failed in the old commit but passed in the new commit. - *...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -1,6 +1,7 @@ import sys import re from functools import wraps +from inspect import getmembers from unittest import TestCase from scrapy.http import Request @@ -17,7 +1...
diff --git a/tests/test_contracts.py b/tests/test_contracts.py --- a/tests/test_contracts.py +++ b/tests/test_contracts.py @@ -101,6 +101,10 @@ pass +class InheritsTestSpider(TestSpider): + name = 'inherits_demo_spider' + + class ContractsManagerTest(unittest.TestCase): contracts = [UrlContract, R...
null
null
namanjain12/scrapy_final:76220e8733b1462ecaa5db1cdd4a58ad4e93ceb3
true
null
1
3
null
2,472
0
0.75
1
0.6375
0.8
0.422
76.43475
9,820
r2e_gym::train::402
r2e_gym
train
402
orange3__f3b183551b877f025889242567b0451e1a92a2ea
orange3
biolab/orange3
python
f3b183551b877f025889242567b0451e1a92a2ea
**Analysis:** - **Key Parts of Commit Details and Test Results:** - **Commit Message:** "Table.from_numpy: Replace infs with nans.." - **Commit Patch:** Modifies the `_check_arrays` function to replace infinite values with NaNs and issue a warning instead of raising a `ValueError`. - **Added Test (`test_inf`):**...
diff --git a/Orange/data/table.py b/Orange/data/table.py --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -1779,7 +1779,8 @@ has_inf = _check_inf(array) if has_inf: - raise ValueError("Array contains infinity.") + array[np.isinf(array)] = np.nan + warning...
diff --git a/Orange/tests/test_table.py b/Orange/tests/test_table.py --- a/Orange/tests/test_table.py +++ b/Orange/tests/test_table.py @@ -1276,6 +1276,14 @@ table = data.Table("iris")[:1] table.X = sp.csr_matrix(table.X) repr(table) # make sure repr does not crash + + def test_inf(sel...
null
null
namanjain12/orange3_final:f3b183551b877f025889242567b0451e1a92a2ea
true
null
1
3
null
2,469
0
0.75
1
0.6375
0.8
0.4215
76.43325
9,821
swe_bench::test::1327
swe_bench
test
1,327
pylint-dev__pylint-4703
pylint-dev/pylint
pylint-dev/pylint
python
3a6f08e4a1155e5098c3bec2d779cb3e654a1b11
Imports within TYPE_CHECKING can induce "cyclic-import" Suppose you have two modules: a.py and b.py. `a` imports `b`, but `b` needs `a` in order to do type annotations, then this is usually done by importing `a` within a `TYPE_CHECKING` block. Unfortunately, this causes pylint to report `cyclic-import`. Possibly rel...
Not only this but they can produce very weir errors, ones reported to files that do not have any imports related to the cyclic ones inside, at least with current code from master. I cannot reproduce the problem with v2.6.0 release, but that one has other issues.
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -813,7 +813,9 @@ def _get_imported_module(self, importnode, modname): self.add_message("import-error", args=repr(dotted_modname), node=importnode) return None ...
diff --git a/tests/input/func_noerror_cycle/__init__.py b/tests/input/func_noerror_cycle/__init__.py new file mode 100644 --- /dev/null +++ b/tests/input/func_noerror_cycle/__init__.py @@ -0,0 +1,3 @@ +# https://github.com/PyCQA/pylint/issues/3525 +# `cyclic-import` should not be emitted if one import +# is guarded by ...
["tests/test_func.py::test_functionality[func_noerror_cycle]"]
["tests/test_func.py::test_functionality[func_w0401_disabled_in_func.py]", "tests/test_func.py::test_functionality[func_i0022.py]", "tests/test_func.py::test_functionality[func_w0401.py]", "tests/test_func.py::test_functionality[func_w0801.py]", "tests/test_func.py::test_functionality[func_w0401_package]", "tests/test_...
null
true
2021-07-11T21:49:04Z
1
13
1
371
0
0.8
1
0.4
1
0.105167
76.4155
9,822
swe_bench::test::1142
swe_bench
test
1,142
mwaskom__seaborn-3180
mwaskom/seaborn
mwaskom/seaborn
python
c8badb914bb8eaf5ec2578c0ecd434edb1234375
Overlapping labels in relplot with seaborn 0.12 ``` import seaborn as sns sns.set_context("paper") sns.set_style("white") data = (sns.load_dataset('iris').set_index('species')*1e7).reset_index() g = sns.relplot(data=data, x='sepal_length', y='sepal_width', col='species', col_wrap=2, height=2.5) g.set_...
Is there a way to turn the xlabels off again or to increase the spacing between the xaxis labels and the figure titles? Please turn this into a reproducible example, thanks. Here is an reproducible example. The columtemplate has a `\n` at the end to prevent the longer title to overlap with the scaling indicator (for t...
diff --git a/seaborn/relational.py b/seaborn/relational.py --- a/seaborn/relational.py +++ b/seaborn/relational.py @@ -955,7 +955,8 @@ def relplot( g.map_dataframe(func, **plot_kws) # Label the axes, using the original variables - g.set(xlabel=variables.get("x"), ylabel=variables.get("y")) + # Pass ""...
diff --git a/tests/test_relational.py b/tests/test_relational.py --- a/tests/test_relational.py +++ b/tests/test_relational.py @@ -624,6 +624,23 @@ def test_relplot_legend(self, long_df): for line, color in zip(lines, palette): assert line.get_color() == color + def test_relplot_unshared_axis...
["tests/test_relational.py::TestRelationalPlotter::test_relplot_unshared_axis_labels"]
["tests/test_relational.py::TestRelationalPlotter::test_wide_df_variables", "tests/test_relational.py::TestRelationalPlotter::test_wide_df_with_nonnumeric_variables", "tests/test_relational.py::TestRelationalPlotter::test_wide_array_variables", "tests/test_relational.py::TestRelationalPlotter::test_flat_array_variables...
null
true
2022-12-09T01:37:27Z
1
3
1
1,479
0
0.8
1
0.55
0.8
0.2565
76.3945
9,823
swe_bench::test::1605
swe_bench
test
1,605
scikit-learn__scikit-learn-13497
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
26f690961a52946dd2f53bf0fdd4264b2ae5be90
Comparing string to array in _estimate_mi In ``_estimate_mi`` there is ``discrete_features == 'auto'`` but discrete features can be an array of indices or a boolean mask. This will error in future versions of numpy. Also this means we never test this function with discrete features != 'auto', it seems?
I'll take this @hermidalc go for it :) i'm not sure ,but i think user will change the default value if it seem to be array or boolean mask....bcz auto is default value it is not fixed. I haven't understood, @punkstar25
diff --git a/sklearn/feature_selection/mutual_info_.py b/sklearn/feature_selection/mutual_info_.py --- a/sklearn/feature_selection/mutual_info_.py +++ b/sklearn/feature_selection/mutual_info_.py @@ -10,7 +10,7 @@ from ..preprocessing import scale from ..utils import check_random_state from ..utils.fixes import _asty...
diff --git a/sklearn/feature_selection/tests/test_mutual_info.py b/sklearn/feature_selection/tests/test_mutual_info.py --- a/sklearn/feature_selection/tests/test_mutual_info.py +++ b/sklearn/feature_selection/tests/test_mutual_info.py @@ -183,18 +183,26 @@ def test_mutual_info_options(): X_csr = csr_matrix(X) ...
["sklearn/feature_selection/tests/test_mutual_info.py::test_mutual_info_options"]
["sklearn/feature_selection/tests/test_mutual_info.py::test_compute_mi_dd", "sklearn/feature_selection/tests/test_mutual_info.py::test_compute_mi_cc", "sklearn/feature_selection/tests/test_mutual_info.py::test_compute_mi_cd", "sklearn/feature_selection/tests/test_mutual_info.py::test_compute_mi_cd_unique_label", "sklea...
null
true
2019-03-23T14:28:08Z
1
14
1
303
0
0.8
1
0.4
1
0.097167
76.3915
9,824
swe_bench::test::1094
swe_bench
test
1,094
matplotlib__matplotlib-25746
matplotlib/matplotlib
matplotlib/matplotlib
python
4bdae2e004b29d075f96a7dbbee918f7dfb13ed1
Add fontfamily/labelfont to tick_params ### Problem There is no simple way of assigning a fontfamily to tick labels without needing to either override the default fontfamily or set_x/yticklabels. We currently have access to color and size, kwarg to change the font would fit here nicely. ### Proposed Solution Add a ...
It doesn't look like anyone is working on this, so I'll try it out. Pull request currently in review: https://github.com/matplotlib/matplotlib/pull/19110
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -3337,6 +3337,8 @@ def tick_params(self, axis='both', **kwargs): Tick label font size in points or as a string (e.g., 'large'). labelcolor : color ...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -8589,3 +8589,14 @@ def test_fill_between_axes_limits(): color='green', alpha=0.5, transform=ax.get_xaxis_transform()) assert ...
["lib/matplotlib/tests/test_axes.py::test_tick_param_labelfont"]
["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[pdf]", "lib/matplotlib/test...
null
true
2023-04-21T12:49:56Z
2
11
1
361
0
0.8
1
0.4
1
0.096833
76.3905
9,825
r2e_gym::train::5558
r2e_gym
train
5,558
aiohttp__c6c36a664750d1f61e159dcc1a8d73ae2998854b
aiohttp
aio-libs/aiohttp
python
c6c36a664750d1f61e159dcc1a8d73ae2998854b
**Analysis:** - **Key Parts of Commit Details and Test Results:** - **Commit Message:** "Fix Python parser when chunk separators align (#8720) (#8721)" - **Commit Patch:** Modifies `aiohttp/http_parser.py` by relocating a condition that checks if the remaining chunk starts with `b"\r"` when in lax mode. - **Test...
diff --git a/CHANGES/8720.bugfix.rst b/CHANGES/8720.bugfix.rst --- a/CHANGES/8720.bugfix.rst +++ b/CHANGES/8720.bugfix.rst @@ -0,0 +1 @@ +Fixed an edge case in the Python parser when chunk separators happen to align with network chunks -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/http_parser.py b/aiohttp/http_pars...
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -1410,6 +1410,29 @@ assert b"second" == b"".join(d for d in payload._buffer) +async def test_parse_chunked_payload_split_chunks(response: Any) -> None: + network_chunks = ( +...
null
null
namanjain12/aiohttp_final:c6c36a664750d1f61e159dcc1a8d73ae2998854b
true
null
2
5
null
2,338
0
0.75
1
0.6375
0.8
0.406333
76.38775
9,826
swe_bench::test::1807
swe_bench
test
1,807
sphinx-doc__sphinx-8058
sphinx-doc/sphinx
sphinx-doc/sphinx
python
f92fa6443fe6f457ab0c26d41eb229e825fda5e1
Allow more compaction in gettext builder The OKFN people manually merge all generated message catalogs into a single file for upload. https://github.com/okfn/opendatamanual/blob/master/Makefile#L104 {{{gettext_compact}}} should support that use case too. --- - Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue...
_From Takayuki Shimizukawa on 2013-12-08 04:41:21+00:00_ New URL: https://github.com/okfn/opendatahandbook/blob/master/Makefile#L114 I think we need new conf.py option like `gettext_mode` it takes values as `file`, `directory` and `all`, and would be better to deprecate `gettext_compact` option. _From Markus Zapke-G...
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py --- a/sphinx/builders/gettext.py +++ b/sphinx/builders/gettext.py @@ -316,7 +316,7 @@ def finish(self) -> None: def setup(app: Sphinx) -> Dict[str, Any]: app.add_builder(MessageCatalogBuilder) - app.add_config_value('gettext_compact', True,...
diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py --- a/tests/test_build_gettext.py +++ b/tests/test_build_gettext.py @@ -174,3 +174,21 @@ def test_gettext_template_msgid_order_in_sphinxpot(app): 'msgid "This is Template 2\\.".*'), result, flags=re.S) + + +@pytest.mark.s...
["tests/test_build_gettext.py::test_build_single_pot"]
["tests/test_build_gettext.py::test_build_gettext", "tests/test_build_gettext.py::test_gettext_index_entries", "tests/test_build_gettext.py::test_gettext_disable_index_entries", "tests/test_build_gettext.py::test_gettext_template", "tests/test_build_gettext.py::test_gettext_template_msgid_order_in_sphinxpot"]
null
true
2020-08-06T07:23:10Z
2
8
1
414
0
0.8
1
0.4
1
0.095667
76.387
9,827
r2e_gym::train::359
r2e_gym
train
359
orange3__adad6e21aeff5b099246e243aa6cb9adc5bdf903
orange3
biolab/orange3
python
adad6e21aeff5b099246e243aa6cb9adc5bdf903
**Analysis:** - **Key Commit Details:** - **Commit Message:** "[ENH] Feature statistics report." - **Changed Function:** `send_report` now calls `self.report_table(view)` instead of just `pass`. - **Test Results:** - **Old Commit:** The `test_report` failed with an `AssertionError` stating that `'<table>'` was ...
diff --git a/Orange/widgets/data/owfeaturestatistics.py b/Orange/widgets/data/owfeaturestatistics.py --- a/Orange/widgets/data/owfeaturestatistics.py +++ b/Orange/widgets/data/owfeaturestatistics.py @@ -850,7 +850,8 @@ self.Outputs.statistics.send(statistics) def send_report(self): - pass + ...
diff --git a/Orange/widgets/data/tests/test_owfeaturestatistics.py b/Orange/widgets/data/tests/test_owfeaturestatistics.py --- a/Orange/widgets/data/tests/test_owfeaturestatistics.py +++ b/Orange/widgets/data/tests/test_owfeaturestatistics.py @@ -493,6 +493,15 @@ self.assertEqual(widget.selected_vars, [domain[...
null
null
namanjain12/orange3_final:adad6e21aeff5b099246e243aa6cb9adc5bdf903
true
null
1
3
null
2,376
0
0.75
1
0.6375
0.8
0.406
76.38675
9,828
swe_bench::test::67
swe_bench
test
67
astropy__astropy-14702
astropy/astropy
astropy/astropy
python
b3b8295c4b0478558bd0e4c6ec28bf16b90880b8
BUG: change representation of votable.tree.Table vs table.Table More often than not it's rather confusing (and annoying) that a VOTable and a Table look exactly the same, but obviously, they don't behave the same way and don't have the same methods available, etc. I would suggest to change the votable case of `<Table...
Looks like a conscious design choice. Not sure if there is an easy way to change it. Ideas welcome! https://github.com/astropy/astropy/blob/b3b8295c4b0478558bd0e4c6ec28bf16b90880b8/astropy/io/votable/tree.py#L2422-L2429 It maybe conscious, or just history, either case I think it maybe also responsible for the occasi...
diff --git a/astropy/io/votable/tree.py b/astropy/io/votable/tree.py --- a/astropy/io/votable/tree.py +++ b/astropy/io/votable/tree.py @@ -2420,7 +2420,10 @@ def __init__( warn_unknown_attrs("TABLE", extra.keys(), config, pos) def __repr__(self): - return repr(self.to_table()) + s = repr(s...
diff --git a/astropy/io/votable/tests/vo_test.py b/astropy/io/votable/tests/vo_test.py --- a/astropy/io/votable/tests/vo_test.py +++ b/astropy/io/votable/tests/vo_test.py @@ -596,6 +596,9 @@ def test_repr(self): # Resource assert repr(self.votable.resources) == "[</>]" + # Table + asse...
["astropy/io/votable/tests/vo_test.py::TestParse::test_repr", "astropy/io/votable/tests/vo_test.py::TestThroughTableData::test_repr", "astropy/io/votable/tests/vo_test.py::TestThroughBinary::test_repr", "astropy/io/votable/tests/vo_test.py::TestThroughBinary2::test_repr"]
["astropy/io/votable/tests/vo_test.py::test_parse_single_table", "astropy/io/votable/tests/vo_test.py::test_parse_single_table2", "astropy/io/votable/tests/vo_test.py::test_parse_single_table3", "astropy/io/votable/tests/vo_test.py::test_regression", "astropy/io/votable/tests/vo_test.py::test_regression_python_based_pa...
null
true
2023-04-27T15:10:47Z
1
5
4
1,421
0
0.8
1
0.55
0.8
0.2535
76.3855
9,829
swe_bench::test::1407
swe_bench
test
1,407
pytest-dev__pytest-5550
pytest-dev/pytest
pytest-dev/pytest
python
60a358fa2dc82a571c68d1be2d25703b51351538
xunit2 format does not contain a root <testsuites> tag junit_family=xunit2 option still generates an old xml format tests report. - junit_family=xunit2 creates the .xml file in the legacy format - ``` Package Version ---------------------------------- -------- alabaster ...
also tried `-o="junit_family=xunit2"` Hi @nazariydolfin, thanks for posting. Can you point out where that violates the schema? We are using https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd IIRC. Hi, I require a schema like this: ```...
diff --git a/src/_pytest/junitxml.py b/src/_pytest/junitxml.py --- a/src/_pytest/junitxml.py +++ b/src/_pytest/junitxml.py @@ -657,18 +657,17 @@ def pytest_sessionfinish(self): ) logfile.write('<?xml version="1.0" encoding="utf-8"?>') - logfile.write( - Junit.testsuite( - ...
diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -41,6 +41,16 @@ def find_first_by_tag(self, tag): def _by_tag(self, tag): return self.__node.getElementsByTagName(tag) + @property + def children(self): + return...
["testing/test_junitxml.py::test_root_testsuites_tag"]
["testing/test_junitxml.py::test_mangle_test_address", "testing/test_junitxml.py::test_dont_configure_on_slaves", "testing/test_junitxml.py::test_invalid_xml_escape", "testing/test_junitxml.py::test_logxml_path_expansion", "testing/test_junitxml.py::TestPython::test_summing_simple", "testing/test_junitxml.py::TestPytho...
null
true
2019-07-03T23:45:34Z
1
21
1
10,322
0
0.8
1
0.35
1
0.57
76.385
9,830
swe_bench::test::1380
swe_bench
test
1,380
pytest-dev__pytest-10482
pytest-dev/pytest
pytest-dev/pytest
python
54d5a63d1485110015665ece1065982407394517
Short test summary doesn't show the test name when skipping from a fixture I'm using Pytest 7.0.1on Ubuntu 18.04 with Python 3.6.9. Consider a test: ```python def test_0(bar): assert 0 ``` and a fixture defined in `conftest.py` that will skip a test based on some conditional check. ```python import pytest @pytes...
Also reproduces with pytest 7.2.
diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -58,6 +58,7 @@ from _pytest.mark import ParameterSet from _pytest.mark.structures import MarkDecorator from _pytest.outcomes import fail +from _pytest.outcomes import skip from _pytest.outco...
diff --git a/testing/test_skipping.py b/testing/test_skipping.py --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -1439,6 +1439,27 @@ def test_pass(): ) +def test_skip_from_fixture(pytester: Pytester) -> None: + pytester.makepyfile( + **{ + "tests/test_1.py": """ + i...
["testing/test_skipping.py::test_skip_from_fixture"]
["testing/test_skipping.py::test_importorskip", "testing/test_skipping.py::TestEvaluation::test_no_marker", "testing/test_skipping.py::TestEvaluation::test_marked_xfail_no_args", "testing/test_skipping.py::TestEvaluation::test_marked_skipif_no_args", "testing/test_skipping.py::TestEvaluation::test_marked_one_arg", "tes...
null
true
2022-11-08T12:07:04Z
1
5
1
1,410
0
0.8
1
0.55
0.8
0.251667
76.38
9,831
swe_bench::test::1027
swe_bench
test
1,027
matplotlib__matplotlib-23913
matplotlib/matplotlib
matplotlib/matplotlib
python
5c4595267ccd3daf78f5fd05693b7ecbcd575c1e
legend draggable as keyword ### Feature request **There is not keyword to make legend draggable at creation** Is there a code reason why one can not add a "draggable=True" keyword to the __init__ function for Legend? This would be more handy than having to call it after legend creation. And, naively, it would seem...
This seems like a reasonable request, you're welcome to submit a PR :-) Note that the same comment applies to annotations. I would also deprecate `draggable()` in favor of the more classic `set_draggable()`, `get_draggable()` (and thus, in the long-term future, `.draggable` could become a property).
diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -286,6 +286,9 @@ def _update_bbox_to_anchor(self, loc_in_canvas): The custom dictionary mapping instances or types to a legend handler. This *handler_map* updates the default handl...
diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py --- a/lib/matplotlib/tests/test_legend.py +++ b/lib/matplotlib/tests/test_legend.py @@ -783,6 +783,14 @@ def test_get_set_draggable(): assert not legend.get_draggable() +@pytest.mark.parametrize('draggable', (True, False)) +...
["lib/matplotlib/tests/test_legend.py::test_legend_draggable[True]", "lib/matplotlib/tests/test_legend.py::test_legend_draggable[False]"]
["lib/matplotlib/tests/test_legend.py::test_legend_ordereddict", "lib/matplotlib/tests/test_legend.py::test_legend_auto1[png]", "lib/matplotlib/tests/test_legend.py::test_legend_auto1[pdf]", "lib/matplotlib/tests/test_legend.py::test_legend_auto2[png]", "lib/matplotlib/tests/test_legend.py::test_legend_auto2[pdf]", "li...
null
true
2022-09-16T21:51:24Z
1
8
2
386
0
0.8
1
0.4
1
0.091
76.373
9,832
swe_bench::dev::60
swe_bench
dev
60
pvlib__pvlib-python-1764
pvlib/pvlib-python
pvlib/pvlib-python
python
964dc435ca117d47c74da47345ace976b70a471f
Allow user to set tol and maxiter for singlediode newton method The first few lines of `pvlib.singlediode` set `tol` and `maxiter` for all the solvers using the newton method: ``` from scipy.optimize import brentq, newton from scipy.special import lambertw # set keyword arguments for all uses of newton in this module...
At what level would they be exposed? At the `pvlib.singlediode.bishop88_xxx` functions or at a higher level, e.g., `pvlib.pvsystem.singlediode`? At the level of bishop88_xxx would be good enough for my purposes. I support this as long as the interface is common for both the `newton` and `brentq` options.
diff --git a/pvlib/singlediode.py b/pvlib/singlediode.py --- a/pvlib/singlediode.py +++ b/pvlib/singlediode.py @@ -2,15 +2,17 @@ Low-level functions for solving the single diode equation. """ -from functools import partial import numpy as np from pvlib.tools import _golden_sect_DataFrame from scipy.optimize im...
diff --git a/pvlib/tests/test_singlediode.py b/pvlib/tests/test_singlediode.py --- a/pvlib/tests/test_singlediode.py +++ b/pvlib/tests/test_singlediode.py @@ -412,3 +412,135 @@ def test_pvsyst_breakdown(method, brk_params, recomb_params, poa, temp_cell, vsc_88 = bishop88_v_from_i(isc_88, *x, **y, method=method) ...
["pvlib/tests/test_singlediode.py::test_bishop88_kwargs_transfer[newton-method_kwargs0]", "pvlib/tests/test_singlediode.py::test_bishop88_kwargs_transfer[brentq-method_kwargs1]", "pvlib/tests/test_singlediode.py::test_bishop88_full_output_kwarg[newton]", "pvlib/tests/test_singlediode.py::test_bishop88_full_output_kwarg...
["pvlib/tests/test_singlediode.py::test_method_spr_e20_327[brentq]", "pvlib/tests/test_singlediode.py::test_method_spr_e20_327[newton]", "pvlib/tests/test_singlediode.py::test_newton_fs_495[brentq]", "pvlib/tests/test_singlediode.py::test_newton_fs_495[newton]", "pvlib/tests/test_singlediode.py::test_singlediode_precis...
null
true
2023-06-07T22:18:17Z
1
204
4
868
0
0.8
1
0.55
0.75
0.644667
76.3715
9,833
swe_bench::test::69
swe_bench
test
69
astropy__astropy-14938
astropy/astropy
astropy/astropy
python
5e3ed748e2a59e5d72f82d85f871a8a61900ca75
Add registration label ‘ascii.latex’ to Cosmology IO ### What is the problem this feature will solve? The Cosmology write methods that leverage Table should have the same `format=` keys. Table has both “latex” and “ascii.latex”, so too should Cosmology. ### Describe the desired outcome Register the method a second ...
@nstarman I am interested in working(actually already started working 😅 ) on this issue so can you assign it to me? Hi @nstarman. I was working on this issue and with the context provided on the issue, I can't seem to figure out what changes needs to be done here, a bit more context would be helpful. PS: I found thi...
diff --git a/astropy/cosmology/io/latex.py b/astropy/cosmology/io/latex.py --- a/astropy/cosmology/io/latex.py +++ b/astropy/cosmology/io/latex.py @@ -48,10 +48,10 @@ def write_latex( TypeError If kwarg (optional) 'cls' is not a subclass of `astropy.table.Table` """ - # Check that the format is 'l...
diff --git a/astropy/cosmology/io/tests/test_latex.py b/astropy/cosmology/io/tests/test_latex.py --- a/astropy/cosmology/io/tests/test_latex.py +++ b/astropy/cosmology/io/tests/test_latex.py @@ -5,6 +5,7 @@ # LOCAL from astropy.cosmology.io.latex import _FORMAT_TABLE, write_latex +from astropy.io.registry.base impo...
["astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_failed_cls[cosmo0-ascii.latex]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-QTable-ascii.latex]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-Table-ascii...
["astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_failed_cls[cosmo0-latex]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-QTable-latex]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-Table-latex]", "astropy...
null
true
2023-06-12T11:22:25Z
1
7
104
382
0
0.8
1
0.4
1
0.087
76.361
9,834
r2e_gym::train::5917
r2e_gym
train
5,917
tornado__cc745780fe8fcb3d92ccdadabe3367641393a585
tornado
tornadoweb/tornado
python
cc745780fe8fcb3d92ccdadabe3367641393a585
**Analysis:** - **Key Parts from Commit and Test Results:** - **Commit Message:** `websocket_connect should not hang on HTTP errors.` - **Test Results Before Commit:** The `test_websocket_fail` resulted in a `TimeoutError` due to the connection hanging when an HTTP error occurs. - **Test Results After Commit:** ...
diff --git a/tornado/websocket.py b/tornado/websocket.py --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -746,6 +746,9 @@ def _on_close(self): self.on_message(None) + def _on_body(self, body): + self.connect_future.set_exception(Exception('Could not connect.')) + def _handle_1xx(...
diff --git a/tornado/test/websocket_test.py b/tornado/test/websocket_test.py --- a/tornado/test/websocket_test.py +++ b/tornado/test/websocket_test.py @@ -32,3 +32,14 @@ ws.read_message(self.stop) response = self.wait().result() self.assertEqual(response, 'hello') + + @gen_test + de...
null
null
namanjain12/tornado_final:cc745780fe8fcb3d92ccdadabe3367641393a585
true
null
1
3
null
2,303
0
0.75
1
0.6375
0.8
0.393833
76.35025
9,835
swe_bench::dev::66
swe_bench
dev
66
pvlib__pvlib-python-718
pvlib/pvlib-python
pvlib/pvlib-python
python
3c84edd644fa4db54955e2225a183fa3e0405eb0
CEC 6-parameter coefficient generation SAM is able to extract the CEC parameters required for calcparams_desoto. This is done through the 'CEC Performance Model with User Entered Specifications' module model, and coefficients are automatically extracted given nameplate parameters Voc, Isc, Imp, Vmp and TempCoeff. The...
SAM solution routine is located at https://github.com/NREL/ssc/blob/develop/shared/6par_solve.h , function "solve_with_sanity_and_heuristics" . Additional dependencies on other files 6par_newton.h, 6par_search.h, 6par_jacobian.h, 6par_lu.h, 6par_gamma.h, all located in https://github.com/NREL/ssc/tree/develop/shared . ...
diff --git a/pvlib/__init__.py b/pvlib/__init__.py --- a/pvlib/__init__.py +++ b/pvlib/__init__.py @@ -7,6 +7,7 @@ from pvlib import location from pvlib import solarposition from pvlib import iotools +from pvlib import ivtools from pvlib import tracking from pvlib import pvsystem from pvlib import spa diff --git ...
diff --git a/pvlib/test/conftest.py b/pvlib/test/conftest.py --- a/pvlib/test/conftest.py +++ b/pvlib/test/conftest.py @@ -151,6 +151,15 @@ def has_numba(): reason='requires pvfactors') +try: + import PySAM # noqa: F401 + has_pysam = True +except ImportError: + has...
["pvlib/test/test_ivtools.py::test_fit_sde_sandia", "pvlib/test/test_ivtools.py::test_fit_sde_sandia_bad_iv"]
[]
null
true
2019-05-13T14:43:11Z
3
355
2
798
0
0.8
1
0.55
0.75
0.633
76.3365
9,836
swe_bench::test::1870
swe_bench
test
1,870
sphinx-doc__sphinx-9231
sphinx-doc/sphinx
sphinx-doc/sphinx
python
d6c19126c5ebd788619d491d4e70c949de9fd2ff
man_make_section_directory should not be enabled by default Enabling `man_make_section_directory` by default in #8284 breaks projects relying on the previous behavior. This is a serious problem for Linux distributions that will end up with misplaced and unusable man pages. Please consider keeping it disabled by default...
Thank you for letting us know. I just reverted the change of default setting in #9232. It will be released as 4.0.2 soon. And I'll change the directory name in #9231. It will be released as 4.1.0.
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py --- a/sphinx/builders/manpage.py +++ b/sphinx/builders/manpage.py @@ -79,8 +79,9 @@ def write(self, *ignored: Any) -> None: docsettings.section = section if self.config.man_make_section_directory: - ensuredir...
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py --- a/tests/test_build_manpage.py +++ b/tests/test_build_manpage.py @@ -34,7 +34,7 @@ def test_all(app, status, warning): confoverrides={'man_make_section_directory': True}) def test_man_make_section_directory(app, status, warn...
["tests/test_build_manpage.py::test_man_make_section_directory"]
["tests/test_build_manpage.py::test_all", "tests/test_build_manpage.py::test_captioned_code_block", "tests/test_build_manpage.py::test_default_man_pages", "tests/test_build_manpage.py::test_rubric"]
null
true
2021-05-15T12:39:26Z
1
5
1
1,304
0
0.8
1
0.55
0.8
0.234
76.327
9,837
swe_bench::test::1847
swe_bench
test
1,847
sphinx-doc__sphinx-8684
sphinx-doc/sphinx
sphinx-doc/sphinx
python
6101077aab43529128496915c1c30ba3b1ce373c
ROI: extend dedent for code-block and literalinclude Hi, I think it would be nice to let `:dedent:` behave like the corresponding Python one: https://docs.python.org/2/library/textwrap.html#textwrap.dedent It may just that if nod edent value is provided, then a full dedent is performed.
Hi, assuming to pass the _unsplitted_ code, I guess we could think to modify ``` def dedent_lines(lines, dedent): if not dedent: return lines new_lines = [] for line in lines: new_line = line[dedent:] if line.endswith('\n') and not new_line: new_line = '\n' # keep CRL...
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -7,6 +7,7 @@ """ import sys +import textwrap import warnings from difflib import unified_diff from typing import Any, Dict, List, Tuple @@ -19,6 +20,7 @@ from sphinx import addno...
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -250,6 +250,14 @@ def test_LiteralIncludeReader_dedent(literal_inc_path): " pass\n" "\n") + # dedent: None + options ...
["tests/test_directive_code.py::test_LiteralIncludeReader_dedent"]
["tests/test_directive_code.py::test_LiteralIncludeReader", "tests/test_directive_code.py::test_LiteralIncludeReader_lineno_start", "tests/test_directive_code.py::test_LiteralIncludeReader_pyobject1", "tests/test_directive_code.py::test_LiteralIncludeReader_pyobject2", "tests/test_directive_code.py::test_LiteralInclude...
null
true
2021-01-12T14:52:00Z
1
8
1
289
0
0.8
1
0.4
1
0.074833
76.3245
9,838
swe_bench::test::1757
swe_bench
test
1,757
sphinx-doc__sphinx-11502
sphinx-doc/sphinx
sphinx-doc/sphinx
python
71db08c05197545944949d5aa76cd340e7143627
Keep 'translated' node attribute **Is your feature request related to a problem? Please describe.** In my internationalized documentation, I am adding markers to untranslated or partially translated pages, to warn the user that they can see English content and nudge them to help translating (e.g., like this: ![image](...
By the way, #1246 is related. On second thought, I believe that providing at least a way to access the percentage of translated paragraphs on the entire documentation. ```restructuredtext .. warning:: This document is not fully translated yet (progress: XXXXX %). ``` would be a valuable feature for Sphinx...
diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py --- a/sphinx/transforms/i18n.py +++ b/sphinx/transforms/i18n.py @@ -512,11 +512,6 @@ def apply(self, **kwargs: Any) -> None: node['raw_entries'] = entries node['entries'] = new_entries - # remove translated att...
diff --git a/tests/test_intl.py b/tests/test_intl.py --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -615,6 +615,20 @@ def test_gettext_buildr_ignores_only_directive(app): assert expect_msg.id in [m.id for m in actual if m.id] +@sphinx_intl +def test_node_translated_attribute(app): + app.build() + ...
["tests/test_intl.py::test_node_translated_attribute"]
["tests/test_intl.py::test_text_emit_warnings", "tests/test_intl.py::test_text_warning_node", "tests/test_intl.py::test_text_title_underline", "tests/test_intl.py::test_text_subdirs", "tests/test_intl.py::test_text_inconsistency_warnings", "tests/test_intl.py::test_noqa", "tests/test_intl.py::test_text_literalblock_war...
null
true
2023-07-23T14:35:44Z
1
5
1
1,284
0
0.8
1
0.55
0.8
0.230667
76.317
9,839
swe_bench::test::1708
swe_bench
test
1,708
scikit-learn__scikit-learn-26318
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
42d235924efa64987a19e945035c85414c53d4f0
Incorrect documentation for `warm_start` behavior on BaseForest-derived classes #### Describe the issue linked to the documentation The [RandomForestRegressor](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html) documentation states: > When set to True, reuse the solution of...
Thanks for submitting an issue @noahgolmant , The current documentation is correct: > When set to True, reuse the solution of the previous call to fit and add more estimators to the ensemble, otherwise, just fit a whole new forest. but it's lacking a few things. In particular, and I think this is where the con...
diff --git a/sklearn/ensemble/_forest.py b/sklearn/ensemble/_forest.py --- a/sklearn/ensemble/_forest.py +++ b/sklearn/ensemble/_forest.py @@ -474,7 +474,9 @@ def fit(self, X, y, sample_weight=None): # Collect newly grown trees self.estimators_.extend(trees) - if self.oob_score: + ...
diff --git a/sklearn/ensemble/tests/test_forest.py b/sklearn/ensemble/tests/test_forest.py --- a/sklearn/ensemble/tests/test_forest.py +++ b/sklearn/ensemble/tests/test_forest.py @@ -58,6 +58,7 @@ from sklearn.tree._classes import SPARSE_SPLITTERS +from unittest.mock import patch # toy sample X = [[-2, -1], [-...
["sklearn/ensemble/tests/test_forest.py::test_oob_not_computed_twice[ExtraTreesClassifier]", "sklearn/ensemble/tests/test_forest.py::test_oob_not_computed_twice[RandomForestClassifier]", "sklearn/ensemble/tests/test_forest.py::test_oob_not_computed_twice[ExtraTreesRegressor]", "sklearn/ensemble/tests/test_forest.py::te...
["sklearn/ensemble/tests/test_forest.py::test_classification_toy[ExtraTreesClassifier]", "sklearn/ensemble/tests/test_forest.py::test_classification_toy[RandomForestClassifier]", "sklearn/ensemble/tests/test_forest.py::test_iris[gini-ExtraTreesClassifier]", "sklearn/ensemble/tests/test_forest.py::test_iris[gini-RandomF...
null
true
2023-05-02T15:11:07Z
1
4
4
1,232
0
0.8
1
0.55
0.8
0.218667
76.281
9,840
swe_bench::test::1645
swe_bench
test
1,645
scikit-learn__scikit-learn-14591
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
71c3afb29a369b1c58a94d0f3c0596c6c3c3e216
LassoCV always sets precompute to False before fitting the chosen alpha value I'm using a very large data-set. After fitting 100 x 3-fold cross-validated LASSOs at lightning speed (a few seconds total), LassoCV stalls at the final hurdle: fitting a LASSO with the chosen alpha value to the whole data-set (waiting over h...
From a quick glance at your description it seems like you have a good grasp of what is happening and it could well be a bug (I am not a Lasso expert so don't take my word for it). It would help a lot if you could provide a stand-alone snippet to reproduce the problem. Please read http://matthewrocklin.com/blog/work...
diff --git a/sklearn/linear_model/coordinate_descent.py b/sklearn/linear_model/coordinate_descent.py --- a/sklearn/linear_model/coordinate_descent.py +++ b/sklearn/linear_model/coordinate_descent.py @@ -1218,7 +1218,9 @@ def fit(self, X, y): model.alpha = best_alpha model.l1_ratio = best_l1_ratio ...
diff --git a/sklearn/linear_model/tests/test_coordinate_descent.py b/sklearn/linear_model/tests/test_coordinate_descent.py --- a/sklearn/linear_model/tests/test_coordinate_descent.py +++ b/sklearn/linear_model/tests/test_coordinate_descent.py @@ -865,3 +865,27 @@ def test_sparse_input_convergence_warning(): La...
["sklearn/linear_model/tests/test_coordinate_descent.py::test_lassoCV_does_not_set_precompute[True-True]"]
["sklearn/linear_model/tests/test_coordinate_descent.py::test_lasso_zero", "sklearn/linear_model/tests/test_coordinate_descent.py::test_lasso_toy", "sklearn/linear_model/tests/test_coordinate_descent.py::test_enet_toy", "sklearn/linear_model/tests/test_coordinate_descent.py::test_lasso_cv", "sklearn/linear_model/tests/...
null
true
2019-08-07T18:48:58Z
1
4
1
1,231
0
0.8
1
0.55
0.8
0.2185
76.2805
9,841
r2e_gym::train::5307
r2e_gym
train
5,307
aiohttp__c776b5a2522fb8c411295b56816d064bfc8389c9
aiohttp
aio-libs/aiohttp
python
c776b5a2522fb8c411295b56816d064bfc8389c9
**Analysis:** - **Key Parts:** - The commit replaces an `assert` statement with an explicit `TypeError` when setting the `status_code` to a non-integer. - Before the commit, assigning a non-integer to `status_code` resulted in an `AssertionError`. - After the commit, the issue is resolved as the correct exceptio...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -108,7 +108,8 @@ @status_code.setter def status_code(self, value): self._check_sending_started() - assert isinstance(value, int), "Status code must be int" + if not isinstance(value, int): + ...
diff --git a/tests/test_web_response.py b/tests/test_web_response.py --- a/tests/test_web_response.py +++ b/tests/test_web_response.py @@ -24,3 +24,28 @@ self.assertIsNone(req._response) self.assertEqual(200, resp.status_code) self.assertTrue(resp.keep_alive) + # self.assertEqual(123, ...
null
null
namanjain12/aiohttp_final:c776b5a2522fb8c411295b56816d064bfc8389c9
true
null
1
3
null
2,122
0
0.75
1
0.6375
0.8
0.363667
76.25975
9,842
swe_bench::test::1747
swe_bench
test
1,747
sphinx-doc__sphinx-10807
sphinx-doc/sphinx
sphinx-doc/sphinx
python
ded734d5f99756033218d29c32758049adbe52d2
Create a ToC entry for every function, method, class, etc It would be useful to have an option that causes Sphinx to automatically create a TOC entry for every function, class, and method. (In the absence of this, tables of contents are of limited value). automodule places members under docstring headers ### Describe ...
I will try to make this enhancement, but am hoping that someone can point me to the right place in the code. What is the target date for the 3.0.0 milestone? 3.0 will be released in next spring. @Phillip-M-Feldman are you still planning to work on this? @tk0miya you added this issue to the 3.0.0 milestone: are you goin...
diff --git a/sphinx/config.py b/sphinx/config.py --- a/sphinx/config.py +++ b/sphinx/config.py @@ -106,6 +106,8 @@ class Config: 'default_role': (None, 'env', [str]), 'add_function_parentheses': (True, 'env', []), 'add_module_names': (True, 'env', []), + 'toc_object_entries_show_parent...
diff --git a/tests/roots/test-toctree-domain-objects/conf.py b/tests/roots/test-toctree-domain-objects/conf.py new file mode 100644 diff --git a/tests/roots/test-toctree-domain-objects/domains.rst b/tests/roots/test-toctree-domain-objects/domains.rst new file mode 100644 --- /dev/null +++ b/tests/roots/test-toctree-dom...
["tests/test_environment_toctree.py::test_domain_objects", "tests/test_ext_autodoc_automodule.py::test_empty_all"]
["tests/test_environment_toctree.py::test_process_doc", "tests/test_environment_toctree.py::test_glob", "tests/test_environment_toctree.py::test_get_toc_for", "tests/test_environment_toctree.py::test_get_toc_for_only", "tests/test_environment_toctree.py::test_get_toc_for_tocdepth", "tests/test_environment_toctree.py::t...
null
true
2022-09-08T00:35:48Z
9
295
2
3,640
0.006452
0.8
1
0.77
0.45
1
76.259224
9,843
r2e_gym::train::5556
r2e_gym
train
5,556
aiohttp__37e3aa4639193c6423562a4a4dfbf3310772b7a6
aiohttp
aio-libs/aiohttp
python
37e3aa4639193c6423562a4a4dfbf3310772b7a6
**[ISSUE]** ### Race Condition Causes Keepalive Connections to Prematurely Close **Description** When handling keepalive connections, a race condition can occur that forces the server to close the connection unexpectedly while processing requests. This issue manifests when multiple rapid requests are made, leading t...
diff --git a/CHANGES/9140.bugfix.rst b/CHANGES/9140.bugfix.rst --- a/CHANGES/9140.bugfix.rst +++ b/CHANGES/9140.bugfix.rst @@ -0,0 +1 @@ +Fixed race condition that could cause server to close connection incorrectly at keepalive timeout -- by :user:`Dreamosorcerer`. diff --git a/aiohttp/web_protocol.py b/aiohttp/web_pro...
diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py --- a/tests/test_web_functional.py +++ b/tests/test_web_functional.py @@ -25,6 +25,7 @@ from aiohttp.hdrs import CONTENT_LENGTH, CONTENT_TYPE, TRANSFER_ENCODING from aiohttp.test_utils import make_mocked_coro from aiohttp.typedefs import Handle...
null
null
namanjain12/aiohttp_final:37e3aa4639193c6423562a4a4dfbf3310772b7a6
true
null
2
3
null
2,096
0
0.75
1
0.6375
0.8
0.359333
76.24675
9,844
swe_bench::test::1336
swe_bench
test
1,336
pylint-dev__pylint-5595
pylint-dev/pylint
pylint-dev/pylint
python
b4bf5168621f0a4bf7cca795862e2b5c139fc8cb
The negative score is not very beginner friendly For the past months I've been under the impression that the negative score is not very friendly for beginners. It somewhat demotivating to run `pylint` over your project just to get a `-24/10.0` as a score, which would make `pylint` look like a super drastic tool, that's...
agree, it is very unusual. I've toyed with the idea of adjusting the scoring such that larger amounts of issues result in a score that becomes closer and closer to 0 while keeping scores rated 5 and above by the current algorithm the same. I've arrived at [10( (x^a + 1)^(1/a) - x)](https://www.desmos.com/calculator/1f...
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -310,8 +310,8 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]: "metavar": "<python_expression>", "group": "Reports", "l...
diff --git a/tests/test_self.py b/tests/test_self.py --- a/tests/test_self.py +++ b/tests/test_self.py @@ -718,11 +718,15 @@ def test_fail_under(self) -> None: ], code=0, ) + # Need the old evaluation formula to test a negative score + # failing below a negative --fail-u...
["tests/unittest_reporting.py::test_multi_format_output"]
["tests/test_self.py::TestRunTC::test_pkginfo", "tests/test_self.py::TestRunTC::test_all", "tests/test_self.py::TestRunTC::test_no_ext_file", "tests/test_self.py::TestRunTC::test_w0704_ignored", "tests/test_self.py::TestRunTC::test_exit_zero", "tests/test_self.py::TestRunTC::test_generate_config_option", "tests/test_se...
null
true
2021-12-23T23:10:43Z
1
4
1
1,127
0
0.8
1
0.55
0.8
0.201167
76.2285
9,845
r2e_gym::train::362
r2e_gym
train
362
orange3__62a7605ba4c08db89703838ec9e767cc400a7a1a
orange3
biolab/orange3
python
62a7605ba4c08db89703838ec9e767cc400a7a1a
**Analysis:** - **Key Parts:** - **Commit Message:** "UrlReader: Support urls with special characters." - **Test Added:** `test_special_characters` which fails with a `UnicodeEncodeError` in the old commit and passes after the commit. - **Error Message:** `'ascii' codec can't encode character '\u0161' in positio...
diff --git a/Orange/data/io.py b/Orange/data/io.py --- a/Orange/data/io.py +++ b/Orange/data/io.py @@ -13,7 +13,8 @@ from os import path, remove from tempfile import NamedTemporaryFile -from urllib.parse import urlparse, urlsplit, urlunsplit, unquote as urlunquote +from urllib.parse import urlparse, urlsplit, urlun...
diff --git a/Orange/tests/test_url_reader.py b/Orange/tests/test_url_reader.py --- a/Orange/tests/test_url_reader.py +++ b/Orange/tests/test_url_reader.py @@ -17,3 +17,14 @@ "http://datasets.biolab.si/core/philadelphia-crime.csv.xz" ).read() self.assertEqual(9666, len(data)) + + def te...
null
null
namanjain12/orange3_final:62a7605ba4c08db89703838ec9e767cc400a7a1a
true
null
1
4
null
1,993
0
0.75
1
0.6375
0.8
0.3455
76.20525
9,846
r2e_gym::train::4909
r2e_gym
train
4,909
datalad__fe62e46955f5a428bcf72b28a0861194a59183b0
datalad
datalad/datalad
python
fe62e46955f5a428bcf72b28a0861194a59183b0
**Analysis:** - **Key Parts:** - **Commit Message:** "assure that lines remain newline separated in _process_remaining_output" - **Patch Details:** Modifies how lines are joined in `_process_remaining_output` to ensure they remain newline-separated. - **Test Changes:** The original test expected `b"sп"` but was ...
diff --git a/datalad/cmd.py b/datalad/cmd.py --- a/datalad/cmd.py +++ b/datalad/cmd.py @@ -326,8 +326,9 @@ # resolving a once in a while failing test #2185 if isinstance(out_, text_type): out_ = out_.encode('utf-8') - for line in out_.split(linesep_b...
diff --git a/datalad/tests/test_cmd.py b/datalad/tests/test_cmd.py --- a/datalad/tests/test_cmd.py +++ b/datalad/tests/test_cmd.py @@ -318,7 +318,7 @@ п """ out_bytes = out.encode('utf-8') - target = u"sп".encode('utf-8') + target = u"s\nп\n".encode('utf-8') args = ['stdout', None, False, False] ...
null
null
namanjain12/datalad_final:fe62e46955f5a428bcf72b28a0861194a59183b0
true
null
1
5
null
1,964
0
0.75
1
0.6375
0.8
0.344
76.20075
9,847
swe_bench::test::1749
swe_bench
test
1,749
sphinx-doc__sphinx-11109
sphinx-doc/sphinx
sphinx-doc/sphinx
python
609b2f2650dfea191e688ce6238ba567da551052
sphinx.domains.python._parse_annotation should improve formatting of Union, Optional, Literal, constants This is a sub-issue of #9523 split off here. When displayed normally, `Union`, `Optional`, and `Literal` add a lot of noise to the type signature and obscure the important information. Instead, it is much cleaner ...
I think the former proposal is cool. It's good for me. +1 for adding the option. At this moment, some libraries and applications must support old intepreters that does not supporting type union operator. So it's useful until the deprecation of them. On the other hand, I'm not sure another proposal is really good. Th...
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -130,6 +130,8 @@ def type_to_xref(target: str, env: BuildEnvironment | None = None, def _parse_annotation(annotation: str, env: BuildEnvironment | None) -> list[Node]: """Parse type ...
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -1470,3 +1470,70 @@ def test_module_content_line_number(app): source, line = docutils.utils.get_source_line(xrefs[0]) assert 'index.rst' in source assert line == 3 + + +@pytest.ma...
["tests/test_domain_py.py::test_short_literal_types"]
["tests/test_domain_py.py::test_function_signatures", "tests/test_domain_py.py::test_domain_py_xrefs", "tests/test_domain_py.py::test_domain_py_xrefs_abbreviations", "tests/test_domain_py.py::test_domain_py_objects", "tests/test_domain_py.py::test_resolve_xref_for_properties", "tests/test_domain_py.py::test_domain_py_f...
null
true
2023-01-07T22:21:20Z
1
5
1
999
0
0.8
1
0.55
0.8
0.183167
76.1745
9,848
r2e_gym::train::5638
r2e_gym
train
5,638
scrapy__93afe185877ee63154a5d54f06e2ddbc9e9f0c58
scrapy
scrapy/scrapy
python
93afe185877ee63154a5d54f06e2ddbc9e9f0c58
**Title:** Scheduler Fails to Initialize DupeFilter Using from_crawler or Direct Instantiation **Description:** When configuring the `DUPEFILTER_CLASS` to use a custom dupefilter that implements `from_crawler`, the scheduler fails to initialize it properly, resulting in an `AttributeError`. Similarly, directly specify...
diff --git a/scrapy/core/scheduler.py b/scrapy/core/scheduler.py --- a/scrapy/core/scheduler.py +++ b/scrapy/core/scheduler.py @@ -4,7 +4,7 @@ from os.path import join, exists from scrapy.utils.reqser import request_to_dict, request_from_dict -from scrapy.utils.misc import load_object +from scrapy.utils.misc import...
diff --git a/tests/test_dupefilters.py b/tests/test_dupefilters.py --- a/tests/test_dupefilters.py +++ b/tests/test_dupefilters.py @@ -5,10 +5,59 @@ from scrapy.dupefilters import RFPDupeFilter from scrapy.http import Request +from scrapy.core.scheduler import Scheduler from scrapy.utils.python import to_bytes +fr...
null
null
namanjain12/scrapy_final:93afe185877ee63154a5d54f06e2ddbc9e9f0c58
true
null
1
4
null
1,929
0
0.75
1
0.6375
0.8
0.334833
76.17325
9,849
r2e_gym::train::5400
r2e_gym
train
5,400
aiohttp__9c932f71ec5a450954cee92ff9450974414ac1d8
aiohttp
aio-libs/aiohttp
python
9c932f71ec5a450954cee92ff9450974414ac1d8
**Title:** CookieJar Selects Incorrect Cookie When Multiple Cookies Share the Same Name with Different Paths **Description:** When multiple cookies with the same name are set under different paths, the `CookieJar` incorrectly selects the last added cookie (LIFO order) instead of the cookie that best matches the reques...
diff --git a/CHANGES/7577.bugfix b/CHANGES/7577.bugfix --- a/CHANGES/7577.bugfix +++ b/CHANGES/7577.bugfix @@ -0,0 +1 @@ +Fix sorting in filter_cookies to use cookie with longest path -- by :user:`marq24`. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -228,6 +228,7 @@...
diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py --- a/tests/test_cookiejar.py +++ b/tests/test_cookiejar.py @@ -704,6 +704,36 @@ self.assertEqual(len(jar_filtered), 1) self.assertEqual(jar_filtered["path-cookie"].value, "one") + def test_path_filter_diff_folder_same_name_return_bes...
null
null
namanjain12/aiohttp_final:9c932f71ec5a450954cee92ff9450974414ac1d8
true
null
3
5
null
1,894
0
0.75
1
0.6375
0.8
0.332333
76.16575
9,850
swe_bench::test::1881
swe_bench
test
1,881
sphinx-doc__sphinx-9350
sphinx-doc/sphinx
sphinx-doc/sphinx
python
f14561da80c263b867b51e27a75c4f9cdacfeb29
Man page using :samp: with braces - font doesn't reset There are issues with the man page rendering when using :samp:`{blah}` The font change doesn't reset after the closure of the samp but runs onto subsequent lines until certain 'resetting' elements are encountered, such as a bullet, heading and probably others I hav...
Fixed at c6c9c5c Thank you for reporting Apparently, I face the same problem with the latest release `4.0.2`: index.rst: ``` Welcome to demo documentation! ============================== This is :samp:`fine`. Show :samp:`{problematic}` underscore starting here. And this is also bad. ``` conf.py: ``...
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -59,13 +59,16 @@ def apply(self, **kwargs: Any) -> None: for node in self.document.traverse(matcher): # type: TextElement if any(matcher(subnode) for subnode in no...
diff --git a/tests/roots/test-root/lists.txt b/tests/roots/test-root/lists.txt --- a/tests/roots/test-root/lists.txt +++ b/tests/roots/test-root/lists.txt @@ -61,3 +61,10 @@ term1 term2 (**stronged partially**) description + +Samp tests +---------- + +:samp:`{variable_only}` +:samp:`{variable} and text` +:samp:...
["tests/test_build_manpage.py::test_all"]
["tests/test_build_manpage.py::test_man_make_section_directory", "tests/test_build_manpage.py::test_captioned_code_block", "tests/test_build_manpage.py::test_default_man_pages", "tests/test_build_manpage.py::test_rubric"]
null
true
2021-06-16T07:23:24Z
1
5
1
959
0
0.8
1
0.55
0.8
0.1765
76.1545
9,851
r2e_gym::train::5737
r2e_gym
train
5,737
scrapy__cabed6f183cfb2ab778c57be8c75802fec5e54d4
scrapy
scrapy/scrapy
python
cabed6f183cfb2ab778c57be8c75802fec5e54d4
**Analysis:** - **Key Parts:** - **Commit Message:** "More liberal Content-Disposition header parsing" - **Change:** Added `encoding='latin-1', errors='replace'` to `to_native_str` function. - **Test Results:** - **Before Commit:** `test_from_content_disposition` failed with `UnicodeDecodeError`. - **Aft...
diff --git a/scrapy/responsetypes.py b/scrapy/responsetypes.py --- a/scrapy/responsetypes.py +++ b/scrapy/responsetypes.py @@ -59,7 +59,8 @@ def from_content_disposition(self, content_disposition): try: - filename = to_native_str(content_disposition).split(';')[1].split('=')[1] + f...
diff --git a/tests/test_responsetypes.py b/tests/test_responsetypes.py --- a/tests/test_responsetypes.py +++ b/tests/test_responsetypes.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import unittest from scrapy.responsetypes import responsetypes @@ -20,8 +21,14 @@ def test_from_content_disposition(self): ...
null
null
namanjain12/scrapy_final:cabed6f183cfb2ab778c57be8c75802fec5e54d4
true
null
1
3
null
1,910
0
0.75
1
0.6375
0.8
0.328333
76.15375
9,852
swe_bench::test::1479
swe_bench
test
1,479
pytest-dev__pytest-9133
pytest-dev/pytest
pytest-dev/pytest
python
7720154ca023da23581d87244a31acf5b14979f2
Add a `deselected` parameter to `assert_outcomes()` #### What's the problem this feature will solve? I'd like to be able to use `pytester.RunResult.assert_outcomes()` to check deselected count. #### Describe the solution you'd like Add a `deselected` parameter to `pytester.RunResult.assert_outcomes()` Plugins that...
Sounds reasonable. 👍 Hi! I would like to work on this proposal. I went ahead and modified `pytester.RunResult.assert_outcomes()` to also compare the `deselected` count to that returned by `parseoutcomes()`. I also modified `pytester_assertions.assert_outcomes()` called by `pytester.RunResult.assert_outcomes()`. Wh...
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -589,6 +589,7 @@ def assert_outcomes( xpassed: int = 0, xfailed: int = 0, warnings: int = 0, + deselected: int = 0, ) -> None: """Assert that the ...
diff --git a/testing/test_pytester.py b/testing/test_pytester.py --- a/testing/test_pytester.py +++ b/testing/test_pytester.py @@ -861,3 +861,17 @@ def test_with_warning(): ) result = pytester.runpytest() result.assert_outcomes(passed=1, warnings=1) + + +def test_pytester_outcomes_deselected(pytester: Py...
["testing/test_pytester.py::test_pytester_outcomes_deselected"]
["testing/test_pytester.py::test_hookrecorder_basic[apiclass]", "testing/test_pytester.py::test_hookrecorder_basic[api]", "testing/test_pytester.py::TestSysModulesSnapshot::test_remove_added", "testing/test_pytester.py::TestSysModulesSnapshot::test_add_removed", "testing/test_pytester.py::TestSysModulesSnapshot::test_r...
null
true
2021-09-29T14:28:54Z
2
5
1
909
0
0.8
1
0.55
0.8
0.168167
76.1295
9,853
swe_bench::dev::180
swe_bench
dev
180
sqlfluff__sqlfluff-2326
sqlfluff/sqlfluff
sqlfluff/sqlfluff
python
38cff664d9505999fb7473a4a7b29ba36aba7883
`AnySetOf` grammar I know this has been talked about before in PRs so making an issue to formally track. In many grammars there's a common situation where we have to denote several options that can be specified in any order but they cannot be specified more than once. Our general approach to this in the project has ...
diff --git a/src/sqlfluff/core/parser/__init__.py b/src/sqlfluff/core/parser/__init__.py --- a/src/sqlfluff/core/parser/__init__.py +++ b/src/sqlfluff/core/parser/__init__.py @@ -23,6 +23,7 @@ Delimited, Bracketed, AnyNumberOf, + AnySetOf, Ref, Anything, Nothing, @@ -56,6 +57,7 @@ ...
diff --git a/test/core/parser/grammar_test.py b/test/core/parser/grammar_test.py --- a/test/core/parser/grammar_test.py +++ b/test/core/parser/grammar_test.py @@ -12,6 +12,7 @@ Indent, ) from sqlfluff.core.parser.context import RootParseContext +from sqlfluff.core.parser.grammar.anyof import AnySetOf from sqlfl...
["test/core/parser/grammar_test.py::test__parser__grammar__base__longest_trimmed_match__basic[seg_list_slice0-matcher_keywords0-False-result_slice0]", "test/core/parser/grammar_test.py::test__parser__grammar__base__longest_trimmed_match__basic[seg_list_slice1-matcher_keywords1-True-result_slice1]", "test/core/parser/gr...
[]
null
true
2022-01-16T22:52:45Z
4
52
51
1,485
0
0.8
1
0.55
0.85
0.420833
76.075
9,854
swe_bench::test::998
swe_bench
test
998
matplotlib__matplotlib-22931
matplotlib/matplotlib
matplotlib/matplotlib
python
e779b97174ff3ab2737fbdffb432ef8689201602
[Bug]: Regression in dashes due to #22569 ### Bug summary Previously working plotting code has broken. It fails on 96ddc6728ce09cb61f6b6c53714755fe0936b106 / #22569 but passes on the parent daaa1ed376b4fc60ed5a20d155a13c6361aee479. ### Code for reproduction ```python import matplotlib.pyplot as plt fig, ax = plt.sub...
It looks like internally matplotlib uses `'solid': (0, None)` which is fine, I can switch our code to that -- but it seems like for backward compat supporting `'solid': (0, ())` as an alias would make sense since it used to be that way in official examples (here from 2.x): https://github.com/matplotlib/matplotlib/bl...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -924,7 +924,7 @@ def set_dashes(self, dash_offset, dash_list): if np.any(dl < 0.0): raise ValueError( "All valu...
diff --git a/lib/matplotlib/tests/test_lines.py b/lib/matplotlib/tests/test_lines.py --- a/lib/matplotlib/tests/test_lines.py +++ b/lib/matplotlib/tests/test_lines.py @@ -108,7 +108,9 @@ def test_valid_colors(): def test_linestyle_variants(): fig, ax = plt.subplots() for ls in ["-", "solid", "--", "dashed", ...
["lib/matplotlib/tests/test_lines.py::test_linestyle_variants"]
["lib/matplotlib/tests/test_lines.py::test_segment_hits", "lib/matplotlib/tests/test_lines.py::test_invisible_Line_rendering", "lib/matplotlib/tests/test_lines.py::test_set_line_coll_dash", "lib/matplotlib/tests/test_lines.py::test_line_dashes[png]", "lib/matplotlib/tests/test_lines.py::test_line_dashes[pdf]", "lib/mat...
null
true
2022-04-28T16:53:47Z
1
2
1
2,727
0
0.8
1
0.85
0.4
0.461167
76.0585
9,855
r2e_gym::train::5346
r2e_gym
train
5,346
aiohttp__b15c89558f1a52eb22ca400ff8624def096123d0
aiohttp
aio-libs/aiohttp
python
b15c89558f1a52eb22ca400ff8624def096123d0
**Title:** Malformed charset in Content-Type header causes UnicodeEncodeError **Description:** When a response includes a `Content-Type` header with an improperly encoded `charset` parameter, invoking the method to retrieve the encoding results in a crash instead of handling the error gracefully. **Example Code:** ``...
diff --git a/CHANGES/9160.bugfix b/CHANGES/9160.bugfix --- a/CHANGES/9160.bugfix +++ b/CHANGES/9160.bugfix @@ -0,0 +1 @@ +Fixed badly encoded charset crashing when getting response text instead of falling back to charset detector. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTOR...
diff --git a/tests/test_client_response.py b/tests/test_client_response.py --- a/tests/test_client_response.py +++ b/tests/test_client_response.py @@ -6,7 +6,7 @@ from unittest import mock import pytest -from multidict import CIMultiDict +from multidict import CIMultiDict, CIMultiDictProxy from yarl import URL ...
null
null
namanjain12/aiohttp_final:b15c89558f1a52eb22ca400ff8624def096123d0
true
null
3
4
null
1,681
0
0.75
1
0.6375
0.8
0.2935
76.04925
9,856
swe_bench::test::1114
swe_bench
test
1,114
matplotlib__matplotlib-26232
matplotlib/matplotlib
matplotlib/matplotlib
python
9fdf6adf70819c8d34e9f47eeb8470aea35d78c0
[Bug]: pcolor writing to read-only input mask ### Bug summary When the parameter `X` or `Y` is a masked array with a read-only mask, `pcolor` fails with `ValueError: array is read-only` ### Code for reproduction ```python import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 1, 10) y = np.linspace(0...
Thanks @Rylie-W good spot! If you want to open a PR for that, that would be great.
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5773,7 +5773,7 @@ def _pcolorargs(self, funcname, *args, shading='auto', **kwargs): # unit conversion allows e.g. datetime objects as axis values X...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -1507,11 +1507,17 @@ def test_pcolorargs_with_read_only(): y = np.linspace(0, 1, 10) X, Y = np.meshgrid(x, y) Z = np.sin(2 * np.pi * X) * n...
["lib/matplotlib/tests/test_axes.py::test_pcolorargs_with_read_only"]
["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[pdf]", "lib/matplotlib/test...
null
true
2023-07-01T12:47:31Z
1
2
1
2,706
0
0.8
1
0.85
0.4
0.457667
76.048
9,857
r2e_gym::train::134
r2e_gym
train
134
orange3__38ccb8b870173813d0d0abd75204a7cb26310e2c
orange3
biolab/orange3
python
38ccb8b870173813d0d0abd75204a7cb26310e2c
**Title:** Naive Bayes Model Produces Incorrect Predictions with Missing Attribute Values **Description:** When using the Naive Bayes classifier, providing input data that contains unknown or missing values (NaNs) results in incorrect class probability predictions. This leads to inaccurate classification outcomes. **...
diff --git a/Orange/classification/naive_bayes.py b/Orange/classification/naive_bayes.py --- a/Orange/classification/naive_bayes.py +++ b/Orange/classification/naive_bayes.py @@ -98,7 +98,7 @@ zeros = np.zeros((1, probs.shape[1])) for col, attr_prob in zip(data.T, self.log_cont_prob): col...
diff --git a/Orange/tests/test_naive_bayes.py b/Orange/tests/test_naive_bayes.py --- a/Orange/tests/test_naive_bayes.py +++ b/Orange/tests/test_naive_bayes.py @@ -101,14 +101,17 @@ def test_predictions(self): self._test_predictions(sparse=None) self._test_predictions_with_absent_class(sparse=None...
null
null
namanjain12/orange3_final:38ccb8b870173813d0d0abd75204a7cb26310e2c
true
null
1
3
null
1,691
0
0.75
1
0.6375
0.8
0.291833
76.04425
9,858
swe_bench::test::976
swe_bench
test
976
matplotlib__matplotlib-21238
matplotlib/matplotlib
matplotlib/matplotlib
python
8a8dd9093d381500555bccf46fc5d46b42d132ec
mpl_connect silently does nothing when passed an invalid event type string ### Bug report If `fig.canvas.mpl_connect` is passed an invalid event type string, it silently does nothing. I think there should at least be a warning (maybe an error?) **Code for reproduction** ```python import matplotlib.pyplot as plt fi...
Adding a warning might be noisier than useful as events get connected and disconnected all the time. We should see if we are regularly firing events after disconnects or not. But I can see how this could be useful for debugging. On Jul 4, 2017 11:32 AM, "David Stansby" <notifications@github.com> wrote: > Bug report >...
diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -167,7 +167,7 @@ def __init__(self): # Normally, artist classes need to be queried for mouseover info if and # only if they override get_cursor_data. self._mouseov...
diff --git a/lib/matplotlib/tests/test_cbook.py b/lib/matplotlib/tests/test_cbook.py --- a/lib/matplotlib/tests/test_cbook.py +++ b/lib/matplotlib/tests/test_cbook.py @@ -363,6 +363,19 @@ def test_callbackregistry_custom_exception_handler(monkeypatch, cb, excp): cb.process('foo') +def test_callbackregistry...
["lib/matplotlib/tests/test_cbook.py::test_callbackregistry_signals"]
["lib/matplotlib/tests/test_cbook.py::Test_delete_masked_points::test_bad_first_arg", "lib/matplotlib/tests/test_cbook.py::Test_delete_masked_points::test_string_seq", "lib/matplotlib/tests/test_cbook.py::Test_delete_masked_points::test_datetime", "lib/matplotlib/tests/test_cbook.py::Test_delete_masked_points::test_rgb...
null
true
2021-09-30T22:10:17Z
9
45
1
881
0
0.8
1
0.7
0.6
0.296833
76.0405
9,859
r2e_gym::train::5786
r2e_gym
train
5,786
tornado__14531ee358a8e8175c7087f805c93a65d436460f
tornado
tornadoweb/tornado
python
14531ee358a8e8175c7087f805c93a65d436460f
**Title:** Stack Contexts Not Properly Cleared When Transferring Gen Callbacks **Description:** When executing generator-based callbacks within a stack context, the stack context is not properly cleared after the callback is transferred. This results in residual stack contexts remaining active, which can lead to unexp...
diff --git a/tornado/gen.py b/tornado/gen.py --- a/tornado/gen.py +++ b/tornado/gen.py @@ -72,7 +72,7 @@ from tornado.concurrent import Future, TracebackFuture from tornado.ioloop import IOLoop -from tornado.stack_context import ExceptionStackContext +from tornado.stack_context import ExceptionStackContext, wrap ...
diff --git a/tornado/test/gen_test.py b/tornado/test/gen_test.py --- a/tornado/test/gen_test.py +++ b/tornado/test/gen_test.py @@ -1,5 +1,6 @@ from __future__ import absolute_import, division, print_function, with_statement +import contextlib import functools import sys import textwrap @@ -9,6 +10,7 @@ from torn...
null
null
namanjain12/tornado_final:14531ee358a8e8175c7087f805c93a65d436460f
true
null
1
4
null
1,656
0
0.75
1
0.6375
0.8
0.289333
76.03675
9,860
r2e_gym::train::5257
r2e_gym
train
5,257
pyramid__bdce333dc4bc29f0a7927539c032ba08ae2d6c57
pyramid
pylons/pyramid
python
bdce333dc4bc29f0a7927539c032ba08ae2d6c57
**Incorrect Authorization Message When `NO_PERMISSION_REQUIRED` is Set** **Description** When configuring a view with `NO_PERMISSION_REQUIRED`, the authorization debug message incorrectly indicates that no permission is registered. This leads to confusion, as it does not clearly convey that no permissions are required...
diff --git a/pyramid/config/views.py b/pyramid/config/views.py --- a/pyramid/config/views.py +++ b/pyramid/config/views.py @@ -257,7 +257,9 @@ view_name = getattr(request, 'view_name', None) if self.authn_policy and self.authz_policy: - if permission is None: + ...
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -2791,7 +2791,8 @@ self.assertEqual(len(logger.messages), 1) self.assertEqual(logger.messages[0], ...
null
null
namanjain12/pyramid_final:bdce333dc4bc29f0a7927539c032ba08ae2d6c57
true
null
1
4
null
1,624
0
0.75
1
0.6375
0.8
0.284
76.02075
9,861
swe_bench::test::1155
swe_bench
test
1,155
pallets__flask-4544
pallets/flask
pallets/flask
python
dba2be9311d2abfd1b973c6bb578f416ee771fda
`flask run` rejects `--key foo.pem --cert foo.cert` When trying the development server, I find that `flask run --cert foo.cert --key foo.pem` works fine, but `flask run --key foo.pem --cert foo.cert` fails with: ``` Error: Invalid value for '--key': "--cert" must also be specified. ``` Isn't this somewhat counterintu...
I am humbled to share my findings using `click`. Apparently, the order of arguments being passed to the `cli` seems to matter in `click`(not sure whether or not it is intentional). I've found that the context manager only keeps track of the first option being passed. Take the following as an example: ```python imp...
diff --git a/src/flask/cli.py b/src/flask/cli.py --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -763,7 +763,10 @@ def convert(self, value, param, ctx): @click.option("--host", "-h", default="127.0.0.1", help="The interface to bind to.") @click.option("--port", "-p", default=5000, help="The port to bind to.") @clic...
diff --git a/tests/test_cli.py b/tests/test_cli.py --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -553,9 +553,14 @@ def test_run_cert_path(): with pytest.raises(click.BadParameter): run_command.make_context("run", ["--key", __file__]) + # cert specified first ctx = run_command.make_context("...
["tests/test_cli.py::test_run_cert_path"]
["tests/test_cli.py::test_cli_name", "tests/test_cli.py::test_find_best_app", "tests/test_cli.py::test_prepare_import[test-path0-test]", "tests/test_cli.py::test_prepare_import[test.py-path1-test]", "tests/test_cli.py::test_prepare_import[a/test-path2-test]", "tests/test_cli.py::test_prepare_import[test/__init__.py-pat...
null
true
2022-04-18T13:39:46Z
1
5
1
686
0
0.8
1
0.55
0.8
0.131
76.018
9,862
swe_bench::dev::20
swe_bench
dev
20
pvlib__pvlib-python-1154
pvlib/pvlib-python
pvlib/pvlib-python
python
0b8f24c265d76320067a5ee908a57d475cd1bb24
pvlib.irradiance.reindl() model generates NaNs when GHI = 0 **Describe the bug** The reindl function should give zero sky diffuse when GHI is zero. Instead it generates NaN or Inf values due to "term3" having a quotient that divides by GHI. **Expected behavior** The reindl function should result in zero sky diffuse wh...
Verified. Looks like an easy fix. Verified. Looks like an easy fix.
diff --git a/pvlib/irradiance.py b/pvlib/irradiance.py --- a/pvlib/irradiance.py +++ b/pvlib/irradiance.py @@ -886,8 +886,9 @@ def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra, # these are the () and [] sub-terms of the second term of eqn 8 term1 = 1 - AI term2 = 0.5 * (1 + tools.cosd(s...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -203,7 +203,7 @@ def test_reindl(irrad_data, ephem_data, dni_et): 40, 180, irrad_data['dhi'], irrad_data['dni'], irrad_data['ghi'], dni_et, ephem_da...
["pvlib/tests/test_irradiance.py::test_reindl"]
["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes...
null
true
2021-01-29T20:53:24Z
1
5
1
672
0
0.8
1
0.55
0.8
0.128667
76.011
9,863
swe_bench::test::1180
swe_bench
test
1,180
psf__requests-1963
psf/requests
psf/requests
python
110048f9837f8441ea536804115e80b69f400277
`Session.resolve_redirects` copies the original request for all subsequent requests, can cause incorrect method selection Consider the following redirection chain: ``` POST /do_something HTTP/1.1 Host: server.example.com ... HTTP/1.1 303 See Other Location: /new_thing_1513 GET /new_thing_1513 Host: server.example.co...
Uh, yes, that's a bug. =D This is also a good example of something that there's no good way to write a test for with httpbin as-is. This can be tested though, without httpbin, and I'll tackle this one tonight or this weekend. I've tinkered with `resolve_redirects` enough to be certain enough that I caused this. As su...
diff --git a/requests/sessions.py b/requests/sessions.py --- a/requests/sessions.py +++ b/requests/sessions.py @@ -168,8 +168,11 @@ def resolve_redirects(self, resp, req, stream=False, timeout=None, if new_auth is not None: prepared_request.prepare_auth(new_auth) + # Override ...
diff --git a/test_requests.py b/test_requests.py --- a/test_requests.py +++ b/test_requests.py @@ -8,6 +8,7 @@ import os import pickle import unittest +import collections import requests import pytest @@ -18,6 +19,7 @@ from requests.cookies import cookiejar_from_dict, morsel_to_cookie from requests.exceptions ...
["test_requests.py::RequestsTestCase::test_DIGESTAUTH_QUOTES_QOP_VALUE", "test_requests.py::RequestsTestCase::test_DIGESTAUTH_WRONG_HTTP_401_GET", "test_requests.py::RequestsTestCase::test_DIGEST_AUTH_RETURNS_COOKIE", "test_requests.py::RequestsTestCase::test_DIGEST_HTTP_200_OK_GET", "test_requests.py::RequestsTestCase...
["test_requests.py::RequestsTestCase::test_BASICAUTH_TUPLE_HTTP_200_OK_GET", "test_requests.py::RequestsTestCase::test_DIGEST_AUTH_SETS_SESSION_COOKIES", "test_requests.py::RequestsTestCase::test_DIGEST_STREAM", "test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_ALTERNATIVE", "test_requests.py::RequestsTestCase:...
null
true
2014-03-15T17:42:11Z
1
5
7
671
0
0.8
1
0.55
0.8
0.1285
76.0105
9,864
r2e_gym::train::4949
r2e_gym
train
4,949
datalad__52e15e380f7538f3e49b8ee48a0f4480b29c5b07
datalad
datalad/datalad
python
52e15e380f7538f3e49b8ee48a0f4480b29c5b07
**Title:** TypeError Occurs Due to Incorrect Parameter Order in `extract()` Function Calls **Description:** After updating the `extract()` function to swap the `url_format` and `filename_format` parameters, some function calls still pass these arguments in the old order. This results in a `TypeError` because the funct...
diff --git a/datalad/plugin/addurls.py b/datalad/plugin/addurls.py --- a/datalad/plugin/addurls.py +++ b/datalad/plugin/addurls.py @@ -287,7 +287,7 @@ return names -def extract(stream, input_type, filename_format, url_format, +def extract(stream, input_type, url_format, filename_format, exclude_au...
diff --git a/datalad/plugin/tests/test_addurls.py b/datalad/plugin/tests/test_addurls.py --- a/datalad/plugin/tests/test_addurls.py +++ b/datalad/plugin/tests/test_addurls.py @@ -187,8 +187,8 @@ def test_extract(): info, subpaths = addurls.extract( json_stream(ST_DATA["rows"]), "json", + "{name}_{...
null
null
namanjain12/datalad_final:52e15e380f7538f3e49b8ee48a0f4480b29c5b07
true
null
1
4
null
1,590
0
0.75
1
0.6375
0.8
0.278333
76.00375
9,865
r2e_gym::train::5431
r2e_gym
train
5,431
aiohttp__45147c4e18d20ee7a4007fb3ee399487e319d9ad
aiohttp
aio-libs/aiohttp
python
45147c4e18d20ee7a4007fb3ee399487e319d9ad
**Title:** ClientResponse.close Does Not Properly Close Connections on Read Timeout **Description:** When a read timeout occurs, the `ClientResponse.close` method is expected to close the connection to prevent resource leaks. However, instead of closing the connection, it currently only releases it. This behavior resu...
diff --git a/CHANGES/7869.bugfix b/CHANGES/7869.bugfix --- a/CHANGES/7869.bugfix +++ b/CHANGES/7869.bugfix @@ -0,0 +1 @@ +Fix ClientResponse.close releasing the connection instead of closing diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@...
diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -19,6 +19,7 @@ from aiohttp import Fingerprint, ServerFingerprintMismatch, hdrs, web from aiohttp.abc import AbstractResolver from aiohttp.client_exceptions im...
null
null
namanjain12/aiohttp_final:45147c4e18d20ee7a4007fb3ee399487e319d9ad
true
null
2
5
null
1,569
0
0.75
1
0.6375
0.8
0.278167
76.00325
9,866
swe_bench::test::1041
swe_bench
test
1,041
matplotlib__matplotlib-24334
matplotlib/matplotlib
matplotlib/matplotlib
python
332937997d03e0c173be6d9fc1841e9186e857df
[ENH]: Axes.set_xticks/Axis.set_ticks only validates kwargs if ticklabels are set, but they should ### Problem Per the doc of `Axis.set_ticks`: ``` **kwargs `.Text` properties for the labels. These take effect only if you pass *labels*. In other cases, please use `~.Axes.tick_params`. `...
> we could even consider making any kwargs an error if labels is not set. 👍
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -2029,6 +2029,9 @@ def set_ticks(self, ticks, labels=None, *, minor=False, **kwargs): other limits, you should set the limits explicitly after setting the ticks. """ + ...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -5732,6 +5732,17 @@ def test_set_get_ticklabels(): ax[1].set_yticklabels(ax[0].get_yticklabels()) +def test_set_ticks_kwargs_raise_error_without_...
["lib/matplotlib/tests/test_axes.py::test_set_ticks_kwargs_raise_error_without_labels"]
["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[pdf]", "lib/matplotlib/test...
null
true
2022-11-01T18:11:43Z
1
3
1
689
0
0.8
1
0.55
0.8
0.124833
75.9995
9,867
r2e_gym::train::5434
r2e_gym
train
5,434
aiohttp__5c0b8e4a7897f48063f684ac16e7dd18f6218274
aiohttp
aio-libs/aiohttp
python
5c0b8e4a7897f48063f684ac16e7dd18f6218274
**Title:** Cancelled Payload Sends Lead to Hung Connections Causing Timeout Errors **Description:** When a request that includes a payload is cancelled before the entire payload is sent, the connection remains open and is not properly closed. This results in subsequent requests hanging or experiencing timeout errors b...
diff --git a/CHANGES/8992.bugfix.rst b/CHANGES/8992.bugfix.rst --- a/CHANGES/8992.bugfix.rst +++ b/CHANGES/8992.bugfix.rst @@ -0,0 +1 @@ +Fixed client incorrectly reusing a connection when the previous message had not been fully sent -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_re...
diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -366,10 +366,11 @@ async with client.get("/") as resp: assert 200 == resp.status - # Connection should have been reused + # First connection...
null
null
namanjain12/aiohttp_final:5c0b8e4a7897f48063f684ac16e7dd18f6218274
true
null
2
4
null
1,573
0
0.75
1
0.6375
0.8
0.2755
75.99525
9,868
r2e_gym::train::185
r2e_gym
train
185
orange3__b798933e94003d0456239642b3d44297673702e7
orange3
biolab/orange3
python
b798933e94003d0456239642b3d44297673702e7
**Title:** Incorrect Ordering of PLS T and U Variables Causes Test Failures **Description:** When performing Partial Least Squares (PLS) regression, the metadata variables for PLS T and U components are incorrectly ordered. Specifically, the PLS U variables appear before the PLS T variables in the output domain metas....
diff --git a/Orange/regression/pls.py b/Orange/regression/pls.py --- a/Orange/regression/pls.py +++ b/Orange/regression/pls.py @@ -122,7 +122,6 @@ domain = Domain( [trvar(i, var_names_X[i]) for i in range(n_components)], data.domain.class_vars, - list(data.domain.metas) + ...
diff --git a/Orange/widgets/model/tests/test_owpls.py b/Orange/widgets/model/tests/test_owpls.py --- a/Orange/widgets/model/tests/test_owpls.py +++ b/Orange/widgets/model/tests/test_owpls.py @@ -78,7 +78,7 @@ self.assertEqual(output.metas.shape, (506, 8)) self.assertEqual([v.name for v in self._data.d...
null
null
namanjain12/orange3_final:b798933e94003d0456239642b3d44297673702e7
true
null
2
3
null
1,586
0
0.75
1
0.6375
0.8
0.274333
75.99175
9,869
r2e_gym::train::339
r2e_gym
train
339
orange3__ef3f5988d25649251abe9d72a7cd71a6f412b801
orange3
biolab/orange3
python
ef3f5988d25649251abe9d72a7cd71a6f412b801
### Title: StringVariable Stores NaN as 'nan' Instead of Empty String, Causing File Write Failures **Description** When handling missing values (`NaN`) in `StringVariable`, the system currently stores them as the string `'nan'` instead of an empty string. This leads to failures when writing data to Excel and Tab file...
diff --git a/Orange/data/io_base.py b/Orange/data/io_base.py --- a/Orange/data/io_base.py +++ b/Orange/data/io_base.py @@ -15,6 +15,7 @@ from glob import glob import numpy as np +import pandas from Orange.data import Table, Domain, Variable, DiscreteVariable, \ StringVariable, ContinuousVariable, TimeVariab...
diff --git a/Orange/data/tests/test_io.py b/Orange/data/tests/test_io.py --- a/Orange/data/tests/test_io.py +++ b/Orange/data/tests/test_io.py @@ -122,7 +122,7 @@ self.domain, np.array([[1, 0.5], [2, np.nan], [np.nan, 1.0625]]), np.array([3, 1, 7]), - np.array(["foo bar...
null
null
namanjain12/orange3_final:ef3f5988d25649251abe9d72a7cd71a6f412b801
true
null
1
3
null
1,572
0
0.75
1
0.6375
0.8
0.272
75.98475
9,870
swe_bench::test::25
swe_bench
test
25
astropy__astropy-13438
astropy/astropy
astropy/astropy
python
4bd88be61fdf4185b9c198f7e689a40041e392ee
[Security] Jquery 3.1.1 is vulnerable to untrusted code execution ### Description Passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code (see [CVE-2020-11022](https://nvd.nist.gov/vuln/detail/cve-202...
Welcome to Astropy 👋 and thank you for your first issue! A project member will respond to you as soon as possible; in the meantime, please double-check the [guidelines for submitting issues](https://github.com/astropy/astropy/blob/main/CONTRIBUTING.md#reporting-issues) and make sure you've provided the requested deta...
diff --git a/astropy/table/jsviewer.py b/astropy/table/jsviewer.py --- a/astropy/table/jsviewer.py +++ b/astropy/table/jsviewer.py @@ -15,7 +15,7 @@ class Conf(_config.ConfigNamespace): """ jquery_url = _config.ConfigItem( - 'https://code.jquery.com/jquery-3.1.1.min.js', + 'https://code.jquery...
diff --git a/astropy/table/tests/test_jsviewer.py b/astropy/table/tests/test_jsviewer.py --- a/astropy/table/tests/test_jsviewer.py +++ b/astropy/table/tests/test_jsviewer.py @@ -13,6 +13,8 @@ from astropy.utils.misc import _NOT_OVERWRITING_MSG_MATCH EXTERN_DIR = abspath(join(dirname(extern.__file__), 'jquery', 'da...
["astropy/table/tests/test_jsviewer.py::test_write_jsviewer_default", "astropy/table/tests/test_jsviewer.py::test_write_jsviewer_mixin[mixin0]", "astropy/table/tests/test_jsviewer.py::test_write_jsviewer_mixin[mixin1]", "astropy/table/tests/test_jsviewer.py::test_write_jsviewer_mixin[mixin2]", "astropy/table/tests/test...
["astropy/table/tests/test_jsviewer.py::test_write_jsviewer_overwrite"]
null
true
2022-07-07T07:29:35Z
1
4
5
634
0
0.8
1
0.55
0.8
0.119
75.982
9,871
r2e_gym::train::12
r2e_gym
train
12
orange3__3758d8594d8738e51b3a738e06858ae7fc3cbdf1
orange3
biolab/orange3
python
3758d8594d8738e51b3a738e06858ae7fc3cbdf1
**Title:** `table_to_frame` Raises TypeError When Handling Numeric Columns with `dtype=object` **Description:** When converting a table to a pandas DataFrame, if the table includes numeric metadata (metas) with `dtype=object`, the `table_to_frame` function fails with a `TypeError`. This occurs because the function att...
diff --git a/Orange/data/pandas_compat.py b/Orange/data/pandas_compat.py --- a/Orange/data/pandas_compat.py +++ b/Orange/data/pandas_compat.py @@ -371,7 +371,9 @@ elif col.is_continuous: dt = float # np.nan are not compatible with int column - if col.number_of_decimals == 0...
diff --git a/Orange/data/tests/test_pandas.py b/Orange/data/tests/test_pandas.py --- a/Orange/data/tests/test_pandas.py +++ b/Orange/data/tests/test_pandas.py @@ -80,6 +80,18 @@ self.assertEqual(type(df['iris'].dtype), pd.api.types.CategoricalDtype) self.assertEqual(list(df['sepal length'])[0:4], [5.1...
null
null
namanjain12/orange3_final:3758d8594d8738e51b3a738e06858ae7fc3cbdf1
true
null
1
4
null
1,519
0
0.75
1
0.6375
0.8
0.2665
75.96825
9,872
r2e_gym::train::5315
r2e_gym
train
5,315
aiohttp__bb81dbc7f3f0b2dcea30b987fb502bb5c07030aa
aiohttp
aio-libs/aiohttp
python
bb81dbc7f3f0b2dcea30b987fb502bb5c07030aa
**[ISSUE]** **Title:** `router.add_static()` Does Not Return the Newly Added Route, Causing Test Failures **Description:** When using the `add_static()` method of the router to add a static route, the method does not return the newly created route. This behavior leads to inconsistencies when attempting to reference ...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -1132,6 +1132,7 @@ prefix += '/' route = StaticRoute(name, prefix, path) self._register_endpoint(route) + return route ############################################################ diff --...
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py --- a/tests/test_urldispatch.py +++ b/tests/test_urldispatch.py @@ -156,35 +156,41 @@ self.router.add_route('GET', '/get_other', lambda r: None, name='name') - def test_reverse_plain(self): - s...
null
null
namanjain12/aiohttp_final:bb81dbc7f3f0b2dcea30b987fb502bb5c07030aa
true
null
2
5
null
1,489
0
0.75
1
0.6375
0.8
0.264833
75.96325
9,873
r2e_gym::train::476
r2e_gym
train
476
orange3__49a6770f9311397889d3df8d5a56859f16cacf15
orange3
biolab/orange3
python
49a6770f9311397889d3df8d5a56859f16cacf15
**Title:** k-Means Fails with Missing Values in Dataset **Description:** When running the k-Means clustering algorithm on a dataset that contains missing values (`NaN`), the process fails unexpectedly. This issue arises during the calculation of the silhouette score, which is essential for evaluating the clustering pe...
diff --git a/Orange/widgets/unsupervised/owkmeans.py b/Orange/widgets/unsupervised/owkmeans.py --- a/Orange/widgets/unsupervised/owkmeans.py +++ b/Orange/widgets/unsupervised/owkmeans.py @@ -436,7 +436,7 @@ def update_results(self): scores = [mk if isinstance(mk, str) else silhouette_score( - ...
diff --git a/Orange/widgets/unsupervised/tests/test_owkmeans.py b/Orange/widgets/unsupervised/tests/test_owkmeans.py --- a/Orange/widgets/unsupervised/tests/test_owkmeans.py +++ b/Orange/widgets/unsupervised/tests/test_owkmeans.py @@ -45,6 +45,7 @@ OWKMeans, stored_settings={"auto_commit": False, "version"...
null
null
namanjain12/orange3_final:49a6770f9311397889d3df8d5a56859f16cacf15
true
null
1
4
null
1,478
0
0.75
1
0.6375
0.8
0.259667
75.94775
9,874
r2e_gym::train::5501
r2e_gym
train
5,501
aiohttp__598334fa512560da1378e79363e76129804d02d1
aiohttp
aio-libs/aiohttp
python
598334fa512560da1378e79363e76129804d02d1
**Title:** CONNECT Method Incorrectly Treated as Having an Empty Body **Description:** The `method_must_be_empty_body` function in `aiohttp.helpers` currently treats the HTTP `CONNECT` method as always requiring an empty body. This behavior is incorrect because the `CONNECT` method should not universally have an empty...
diff --git a/CHANGES/7772.bugfix b/CHANGES/7772.bugfix --- a/CHANGES/7772.bugfix +++ b/CHANGES/7772.bugfix @@ -0,0 +1 @@ +Fix CONNECT always being treated as having an empty body diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -974,7 +974,7 @@ """Check if a...
diff --git a/tests/test_helpers.py b/tests/test_helpers.py --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -16,7 +16,7 @@ from yarl import URL from aiohttp import helpers -from aiohttp.helpers import parse_http_date +from aiohttp.helpers import method_must_be_empty_body, parse_http_date IS_PYPY = plat...
null
null
namanjain12/aiohttp_final:598334fa512560da1378e79363e76129804d02d1
true
null
2
3
null
1,481
0
0.75
1
0.6375
0.8
0.256833
75.93925
9,875
r2e_gym::train::5305
r2e_gym
train
5,305
aiohttp__65fd80bc5783b724e96bb54e55b6f0ddb2d660f9
aiohttp
aio-libs/aiohttp
python
65fd80bc5783b724e96bb54e55b6f0ddb2d660f9
**Title:** Cleanup Task Remains Active After Connector is Closed **Description:** When closing a connector, the associated cleanup task is not canceled as expected. This behavior can lead to resource leaks and unintended side effects since the cleanup task continues to run even after the connector has been closed. **...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -130,6 +130,10 @@ return self._closed = True self._do_close(self._conns) + + if self._cleanup_handle: + self._cleanup_handle.cancel() + self._clea...
diff --git a/tests/test_connector.py b/tests/test_connector.py --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -358,6 +358,14 @@ conn.close() self.assertTrue(conn.closed) + def test_close_cancels_cleanup_handle(self): + conn = aiohttp.BaseConnector(loop=self.loop) + c...
null
null
namanjain12/aiohttp_final:65fd80bc5783b724e96bb54e55b6f0ddb2d660f9
true
null
1
4
null
1,439
0
0.75
1
0.6375
0.8
0.253167
75.92825
9,876
r2e_gym::train::5369
r2e_gym
train
5,369
aiohttp__2b85ad73f587ce43ea9285a6922b614d96e72f80
aiohttp
aio-libs/aiohttp
python
2b85ad73f587ce43ea9285a6922b614d96e72f80
**Title:** Incorrect byte count in BodyPartReader leads to AssertionError **Description:** When reading chunks of a multipart response, the `BodyPartReader` incorrectly increments the number of read bytes by the requested chunk size instead of the actual number of bytes read. This causes the reader to prematurely mark...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,8 @@ --------------------- - Don't forget to pass `data` argument forward #462 + +- Fix multipart read bytes count #463 0.17.1 (08-10-2015) --------------------- diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUT...
diff --git a/tests/test_multipart.py b/tests/test_multipart.py --- a/tests/test_multipart.py +++ b/tests/test_multipart.py @@ -74,6 +74,20 @@ return self.content.readline() +class StreamWithShortenRead(Stream): + + def __init__(self, content): + self._first = True + super().__init__(conten...
null
null
namanjain12/aiohttp_final:2b85ad73f587ce43ea9285a6922b614d96e72f80
true
null
3
5
null
1,340
0
0.75
1
0.6375
0.8
0.24
75.88875
9,877
r2e_gym::train::287
r2e_gym
train
287
orange3__95b35c5f6292a687a5d8301cdc598baab486dad8
orange3
biolab/orange3
python
95b35c5f6292a687a5d8301cdc598baab486dad8
**Title:** AssertionError When Restoring Selection with Insufficient Columns for Clustering in OWHeatMap **Description:** When attempting to restore a previously saved row selection in the HeatMap widget, if the input dataset lacks enough columns for clustering, the widget raises an `AssertionError`. This causes the w...
diff --git a/Orange/widgets/visualize/owheatmap.py b/Orange/widgets/visualize/owheatmap.py --- a/Orange/widgets/visualize/owheatmap.py +++ b/Orange/widgets/visualize/owheatmap.py @@ -662,8 +662,8 @@ self.update_heatmaps() if data is not None and self.__pending_selection is not None: - ass...
diff --git a/Orange/widgets/visualize/tests/test_owheatmap.py b/Orange/widgets/visualize/tests/test_owheatmap.py --- a/Orange/widgets/visualize/tests/test_owheatmap.py +++ b/Orange/widgets/visualize/tests/test_owheatmap.py @@ -205,6 +205,20 @@ self.send_signal(w.Inputs.data, iris, widget=w) self.asser...
null
null
namanjain12/orange3_final:95b35c5f6292a687a5d8301cdc598baab486dad8
true
null
1
4
null
1,359
0
0.75
1
0.6375
0.8
0.239833
75.88825
9,878
r2e_gym::train::5822
r2e_gym
train
5,822
tornado__2d5f396407f9ce3c19751d1b6205a0f04143d3d6
tornado
tornadoweb/tornado
python
2d5f396407f9ce3c19751d1b6205a0f04143d3d6
**Title:** Heavy Load Timeout Fails Due to Incorrect Timeout Handling **Description:** When performing a heavy load test with multiple concurrent HTTP requests, the client experiences unexpected timeout behavior. Specifically, initiating multiple fetch operations with both `request_timeout` and `async_timeout` results...
diff --git a/tornado/httpclient.py b/tornado/httpclient.py --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -241,7 +241,6 @@ _DEFAULTS = dict( connect_timeout=20.0, request_timeout=20.0, - async_timeout=20.0, follow_redirects=True, max_redirects=5, use_...
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -405,7 +405,7 @@ def test_heavyload_timeout(self): with closing(self.create_client(max_clients=1)) as client: ...
null
null
namanjain12/tornado_final:2d5f396407f9ce3c19751d1b6205a0f04143d3d6
true
null
2
5
null
1,326
0
0.75
1
0.6375
0.8
0.237667
75.88175
9,879
r2e_gym::train::5744
r2e_gym
train
5,744
scrapy__773ea5a5ef76426dd91a8669542d2602082a5746
scrapy
scrapy/scrapy
python
773ea5a5ef76426dd91a8669542d2602082a5746
**Title:** Missing Field Definitions in Multiple Inheritance Scenarios **Description:** When creating an `Item` subclass using multiple inheritance, the defined `fields` attribute on the subclass is not properly recognized. This leads to missing field definitions, causing unexpected errors when accessing these fields....
diff --git a/scrapy/item.py b/scrapy/item.py --- a/scrapy/item.py +++ b/scrapy/item.py @@ -6,6 +6,7 @@ from pprint import pformat from collections import MutableMapping + from abc import ABCMeta import six @@ -27,7 +28,7 @@ new_bases = tuple(base._class for base in bases if hasattr(base, '_class')) ...
diff --git a/tests/test_item.py b/tests/test_item.py --- a/tests/test_item.py +++ b/tests/test_item.py @@ -120,6 +120,14 @@ self.assertSortedEqual(list(i.keys()), ['keys', 'values', 'name']) self.assertSortedEqual(list(i.values()), [u'Keys', u'Values', u'John']) + def test_metaclass_with_fields_a...
null
null
namanjain12/scrapy_final:773ea5a5ef76426dd91a8669542d2602082a5746
true
null
1
3
null
1,355
0
0.75
1
0.6375
0.8
0.235833
75.87625
9,880
r2e_gym::train::92
r2e_gym
train
92
orange3__a2c7ac741fa826a67ca983f8f6bae5d2158465e3
orange3
biolab/orange3
python
a2c7ac741fa826a67ca983f8f6bae5d2158465e3
**Title:** Heatmap Widget Fails with AssertionError When Clustering Exceeds Maximum Limits **Description:** When providing data that results in a clustering matrix larger than the allowed maximum, the Heatmap widget raises an `AssertionError`. This prevents the widget from processing and displaying the heatmap correct...
diff --git a/Orange/widgets/visualize/owheatmap.py b/Orange/widgets/visualize/owheatmap.py --- a/Orange/widgets/visualize/owheatmap.py +++ b/Orange/widgets/visualize/owheatmap.py @@ -796,12 +796,10 @@ matrix = Orange.distance.Euclidean(subset) if cluster is None: - ...
diff --git a/Orange/widgets/visualize/tests/test_owheatmap.py b/Orange/widgets/visualize/tests/test_owheatmap.py --- a/Orange/widgets/visualize/tests/test_owheatmap.py +++ b/Orange/widgets/visualize/tests/test_owheatmap.py @@ -62,13 +62,18 @@ def test_information_message(self): self.widget.set_row_clust...
null
null
namanjain12/orange3_final:a2c7ac741fa826a67ca983f8f6bae5d2158465e3
true
null
1
4
null
1,332
0
0.75
1
0.6375
0.8
0.235333
75.87475
9,881
r2e_gym::train::149
r2e_gym
train
149
orange3__2234de6d085219c2fb740bac6ec0b9990ca3e910
orange3
biolab/orange3
python
2234de6d085219c2fb740bac6ec0b9990ca3e910
**Title:** Excessive Memory Usage and Slow Performance in `stats()` with Object Dtype Arrays Containing Long Strings **Description:** When using the `stats()` function with NumPy arrays of `dtype=object` that include long strings, the function consumes an excessive amount of memory and significantly slows down process...
diff --git a/Orange/statistics/util.py b/Orange/statistics/util.py --- a/Orange/statistics/util.py +++ b/Orange/statistics/util.py @@ -9,6 +9,7 @@ import bottleneck as bn import numpy as np +import pandas import scipy.stats.stats from scipy import sparse as sp @@ -373,8 +374,7 @@ X.shape[0] - non_z...
diff --git a/Orange/tests/test_statistics.py b/Orange/tests/test_statistics.py --- a/Orange/tests/test_statistics.py +++ b/Orange/tests/test_statistics.py @@ -1,4 +1,5 @@ # pylint: disable=no-self-use +import time import unittest import warnings from itertools import chain @@ -144,6 +145,28 @@ ...
null
null
namanjain12/orange3_final:2234de6d085219c2fb740bac6ec0b9990ca3e910
true
null
1
4
null
1,328
0
0.75
1
0.6375
0.8
0.234667
75.87275
9,882
r2e_gym::train::199
r2e_gym
train
199
orange3__89aa26514f0a1dbbf8becc1eea1b54906727b656
orange3
biolab/orange3
python
89aa26514f0a1dbbf8becc1eea1b54906727b656
**Title:** Crash in SelectBestFeatures When No Relevant Features Are Present **Description:** When attempting to select relevant features using `SelectBestFeatures`, the process crashes if there are no features that match the specified feature type. This occurs even when the dataset has no attributes. **Example Code:...
diff --git a/Orange/preprocess/fss.py b/Orange/preprocess/fss.py --- a/Orange/preprocess/fss.py +++ b/Orange/preprocess/fss.py @@ -91,8 +91,9 @@ return data.transform(domain) def score_only_nice_features(self, data, method): + # dtype must be defined because array can be empty mask = np....
diff --git a/Orange/preprocess/tests/test_fss.py b/Orange/preprocess/tests/test_fss.py --- a/Orange/preprocess/tests/test_fss.py +++ b/Orange/preprocess/tests/test_fss.py @@ -0,0 +1,36 @@ +import unittest +from unittest.mock import Mock + +import numpy as np + +from Orange.data import Domain, Table, DiscreteVariable, C...
null
null
namanjain12/orange3_final:89aa26514f0a1dbbf8becc1eea1b54906727b656
true
null
1
3
null
1,339
0
0.75
1
0.6375
0.8
0.233167
75.86825
9,883
r2e_gym::train::5649
r2e_gym
train
5,649
scrapy__77c055ee28a767b2c8222274cc7556ab9cc56edc
scrapy
scrapy/scrapy
python
77c055ee28a767b2c8222274cc7556ab9cc56edc
**Title:** Proxy-Authorization Header Removed When Proxy URL Is Defined Without Credentials **Description:** When a proxy URL is specified without credentials, the `Proxy-Authorization` header should remain intact to allow for proper authentication handling. However, the current implementation erroneously removes the ...
diff --git a/scrapy/downloadermiddlewares/httpproxy.py b/scrapy/downloadermiddlewares/httpproxy.py --- a/scrapy/downloadermiddlewares/httpproxy.py +++ b/scrapy/downloadermiddlewares/httpproxy.py @@ -78,4 +78,7 @@ del request.headers[b'Proxy-Authorization'] del request.meta['_auth_p...
diff --git a/tests/test_downloadermiddleware_httpproxy.py b/tests/test_downloadermiddleware_httpproxy.py --- a/tests/test_downloadermiddleware_httpproxy.py +++ b/tests/test_downloadermiddleware_httpproxy.py @@ -400,6 +400,9 @@ self.assertNotIn(b'Proxy-Authorization', request.headers) def test_proxy_auth...
null
null
namanjain12/scrapy_final:77c055ee28a767b2c8222274cc7556ab9cc56edc
true
null
1
5
null
1,290
0
0.75
1
0.6375
0.8
0.231667
75.86375
9,884
r2e_gym::train::5506
r2e_gym
train
5,506
aiohttp__fde031fe7b0d6060eab4ff13d588a882bb7a1ddb
aiohttp
aio-libs/aiohttp
python
fde031fe7b0d6060eab4ff13d588a882bb7a1ddb
**Title:** HTTP Message Incorrectly Marked as Upgraded When Upgrade Header is Missing **Description:** When a client sends a request with the `Connection: upgrade` header but omits the `Upgrade` header, the server incorrectly marks the message as upgraded. This behavior is not compliant with the HTTP specification, wh...
diff --git a/CHANGES/7895.bugfix b/CHANGES/7895.bugfix --- a/CHANGES/7895.bugfix +++ b/CHANGES/7895.bugfix @@ -0,0 +1 @@ +Fixed messages being reported as upgraded without an Upgrade header in Python parser. -- by :user:`Dreamsorcerer` diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py --- a/aiohttp/http_pars...
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -473,6 +473,15 @@ assert upgrade +def test_bad_upgrade(parser: Any) -> None: + """Test not upgraded if missing Upgrade header.""" + text = b"GET /test HTTP/1.1\r\nconnecti...
null
null
namanjain12/aiohttp_final:fde031fe7b0d6060eab4ff13d588a882bb7a1ddb
true
null
2
4
null
1,309
0
0.75
1
0.6375
0.8
0.2315
75.86325
9,885
r2e_gym::train::41
r2e_gym
train
41
orange3__93036825bae2e056304e50a452448efe2898bd24
orange3
biolab/orange3
python
93036825bae2e056304e50a452448efe2898bd24
**Title:** TypeError When Opening Zip Archives in `_open` Function **Description:** When attempting to open a zip archive using the `_open` function, a `KeyError` is raised. This occurs because the function incorrectly passes a `ZipInfo` object instead of a string filename to `zipfile.ZipFile.getinfo`. **Example Bugg...
diff --git a/Orange/widgets/data/owcsvimport.py b/Orange/widgets/data/owcsvimport.py --- a/Orange/widgets/data/owcsvimport.py +++ b/Orange/widgets/data/owcsvimport.py @@ -1101,9 +1101,7 @@ arh = zipfile.ZipFile(path, 'r') filelist = arh.infolist() if len(filelist) == 1: - filename ...
diff --git a/Orange/widgets/data/tests/test_owcsvimport.py b/Orange/widgets/data/tests/test_owcsvimport.py --- a/Orange/widgets/data/tests/test_owcsvimport.py +++ b/Orange/widgets/data/tests/test_owcsvimport.py @@ -1,4 +1,4 @@ -# pylint: disable=no-self-use +# pylint: disable=no-self-use,protected-access import unitte...
null
null
namanjain12/orange3_final:93036825bae2e056304e50a452448efe2898bd24
true
null
1
4
null
1,306
0
0.75
1
0.6375
0.8
0.231
75.86175
9,886
r2e_gym::train::4045
r2e_gym
train
4,045
coveragepy__ec1acd985bf47258e9d209db037fbf6373270b1c
coveragepy
nedbat/coveragepy
python
ec1acd985bf47258e9d209db037fbf6373270b1c
**Title:** Configuration overrides are ignored when `COVERAGE_FORCE_CONFIG` is set **Description:** When the `COVERAGE_FORCE_CONFIG` environment variable is set to specify a custom configuration file, the expected configuration settings from the force file are not being applied. Instead, the default settings persist, ...
diff --git a/coverage/config.py b/coverage/config.py --- a/coverage/config.py +++ b/coverage/config.py @@ -612,6 +612,11 @@ # 4) from constructor arguments: config.from_args(**kwargs) + # 5) for our benchmark, force settings using a secret environment variable: + force_file = os.getenv("COVERAGE_FORCE...
diff --git a/tests/test_config.py b/tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -166,6 +166,24 @@ msg = "Couldn't read 'nowhere.ini' as a config file" with pytest.raises(ConfigError, match=msg): coverage.Coverage() + + @pytest.mark.parametrize("force",...
null
null
namanjain12/coveragepy_final:ec1acd985bf47258e9d209db037fbf6373270b1c
true
null
1
5
null
1,283
0
0.75
1
0.6375
0.8
0.2305
75.86025
9,887
r2e_gym::train::105
r2e_gym
train
105
orange3__ce493b09494c007b27c6fbc5944636136fedd6e3
orange3
biolab/orange3
python
ce493b09494c007b27c6fbc5944636136fedd6e3
**Title:** TypeError When Removing Sparse Attributes with NaN Values in Sparse Matrices **Description:** When using the `RemoveSparse` preprocessor on datasets that include NaN values within a sparse matrix, a `TypeError` is raised. The error occurs because the sparsity calculation expects an iterable, but receives a ...
diff --git a/Orange/preprocess/preprocess.py b/Orange/preprocess/preprocess.py --- a/Orange/preprocess/preprocess.py +++ b/Orange/preprocess/preprocess.py @@ -605,7 +605,8 @@ sparsness = data.X.shape[0] - np.count_nonzero(data.X, axis=0) else: # filter by nans if sp.issparse(data....
diff --git a/Orange/tests/test_preprocess.py b/Orange/tests/test_preprocess.py --- a/Orange/tests/test_preprocess.py +++ b/Orange/tests/test_preprocess.py @@ -221,6 +221,8 @@ self.data.X[:, 0] = 7 true_out = self.data[:, 0] true_out.X = true_out.X.reshape(-1, 1) + self.data.X = csr_mat...
null
null
namanjain12/orange3_final:ce493b09494c007b27c6fbc5944636136fedd6e3
true
null
1
3
null
1,321
0
0.75
1
0.6375
0.8
0.230167
75.85925
9,888
r2e_gym::train::374
r2e_gym
train
374
orange3__7904e74accb18fda41d895361fad7cf3412359a7
orange3
biolab/orange3
python
7904e74accb18fda41d895361fad7cf3412359a7
**Title:** Mahalanobis Distance Incorrectly Limits Rows When Computing by Columns **Description:** When computing Mahalanobis distance by columns, the widget incorrectly raises an error if the dataset contains more than 100 rows. The intended behavior is to allow up to 1000 rows for column-wise distance calculations. ...
diff --git a/Orange/widgets/unsupervised/owdistances.py b/Orange/widgets/unsupervised/owdistances.py --- a/Orange/widgets/unsupervised/owdistances.py +++ b/Orange/widgets/unsupervised/owdistances.py @@ -185,8 +185,8 @@ def _check_tractability(): if metric is distance.Mahalanobis: - ...
diff --git a/Orange/widgets/unsupervised/tests/test_owdistances.py b/Orange/widgets/unsupervised/tests/test_owdistances.py --- a/Orange/widgets/unsupervised/tests/test_owdistances.py +++ b/Orange/widgets/unsupervised/tests/test_owdistances.py @@ -214,15 +214,17 @@ # by columns -- cannot handle too many rows ...
null
null
namanjain12/orange3_final:7904e74accb18fda41d895361fad7cf3412359a7
true
null
1
4
null
1,295
0
0.75
1
0.6375
0.8
0.229167
75.85625
9,889
r2e_gym::train::5582
r2e_gym
train
5,582
scrapy__e044bfa60f072aca25e5561136dc0b9e89b2a1ed
scrapy
scrapy/scrapy
python
e044bfa60f072aca25e5561136dc0b9e89b2a1ed
**Title:** TypeError When Detecting Response Type with Bytes Content **Description:** When processing responses, the system attempts to determine the response type by searching for specific substrings like `<html>` and `<?xml>` within the response body. However, when the response body is in bytes, these string compari...
diff --git a/scrapy/responsetypes.py b/scrapy/responsetypes.py --- a/scrapy/responsetypes.py +++ b/scrapy/responsetypes.py @@ -92,9 +92,9 @@ chunk = body[:5000] if isbinarytext(chunk): return self.from_mimetype('application/octet-stream') - elif "<html>" in chunk.lower(): + ...
diff --git a/tests/py3-ignores.txt b/tests/py3-ignores.txt --- a/tests/py3-ignores.txt +++ b/tests/py3-ignores.txt @@ -12,7 +12,6 @@ tests/test_downloader_handlers.py tests/test_downloadermiddleware_ajaxcrawlable.py tests/test_downloadermiddleware_cookies.py -tests/test_downloadermiddleware_decompression.py tests/t...
null
null
namanjain12/scrapy_final:e044bfa60f072aca25e5561136dc0b9e89b2a1ed
true
null
1
4
null
1,287
0
0.75
1
0.6375
0.8
0.227833
75.85225
9,890
r2e_gym::train::434
r2e_gym
train
434
orange3__14d74d03fa52061c2c5a097fdb67cfdd18bd1284
orange3
biolab/orange3
python
14d74d03fa52061c2c5a097fdb67cfdd18bd1284
**Title:** Incorrect Row Slicing in `from_table` Results in Empty Tables with Specific Slices **Description:** When using the `from_table` method with certain slice parameters, the resulting table incorrectly becomes empty instead of containing the expected rows. **Buggy Code Example:** ```python import numpy as np f...
diff --git a/Orange/data/table.py b/Orange/data/table.py --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -446,10 +446,7 @@ return table if isinstance(row_indices, slice): - start, stop, stride = row_indices.indices(source.X.shape[0]) - n_rows = (sto...
diff --git a/Orange/tests/test_table.py b/Orange/tests/test_table.py --- a/Orange/tests/test_table.py +++ b/Orange/tests/test_table.py @@ -1137,11 +1137,6 @@ metas = ["Meta %i" % i for i in range(5)] nrows = 10 row_indices = (1, 5, 7, 9) - - data = np.random.random((nrows, len(attributes))) - class...
null
null
namanjain12/orange3_final:14d74d03fa52061c2c5a097fdb67cfdd18bd1284
true
null
1
5
null
1,267
0
0.75
1
0.6375
0.8
0.227833
75.85225
9,891
swe_bench::test::1494
swe_bench
test
1,494
scikit-learn__scikit-learn-10306
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
b90661d6a46aa3619d3eec94d5281f5888add501
Some UserWarnings should be ConvergenceWarnings Some warnings raised during testing show that we do not use `ConvergenceWarning` when it is appropriate in some cases. For example (from [here](https://github.com/scikit-learn/scikit-learn/issues/10158#issuecomment-345453334)): ```python /home/lesteve/dev/alt-scikit-lear...
Could I give this a go? @patrick1011 please go ahead!
diff --git a/sklearn/cluster/affinity_propagation_.py b/sklearn/cluster/affinity_propagation_.py --- a/sklearn/cluster/affinity_propagation_.py +++ b/sklearn/cluster/affinity_propagation_.py @@ -390,5 +390,5 @@ def predict(self, X): else: warnings.warn("This model does not have any cluster centers...
diff --git a/sklearn/cluster/tests/test_affinity_propagation.py b/sklearn/cluster/tests/test_affinity_propagation.py --- a/sklearn/cluster/tests/test_affinity_propagation.py +++ b/sklearn/cluster/tests/test_affinity_propagation.py @@ -133,12 +133,14 @@ def test_affinity_propagation_predict_non_convergence(): X = n...
["sklearn/cluster/tests/test_affinity_propagation.py::test_affinity_propagation_predict_non_convergence", "sklearn/cluster/tests/test_birch.py::test_n_clusters", "sklearn/cross_decomposition/tests/test_pls.py::test_convergence_fail", "sklearn/decomposition/tests/test_fastica.py::test_fastica_convergence_fail", "sklearn...
["sklearn/cluster/tests/test_affinity_propagation.py::test_affinity_propagation", "sklearn/cluster/tests/test_affinity_propagation.py::test_affinity_propagation_predict", "sklearn/cluster/tests/test_affinity_propagation.py::test_affinity_propagation_predict_error", "sklearn/cluster/tests/test_affinity_propagation.py::t...
null
true
2017-12-13T15:10:48Z
9
32
7
764
0
0.8
1
0.7
0.6
0.234
75.852
9,892
r2e_gym::train::83
r2e_gym
train
83
orange3__ee0ebe7899376bce25e28488442a0d7009c2fdf7
orange3
biolab/orange3
python
ee0ebe7899376bce25e28488442a0d7009c2fdf7
**Title:** Missing Option to Scale Data in OWPLS Widget Causes AttributeError **Description:** The `OWPLS` widget currently lacks an option to enable or disable scaling of features and target data. This absence leads to failures in tests that attempt to modify the scaling behavior, resulting in an `AttributeError`. *...
diff --git a/Orange/widgets/model/owpls.py b/Orange/widgets/model/owpls.py --- a/Orange/widgets/model/owpls.py +++ b/Orange/widgets/model/owpls.py @@ -33,6 +33,7 @@ n_components = Setting(2) max_iter = Setting(500) + scale = Setting(True) def add_main_layout(self): optimization_box = gui....
diff --git a/Orange/widgets/model/tests/test_owpls.py b/Orange/widgets/model/tests/test_owpls.py --- a/Orange/widgets/model/tests/test_owpls.py +++ b/Orange/widgets/model/tests/test_owpls.py @@ -129,6 +129,14 @@ self.send_signal(self.widget.Inputs.data, data) self.assertIsNone(self.get_output(self.wid...
null
null
namanjain12/orange3_final:ee0ebe7899376bce25e28488442a0d7009c2fdf7
true
null
1
5
null
1,256
0
0.75
1
0.6375
0.8
0.226
75.84675
9,893
r2e_gym::train::4075
r2e_gym
train
4,075
coveragepy__8f3e7b45b3aabf4d7d01dc470010d3d36f30a0ba
coveragepy
nedbat/coveragepy
python
8f3e7b45b3aabf4d7d01dc470010d3d36f30a0ba
**Title:** Confirmation Message Displayed Even When Report Generation Fails **Description** When generating a report, if an unexpected exception occurs during the process, the system still prints a confirmation message indicating that the report was written successfully. This behavior is misleading because the report ...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,10 @@ - Added a :meth:`.CoverageData.purge_files` method to remove recorded data for a particular file. Contributed by `Stephan Deibel <pull 1547_>`_. + +- Fix: when reporting commands fail, they will no longer congratulate +...
diff --git a/tests/test_report.py b/tests/test_report.py --- a/tests/test_report.py +++ b/tests/test_report.py @@ -5,7 +5,7 @@ from __future__ import annotations -from typing import IO, Iterable, List, Optional +from typing import IO, Iterable, List, Optional, Type import pytest @@ -21,7 +21,7 @@ repor...
null
null
namanjain12/coveragepy_final:8f3e7b45b3aabf4d7d01dc470010d3d36f30a0ba
true
null
2
27
null
1,485
0.090909
0.75
1
0.6375
1
0.3375
75.845511
9,894
r2e_gym::train::386
r2e_gym
train
386
orange3__7aa3fe79511b1416f82b82530427edc90cf61278
orange3
biolab/orange3
python
7aa3fe79511b1416f82b82530427edc90cf61278
**Title:** OWPredictions Widget Fails with Multiple Targets Due to Reshape Error **Description:** When using the OWPredictions widget with predictors that generate multiple targets, the widget encounters a reshape error instead of handling the scenario gracefully. **Example Buggy Code:** ```python class_vars = [self....
diff --git a/Orange/widgets/evaluate/owpredictions.py b/Orange/widgets/evaluate/owpredictions.py --- a/Orange/widgets/evaluate/owpredictions.py +++ b/Orange/widgets/evaluate/owpredictions.py @@ -423,6 +423,10 @@ backmappers, n_values = predictor.get_backmappers(self.data) prob = predic...
diff --git a/Orange/widgets/evaluate/tests/test_owpredictions.py b/Orange/widgets/evaluate/tests/test_owpredictions.py --- a/Orange/widgets/evaluate/tests/test_owpredictions.py +++ b/Orange/widgets/evaluate/tests/test_owpredictions.py @@ -18,7 +18,8 @@ from Orange.data.io import TabReader from Orange.evaluation.scori...
null
null
namanjain12/orange3_final:7aa3fe79511b1416f82b82530427edc90cf61278
true
null
1
4
null
1,273
0
0.75
1
0.6375
0.8
0.2255
75.84525
9,895
r2e_gym::train::5278
r2e_gym
train
5,278
aiohttp__f21c6f2ca512a026ce7f0f6c6311f62d6a638866
aiohttp
aio-libs/aiohttp
python
f21c6f2ca512a026ce7f0f6c6311f62d6a638866
### Missing Automatic Content-Disposition Causes KeyError When creating multipart payloads without explicitly setting the `Content-Disposition` header, accessing this header results in a `KeyError`. This occurs because the `Content-Disposition` is not automatically added, leading to failures in processing the multipar...
diff --git a/CHANGES/8335.bugfix.rst b/CHANGES/8335.bugfix.rst --- a/CHANGES/8335.bugfix.rst +++ b/CHANGES/8335.bugfix.rst @@ -0,0 +1 @@ +Added default Content-Disposition in multipart/form-data responses -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py --- a/aiohttp/multipart.py ++...
diff --git a/tests/test_multipart.py b/tests/test_multipart.py --- a/tests/test_multipart.py +++ b/tests/test_multipart.py @@ -1282,12 +1282,24 @@ part = writer._parts[0][0] assert part.headers[CONTENT_TYPE] == "test/passed" - async def test_set_content_disposition_after_append(self): + def te...
null
null
namanjain12/aiohttp_final:f21c6f2ca512a026ce7f0f6c6311f62d6a638866
true
null
2
5
null
1,240
0
0.75
1
0.6375
0.8
0.223333
75.83875
9,896
r2e_gym::train::381
r2e_gym
train
381
orange3__fb23419433230b6b38cab3e3e3dbb078cd95f54b
orange3
biolab/orange3
python
fb23419433230b6b38cab3e3e3dbb078cd95f54b
### ValueError When Evaluating Models with Multiple Targets **Description** When evaluating a model using data with multiple target variables, the evaluation process fails with a `ValueError` due to a shape mismatch. The system currently does not support multiple targets, leading to unexpected errors during evaluation...
diff --git a/Orange/evaluation/testing.py b/Orange/evaluation/testing.py --- a/Orange/evaluation/testing.py +++ b/Orange/evaluation/testing.py @@ -541,6 +541,11 @@ results.failed[res.learner_i] = res.failed continue + if len(res.values.shape) > 1 and res.values.shape[1] > ...
diff --git a/Orange/widgets/evaluate/tests/test_owtestandscore.py b/Orange/widgets/evaluate/tests/test_owtestandscore.py --- a/Orange/widgets/evaluate/tests/test_owtestandscore.py +++ b/Orange/widgets/evaluate/tests/test_owtestandscore.py @@ -18,7 +18,7 @@ Score from Orange.base import Learner, Model from Orange...
null
null
namanjain12/orange3_final:fb23419433230b6b38cab3e3e3dbb078cd95f54b
true
null
1
5
null
1,233
0
0.75
1
0.6375
0.8
0.222167
75.83525
9,897
r2e_gym::train::390
r2e_gym
train
390
orange3__498d2ca86bd2ebf54712ba90c0affacc43fb2a14
orange3
biolab/orange3
python
498d2ca86bd2ebf54712ba90c0affacc43fb2a14
**Title:** Normalization Option Remains Enabled for Sparse Data in KMeans Widget **Description:** When using the KMeans widget with sparse datasets, the normalization checkbox is still enabled. This allows users to attempt normalization on sparse data, which is not supported and can lead to unexpected behavior or erro...
diff --git a/Orange/widgets/unsupervised/owkmeans.py b/Orange/widgets/unsupervised/owkmeans.py --- a/Orange/widgets/unsupervised/owkmeans.py +++ b/Orange/widgets/unsupervised/owkmeans.py @@ -576,6 +576,9 @@ self.selection = None self._set_input_summary() + self.controls.normalize.setDisabled(...
diff --git a/Orange/widgets/unsupervised/tests/test_owkmeans.py b/Orange/widgets/unsupervised/tests/test_owkmeans.py --- a/Orange/widgets/unsupervised/tests/test_owkmeans.py +++ b/Orange/widgets/unsupervised/tests/test_owkmeans.py @@ -341,33 +341,37 @@ normalization = normalize.return_value = Mock(return_value...
null
null
namanjain12/orange3_final:498d2ca86bd2ebf54712ba90c0affacc43fb2a14
true
null
1
3
null
1,269
0
0.75
1
0.6375
0.8
0.2215
75.83325
9,898
r2e_gym::train::5339
r2e_gym
train
5,339
aiohttp__216e082807d02fafaacca57fc883c86826b126d3
aiohttp
aio-libs/aiohttp
python
216e082807d02fafaacca57fc883c86826b126d3
**Title:** AsyncResolver Does Not Propagate Error Messages in OSError **Description:** When a DNS resolution fails using `AsyncResolver`, the raised `OSError` does not include the original error message from `aiodns`. This omission makes it difficult to understand the specific reason for the failure, hindering effecti...
diff --git a/CHANGES/9451.bugfix.rst b/CHANGES/9451.bugfix.rst --- a/CHANGES/9451.bugfix.rst +++ b/CHANGES/9451.bugfix.rst @@ -0,0 +1 @@ +Fixed error messages from :py:class:`~aiohttp.resolver.AsyncResolver` being swallowed -- by :user:`bdraco`. diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py --- a/aiohttp/resol...
diff --git a/tests/test_resolver.py b/tests/test_resolver.py --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -315,6 +315,34 @@ ) +@pytest.mark.skipif(not getaddrinfo, reason="aiodns >=3.2.0 required") +async def test_async_resolver_error_messages_passed( + loop: asyncio.AbstractEventLoop, +...
null
null
namanjain12/aiohttp_final:216e082807d02fafaacca57fc883c86826b126d3
true
null
2
5
null
1,217
0
0.75
1
0.6375
0.8
0.2195
75.82725
9,899
r2e_gym::train::5754
r2e_gym
train
5,754
scrapy__60727dedf605fad2ed4be844cb2ec44e305257f0
scrapy
scrapy/scrapy
python
60727dedf605fad2ed4be844cb2ec44e305257f0
**Title:** Request Allows Non-Callable `callback` and `errback`, Leading to Runtime Errors **Description:** When creating a `Request` instance, it's possible to assign non-callable objects to the `callback` and `errback` parameters without any immediate error. This oversight can cause unexpected crashes when the syst...
diff --git a/scrapy/http/request/__init__.py b/scrapy/http/request/__init__.py --- a/scrapy/http/request/__init__.py +++ b/scrapy/http/request/__init__.py @@ -27,6 +27,10 @@ assert isinstance(priority, int), "Request priority not an integer: %r" % priority self.priority = priority + if callba...
diff --git a/tests/test_http_request.py b/tests/test_http_request.py --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -234,6 +234,26 @@ r = self.request_class("http://example.com") self.assertRaises(AttributeError, setattr, r, 'url', 'http://example2.com') self.assertRaise...
null
null
namanjain12/scrapy_final:60727dedf605fad2ed4be844cb2ec44e305257f0
true
null
1
4
null
1,237
0
0.75
1
0.6375
0.8
0.2195
75.82725