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
8,600
r2e_gym::train::190
r2e_gym
train
190
orange3__b0fbaa11536e6f13d44157fda82e801cd56663db
orange3
biolab/orange3
python
b0fbaa11536e6f13d44157fda82e801cd56663db
**[ISSUE]** **Title:** LDA Placement in Linear Projection Widget Does Not Output Components **Description:** When using the Linear Projection widget with LDA placement, the widget fails to produce the expected output components. Specifically, after setting the placement to LDA and providing the appropriate dataset, t...
diff --git a/Orange/widgets/visualize/owlinearprojection.py b/Orange/widgets/visualize/owlinearprojection.py --- a/Orange/widgets/visualize/owlinearprojection.py +++ b/Orange/widgets/visualize/owlinearprojection.py @@ -329,7 +329,10 @@ @property def effective_data(self): - return self.data.transform(...
diff --git a/Orange/widgets/visualize/tests/test_owlinearprojection.py b/Orange/widgets/visualize/tests/test_owlinearprojection.py --- a/Orange/widgets/visualize/tests/test_owlinearprojection.py +++ b/Orange/widgets/visualize/tests/test_owlinearprojection.py @@ -85,6 +85,8 @@ self.send_signal(self.widget.Input...
null
null
namanjain12/orange3_final:b0fbaa11536e6f13d44157fda82e801cd56663db
true
null
2
10
null
1,495
0
0.75
1
0.6375
1
0.2825
80.76625
8,601
swe_bench::dev::113
swe_bench
dev
113
pydicom__pydicom-866
pydicom/pydicom
pydicom/pydicom
python
b4b44acbf1ddcaf03df16210aac46cb3a8acd6b9
Handle odd-sized dicoms with warning #### Description We have some uncompressed dicoms with an odd number of pixel bytes (saved by older versions of pydicom actually). When we re-open with pydicom 1.2.2, we're now unable to extract the image, due to the change made by https://github.com/pydicom/pydicom/pull/601 Wou...
I agree that this would be sensible. Checking the mentioned PR, I also found that we had [discussed this briefly](https://github.com/pydicom/pydicom/pull/601#issuecomment-374710953) (with no result, obviously). @darcymason - I think this is another case of "try to handle broken DICOM, only raise in 'strict' mode", esp...
diff --git a/pydicom/pixel_data_handlers/numpy_handler.py b/pydicom/pixel_data_handlers/numpy_handler.py --- a/pydicom/pixel_data_handlers/numpy_handler.py +++ b/pydicom/pixel_data_handlers/numpy_handler.py @@ -242,14 +242,20 @@ def get_pixeldata(ds, read_only=False): # Check that the actual length of the pixel da...
diff --git a/pydicom/tests/test_numpy_pixel_data.py b/pydicom/tests/test_numpy_pixel_data.py --- a/pydicom/tests/test_numpy_pixel_data.py +++ b/pydicom/tests/test_numpy_pixel_data.py @@ -986,13 +986,23 @@ def test_bad_length_raises(self): # Too short ds.PixelData = ds.PixelData[:-1] msg = ( -...
["pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_bad_length_raises", "pydicom/tests/test_numpy_pixel_data.py::TestNumpy_GetPixelData::test_missing_padding_warns"]
["pydicom/tests/test_numpy_pixel_data.py::test_unsupported_syntaxes", "pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_environment", "pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHandler::test_can_access_supported_dataset", "pydicom/tests/test_numpy_pixel_data.py::TestNumpy_NoNumpyHan...
null
true
2019-06-21T12:02:05Z
1
18
2
422
0
0.8
1
0.55
1
0.130333
80.766
8,602
r2e_gym::train::5382
r2e_gym
train
5,382
aiohttp__3b8fb5a2dcebc4703220f19010811b5ea9707707
aiohttp
aio-libs/aiohttp
python
3b8fb5a2dcebc4703220f19010811b5ea9707707
**Title:** StreamResponse version setter expects string and missing `_version` attribute causes AttributeError **Description:** When initializing a `StreamResponse` and setting its `version` attribute using an `HttpVersion` instance, an error occurs because the `_version` attribute is not present. Additionally, the v...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -14,16 +14,17 @@ from .errors import HttpErrorException from .helpers import parse_mimetype from .multidict import MultiDict, MutableMultiDict -from .protocol import Response as ResponseImpl +from .protocol import Response as R...
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 @@ -1,7 +1,7 @@ import unittest from unittest import mock from aiohttp.web import Request, StreamResponse -from aiohttp.protocol import Request as RequestImpl +from aiohttp.protocol ...
null
null
namanjain12/aiohttp_final:3b8fb5a2dcebc4703220f19010811b5ea9707707
true
null
1
9
null
1,512
0
0.75
1
0.6375
1
0.282
80.76475
8,603
r2e_gym::train::4387
r2e_gym
train
4,387
numpy__7ef6b65fa960fcedcef8a27b1c3ef8c67ebb2078
numpy
numpy/numpy
python
7ef6b65fa960fcedcef8a27b1c3ef8c67ebb2078
**Title:** `np.resize` Does Not Properly Handle Negative Shapes, Causing Unexpected Errors **Description:** When using `np.resize` with a shape that includes negative values, the function does not consistently raise an error as expected. Instead, it sometimes raises an unrelated error message, leading to confusion and...
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1377,10 +1377,17 @@ See Also -------- + np.reshape : Reshape an array without changing the total size. + np.pad : Enlarge and pad an array. + np.repeat: Repeat elem...
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py --- a/numpy/core/tests/test_numeric.py +++ b/numpy/core/tests/test_numeric.py @@ -29,6 +29,17 @@ Ar3 = np.array([[1, 2, 3], [4, 1, 2], [3, 4, 1], [2, 3, 4]]) assert_equal(np.resize(A, (4, 3)), Ar3) + def test_repeats...
null
null
namanjain12/numpy_final:7ef6b65fa960fcedcef8a27b1c3ef8c67ebb2078
true
null
1
36
null
972
0
0.75
1
0.6375
1
0.282
80.76475
8,604
r2e_gym::train::5897
r2e_gym
train
5,897
tornado__2bd2f0db087c12738ac55aba75fe78fe31987dd0
tornado
tornadoweb/tornado
python
2bd2f0db087c12738ac55aba75fe78fe31987dd0
**Title:** `Subprocess.wait_for_exit()` Doesn’t Raise Exception on Non-Zero Exit and Lacks `raise_error` Parameter **Description:** When a subprocess exits with a non-zero status, the `wait_for_exit()` method does not raise a `CalledProcessError` as expected. Additionally, attempting to disable exception raising by pa...
diff --git a/tornado/process.py b/tornado/process.py --- a/tornado/process.py +++ b/tornado/process.py @@ -47,6 +47,10 @@ long # py2 except NameError: long = int # py3 + + +# Re-export this exception for convenience. +CalledProcessError = subprocess.CalledProcessError def cpu_count(): @@ -259,7 +263,7...
diff --git a/tornado/test/process_test.py b/tornado/test/process_test.py --- a/tornado/test/process_test.py +++ b/tornado/test/process_test.py @@ -222,3 +222,22 @@ ret = self.wait() self.assertEqual(subproc.returncode, ret) self.assertEqual(ret, -signal.SIGTERM) + + @gen_test + def test...
null
null
namanjain12/tornado_final:2bd2f0db087c12738ac55aba75fe78fe31987dd0
true
null
1
19
null
1,309
0
0.75
1
0.6375
1
0.2815
80.76325
8,605
r2e_gym::train::71
r2e_gym
train
71
orange3__54282c83b9105149862cd124105387c4abe70f47
orange3
biolab/orange3
python
54282c83b9105149862cd124105387c4abe70f47
**Title:** GroupItemsDialog raises TypeError when handling data with missing values **Description:** When using `GroupItemsDialog` with datasets that include missing values, such as `MaskedArray`, the widget fails to process the data correctly. Specifically, attempting to count the elements in the data results in a `T...
diff --git a/Orange/widgets/data/oweditdomain.py b/Orange/widgets/data/oweditdomain.py --- a/Orange/widgets/data/oweditdomain.py +++ b/Orange/widgets/data/oweditdomain.py @@ -680,7 +680,8 @@ DEFAULT_LABEL = "other" def __init__( - self, variable: Categorical, data: Union[np.ndarray, List], + ...
diff --git a/Orange/widgets/data/tests/test_oweditdomain.py b/Orange/widgets/data/tests/test_oweditdomain.py --- a/Orange/widgets/data/tests/test_oweditdomain.py +++ b/Orange/widgets/data/tests/test_oweditdomain.py @@ -1026,6 +1026,40 @@ dialog.n_values_spin.setValue(3) self.assertListEqual(dialog.get...
null
null
namanjain12/orange3_final:54282c83b9105149862cd124105387c4abe70f47
true
null
1
17
null
1,349
0
0.75
1
0.6375
1
0.2815
80.76325
8,606
r2e_gym::train::6007
r2e_gym
train
6,007
tornado__5eb39608dff69b49ff3219f9016120568d558226
tornado
tornadoweb/tornado
python
5eb39608dff69b49ff3219f9016120568d558226
**Title:** `gen_test` Decorator Fails to Pass Arguments to Test Methods **Description:** When decorating test methods that expect arguments using the `gen_test` decorator, the decorator does not correctly pass `args` and `kwargs` to the test methods. This results in `TypeError` exceptions during test execution. **Exa...
diff --git a/tornado/testing.py b/tornado/testing.py --- a/tornado/testing.py +++ b/tornado/testing.py @@ -471,8 +471,8 @@ # This is a good case study arguing for either some sort of # extensibility in the gen decorators or cancellation support. @functools.wraps(f) - def pre_coroutine(...
diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -198,5 +198,23 @@ self.finished = True + def test_with_method_args(self): + @gen_test + def test_with_args(self, *args): + self.asser...
null
null
namanjain12/tornado_final:5eb39608dff69b49ff3219f9016120568d558226
true
null
1
9
null
1,507
0
0.75
1
0.6375
1
0.281167
80.76225
8,607
r2e_gym::train::5687
r2e_gym
train
5,687
scrapy__3318971512fd0314ffd6053b68e4aef2142c1a80
scrapy
scrapy/scrapy
python
3318971512fd0314ffd6053b68e4aef2142c1a80
**Title:** AssertionError When `FEED_EXPORT_FIELDS` Is Set to a Tuple **Description:** When configuring the `FEED_EXPORT_FIELDS` setting with a tuple, the feed export process fails unexpectedly. The system currently expects `FEED_EXPORT_FIELDS` to be either a dictionary or a list. Providing a tuple leads to an asserti...
diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -48,13 +48,13 @@ env: TOXENV: botocore - - python-version: "3.12.0-beta.4" + - python-version: "3.12.0-rc.1" ...
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py --- a/tests/test_feedexport.py +++ b/tests/test_feedexport.py @@ -1322,6 +1322,17 @@ yield self.assertExportedJsonLines(items, rows_jl) @defer.inlineCallbacks + def test_export_tuple(self): + items = [ + {"foo": "bar1"...
null
null
namanjain12/scrapy_final:3318971512fd0314ffd6053b68e4aef2142c1a80
true
null
2
10
null
1,486
0
0.75
1
0.6375
1
0.281
80.76175
8,608
r2e_gym::train::135
r2e_gym
train
135
orange3__e0fc89491a482009748c098d4ef27e7d1928bfcd
orange3
biolab/orange3
python
e0fc89491a482009748c098d4ef27e7d1928bfcd
**Title:** PyListModelTooltip Raises Errors for Non-Subscriptable Tooltips and Insufficient Tooltip Entries **Description:** When initializing `PyListModelTooltip` with tooltips that are not subscriptable, such as `dict.values()`, or when the number of tooltips provided is less than the number of items, the model rais...
diff --git a/Orange/widgets/utils/itemmodels.py b/Orange/widgets/utils/itemmodels.py --- a/Orange/widgets/utils/itemmodels.py +++ b/Orange/widgets/utils/itemmodels.py @@ -358,12 +358,17 @@ class PyListModelTooltip(PyListModel): - def __init__(self, iterable=None, tooltips=[], **kwargs): + def __init__(self, ...
diff --git a/Orange/widgets/utils/tests/test_itemmodels.py b/Orange/widgets/utils/tests/test_itemmodels.py --- a/Orange/widgets/utils/tests/test_itemmodels.py +++ b/Orange/widgets/utils/tests/test_itemmodels.py @@ -3,8 +3,6 @@ import unittest from unittest.mock import patch - -import numpy as np from AnyQt.QtCor...
null
null
namanjain12/orange3_final:e0fc89491a482009748c098d4ef27e7d1928bfcd
true
null
1
7
null
1,545
0
0.75
1
0.6375
1
0.280833
80.76125
8,609
r2e_gym::train::4757
r2e_gym
train
4,757
numpy__24f1b3b7638377ce3474c459851db6a123c5da6f
numpy
numpy/numpy
python
24f1b3b7638377ce3474c459851db6a123c5da6f
Title: `piecewise` Function Raises IndexError with Single Condition Lists **Description** When using the `numpy.piecewise` function with a single condition list, it unexpectedly raises an `IndexError`. This issue occurs even though indexing with a single boolean should be supported. **Example Code** ```python impor...
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1254,12 +1254,12 @@ The length of `condlist` must correspond to that of `funclist`. If one extra function is given, i.e. if - ``len(funclist) - len(condli...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2514,6 +2514,11 @@ x = piecewise([0, 0], [[False, True]], [lambda x:-1]) assert_array_equal(x, [0, -1]) + asse...
null
null
namanjain12/numpy_final:24f1b3b7638377ce3474c459851db6a123c5da6f
true
null
1
34
null
1,003
0
0.75
1
0.6375
1
0.2805
80.76025
8,610
r2e_gym::train::4679
r2e_gym
train
4,679
numpy__081a865d3d243c282dc452c28dbe89e80d8bccb0
numpy
numpy/numpy
python
081a865d3d243c282dc452c28dbe89e80d8bccb0
**[ISSUE]** ### MaskedArray Methods Fail on Python Built-ins like Lists and Tuples #### Description When using `np.ma.copy` or `np.ma.count` on Python built-in types such as lists and tuples, the methods do not behave as expected. Specifically, copying a list or tuple does not return a `MaskedArray`, and counting ele...
diff --git a/numpy/ma/core.py b/numpy/ma/core.py --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -6372,21 +6372,16 @@ def __call__(self, a, *args, **params): if self.reversed: args = list(args) - arr = args[0] - args[0] = a - a = arr - # Get the method...
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -433,6 +433,11 @@ assert_not_equal(y._data.ctypes.data, x._data.ctypes.data) assert_not_equal(y._mask.ctypes.data, x._mask.ctypes.data) + def test_copy_on_...
null
null
namanjain12/numpy_final:081a865d3d243c282dc452c28dbe89e80d8bccb0
true
null
1
31
null
1,062
0
0.75
1
0.6375
1
0.280333
80.75975
8,611
r2e_gym::train::5070
r2e_gym
train
5,070
datalad__22948af54d5469e5c708414a262e968ecbf593d9
datalad
datalad/datalad
python
22948af54d5469e5c708414a262e968ecbf593d9
**Title:** `verify_ria_url` Returns Incomplete Host Without Protocol and Credentials **Description:** The `verify_ria_url` function is designed to parse RIA URLs and return a tuple containing the host and path. However, when dealing with URLs that include protocols other than `file`, such as `ssh` or `http`, the funct...
diff --git a/datalad/customremotes/ria_utils.py b/datalad/customremotes/ria_utils.py --- a/datalad/customremotes/ria_utils.py +++ b/datalad/customremotes/ria_utils.py @@ -85,6 +85,8 @@ ------- tuple (host, base-path, rewritten url) + `host` is not just a hostname, but is a stub URL that may also c...
diff --git a/datalad/cmdline/tests/test_main.py b/datalad/cmdline/tests/test_main.py --- a/datalad/cmdline/tests/test_main.py +++ b/datalad/cmdline/tests/test_main.py @@ -383,5 +383,5 @@ Runner(cwd=ds.path).run( ['datalad', 'push', '--to', 'expdir'], protocol=StdOutErrCapture) - if...
null
null
namanjain12/datalad_final:22948af54d5469e5c708414a262e968ecbf593d9
true
null
1
14
null
1,402
0
0.75
1
0.6375
1
0.280333
80.75975
8,612
r2e_gym::train::5758
r2e_gym
train
5,758
scrapy__56fa9e2c1c1575f7b35ec724cb1608b07b8b548e
scrapy
scrapy/scrapy
python
56fa9e2c1c1575f7b35ec724cb1608b07b8b548e
**Title:** TypeError When Parsing robots.txt in Python 3 RobotsTxtMiddleware **Description:** When using the `RobotsTxtMiddleware` in a Python 3 environment, parsing the `robots.txt` file results in a `TypeError`. The middleware attempts to process the response body as a string, but the `robotparser.RobotFileParser.pa...
diff --git a/scrapy/downloadermiddlewares/robotstxt.py b/scrapy/downloadermiddlewares/robotstxt.py --- a/scrapy/downloadermiddlewares/robotstxt.py +++ b/scrapy/downloadermiddlewares/robotstxt.py @@ -65,5 +65,17 @@ def _parse_robots(self, response): rp = robotparser.RobotFileParser(response.url) - ...
diff --git a/tests/test_downloadermiddleware_robotstxt.py b/tests/test_downloadermiddleware_robotstxt.py --- a/tests/test_downloadermiddleware_robotstxt.py +++ b/tests/test_downloadermiddleware_robotstxt.py @@ -6,15 +6,44 @@ from twisted.trial import unittest from scrapy.downloadermiddlewares.robotstxt import RobotsT...
null
null
namanjain12/scrapy_final:56fa9e2c1c1575f7b35ec724cb1608b07b8b548e
true
null
1
14
null
1,401
0
0.75
1
0.6375
1
0.280167
80.75925
8,613
r2e_gym::train::34
r2e_gym
train
34
orange3__56706b60e10e65481d206b5b6f7be5f84b66e4e0
orange3
biolab/orange3
python
56706b60e10e65481d206b5b6f7be5f84b66e4e0
**Title:** Edge Values Assigned to Incorrect Bins Due to Floating Point Precision **Description:** When discretizing decimal values, values that lie exactly on the edge of a bin are sometimes assigned to the wrong bin. This issue seems to be caused by floating point precision errors in the binning thresholds, leading ...
diff --git a/Orange/preprocess/discretize.py b/Orange/preprocess/discretize.py --- a/Orange/preprocess/discretize.py +++ b/Orange/preprocess/discretize.py @@ -320,8 +320,11 @@ nbins = np.round((mx_ - mn_) / width) if min_bins <= nbins <= max_bins \ and (not bins or bins[-1].nbins != n...
diff --git a/Orange/tests/test_discretize.py b/Orange/tests/test_discretize.py --- a/Orange/tests/test_discretize.py +++ b/Orange/tests/test_discretize.py @@ -8,7 +8,7 @@ import numpy as np import scipy.sparse as sp -from Orange.preprocess import discretize, Discretize +from Orange.preprocess import discretize, Dis...
null
null
namanjain12/orange3_final:56706b60e10e65481d206b5b6f7be5f84b66e4e0
true
null
1
7
null
1,535
0
0.75
1
0.6375
1
0.279167
80.75625
8,614
r2e_gym::train::5998
r2e_gym
train
5,998
tornado__e831fe3616b81a5acd0c0c90e85608c5c6236f90
tornado
tornadoweb/tornado
python
e831fe3616b81a5acd0c0c90e85608c5c6236f90
**Title:** `multi_future` Fails When Handling Non-Future Yieldable Objects **Description:** When using `multi_future` with a mix of `Future` objects and other yieldable types, the function fails to handle the non-Future yieldables correctly. This results in the operation not completing as expected, causing related asy...
diff --git a/tornado/gen.py b/tornado/gen.py --- a/tornado/gen.py +++ b/tornado/gen.py @@ -624,11 +624,12 @@ def multi_future(children, quiet_exceptions=()): """Wait for multiple asynchronous futures in parallel. - Takes a list of ``Futures`` (but *not* other ``YieldPoints``) and returns - a new Future th...
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 @@ -744,6 +744,26 @@ """), global_namespace, local_namespace) result = yield local_namespace['f']() self.assertEqual(result, 42) + self.finished = True + + ...
null
null
namanjain12/tornado_final:e831fe3616b81a5acd0c0c90e85608c5c6236f90
true
null
1
15
null
1,372
0
0.75
1
0.6375
1
0.278667
80.75475
8,615
r2e_gym::train::4867
r2e_gym
train
4,867
numpy__e287741d60205bb920dea15d4e70178453db2788
numpy
numpy/numpy
python
e287741d60205bb920dea15d4e70178453db2788
**Title:** `meshgrid` Raises Error with No Input and Returns Incorrect Dtype **Description:** When calling `meshgrid` without any input arrays, it unexpectedly raises a `ValueError` instead of returning an empty list. Additionally, when providing input arrays of different data types, the resulting grids do not preserv...
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -4530,18 +4530,14 @@ output[1].shape = (-1, 1) + (1,)*(ndim - 2) shape[0], shape[1] = shape[1], shape[0] - if sparse: - if copy_: - return [x...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2211,6 +2211,7 @@ def test_no_input(self): args = [] assert_array_equal([], meshgrid(*args)) + assert_array...
null
null
namanjain12/numpy_final:e287741d60205bb920dea15d4e70178453db2788
true
null
1
18
null
1,312
0
0.75
1
0.6375
1
0.278667
80.75475
8,616
r2e_gym::train::6507
r2e_gym
train
6,507
pillow__7d97fa8b86a9f61069579fbedb2cc09fb437b12f
pillow
python-pillow/pillow
python
7d97fa8b86a9f61069579fbedb2cc09fb437b12f
**Title:** `exif_transpose` Function Raises TypeError with `in_place` Argument **Description:** When calling the `exif_transpose` function with the `in_place` keyword argument, a `TypeError` is raised indicating that `in_place` is unexpected. This issue occurs when attempting to modify an image's EXIF Orientation tag ...
diff --git a/src/PIL/ImageOps.py b/src/PIL/ImageOps.py --- a/src/PIL/ImageOps.py +++ b/src/PIL/ImageOps.py @@ -576,13 +576,13 @@ return _lut(image, lut) -def exif_transpose(image, *, inPlace=False): +def exif_transpose(image, *, in_place=False): """ If an image has an EXIF Orientation tag, other than...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -404,13 +404,13 @@ assert 0x0112 not in transposed_im.getexif() -def test_exif_transpose_inplace(): +def test_exif_transpose_in_place(): with Image.open("Tests/images/orientation_recta...
null
null
namanjain12/pillow_final:7d97fa8b86a9f61069579fbedb2cc09fb437b12f
true
null
1
12
null
1,429
0
0.75
1
0.6375
1
0.278167
80.75325
8,617
r2e_gym::train::24
r2e_gym
train
24
orange3__f0523b5c8016924830317fb8897d115d17e28f4d
orange3
biolab/orange3
python
f0523b5c8016924830317fb8897d115d17e28f4d
**Title:** OWContinuize Widget Raises AttributeError When Disabling Normalization for Sparse Data **Description:** When the OWContinuize widget processes sparse data, it is expected to disable normalization options such as "Normalize by Span" and "Normalize by Standard Deviation" to prevent erroneous behavior. However...
diff --git a/Orange/widgets/data/owcontinuize.py b/Orange/widgets/data/owcontinuize.py --- a/Orange/widgets/data/owcontinuize.py +++ b/Orange/widgets/data/owcontinuize.py @@ -34,9 +34,12 @@ buttons_area_orientation = Qt.Vertical resizing_enabled = False + # continuous treats + Leave, NormalizeBySpan, ...
diff --git a/Orange/widgets/data/tests/test_owcontinuize.py b/Orange/widgets/data/tests/test_owcontinuize.py --- a/Orange/widgets/data/tests/test_owcontinuize.py +++ b/Orange/widgets/data/tests/test_owcontinuize.py @@ -110,6 +110,45 @@ self.send_signal(self.widget.Inputs.data, table) self.widget.uncon...
null
null
namanjain12/orange3_final:f0523b5c8016924830317fb8897d115d17e28f4d
true
null
1
15
null
1,366
0
0.75
1
0.6375
1
0.277667
80.75175
8,618
r2e_gym::train::5316
r2e_gym
train
5,316
aiohttp__980c0d0bd3636a79b29b28b5bdde7dcd796736b1
aiohttp
aio-libs/aiohttp
python
980c0d0bd3636a79b29b28b5bdde7dcd796736b1
**Title:** TCPConnector Raises TypeError When Using ssl_context Parameter **Description:** When initializing `TCPConnector` with the `ssl_context` parameter, a `TypeError` is raised because the constructor does not recognize the `ssl_context` argument. **Example Code:** ```python import ssl import aiohttp ssl_ctx = ...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -223,10 +223,17 @@ """ def __init__(self, *args, verify_ssl=True, - resolve=False, family=socket.AF_INET, **kwargs): + resolve=False, family=socket.AF_INET, ssl_c...
diff --git a/tests/test_connector.py b/tests/test_connector.py --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -6,6 +6,7 @@ import time import socket import unittest +import ssl from unittest import mock import aiohttp @@ -312,6 +313,22 @@ conn.clear_resolved_hosts() self.assertE...
null
null
namanjain12/aiohttp_final:980c0d0bd3636a79b29b28b5bdde7dcd796736b1
true
null
1
45
null
763
0
0.75
1
0.6375
1
0.277167
80.75025
8,619
r2e_gym::train::43
r2e_gym
train
43
orange3__41e015e4bc1bd1c2c65955d53150c4128979275b
orange3
biolab/orange3
python
41e015e4bc1bd1c2c65955d53150c4128979275b
**Title:** `send_report` Method Raises AttributeError Due to Missing `infolabel` in Predictions Widget **Description:** When attempting to generate a report using the `send_report` method in the Predictions widget, an `AttributeError` is thrown because the widget lacks the `infolabel` attribute. This prevents the repo...
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 @@ -10,6 +10,8 @@ from AnyQt.QtCore import ( Qt, QSize, QRect, QRectF, QPoint, QLocale, QModelIndex, QAbstractTableMod...
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 @@ -412,6 +412,8 @@ colors = self.widget._get_colors() self.assertE...
null
null
namanjain12/orange3_final:41e015e4bc1bd1c2c65955d53150c4128979275b
true
null
1
42
null
821
0
0.75
1
0.6375
1
0.276833
80.74925
8,620
r2e_gym::train::4568
r2e_gym
train
4,568
numpy__2ee7c72e56b5ef16f3838f86de8ad0d435b9b4e0
numpy
numpy/numpy
python
2ee7c72e56b5ef16f3838f86de8ad0d435b9b4e0
**Title:** `np.squeeze()` Does Not Raise TypeError When `axis` Argument Is Provided to Objects Expecting Old API **Description:** When using `np.squeeze()` with the `axis` parameter on array subclasses that were designed without support for the `axis` argument, the function does not raise a `TypeError` as expected. In...
diff --git a/doc/release/1.15.0-notes.rst b/doc/release/1.15.0-notes.rst --- a/doc/release/1.15.0-notes.rst +++ b/doc/release/1.15.0-notes.rst @@ -54,6 +54,16 @@ All downstream users seem to use detect the `None` result from ``flatnotmasked_contiguous`` and replace it with ``[]``. These callers will continue to work...
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1675,6 +1675,67 @@ assert_(a.flags.f_contiguous) assert_(b.flags.f_contiguous) + def test_squeeze_axis_handling(self): + ...
null
null
namanjain12/numpy_final:2ee7c72e56b5ef16f3838f86de8ad0d435b9b4e0
true
null
2
19
null
1,279
0
0.75
1
0.6375
1
0.2765
80.74825
8,621
r2e_gym::train::4957
r2e_gym
train
4,957
datalad__4484ab9ed80e70ca24250650ddb46dc575aff245
datalad
datalad/datalad
python
4484ab9ed80e70ca24250650ddb46dc575aff245
**Title:** Authentication Error When Accessing S3 Buckets Containing '.' Using Anonymous Access **Description:** When attempting to retrieve a versioned URL for an S3 bucket that includes a dot (`.`) in its name without providing authentication credentials, the `get_versioned_url` function fails unexpectedly. **Examp...
diff --git a/datalad/support/s3.py b/datalad/support/s3.py --- a/datalad/support/s3.py +++ b/datalad/support/s3.py @@ -457,8 +457,8 @@ if url_rec.hostname.endswith('.s3.amazonaws.com'): if url_rec.scheme not in ('http', 'https'): raise ValueError("Do not know how to handle %s scheme" % url_re...
diff --git a/datalad/tests/test_s3.py b/datalad/tests/test_s3.py --- a/datalad/tests/test_s3.py +++ b/datalad/tests/test_s3.py @@ -89,6 +89,16 @@ @skip_if_no_network +@use_cassette('s3_test_version_url_anon') +def test_get_versioned_url_anon(): + # The one without any authenticator, was crashing. + # Also it...
null
null
namanjain12/datalad_final:4484ab9ed80e70ca24250650ddb46dc575aff245
true
null
1
15
null
1,358
0
0.75
1
0.6375
1
0.276333
80.74775
8,622
r2e_gym::train::4733
r2e_gym
train
4,733
numpy__51ef0c409e20490829218c4d549a3bd4c9b073a2
numpy
numpy/numpy
python
51ef0c409e20490829218c4d549a3bd4c9b073a2
**Title:** Incorrect Padding Values with Large Integers in `numpy.pad` **Description:** When using `numpy.pad` with `mode='constant'` and large integer values, the padding does not correctly apply the specified constant values. Instead, it inserts zeros, leading to incorrect array padding. **Buggy Code Example:** ```...
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py --- a/numpy/lib/arraypad.py +++ b/numpy/lib/arraypad.py @@ -104,8 +104,8 @@ return np.concatenate((np.zeros(padshape, dtype=arr.dtype), arr), axis=axis) else: - return np.concatenate(((np.zeros(padshape) + val...
diff --git a/numpy/lib/tests/test_arraypad.py b/numpy/lib/tests/test_arraypad.py --- a/numpy/lib/tests/test_arraypad.py +++ b/numpy/lib/tests/test_arraypad.py @@ -488,6 +488,19 @@ [3, 2, 2, 4, 4, 4]] ) assert_allclose(test, expected) + + def test_check_large_integers(self): + u...
null
null
namanjain12/numpy_final:51ef0c409e20490829218c4d549a3bd4c9b073a2
true
null
1
8
null
1,497
0
0.75
1
0.6375
1
0.276167
80.74725
8,623
r2e_gym::train::5201
r2e_gym
train
5,201
pyramid__171c2dca2776e9b9642bcf8b0d4a30ba97ab5724
pyramid
pylons/pyramid
python
171c2dca2776e9b9642bcf8b0d4a30ba97ab5724
**Title:** `caller_module()` Fails When Injecting Mock `sys` Parameter **Description:** When attempting to inject a mock `sys` module into the `caller_module` function, a `TypeError` is raised because the function does not accept the `sys` keyword argument. This prevents proper handling of scenarios where the module's...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -47,6 +47,12 @@ Bug Fixes --------- + +- When creating a Configurator from within a ``paster pshell`` session, you + were required to pass a ``package`` argument although ``package`` is not + actually required. If you didn't pass ``pac...
diff --git a/pyramid/tests/test_path.py b/pyramid/tests/test_path.py --- a/pyramid/tests/test_path.py +++ b/pyramid/tests/test_path.py @@ -36,9 +36,9 @@ self.assertEqual(test_path.__abspath__, here) class TestCallerModule(unittest.TestCase): - def _callFUT(self, level=2): + def _callFUT(self, *arg, **...
null
null
namanjain12/pyramid_final:171c2dca2776e9b9642bcf8b0d4a30ba97ab5724
true
null
3
13
null
1,396
0
0.75
1
0.6375
1
0.276
80.74675
8,624
r2e_gym::train::6371
r2e_gym
train
6,371
pillow__b48996c213309af306c04ce0e5de8090ce96b7f3
pillow
python-pillow/pillow
python
b48996c213309af306c04ce0e5de8090ce96b7f3
**Title:** `thumbnail()` Method Raises TypeError When Using `reducing_gap` Parameter **Description:** When attempting to use the `reducing_gap` parameter with the `thumbnail()` method, a `TypeError` is raised indicating that `reducing_gap` is an unexpected keyword argument. **Example Code:** ```python from PIL import...
diff --git a/src/PIL/IcoImagePlugin.py b/src/PIL/IcoImagePlugin.py --- a/src/PIL/IcoImagePlugin.py +++ b/src/PIL/IcoImagePlugin.py @@ -65,7 +65,7 @@ image_io = BytesIO() # TODO: invent a more convenient method for proportional scalings than thumbnail() tmp = im.copy() - tmp.thumbnail(s...
diff --git a/Tests/test_image_thumbnail.py b/Tests/test_image_thumbnail.py --- a/Tests/test_image_thumbnail.py +++ b/Tests/test_image_thumbnail.py @@ -60,8 +60,8 @@ im.paste(Image.new("RGB", (235, 235)), (11, 11)) thumb = fromstring(tostring(im, "JPEG", quality=99, subsampling=0)) - # small m...
null
null
namanjain12/pillow_final:b48996c213309af306c04ce0e5de8090ce96b7f3
true
null
2
46
null
736
0
0.75
1
0.6375
1
0.276
80.74675
8,625
r2e_gym::train::4155
r2e_gym
train
4,155
numpy__1fccdccf9f326de5d4f0f2982f35ba4ead16156c
numpy
numpy/numpy
python
1fccdccf9f326de5d4f0f2982f35ba4ead16156c
**Title:** `np.dtype` does not respect endianness for `ctypes` BigEndianStructure **Description:** When converting a `ctypes` `BigEndianStructure` to a NumPy `dtype`, the specified big endian format is not honored. Instead, the resulting `dtype` uses little endian formats, leading to incorrect data interpretation. **...
diff --git a/numpy/core/_dtype_ctypes.py b/numpy/core/_dtype_ctypes.py --- a/numpy/core/_dtype_ctypes.py +++ b/numpy/core/_dtype_ctypes.py @@ -33,7 +33,6 @@ def _from_ctypes_structure(t): - # TODO: gh-10533 for item in t._fields_: if len(item) > 2: raise TypeError( @@ -67,6 +66,18 @@ ...
diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py --- a/numpy/core/tests/test_dtype.py +++ b/numpy/core/tests/test_dtype.py @@ -856,8 +856,26 @@ itemsize=18)) self.check(PackedStructure, expected) - @pytest.mark.xfail(sys.byteorder != 'little', - reason="non-...
null
null
namanjain12/numpy_final:1fccdccf9f326de5d4f0f2982f35ba4ead16156c
true
null
1
15
null
1,355
0
0.75
1
0.6375
1
0.275833
80.74625
8,626
r2e_gym::train::5756
r2e_gym
train
5,756
scrapy__6d9ed6146deb386f193af781424dcf053e709c40
scrapy
scrapy/scrapy
python
6d9ed6146deb386f193af781424dcf053e709c40
**Title:** Input Processor Function Called with Incorrect Arguments Causing TypeError **Description:** When using a standalone function as an input processor in `ItemLoader`, adding values leads to a `TypeError` because the processor is invoked with two arguments instead of one. **Example Code:** ```python def functi...
diff --git a/docs/topics/loaders.rst b/docs/topics/loaders.rst --- a/docs/topics/loaders.rst +++ b/docs/topics/loaders.rst @@ -142,20 +142,6 @@ containing the collected values (for that field). The result of the output processors is the value that will be finally assigned to the item. -If you want to use a pl...
diff --git a/tests/test_loader.py b/tests/test_loader.py --- a/tests/test_loader.py +++ b/tests/test_loader.py @@ -992,5 +992,53 @@ ) +# Functions as processors + +def function_processor_strip(iterable): + return [x.strip() for x in iterable] + + +def function_processor_upper(iterable): + return ...
null
null
namanjain12/scrapy_final:6d9ed6146deb386f193af781424dcf053e709c40
true
null
2
32
null
1,015
0
0.75
1
0.6375
1
0.275833
80.74625
8,627
r2e_gym::train::4575
r2e_gym
train
4,575
numpy__1493023518f956bec74a9f5113d83510c28f44c7
numpy
numpy/numpy
python
1493023518f956bec74a9f5113d83510c28f44c7
**Title:** AssertionError messages include unexpected 'L' suffixes when comparing arrays and matrices **Description:** When asserting the equality of a NumPy array and a NumPy matrix with identical elements but different shapes, the resulting error message includes 'L' suffixes in the shape descriptions. This causes t...
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -50,12 +50,6 @@ flexible) import warnings -if sys.version_info[0] >= 3: - _MAXINT = sys.maxsize - _MININT = -sys.maxsize - 1 -else: - _MAXINT = sys.ma...
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -4,6 +4,7 @@ import sys import os import itertools +import textwrap import numpy as np from numpy.testing import ( @@ -289,16 +290,18 @@ e...
null
null
namanjain12/numpy_final:1493023518f956bec74a9f5113d83510c28f44c7
true
null
1
24
null
1,175
0
0.75
1
0.6375
1
0.275833
80.74625
8,628
r2e_gym::train::131
r2e_gym
train
131
orange3__30c9e67782c87f48d4697dc121d0e2139804c062
orange3
biolab/orange3
python
30c9e67782c87f48d4697dc121d0e2139804c062
**Title:** Settings Migration Fails with KeyError in OWMergeData Widget **Description:** When trying to migrate settings for the `OWMergeData` widget, a `KeyError` is raised due to missing attribute keys. This prevents the widget from correctly updating and retaining user configurations during the migration process. ...
diff --git a/Orange/widgets/data/owmergedata.py b/Orange/widgets/data/owmergedata.py --- a/Orange/widgets/data/owmergedata.py +++ b/Orange/widgets/data/owmergedata.py @@ -584,13 +584,20 @@ @staticmethod def migrate_settings(settings, version=None): + def mig_value(x): + if x == "Position (...
diff --git a/Orange/widgets/data/tests/test_owmergedata.py b/Orange/widgets/data/tests/test_owmergedata.py --- a/Orange/widgets/data/tests/test_owmergedata.py +++ b/Orange/widgets/data/tests/test_owmergedata.py @@ -5,6 +5,8 @@ import numpy as np import scipy.sparse as sp + +from AnyQt.QtCore import Qt from Orang...
null
null
namanjain12/orange3_final:30c9e67782c87f48d4697dc121d0e2139804c062
true
null
1
13
null
1,393
0
0.75
1
0.6375
1
0.2755
80.74525
8,629
r2e_gym::train::4230
r2e_gym
train
4,230
numpy__292b9ff538ea4950c7380c76cf65d1a5b108b75c
numpy
numpy/numpy
python
292b9ff538ea4950c7380c76cf65d1a5b108b75c
Title: `piecewise` Function Raises IndexError with Zero-Dimensional Input **Description** When using the `piecewise` function with a zero-dimensional input, an `IndexError` is raised due to incorrect handling of the condition list dimensions. **Example Code** ```python import numpy as np from numpy import piecewise ...
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -651,7 +651,7 @@ The output is the same shape and type as x and is found by calling the functions in `funclist` on the appropriate portions of `x`, as defi...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1487,6 +1487,7 @@ x = piecewise([0, 0], [[False, True]], [lambda x:-1]) assert_array_equal(x, [0, -1]) + def test_...
null
null
namanjain12/numpy_final:292b9ff538ea4950c7380c76cf65d1a5b108b75c
true
null
1
36
null
931
0
0.75
1
0.6375
1
0.275167
80.74425
8,630
r2e_gym::train::6097
r2e_gym
train
6,097
pillow__02c6183d41c68a8dd080f5739f566bd82485822d
pillow
python-pillow/pillow
python
02c6183d41c68a8dd080f5739f566bd82485822d
**Title:** ImageMath.eval() Allows Restricted Keys with Double Underscores and Built-in Names **Description:** When using `ImageMath.eval()`, providing environment keys that contain double underscores (`__`) or match Python's built-in names does not trigger the expected restrictions. This behavior can lead to unintend...
diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -62,10 +62,13 @@ Security ======== -TODO -^^^^ +Restricted environment keys for ImageMath.eval +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +:cve:`2023-50447`:...
diff --git a/Tests/test_imagemath.py b/Tests/test_imagemath.py --- a/Tests/test_imagemath.py +++ b/Tests/test_imagemath.py @@ -64,6 +64,16 @@ ImageMath.eval(expression) +def test_prevent_double_underscores(): + with pytest.raises(ValueError): + ImageMath.eval("1", {"__": None}) + + +def test_prev...
null
null
namanjain12/pillow_final:02c6183d41c68a8dd080f5739f566bd82485822d
true
null
2
14
null
1,368
0
0.75
1
0.6375
1
0.274667
80.74275
8,631
r2e_gym::train::5854
r2e_gym
train
5,854
tornado__90d9f17468613073006d762fc61382d029ad2ec6
tornado
tornadoweb/tornado
python
90d9f17468613073006d762fc61382d029ad2ec6
**Title:** AttributeError: Unrecognized option 'log_rotate_mode' when enabling timed log rotation **Description:** When configuring the logging system to use timed rotation by setting the `log_rotate_mode` option to `'time'`, an `AttributeError` is raised indicating that `'log_rotate_mode'` is an unrecognized option. ...
diff --git a/tornado/log.py b/tornado/log.py --- a/tornado/log.py +++ b/tornado/log.py @@ -190,16 +190,16 @@ logger = logging.getLogger() logger.setLevel(getattr(logging, options.logging.upper())) if options.log_file_prefix: - if options.rotating_mode == 'sized': + if options.log_rotate...
diff --git a/tornado/test/log_test.py b/tornado/test/log_test.py --- a/tornado/test/log_test.py +++ b/tornado/test/log_test.py @@ -165,25 +165,16 @@ tmpdir = tempfile.mkdtemp() try: self.options.log_file_prefix = tmpdir + '/test_log' - self.options.rotating_mode = 'timed' - ...
null
null
namanjain12/tornado_final:90d9f17468613073006d762fc61382d029ad2ec6
true
null
1
16
null
1,327
0
0.75
1
0.6375
1
0.2745
80.74225
8,632
r2e_gym::train::180
r2e_gym
train
180
orange3__20b9209e1f6a79c01b34223d47ba6b05838c8fce
orange3
biolab/orange3
python
20b9209e1f6a79c01b34223d47ba6b05838c8fce
**Title:** Missing Split Variable Values Not Displayed as Separate "N/A" Group in HeatMap Widget **Description:** When using the HeatMap widget with a split variable that contains missing values (`NaN`), the widget fails to display these instances as a separate "N/A" group. Instead, instances with undefined split vari...
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 @@ -200,8 +200,6 @@ class Warning(widget.OWWidget.Warning): empty_clusters = Msg("Empty clusters were removed") - miss...
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 @@ -229,10 +229,7 @@ self.send_signal(self.widget.Inputs.data, data, widget=w) ...
null
null
namanjain12/orange3_final:20b9209e1f6a79c01b34223d47ba6b05838c8fce
true
null
1
14
null
1,366
0
0.75
1
0.6375
1
0.274333
80.74175
8,633
r2e_gym::train::4749
r2e_gym
train
4,749
numpy__a1137318a00966e018c0dd048890e8efdde6f436
numpy
numpy/numpy
python
a1137318a00966e018c0dd048890e8efdde6f436
**Title:** `einsum` Raises ValueError Incorrectly with Singleton Dimensions **Description:** When using `numpy.einsum` with operands that include singleton dimensions (dimensions of size 1), a `ValueError` is raised even though broadcasting should allow the operation to proceed by expanding the singleton dimensions. ...
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -706,10 +706,13 @@ for cnum, char in enumerate(term): dim = sh[cnum] if char in dimension_dict.keys(): - if dimension_dict[char] != dim: - ...
diff --git a/numpy/core/tests/test_einsum.py b/numpy/core/tests/test_einsum.py --- a/numpy/core/tests/test_einsum.py +++ b/numpy/core/tests/test_einsum.py @@ -480,6 +480,25 @@ q = np.arange(4).reshape(2, 2) + 3 r = np.arange(4).reshape(2, 2) + 7 assert_equal(np.einsum('z,mz,zm->', p, q, r), 2...
null
null
namanjain12/numpy_final:a1137318a00966e018c0dd048890e8efdde6f436
true
null
1
26
null
1,126
0
0.75
1
0.6375
1
0.274333
80.74175
8,634
r2e_gym::train::5971
r2e_gym
train
5,971
tornado__e85e0b68ab28ccd8728a87e5791dc30732192ef3
tornado
tornadoweb/tornado
python
e85e0b68ab28ccd8728a87e5791dc30732192ef3
**Title:** `re_unescape` Does Not Raise `ValueError` for Invalid Escape Sequences **Description:** The `re_unescape` function is expected to raise a `ValueError` when it encounters invalid escape sequences. However, when provided with inputs like `'\\d'`, `'\\b'`, or `'\\Z'`, the function does not raise the necessary ...
diff --git a/tornado/util.py b/tornado/util.py --- a/tornado/util.py +++ b/tornado/util.py @@ -173,20 +173,22 @@ return None -_re_unescape_split_pattern = re.compile(r'(\\[^0])') -# re.escape('\x00') is a special case +_alphanum = frozenset( + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456...
diff --git a/tornado/test/util_test.py b/tornado/test/util_test.py --- a/tornado/test/util_test.py +++ b/tornado/test/util_test.py @@ -207,9 +207,16 @@ test_strings = ( '/favicon.ico', 'index.html', - '\x00\x01\\000', 'Hello, World!', '!$@#%;', ...
null
null
namanjain12/tornado_final:e85e0b68ab28ccd8728a87e5791dc30732192ef3
true
null
2
24
null
1,166
0
0.75
1
0.6375
1
0.274333
80.74175
8,635
swe_bench::test::68
swe_bench
test
68
astropy__astropy-14907
astropy/astropy
astropy/astropy
python
7f0df518e6bd5542b64bd7073052d099ea09dcb4
TST: test_table_group_by[True] and test_group_by_masked[True] failed with numpy 1.25rc1 I see this in the predeps job that pulls in numpy 1.25rc1. Example log: https://github.com/astropy/astropy/actions/runs/5117103756/jobs/9199883166 Hard to discern between the other 100+ failures from https://github.com/astropy/astr...
I cannot reproduce this locally. 🤯 The error log above looks like some lines moved about... but it does not make sense. Also, to run this in an interactive session: ```python import numpy as np from astropy import units as u from astropy.table import QTable T = QTable.read( [ " a b c...
diff --git a/astropy/table/index.py b/astropy/table/index.py --- a/astropy/table/index.py +++ b/astropy/table/index.py @@ -94,7 +94,7 @@ def __init__(self, columns, engine=None, unique=False): raise ValueError("Cannot create index without at least one column") elif len(columns) == 1: ...
diff --git a/astropy/table/tests/test_groups.py b/astropy/table/tests/test_groups.py --- a/astropy/table/tests/test_groups.py +++ b/astropy/table/tests/test_groups.py @@ -690,3 +690,23 @@ def test_group_mixins_unsupported(col): tg = t.group_by("a") with pytest.warns(AstropyUserWarning, match="Cannot aggregate...
["astropy/table/tests/test_groups.py::test_table_group_by[True]", "astropy/table/tests/test_groups.py::test_group_by_masked[True]", "astropy/table/tests/test_groups.py::test_group_stable_sort[True]"]
["astropy/table/tests/test_groups.py::test_column_group_by[False]", "astropy/table/tests/test_groups.py::test_column_group_by[True]", "astropy/table/tests/test_groups.py::test_table_group_by[False]", "astropy/table/tests/test_groups.py::test_groups_keys[False]", "astropy/table/tests/test_groups.py::test_groups_keys[Tru...
null
true
2023-06-03T10:29:17Z
2
29
3
9,757
0
0.8
1
0.5
1
0.596667
80.74
8,636
r2e_gym::train::451
r2e_gym
train
451
orange3__1d80036fd7b1d4091e8bdd814336e0dc26e81d57
orange3
biolab/orange3
python
1d80036fd7b1d4091e8bdd814336e0dc26e81d57
**Title:** impute.Model Fails with "variable not in domain" Error for Derived Domains **Description:** When using `impute.Model` on datasets with derived domains, the transformation into the appropriate variable space is not performed. This results in an error when the imputation process tries to access a variable tha...
diff --git a/Orange/preprocess/impute.py b/Orange/preprocess/impute.py --- a/Orange/preprocess/impute.py +++ b/Orange/preprocess/impute.py @@ -172,7 +172,7 @@ return FixedValueByType(*self.defaults.values()) -class ReplaceUnknownsModel(Reprable): +class ReplaceUnknownsModel(Transformation): """ R...
diff --git a/Orange/tests/test_impute.py b/Orange/tests/test_impute.py --- a/Orange/tests/test_impute.py +++ b/Orange/tests/test_impute.py @@ -9,7 +9,7 @@ from Orange import preprocess from Orange.preprocess import impute, SklImpute from Orange import data -from Orange.data import Unknown, Table +from Orange.data im...
null
null
namanjain12/orange3_final:1d80036fd7b1d4091e8bdd814336e0dc26e81d57
true
null
1
10
null
1,442
0
0.75
1
0.6375
1
0.273667
80.73975
8,637
r2e_gym::train::5707
r2e_gym
train
5,707
scrapy__0d58af86971ba54bfc1feffa88fc564ffba650f4
scrapy
scrapy/scrapy
python
0d58af86971ba54bfc1feffa88fc564ffba650f4
**Title:** RefererMiddleware Fails to Handle Multiple Referrer Policy Tokens **Description:** When specifying multiple referrer policy tokens in the settings, the `RefererMiddleware` fails to correctly parse and apply the intended policy. Instead of selecting the last valid policy from the comma-separated list, it rai...
diff --git a/scrapy/spidermiddlewares/referer.py b/scrapy/spidermiddlewares/referer.py --- a/scrapy/spidermiddlewares/referer.py +++ b/scrapy/spidermiddlewares/referer.py @@ -323,15 +323,17 @@ try: return cast(Type[ReferrerPolicy], load_object(policy)) except ValueError: - try: - re...
diff --git a/tests/test_spidermiddleware_referer.py b/tests/test_spidermiddleware_referer.py --- a/tests/test_spidermiddleware_referer.py +++ b/tests/test_spidermiddleware_referer.py @@ -884,6 +884,53 @@ with self.assertRaises(RuntimeError): RefererMiddleware(settings) + def test_multiple_pol...
null
null
namanjain12/scrapy_final:0d58af86971ba54bfc1feffa88fc564ffba650f4
true
null
1
20
null
1,237
0
0.75
1
0.6375
1
0.272833
80.73725
8,638
r2e_gym::train::5361
r2e_gym
train
5,361
aiohttp__7a796a652790c213a6363c741b0b2c5231fbcca0
aiohttp
aio-libs/aiohttp
python
7a796a652790c213a6363c741b0b2c5231fbcca0
**Title:** `UrlDispatcher` lacks `named_routes()` method, causing AttributeError **Description:** When attempting to access the `named_routes()` method on a `UrlDispatcher` instance, an `AttributeError` is raised because the method does not exist. This prevents developers from retrieving the mapping of named routes, w...
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py --- a/aiohttp/web_urldispatcher.py +++ b/aiohttp/web_urldispatcher.py @@ -10,6 +10,7 @@ from collections.abc import Sized, Iterable, Container from urllib.parse import urlencode, unquote +from types import MappingProxyType from . import hdr...
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py --- a/tests/test_urldispatch.py +++ b/tests/test_urldispatch.py @@ -1,7 +1,7 @@ import asyncio import os import unittest -from collections.abc import Sized, Container, Iterable +from collections.abc import Sized, Container, Iterable, Mapping, Mutable...
null
null
namanjain12/aiohttp_final:7a796a652790c213a6363c741b0b2c5231fbcca0
true
null
2
25
null
1,136
0
0.75
1
0.6375
1
0.272667
80.73675
8,639
r2e_gym::train::6374
r2e_gym
train
6,374
pillow__039b7ecd561b4e9755738bc4f169083ad4c4d83f
pillow
python-pillow/pillow
python
039b7ecd561b4e9755738bc4f169083ad4c4d83f
**[ISSUE]** **Title:** BMP RLE8 Decoder Raises IndexError on Unexpected End of File **Description:** When attempting to load BMP images with RLE8 encoding that terminate unexpectedly, the decoder encounters an `IndexError` instead of handling the situation gracefully. This occurs because the decoder tries to access a...
diff --git a/src/PIL/BmpImagePlugin.py b/src/PIL/BmpImagePlugin.py --- a/src/PIL/BmpImagePlugin.py +++ b/src/PIL/BmpImagePlugin.py @@ -283,8 +283,11 @@ data = bytearray() x = 0 while len(data) < self.state.xsize * self.state.ysize: - num_pixels = self.fd.read(1)[0] + pix...
diff --git a/Tests/test_file_bmp.py b/Tests/test_file_bmp.py --- a/Tests/test_file_bmp.py +++ b/Tests/test_file_bmp.py @@ -147,6 +147,25 @@ im.load() +@pytest.mark.parametrize( + "file_name,length", + ( + # EOF immediately after the header + ("Tests/images/hopper_rle8.bmp", 1078...
null
null
namanjain12/pillow_final:039b7ecd561b4e9755738bc4f169083ad4c4d83f
true
null
1
13
null
1,374
0
0.75
1
0.6375
1
0.272333
80.73575
8,640
r2e_gym::train::5523
r2e_gym
train
5,523
aiohttp__48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6
aiohttp
aio-libs/aiohttp
python
48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6
**Title:** Server Disconnects When Handler Returns Invalid Response Type **Description:** When a request handler returns an invalid type, such as a string or `None`, the server fails to handle it gracefully and disconnects unexpectedly instead of responding with an appropriate error. **Example Buggy Code:** ```python...
diff --git a/CHANGES/8845.bugfix.rst b/CHANGES/8845.bugfix.rst --- a/CHANGES/8845.bugfix.rst +++ b/CHANGES/8845.bugfix.rst @@ -0,0 +1 @@ +Changed behaviour when returning an invalid response to send a 500 response -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py --- a/aiohttp/...
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 @@ -103,12 +103,8 @@ server = await aiohttp_server(app, logger=logger) client = await aiohttp_client(server) - with pytest.raises(aiohttp.ServerDisconnectedError)...
null
null
namanjain12/aiohttp_final:48a5e07ad833bd1a8fcb2ce6f85a41ad0cef9dc6
true
null
2
37
null
892
0
0.75
1
0.6375
1
0.272
80.73475
8,641
swe_bench::test::1011
swe_bench
test
1,011
matplotlib__matplotlib-23203
matplotlib/matplotlib
matplotlib/matplotlib
python
028f07c869c4c0084c134a8b613aad4f5d111c7f
[Bug]: colorbar ignores keyword panchor=False ### Bug summary `colorbar` seems to ignore the keyword setting `panchor=False` ### Code for reproduction ```python import matplotlib print('mpl version:', matplotlib.__version__) import matplotlib.pyplot as plt import numpy as np fig = plt.figure(figsize=(5, 8)) ax = fi...
I think maybe this is the problem line: https://github.com/matplotlib/matplotlib/blob/08732854e815ccbc99f382d99609255929979515/lib/matplotlib/colorbar.py#L1620 and it should be handled the same as in `make_axes` https://github.com/matplotlib/matplotlib/blob/08732854e815ccbc99f382d99609255929979515/lib/matplotlib/c...
diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -1617,7 +1617,8 @@ def make_axes_gridspec(parent, *, location=None, orientation=None, aspect = 1 / aspect parent.set_subplotspec(ss_main) - parent.set_anchor(l...
diff --git a/lib/matplotlib/tests/test_colorbar.py b/lib/matplotlib/tests/test_colorbar.py --- a/lib/matplotlib/tests/test_colorbar.py +++ b/lib/matplotlib/tests/test_colorbar.py @@ -211,11 +211,23 @@ def test_colorbar_positioning(use_gridspec): def test_colorbar_single_ax_panchor_false(): - # Just smoketesting...
["lib/matplotlib/tests/test_colorbar.py::test_colorbar_single_ax_panchor_false"]
["lib/matplotlib/tests/test_colorbar.py::test_colorbar_extension_shape[png]", "lib/matplotlib/tests/test_colorbar.py::test_colorbar_extension_length[png]", "lib/matplotlib/tests/test_colorbar.py::test_colorbar_extension_inverted_axis[min-expected0-horizontal]", "lib/matplotlib/tests/test_colorbar.py::test_colorbar_exte...
null
true
2022-06-04T19:19:07Z
1
3
1
1,608
0
0.8
1
0.7
0.8
0.278
80.734
8,642
r2e_gym::train::4685
r2e_gym
train
4,685
numpy__d647ef2d98852e322d487d6045d5860223dcda79
numpy
numpy/numpy
python
d647ef2d98852e322d487d6045d5860223dcda79
**Title:** `np.einsum` Ignores 'order' Parameter When Optimization is Enabled **Description:** When using `np.einsum` with the `order` parameter set and optimization enabled, the output array does not maintain the specified memory order. This behavior leads to the output array not being contiguous in the expected layo...
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -1358,10 +1358,17 @@ raise TypeError("Did not understand the following kwargs: %s" % unknown_kwargs) - # Build the contraction list and operand ...
diff --git a/numpy/core/tests/test_einsum.py b/numpy/core/tests/test_einsum.py --- a/numpy/core/tests/test_einsum.py +++ b/numpy/core/tests/test_einsum.py @@ -93,6 +93,10 @@ a = np.ones((3, 3, 4, 5, 6)) b = np.ones((3, 4, 5)) np.einsum('aabcb,abc', a, b) + + ...
null
null
namanjain12/numpy_final:d647ef2d98852e322d487d6045d5860223dcda79
true
null
1
11
null
1,410
0
0.75
1
0.6375
1
0.271667
80.73375
8,643
r2e_gym::train::6010
r2e_gym
train
6,010
tornado__9bdc3176741114ffeb1048bded5d77d9e4337bbd
tornado
tornadoweb/tornado
python
9bdc3176741114ffeb1048bded5d77d9e4337bbd
**Title:** RedirectHandler Fails to Process Regex URL Patterns, Causing Server Error **Description:** When using `RedirectHandler` with regular expression URL patterns for dynamic redirects, the server responds with a 500 Internal Server Error instead of performing the expected 301 redirect. **Example Code:** ```py...
diff --git a/docs/guide/structure.rst b/docs/guide/structure.rst --- a/docs/guide/structure.rst +++ b/docs/guide/structure.rst @@ -278,7 +278,7 @@ app = tornado.web.Application([ url(r"/photos/(.*)", MyPhotoHandler), url(r"/pictures/(.*)", tornado.web.RedirectHandler, - dict(url=r"/pho...
diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -2866,3 +2866,20 @@ def test_reverse_arguments(self): self.assertEqual('/api/v1/foo/bar', url(r'^/api/v1/foo/(\w+)$', None).reverse('bar')) + + +class...
null
null
namanjain12/tornado_final:9bdc3176741114ffeb1048bded5d77d9e4337bbd
true
null
2
22
null
1,189
0
0.75
1
0.6375
1
0.2715
80.73325
8,644
r2e_gym::train::5994
r2e_gym
train
5,994
tornado__486abfb8a3b2e40fcfb87c5179252748913fcfca
tornado
tornadoweb/tornado
python
486abfb8a3b2e40fcfb87c5179252748913fcfca
**Title:** Timeouts Not Properly Canceled in Queue Operations Leading to TypeError **Description:** When using `Queue.get` or `Queue.put` with a timeout, if the operation completes before the timeout duration, the timeout is not correctly canceled. This results in a `TypeError` because the internal callbacks are impro...
diff --git a/tornado/queues.py b/tornado/queues.py --- a/tornado/queues.py +++ b/tornado/queues.py @@ -33,6 +33,16 @@ pass +def _set_timeout(future, timeout): + if timeout: + def on_timeout(): + future.set_exception(gen.TimeoutError()) + io_loop = ioloop.IOLoop.current() + ti...
diff --git a/tornado/test/queues_test.py b/tornado/test/queues_test.py --- a/tornado/test/queues_test.py +++ b/tornado/test/queues_test.py @@ -117,6 +117,14 @@ self.assertEqual(0, (yield get)) @gen_test + def test_get_timeout_preempted(self): + q = queues.Queue() + get = q.get(timeout=t...
null
null
namanjain12/tornado_final:486abfb8a3b2e40fcfb87c5179252748913fcfca
true
null
1
20
null
1,228
0
0.75
1
0.6375
1
0.271333
80.73275
8,645
r2e_gym::train::6237
r2e_gym
train
6,237
pillow__6bbed1add0fa7579fdc09d70d43ad3c1fcc41eee
pillow
python-pillow/pillow
python
6bbed1add0fa7579fdc09d70d43ad3c1fcc41eee
**Title:** Missing `has_transparency_data` Method Causes AttributeError **Description:** When attempting to determine if an image contains transparency data, calling the `has_transparency_data()` method on an `Image` object results in an `AttributeError`. This prevents developers from reliably checking for transparenc...
diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -195,6 +195,7 @@ .. automethod:: PIL.Image.Image.getpalette .. automethod:: PIL.Image.Image.getpixel .. automethod:: PIL.Image.Image.getprojection +.. automethod:: PIL.Image.Image.has_tra...
diff --git a/Tests/test_image.py b/Tests/test_image.py --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -906,6 +906,31 @@ im = Image.new("RGB", size) assert im.tobytes() == b"" + def test_has_transparency_data(self): + for mode in ("1", "L", "P", "RGB"): + im = Image.new(m...
null
null
namanjain12/pillow_final:6bbed1add0fa7579fdc09d70d43ad3c1fcc41eee
true
null
2
20
null
1,226
0
0.75
1
0.6375
1
0.271
80.73175
8,646
r2e_gym::train::4355
r2e_gym
train
4,355
numpy__8eac9a4bb5b497ca29ebb852f21169ecfd0191e1
numpy
numpy/numpy
python
8eac9a4bb5b497ca29ebb852f21169ecfd0191e1
**Issue Title:** `np.array_api.can_cast` Does Not Validate Input Types and Returns Incorrect Cast Results **Issue Description:** When using `np.array_api.can_cast()`, the function does not properly validate input types and returns incorrect results for certain type casts. **Example Code:** ```python from numpy impor...
diff --git a/numpy/array_api/_data_type_functions.py b/numpy/array_api/_data_type_functions.py --- a/numpy/array_api/_data_type_functions.py +++ b/numpy/array_api/_data_type_functions.py @@ -50,11 +50,17 @@ See its docstring for more information. """ - from ._array_object import Array - if isinstanc...
diff --git a/numpy/array_api/tests/test_data_type_functions.py b/numpy/array_api/tests/test_data_type_functions.py --- a/numpy/array_api/tests/test_data_type_functions.py +++ b/numpy/array_api/tests/test_data_type_functions.py @@ -0,0 +1,21 @@ +import pytest + +from numpy import array_api as xp + + +@pytest.mark.parame...
null
null
namanjain12/numpy_final:8eac9a4bb5b497ca29ebb852f21169ecfd0191e1
true
null
1
14
null
1,346
0
0.75
1
0.6375
1
0.271
80.73175
8,647
r2e_gym::train::4919
r2e_gym
train
4,919
datalad__ff5514274cdc072a4361b17bcb35438ff9f2bd67
datalad
datalad/datalad
python
ff5514274cdc072a4361b17bcb35438ff9f2bd67
**Title:** `crawl_init` Generates Incorrect File Paths Causing Assertion Errors **Description:** When initializing the crawl process using the `crawl_init` command, the generated file paths do not align with the expected directory structure. This discrepancy leads to assertion errors during validation, preventing the ...
diff --git a/datalad/crawler/pipelines/fcptable.py b/datalad/crawler/pipelines/fcptable.py --- a/datalad/crawler/pipelines/fcptable.py +++ b/datalad/crawler/pipelines/fcptable.py @@ -20,6 +20,14 @@ def superdataset_pipeline(url=TOPURL): + """ + Parameters + ---------- + url: str + URL point to al...
diff --git a/datalad/interface/tests/test_crawl_init.py b/datalad/interface/tests/test_crawl_init.py --- a/datalad/interface/tests/test_crawl_init.py +++ b/datalad/interface/tests/test_crawl_init.py @@ -68,3 +68,4 @@ def test_crawl_init_error_patch(): yield _test_crawl_init_error_patch, [], ValueError, "returned ...
null
null
namanjain12/datalad_final:ff5514274cdc072a4361b17bcb35438ff9f2bd67
true
null
3
31
null
1,001
0
0.75
1
0.6375
1
0.270167
80.72925
8,648
r2e_gym::train::4070
r2e_gym
train
4,070
coveragepy__80bfea74c10dec30a0fa64e1379b80c897b060a9
coveragepy
nedbat/coveragepy
python
80bfea74c10dec30a0fa64e1379b80c897b060a9
**Title:** AttributeError Occurs When `tomli` Is Disabled in `tomlconfig` **Description:** After updating to support TOML v1.0.0 by switching from `toml` to `tomli`, disabling the `tomli` module causes an `AttributeError`. When attempting to access `coverage.tomlconfig.tomli` without `tomli` installed, the application...
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -12,9 +12,9 @@ # TOML support is an install-time extra option. try: - import toml + import tomli except ImportError: # pragma: not covered - toml = None + tomli = None ...
diff --git a/tests/helpers.py b/tests/helpers.py --- a/tests/helpers.py +++ b/tests/helpers.py @@ -242,7 +242,7 @@ Use this in a test function to make an optional module unavailable during the test:: - with without_module(product.something, 'toml'): + with without_module(product.something, 'to...
null
null
namanjain12/coveragepy_final:80bfea74c10dec30a0fa64e1379b80c897b060a9
true
null
2
14
null
1,339
0
0.75
1
0.6375
1
0.269833
80.72825
8,649
r2e_gym::train::245
r2e_gym
train
245
orange3__cdcf39d70b5c4316301a392b42b1cf8371cd89f9
orange3
biolab/orange3
python
cdcf39d70b5c4316301a392b42b1cf8371cd89f9
**Title:** Duplicate Meta Names in PCA Output Domain Cause Test Failures **Description:** When performing PCA with input data containing attributes that have duplicate names, the output domain's meta variables also end up with duplicate names. This leads to confusion and causes related tests to fail. **Example Buggy ...
diff --git a/Orange/widgets/unsupervised/owpca.py b/Orange/widgets/unsupervised/owpca.py --- a/Orange/widgets/unsupervised/owpca.py +++ b/Orange/widgets/unsupervised/owpca.py @@ -5,6 +5,7 @@ from AnyQt.QtCore import Qt from Orange.data import Table, Domain, StringVariable, ContinuousVariable +from Orange.data.util ...
diff --git a/Orange/widgets/unsupervised/tests/test_owpca.py b/Orange/widgets/unsupervised/tests/test_owpca.py --- a/Orange/widgets/unsupervised/tests/test_owpca.py +++ b/Orange/widgets/unsupervised/tests/test_owpca.py @@ -9,7 +9,7 @@ from Orange.preprocess import preprocess from Orange.preprocess.preprocess import N...
null
null
namanjain12/orange3_final:cdcf39d70b5c4316301a392b42b1cf8371cd89f9
true
null
1
9
null
1,436
0
0.75
1
0.6375
1
0.269333
80.72675
8,650
r2e_gym::train::6608
r2e_gym
train
6,608
pillow__2dab52b8a8cc4e139a29ca78762079e573d32c31
pillow
python-pillow/pillow
python
2dab52b8a8cc4e139a29ca78762079e573d32c31
**Title:** TypeError Raised When Handling Warnings with `None` as the Category **Description:** When attempting to handle warnings without specifying a warning category, a `TypeError` is unexpectedly raised. This issue occurs when using a context manager to catch warnings and passing `None` as the expected warning typ...
diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -1487,7 +1487,9 @@ ifd = ImageFileDirectory_v2(prefix=prefix) - compression = im.encoderinfo.get("compression", im.info.get("compression")) + encoderinfo = im.encoderi...
diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -446,6 +446,14 @@ im.seek(1) assert im.getexif()[273] == (1408, 1907) + + def test_photometric(self, tmp_path): + filename = str(tmp_path / "temp.tif") + ...
null
null
namanjain12/pillow_final:2dab52b8a8cc4e139a29ca78762079e573d32c31
true
null
1
34
null
936
0
0.75
1
0.6375
1
0.269333
80.72675
8,651
r2e_gym::train::289
r2e_gym
train
289
orange3__ee88eeb6fccb8578b8ef8ca0204df810b70bacaa
orange3
biolab/orange3
python
ee88eeb6fccb8578b8ef8ca0204df810b70bacaa
**Title:** `ExcelReader.write_file` Method Raises Unexpected Keyword Argument Error **Description:** When attempting to write data to an Excel file with type annotations using the `ExcelReader.write_file` method, a `TypeError` is raised because the method does not accept the `with_annotations` keyword argument. **Exa...
diff --git a/Orange/data/io.py b/Orange/data/io.py --- a/Orange/data/io.py +++ b/Orange/data/io.py @@ -277,6 +277,7 @@ EXTENSIONS = ('.xlsx',) DESCRIPTION = 'Microsoft Excel spreadsheet' ERRORS = ("#VALUE!", "#DIV/0!", "#REF!", "#NUM!", "#NULL!", "#NAME?") + OPTIONAL_TYPE_ANNOTATIONS = True def...
diff --git a/Orange/tests/test_xlsx_reader.py b/Orange/tests/test_xlsx_reader.py --- a/Orange/tests/test_xlsx_reader.py +++ b/Orange/tests/test_xlsx_reader.py @@ -4,6 +4,7 @@ import unittest import os from functools import wraps +from tempfile import mkstemp from typing import Callable import numpy as np @@ -45,...
null
null
namanjain12/orange3_final:ee88eeb6fccb8578b8ef8ca0204df810b70bacaa
true
null
2
27
null
1,075
0
0.75
1
0.6375
1
0.269167
80.72625
8,652
r2e_gym::train::5186
r2e_gym
train
5,186
pyramid__1e1111ba774c4cb12b075338e921283047bd3600
pyramid
pylons/pyramid
python
1e1111ba774c4cb12b075338e921283047bd3600
**Title:** ManifestCacheBuster Fails to Resolve Asset Specs, Raising FileNotFoundError **Description:** When initializing `ManifestCacheBuster` with an asset specification for the `manifest_spec`, it fails to locate the manifest file, resulting in a `FileNotFoundError`. This prevents the application from correctly map...
diff --git a/pyramid/static.py b/pyramid/static.py --- a/pyramid/static.py +++ b/pyramid/static.py @@ -19,7 +19,10 @@ from repoze.lru import lru_cache -from pyramid.asset import resolve_asset_spec +from pyramid.asset import ( + abspath_from_asset_spec, + resolve_asset_spec, +) from pyramid.compat import t...
diff --git a/pyramid/tests/test_static.py b/pyramid/tests/test_static.py --- a/pyramid/tests/test_static.py +++ b/pyramid/tests/test_static.py @@ -423,6 +423,20 @@ fut('foo', ('css', 'main.css'), {}), (['css', 'main-test.css'], {})) + def test_it_with_relspec(self): + fut = self._m...
null
null
namanjain12/pyramid_final:1e1111ba774c4cb12b075338e921283047bd3600
true
null
1
20
null
1,214
0
0.75
1
0.6375
1
0.269
80.72575
8,653
r2e_gym::train::6323
r2e_gym
train
6,323
pillow__60cb3f7550b11d5e304fd2db4aa1cf85dc317889
pillow
python-pillow/pillow
python
60cb3f7550b11d5e304fd2db4aa1cf85dc317889
**Title:** `Image.open` Raises AttributeError When Using pathlib.Path Objects **Description:** When trying to open an image using a `pathlib.Path` object, an `AttributeError` is raised because the `Path` object does not have a `read` method. This prevents users from seamlessly integrating `pathlib` with the PIL librar...
diff --git a/PIL/Image.py b/PIL/Image.py --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1640,7 +1640,7 @@ implement the ``seek``, ``tell``, and ``write`` methods, and be opened in binary mode. - :param fp: File name or file object. + :param fp: A filename (string), pathlib.Path object or fi...
diff --git a/Tests/test_image.py b/Tests/test_image.py --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -1,6 +1,7 @@ from helper import unittest, PillowTestCase, hopper from PIL import Image +import sys class TestImage(PillowTestCase): @@ -48,6 +49,14 @@ im = io.BytesIO(b'') self.as...
null
null
namanjain12/pillow_final:60cb3f7550b11d5e304fd2db4aa1cf85dc317889
true
null
1
34
null
933
0
0.75
1
0.6375
1
0.268833
80.72525
8,654
r2e_gym::train::6253
r2e_gym
train
6,253
pillow__304cf484aaba5285cfdf854c31cfe51505de3f9a
pillow
python-pillow/pillow
python
304cf484aaba5285cfdf854c31cfe51505de3f9a
**Title:** `exif_transpose` Raises KeyError When "XML:com.adobe.xmp" Exists Without "xmp" **Description:** When processing an image that contains the `"XML:com.adobe.xmp"` metadata but lacks the `"xmp"` key, the `exif_transpose` function raises a `KeyError`. This occurs because the function assumes that the presence o...
diff --git a/src/PIL/ImageOps.py b/src/PIL/ImageOps.py --- a/src/PIL/ImageOps.py +++ b/src/PIL/ImageOps.py @@ -709,17 +709,18 @@ exif_image.info["exif"] = exif.tobytes() elif "Raw profile type exif" in exif_image.info: exif_image.info["Raw profile type exif"] = exif.tobyte...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -432,6 +432,16 @@ assert 0x0112 not in transposed_im.getexif() +def test_exif_transpose_xml_without_xmp() -> None: + with Image.open("Tests/images/xmp_tags_orientation.png") as im: + ...
null
null
namanjain12/pillow_final:304cf484aaba5285cfdf854c31cfe51505de3f9a
true
null
1
23
null
1,151
0
0.75
1
0.6375
1
0.2685
80.72425
8,655
r2e_gym::train::5040
r2e_gym
train
5,040
datalad__39ec801d73d7cf84908d9fb4087c58c6f5735b0a
datalad
datalad/datalad
python
39ec801d73d7cf84908d9fb4087c58c6f5735b0a
**Title:** Metadata Arguments Refactoring Causes Processing Failures **Description:** After refactoring the `clean_meta_args` function to return a dictionary instead of a generator of "field=value" strings, some parts of the code that handle metadata are no longer functioning correctly. Functions that iterate over `me...
diff --git a/datalad/plugin/addurls.py b/datalad/plugin/addurls.py --- a/datalad/plugin/addurls.py +++ b/datalad/plugin/addurls.py @@ -109,7 +109,7 @@ def clean_meta_args(args): - """Prepare formatted metadata arguments to be passed to git-annex. + """Process metadata arguments. Parameters ------...
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 @@ -101,17 +101,17 @@ def test_clean_meta_args(): - for args, expect in [(["field="], []), - ([" field=yes "], ["...
null
null
namanjain12/datalad_final:39ec801d73d7cf84908d9fb4087c58c6f5735b0a
true
null
1
24
null
1,130
0
0.75
1
0.6375
1
0.268333
80.72375
8,656
r2e_gym::train::5376
r2e_gym
train
5,376
aiohttp__944e0f69daf956402595ae8462d4ac80f88b66b5
aiohttp
aio-libs/aiohttp
python
944e0f69daf956402595ae8462d4ac80f88b66b5
**Title:** Passing `origin` Parameter to `ws_connect` Raises TypeError **Description:** When attempting to establish a WebSocket connection with an `Origin` header, passing the `origin` argument to `ws_connect` results in a `TypeError`. This prevents setting the `Origin` header as intended. **Example Code:** ```pytho...
diff --git a/aiohttp/client.py b/aiohttp/client.py --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -228,7 +228,8 @@ timeout=10.0, autoclose=True, autoping=True, - auth=None): + auth=None, + origin=None):...
diff --git a/tests/test_websocket_client.py b/tests/test_websocket_client.py --- a/tests/test_websocket_client.py +++ b/tests/test_websocket_client.py @@ -46,6 +46,27 @@ self.assertIsInstance(res, websocket_client.ClientWebSocketResponse) self.assertEqual(res.protocol, 'chat') + self.assertNo...
null
null
namanjain12/aiohttp_final:944e0f69daf956402595ae8462d4ac80f88b66b5
true
null
3
35
null
906
0
0.75
1
0.6375
1
0.267667
80.72175
8,657
r2e_gym::train::5600
r2e_gym
train
5,600
scrapy__6d6da78eda3cc0bba1bfdf70194fdf655fac8aeb
scrapy
scrapy/scrapy
python
6d6da78eda3cc0bba1bfdf70194fdf655fac8aeb
**Title:** `request_fingerprint` raises KeyError when handling URL fragments **Description:** When calculating the fingerprint of a request that includes URL fragments, the `request_fingerprint` function fails to retrieve the fingerprint from the cache, resulting in a `KeyError`. **Example Code:** ```python from scra...
diff --git a/scrapy/utils/request.py b/scrapy/utils/request.py --- a/scrapy/utils/request.py +++ b/scrapy/utils/request.py @@ -16,7 +16,7 @@ _fingerprint_cache = weakref.WeakKeyDictionary() -def request_fingerprint(request, include_headers=None): +def request_fingerprint(request, include_headers=None, keep_fragmen...
diff --git a/tests/test_utils_request.py b/tests/test_utils_request.py --- a/tests/test_utils_request.py +++ b/tests/test_utils_request.py @@ -17,7 +17,7 @@ self.assertNotEqual(request_fingerprint(r1), request_fingerprint(r2)) # make sure caching is working - self.assertEqual(request_fingerpr...
null
null
namanjain12/scrapy_final:6d6da78eda3cc0bba1bfdf70194fdf655fac8aeb
true
null
1
16
null
1,284
0
0.75
1
0.6375
1
0.267333
80.72075
8,658
swe_bench::test::968
swe_bench
test
968
matplotlib__matplotlib-20693
matplotlib/matplotlib
matplotlib/matplotlib
python
54b105b27dea498e702cfddfb27b7f82abe65e56
BUG: Lost functionality of interactive selector update In MNE we allow users to update the selector colors, and have: ``` selector.rect.set_color(color) selector.rectprops.update(dict(facecolor=color)) ``` This now emits a deprecation warning from #20113, but it doesn't indicate how code should be migra...
@ericpre @timhoffm any suggestions here? Thanks! I would lean toward having something along the line of `selector.set_props` and `selector.set_handle_props` for all selectors. Should it be done as part as part of #20585, where there is a discussion about renaming corresponding parameters? Well, since that's merged, i...
diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1800,7 +1800,6 @@ def __init__(self, ax, onselect, useblit=False, button=None, self.state_modifier_keys.update(state_modifier_keys or {}) self.background = None - ...
diff --git a/lib/matplotlib/tests/test_widgets.py b/lib/matplotlib/tests/test_widgets.py --- a/lib/matplotlib/tests/test_widgets.py +++ b/lib/matplotlib/tests/test_widgets.py @@ -90,6 +90,34 @@ def onselect(epress, erelease): assert tool.center == (180, 190) +def test_rectangle_selector_set_props_handle_props(...
["lib/matplotlib/tests/test_widgets.py::test_rectangle_selector_set_props_handle_props", "lib/matplotlib/tests/test_widgets.py::test_rectangle_handles", "lib/matplotlib/tests/test_widgets.py::test_span_selector_set_props_handle_props", "lib/matplotlib/tests/test_widgets.py::test_polygon_selector_set_props_handle_props"...
["lib/matplotlib/tests/test_widgets.py::test_rectangle_drag[True-new_center0]", "lib/matplotlib/tests/test_widgets.py::test_rectangle_drag[False-new_center1]", "lib/matplotlib/tests/test_widgets.py::test_ellipse", "lib/matplotlib/tests/test_widgets.py::test_rectangle_selector_onselect[True]", "lib/matplotlib/tests/test...
null
true
2021-07-20T14:10:36Z
1
295
4
1,016
0
0.8
1
0.7
0.75
0.669333
80.7205
8,659
r2e_gym::train::6090
r2e_gym
train
6,090
pillow__ddcc9366434edfedd25871b05a889942a0540bb6
pillow
python-pillow/pillow
python
ddcc9366434edfedd25871b05a889942a0540bb6
**[ISSUE]** **Title:** TypeError When Saving PNG with Reduced Palette Entries **Description:** When attempting to save a PNG image with fewer palette entries than the maximum bit depth allows, a `TypeError` is raised during the loading and verification process. **Example Code:** ```python from PIL import Image def ...
diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -1186,23 +1186,21 @@ # attempt to minimize storage requirements for palette images if "bits" in im.encoderinfo: # number of bits specified by user - ...
diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -634,6 +634,16 @@ with Image.open(out) as reloaded: assert len(reloaded.png.im_palette[1]) == 48 + def test_plte_length(self, tmp_path): + im = Image.new("P", (1, 1...
null
null
namanjain12/pillow_final:ddcc9366434edfedd25871b05a889942a0540bb6
true
null
1
26
null
1,081
0
0.75
1
0.6375
1
0.266833
80.71925
8,660
r2e_gym::train::5836
r2e_gym
train
5,836
tornado__7bb053594672b47ce4dea259aa29ea12e4d05918
tornado
tornadoweb/tornado
python
7bb053594672b47ce4dea259aa29ea12e4d05918
**Title:** `logging.basicConfig` is called despite existing logger configurations **Description:** When initializing the IOLoop, `logging.basicConfig` is invoked even if specific loggers already have handlers configured. This leads to redundant logging configurations and potential duplicate log entries. **Buggy Code ...
diff --git a/tornado/ioloop.py b/tornado/ioloop.py --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -549,16 +549,23 @@ signal.signal(signal.SIGALRM, action if action is not None else signal.SIG_DFL) + def _setup_logging(self): + """The IOLoop catches and logs except...
diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py --- a/tornado/test/ioloop_test.py +++ b/tornado/test/ioloop_test.py @@ -5,6 +5,7 @@ import contextlib import datetime import functools +import logging import socket import sys import threading @@ -20,6 +21,14 @@ from concurrent import fut...
null
null
namanjain12/tornado_final:7bb053594672b47ce4dea259aa29ea12e4d05918
true
null
1
25
null
1,101
0
0.75
1
0.6375
1
0.266833
80.71925
8,661
r2e_gym::train::4765
r2e_gym
train
4,765
numpy__03e772afe1cb0ee8fe6b60cda6265d8f8697def1
numpy
numpy/numpy
python
03e772afe1cb0ee8fe6b60cda6265d8f8697def1
**Title:** `numpy.corrcoef` Generates Correlation Coefficients Outside the Range [-1, 1] **Description:** When calculating the correlation coefficient matrix for certain input arrays, `numpy.corrcoef` occasionally returns values that fall outside the valid range of [-1, 1]. This behavior causes assertions in tests tha...
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2461,11 +2461,17 @@ # Handles complex arrays too m = np.asarray(m) + if m.ndim > 2: + raise ValueError("m has more than 2 dimensions") + if y is None: ...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1733,8 +1733,13 @@ [[1., -1.], [-1., 1.]]) def test_simple(self): - assert_almost_equal(corrc...
null
null
namanjain12/numpy_final:03e772afe1cb0ee8fe6b60cda6265d8f8697def1
true
null
1
30
null
1,000
0
0.75
1
0.6375
1
0.266667
80.71875
8,662
r2e_gym::train::4298
r2e_gym
train
4,298
numpy__d2d589703d5ee743251fbc6ea045f28e1c5e9e71
numpy
numpy/numpy
python
d2d589703d5ee743251fbc6ea045f28e1c5e9e71
### MaskedArray.mask Returns a View Causing AttributeError in Basic Operations **Description** After updating `MaskedArray.mask` to return a view instead of the underlying mask, certain basic operations on masked arrays result in an `AttributeError`. This change affects how attributes of the mask can be accessed or mo...
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst --- a/doc/release/1.17.0-notes.rst +++ b/doc/release/1.17.0-notes.rst @@ -65,6 +65,16 @@ >>> np.zeros(10)//1 array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) + +``MaskedArray.mask`` now returns a view of the mask, not the mask itself +---...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -948,7 +948,7 @@ assert_equal(type(out), type(x)) # And make sure that the output and input don't have aliased mask ...
null
null
namanjain12/numpy_final:d2d589703d5ee743251fbc6ea045f28e1c5e9e71
true
null
2
14
null
1,318
0
0.75
1
0.6375
1
0.266333
80.71775
8,663
r2e_gym::train::5053
r2e_gym
train
5,053
datalad__a08c7915c33980f3bf3f796f9315490dc67425c5
datalad
datalad/datalad
python
a08c7915c33980f3bf3f796f9315490dc67425c5
**Title:** Using `assert_logged` with `regex=False` Raises TypeError **Description:** When attempting to verify logged messages without using regular expressions, passing `regex=False` to the `assert_logged` method results in a `TypeError`. This prevents developers from asserting log messages using exact string matche...
diff --git a/datalad/utils.py b/datalad/utils.py --- a/datalad/utils.py +++ b/datalad/utils.py @@ -682,7 +682,7 @@ if not file_: rmtemp(out_name) - def assert_logged(self, msg=None, level=None, **kwargs): + def assert_logged(self, msg=None, level=None, regex=True, **kwargs)...
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 @@ -129,6 +129,13 @@ cm.assert_logged("something") cm.assert_logged(level="INFO") cm.assert_logged("something", level="INFO") + + # even with regex...
null
null
namanjain12/datalad_final:a08c7915c33980f3bf3f796f9315490dc67425c5
true
null
1
24
null
1,118
0
0.75
1
0.6375
1
0.266333
80.71775
8,664
r2e_gym::train::4703
r2e_gym
train
4,703
numpy__7a9e3d9535ac4cdd7b815d23416f36c3f979fc99
numpy
numpy/numpy
python
7a9e3d9535ac4cdd7b815d23416f36c3f979fc99
**Title:** `genfromtxt()` Raises TypeError When Using `max_rows` Parameter **Description:** When attempting to limit the number of rows read from a text file using the `max_rows` parameter in `numpy.genfromtxt()`, a `TypeError` is raised indicating that `max_rows` is an unexpected keyword argument. **Example Code:** ...
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1205,7 +1205,7 @@ excludelist=None, deletechars=None, replace_space='_', autostrip=False, case_sensitive=True, defaultfmt="f%i", unpack=None, usemask=False, loose=Tr...
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1641,29 +1641,57 @@ self.assertTrue(isinstance(test, np.recarray)) assert_equal(test, control) - def test_nrows(self): - # + def test_max_rows(self)...
null
null
namanjain12/numpy_final:7a9e3d9535ac4cdd7b815d23416f36c3f979fc99
true
null
1
35
null
898
0
0.75
1
0.6375
1
0.266333
80.71775
8,665
r2e_gym::train::4991
r2e_gym
train
4,991
datalad__0762df07a4cc2710fcd7a87d8b94a754079e9abc
datalad
datalad/datalad
python
0762df07a4cc2710fcd7a87d8b94a754079e9abc
**Title:** Environment Variable `DATALAD_CONFIG_OVERRIDES_JSON` Fails to Apply Configuration Overrides **Description:** When attempting to override configuration options using the `DATALAD_CONFIG_OVERRIDES_JSON` environment variable, certain keys are not being applied correctly. This results in missing configuration e...
diff --git a/datalad/config.py b/datalad/config.py --- a/datalad/config.py +++ b/datalad/config.py @@ -11,6 +11,7 @@ from collections import namedtuple +import json import threading from fasteners import InterProcessLock from functools import lru_cache @@ -184,11 +185,19 @@ def _update_from_env(store): + ...
diff --git a/datalad/interface/tests/test_run_procedure.py b/datalad/interface/tests/test_run_procedure.py --- a/datalad/interface/tests/test_run_procedure.py +++ b/datalad/interface/tests/test_run_procedure.py @@ -14,6 +14,7 @@ import os.path as op import sys +from unittest.mock import patch from datalad.cmd im...
null
null
namanjain12/datalad_final:0762df07a4cc2710fcd7a87d8b94a754079e9abc
true
null
2
21
null
1,177
0
0.75
1
0.6375
1
0.266167
80.71725
8,666
r2e_gym::train::5590
r2e_gym
train
5,590
scrapy__e57a629efc0846ed396247baf22d7846689b82e4
scrapy
scrapy/scrapy
python
e57a629efc0846ed396247baf22d7846689b82e4
**[ISSUE]** **Title:** AttributeError Raised When Encoding Already Byte Credentials During Login **Description:** When attempting to log in using the Telnet console with byte-encoded username and password, an `AttributeError` is raised because the code tries to encode an object that's already in bytes. **Example Cod...
diff --git a/scrapy/extensions/telnet.py b/scrapy/extensions/telnet.py --- a/scrapy/extensions/telnet.py +++ b/scrapy/extensions/telnet.py @@ -53,20 +53,14 @@ self.portrange = [int(x) for x in crawler.settings.getlist('TELNETCONSOLE_PORT')] self.host = crawler.settings['TELNETCONSOLE_HOST'] - ...
diff --git a/tests/test_extension_telnet.py b/tests/test_extension_telnet.py --- a/tests/test_extension_telnet.py +++ b/tests/test_extension_telnet.py @@ -41,7 +41,10 @@ @defer.inlineCallbacks def test_good_credentials(self): console, portal = self._get_console_and_portal() - creds = credentia...
null
null
namanjain12/scrapy_final:e57a629efc0846ed396247baf22d7846689b82e4
true
null
2
24
null
1,114
0
0.75
1
0.6375
1
0.265667
80.71575
8,667
r2e_gym::train::5674
r2e_gym
train
5,674
scrapy__5d91ea12d642503da95df43cf033eeeda3db1553
scrapy
scrapy/scrapy
python
5d91ea12d642503da95df43cf033eeeda3db1553
**Title:** JsonItemExporter Appends Stray Comma When Encoding an Item Fails, Resulting in Invalid JSON **Description:** When using `JsonItemExporter` to export multiple items, if the encoder fails on one of the items, a stray comma is still appended to the output. This results in malformed JSON with a double comma, ca...
diff --git a/scrapy/exporters.py b/scrapy/exporters.py --- a/scrapy/exporters.py +++ b/scrapy/exporters.py @@ -133,23 +133,26 @@ if self.indent is not None: self.file.write(b"\n") - def start_exporting(self): - self.file.write(b"[") - self._beautify_newline() - - def finish_e...
diff --git a/tests/test_exporters.py b/tests/test_exporters.py --- a/tests/test_exporters.py +++ b/tests/test_exporters.py @@ -599,6 +599,20 @@ def test_two_dict_items(self): self.assertTwoItemsExported(ItemAdapter(self.i).asdict()) + def test_two_items_with_failure_between(self): + i1 = TestI...
null
null
namanjain12/scrapy_final:5d91ea12d642503da95df43cf033eeeda3db1553
true
null
1
25
null
1,090
0
0.75
1
0.6375
1
0.265
80.71375
8,668
r2e_gym::train::5462
r2e_gym
train
5,462
aiohttp__54b36e037856a72c6bfd451b75cdbababafbc07f
aiohttp
aio-libs/aiohttp
python
54b36e037856a72c6bfd451b75cdbababafbc07f
**Title: Instantiating HTTPMethodNotAllowed Missing Required Arguments Causes TypeError** **Description:** When handling an HTTP request with an unsupported method, the URL dispatcher attempts to raise an `HTTPMethodNotAllowed` exception. However, it currently instantiates `HTTPMethodNotAllowed` without providing the...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -720,7 +720,7 @@ def __init__(self, request, method, allowed_methods, *, headers=None, reason=None): - allow = ','.join(allowed_methods) + allow = ','.join(sorted(allowed_methods)) s...
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py --- a/tests/test_urldispatch.py +++ b/tests/test_urldispatch.py @@ -1,7 +1,8 @@ import asyncio import unittest from unittest import mock -from aiohttp.web import UrlDispatcher, Request, Response +from aiohttp.web import (UrlDispatcher, Request, Respo...
null
null
namanjain12/aiohttp_final:54b36e037856a72c6bfd451b75cdbababafbc07f
true
null
1
7
null
1,448
0
0.75
1
0.6375
1
0.264667
80.71275
8,669
swe_bench::test::1601
swe_bench
test
1,601
scikit-learn__scikit-learn-13467
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
a83c8311dfdbf74dea584d45c6f254bc8171054d
Implement RMSE (root-mean-square error) metric and scorer RMSE seems to be a popular metric but now one has to calculate it through ``np.sqrt(mean_squared_error(XXX, XXX))``. Maybe we can add ``squared`` option to ``mean_squared_error`` and add a scorer ``neg_root_mean_squared_error``. Wiki page: https://en.wikipedia.o...
As the square root is a monotonic function on the positive domain, taking the square root would have no effect on any model selection. Could you please mention a use-case when it taking the root has some real advantage? > As the square root is a monotonic function on the positive domain, taking the square root would ha...
diff --git a/sklearn/metrics/regression.py b/sklearn/metrics/regression.py --- a/sklearn/metrics/regression.py +++ b/sklearn/metrics/regression.py @@ -191,7 +191,7 @@ def mean_absolute_error(y_true, y_pred, def mean_squared_error(y_true, y_pred, sample_weight=None, - mul...
diff --git a/sklearn/metrics/tests/test_regression.py b/sklearn/metrics/tests/test_regression.py --- a/sklearn/metrics/tests/test_regression.py +++ b/sklearn/metrics/tests/test_regression.py @@ -64,6 +64,9 @@ def test_multioutput_regression(): error = mean_squared_error(y_true, y_pred) assert_almost_equal(err...
["sklearn/metrics/tests/test_regression.py::test_multioutput_regression", "sklearn/metrics/tests/test_regression.py::test_regression_metrics_at_limits", "sklearn/metrics/tests/test_regression.py::test_regression_custom_weights", "sklearn/metrics/tests/test_score_objects.py::test_scorer_memmap_input[neg_root_mean_square...
["sklearn/metrics/tests/test_regression.py::test_regression_metrics", "sklearn/metrics/tests/test_regression.py::test__check_reg_targets", "sklearn/metrics/tests/test_regression.py::test__check_reg_targets_exception", "sklearn/metrics/tests/test_regression.py::test_regression_multioutput_array", "sklearn/metrics/tests/...
null
true
2019-03-18T15:20:08Z
2
16
4
354
0
0.8
1
0.55
1
0.112333
80.712
8,670
r2e_gym::train::4238
r2e_gym
train
4,238
numpy__6cada27f1744d004a6d8ca7731c9a6d5dfed9b3a
numpy
numpy/numpy
python
6cada27f1744d004a6d8ca7731c9a6d5dfed9b3a
**Title:** np.unique Does Not Support `equal_nans` Keyword Argument **Description:** When attempting to use the `equal_nans` keyword argument with `np.unique`, a `TypeError` is raised because the function does not recognize the argument. This prevents users from specifying whether NaN values should be treated as equal...
diff --git a/doc/release/upcoming_changes/21623.new_feature.rst b/doc/release/upcoming_changes/21623.new_feature.rst --- a/doc/release/upcoming_changes/21623.new_feature.rst +++ b/doc/release/upcoming_changes/21623.new_feature.rst @@ -0,0 +1,6 @@ +New parameter ``equal_nans`` added to `np.unique` +---------------------...
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py --- a/numpy/lib/tests/test_arraysetops.py +++ b/numpy/lib/tests/test_arraysetops.py @@ -765,3 +765,11 @@ assert_array_equal(uniq[:, inv], data) msg = "Unique's return_counts=True failed with axis=1" assert_...
null
null
namanjain12/numpy_final:6cada27f1744d004a6d8ca7731c9a6d5dfed9b3a
true
null
2
26
null
1,065
0
0.75
1
0.6375
1
0.264167
80.71125
8,671
r2e_gym::train::4996
r2e_gym
train
4,996
datalad__1736edc91bdc8ae9208723002652e2909abe27b6
datalad
datalad/datalad
python
1736edc91bdc8ae9208723002652e2909abe27b6
**Title:** Incorrect Handling of 'ria+<protocol>://' Clone Source Specifications **Description:** When using clone source specifications with the 'ria+<protocol>://' scheme, the decoding function does not correctly parse the URI, resulting in improper type assignment and git URL formation. **Example Buggy Code:** ```...
diff --git a/datalad/core/distributed/clone.py b/datalad/core/distributed/clone.py --- a/datalad/core/distributed/clone.py +++ b/datalad/core/distributed/clone.py @@ -671,6 +671,20 @@ # we have got our DataLadRI as the source, so expand it props['type'] = 'dataladri' props['giturl'] = source_...
diff --git a/datalad/core/distributed/tests/test_clone.py b/datalad/core/distributed/tests/test_clone.py --- a/datalad/core/distributed/tests/test_clone.py +++ b/datalad/core/distributed/tests/test_clone.py @@ -524,3 +524,29 @@ 'git://github.com/datalad/testrepo--basic--r1', ): eq_(decode_sou...
null
null
namanjain12/datalad_final:1736edc91bdc8ae9208723002652e2909abe27b6
true
null
1
14
null
1,305
0
0.75
1
0.6375
1
0.264167
80.71125
8,672
r2e_gym::train::4990
r2e_gym
train
4,990
datalad__5b010c507946dc74381091fb7bd97d0a6d0b1722
datalad
datalad/datalad
python
5b010c507946dc74381091fb7bd97d0a6d0b1722
**Title:** SSHManager.close Method Lacks 'allow_fail' Parameter Causing Unhandled Exceptions on Exit **Description:** When the application attempts to terminate, the `SSHManager`'s `close` method is responsible for closing all active SSH connections. However, if any connection fails to close properly, it raises an exc...
diff --git a/datalad/__init__.py b/datalad/__init__.py --- a/datalad/__init__.py +++ b/datalad/__init__.py @@ -23,7 +23,7 @@ lgr.log(5, "Instantiating ssh manager") from .support.sshconnector import SSHManager ssh_manager = SSHManager() -atexit.register(ssh_manager.close) +atexit.register(ssh_manager.close, allow_fa...
diff --git a/datalad/support/tests/test_sshconnector.py b/datalad/support/tests/test_sshconnector.py --- a/datalad/support/tests/test_sshconnector.py +++ b/datalad/support/tests/test_sshconnector.py @@ -17,6 +17,10 @@ from datalad.support.sshconnector import SSHConnection, SSHManager from datalad.tests.utils import a...
null
null
namanjain12/datalad_final:5b010c507946dc74381091fb7bd97d0a6d0b1722
true
null
2
20
null
1,184
0
0.75
1
0.6375
1
0.264
80.71075
8,673
r2e_gym::train::306
r2e_gym
train
306
orange3__ab6801d3dd20440f5948c1f2e91e8c6f775e5546
orange3
biolab/orange3
python
ab6801d3dd20440f5948c1f2e91e8c6f775e5546
**Title:** Incorrect Parsing of Numeric Object Dtype Columns as Datetime Causes Test Failures **Description:** When creating a table from a pandas DataFrame where a column has an object dtype and contains only numeric values, the system erroneously attempts to parse the column as datetime. This leads to unexpected beh...
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 @@ -157,6 +157,16 @@ return True try: if is_object_dtype(s): + # pd.to_datetime would sucessfuly parse column of numbers to datetime + ...
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 @@ -382,6 +382,25 @@ [np.nan], ], ) + + def test_table_from_frame_no_datetim(self): + """ + In case when ...
null
null
namanjain12/orange3_final:ab6801d3dd20440f5948c1f2e91e8c6f775e5546
true
null
1
10
null
1,378
0
0.75
1
0.6375
1
0.263
80.70775
8,674
r2e_gym::train::5242
r2e_gym
train
5,242
pyramid__027c9809ca9377b3ae37a34e4ed997d8fdfddfb8
pyramid
pylons/pyramid
python
027c9809ca9377b3ae37a34e4ed997d8fdfddfb8
**Title:** Renderer Alters `request.response`, Causing AttributeError **Description:** When using a renderer with an existing `request.response` object, the renderer modifies the response in a way that removes expected attributes. This leads to errors when subsequent code attempts to access these attributes. **Examp...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,14 @@ - Removed the ``request.response_*`` varying attributes. These attributes have been deprecated since Pyramid 1.1, and as per the deprecation policy, have now been removed. + +- ``request.response`` will no longer be mutat...
diff --git a/pyramid/tests/test_renderers.py b/pyramid/tests/test_renderers.py --- a/pyramid/tests/test_renderers.py +++ b/pyramid/tests/test_renderers.py @@ -840,6 +840,14 @@ renderer.assert_(a=1) renderer.assert_(request=request) + def test_it_preserves_response(self): + request = testin...
null
null
namanjain12/pyramid_final:027c9809ca9377b3ae37a34e4ed997d8fdfddfb8
true
null
2
26
null
1,058
0
0.75
1
0.6375
1
0.263
80.70775
8,675
r2e_gym::train::6001
r2e_gym
train
6,001
tornado__463d9ecda872f9df9644920103fcbfa4b6aef06f
tornado
tornadoweb/tornado
python
463d9ecda872f9df9644920103fcbfa4b6aef06f
**Title:** Exception Raised When Parsing Malformed x-www-form-urlencoded POST Bodies **Description:** When a client sends binary or malformed data using the `application/x-www-form-urlencoded` content type, the server encounters a `UnicodeDecodeError`. This occurs because the server attempts to convert the body to Uni...
diff --git a/tornado/httputil.py b/tornado/httputil.py --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -320,7 +320,11 @@ with the parsed contents. """ if content_type.startswith("application/x-www-form-urlencoded"): - uri_arguments = parse_qs_bytes(native_str(body), keep_blank_values=True) ...
diff --git a/tornado/test/httpserver_test.py b/tornado/test/httpserver_test.py --- a/tornado/test/httpserver_test.py +++ b/tornado/test/httpserver_test.py @@ -344,6 +344,21 @@ self.assertEqual(200, response.code) self.assertEqual(json_decode(response.body), {}) + def test_malformed_body(self): + ...
null
null
namanjain12/tornado_final:463d9ecda872f9df9644920103fcbfa4b6aef06f
true
null
1
6
null
1,456
0
0.75
1
0.6375
1
0.262667
80.70675
8,676
r2e_gym::train::4775
r2e_gym
train
4,775
numpy__c5cf20ab673c76f4b3ef7f85b4d1fd4149237772
numpy
numpy/numpy
python
c5cf20ab673c76f4b3ef7f85b4d1fd4149237772
**Title:** Incorrect Handling of `axisc` Parameter in `np.cross` Causes Unexpected Output Shapes **Description:** When using `numpy.cross` with the `axisc` parameter, the function sometimes returns output arrays with incorrect shapes or raises errors due to improper handling of the axis parameter. **Example Buggy Cod...
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1478,8 +1478,9 @@ axisb : int, optional Axis of `b` that defines the vector(s). By default, the last axis. axisc : int, optional - Axis of `c` containing the cross product ve...
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py --- a/numpy/core/tests/test_numeric.py +++ b/numpy/core/tests/test_numeric.py @@ -2221,6 +2221,10 @@ assert_equal(np.cross(u, v, axisa=1, axisc=2).shape, (10, 5, 3, 7)) assert_raises(ValueError, np.cross, u, v, axisa=-5, ...
null
null
namanjain12/numpy_final:c5cf20ab673c76f4b3ef7f85b4d1fd4149237772
true
null
1
34
null
895
0
0.75
1
0.6375
1
0.2625
80.70625
8,677
r2e_gym::train::5359
r2e_gym
train
5,359
aiohttp__950f72c18266b55a9fcb93717b32828eae37719c
aiohttp
aio-libs/aiohttp
python
950f72c18266b55a9fcb93717b32828eae37719c
**Title:** AttributeError When Posting Tarfile File-like Objects Without `fileno` Attribute **Description:** When attempting to post data using a tarfile member as a file-like object, an AttributeError is raised because the file-like object does not have a `fileno` attribute. This prevents the data from being transmit...
diff --git a/CHANGES/6732.bugfix b/CHANGES/6732.bugfix --- a/CHANGES/6732.bugfix +++ b/CHANGES/6732.bugfix @@ -0,0 +1 @@ +Fixed handling of some file-like objects (e.g. ``tarfile.extractfile()``) which raise ``AttributeError`` instead of ``OSError`` when ``fileno`` fails for streaming payload data -- by :user:`ReallyRe...
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 @@ -9,7 +9,9 @@ import socket import ssl import sys +import tarfile import time +import zipfile from typing import Any, AsyncIterator, Type from unittest impor...
null
null
namanjain12/aiohttp_final:950f72c18266b55a9fcb93717b32828eae37719c
true
null
3
6
null
1,454
0
0.75
1
0.6375
1
0.262333
80.70575
8,678
r2e_gym::train::4200
r2e_gym
train
4,200
numpy__a0c5f64f4f1a7f6ee80dc9b95aa813df28a87d72
numpy
numpy/numpy
python
a0c5f64f4f1a7f6ee80dc9b95aa813df28a87d72
**Title:** `numpy.linalg.lstsq` Raises TypeError When Using Default `rcond` Parameter **Description:** When calling `numpy.linalg.lstsq` without specifying the `rcond` parameter, a `TypeError` is raised because `rcond` is implicitly set to `None`, which is not a valid type for the underlying computation. **Example C...
diff --git a/doc/release/1.14.0-notes.rst b/doc/release/1.14.0-notes.rst --- a/doc/release/1.14.0-notes.rst +++ b/doc/release/1.14.0-notes.rst @@ -36,6 +36,12 @@ In future, the translation will be disabled, and the first example will be made equivalent to the second. +``np.linalg.lstsq`` default for ``rcond`` will ...
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -793,7 +793,7 @@ arr = np.asarray(a) m, n = arr.shape u, s, vt = linalg.svd(a, 0) - x, residuals, rank, sv = linalg.lsts...
null
null
namanjain12/numpy_final:a0c5f64f4f1a7f6ee80dc9b95aa813df28a87d72
true
null
2
29
null
993
0
0.75
1
0.6375
1
0.262167
80.70525
8,679
r2e_gym::train::6609
r2e_gym
train
6,609
pillow__b0b4fee7960f3813881ffdb47a9c091929e8d97d
pillow
python-pillow/pillow
python
b0b4fee7960f3813881ffdb47a9c091929e8d97d
**Title: `autocontrast()` Raises TypeError When Using `preserve_tone` Parameter** **Description:** When attempting to use the `preserve_tone` parameter with the `autocontrast()` function, a `TypeError` is raised indicating that `preserve_tone` is an unexpected keyword argument. This prevents users from utilizing the t...
diff --git a/docs/releasenotes/8.2.0.rst b/docs/releasenotes/8.2.0.rst --- a/docs/releasenotes/8.2.0.rst +++ b/docs/releasenotes/8.2.0.rst @@ -83,6 +83,15 @@ im.save("out.tif", icc_profile=...) + +ImageOps.autocontrast: preserve_tone +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The default behaviour of :py:meth:`~...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -29,6 +29,7 @@ ImageOps.autocontrast(hopper("L"), cutoff=(2, 10)) ImageOps.autocontrast(hopper("L"), ignore=[0, 255]) ImageOps.autocontrast(hopper("L"), mask=hopper("L")) + ImageOp...
null
null
namanjain12/pillow_final:b0b4fee7960f3813881ffdb47a9c091929e8d97d
true
null
2
25
null
1,073
0
0.75
1
0.6375
1
0.262167
80.70525
8,680
swe_bench::test::76
swe_bench
test
76
astropy__astropy-7218
astropy/astropy
astropy/astropy
python
9626265d77b8a21c113615c08bc6782deb52eaed
HDUList.copy() returns a list Currently ``HDUList.copy()`` returns a list rather than an ``HDUList``: ```python In [1]: from astropy.io.fits import HDUList In [2]: hdulist = HDUList() In [3]: hdulist.copy() Out[3]: [] In [4]: type(_) Out[4]: list ``` This is with Python 3.6.
This might be related to another issue reported in #7185 where adding two `HDUList`s also produces a `list` instead of another `HDUList`. We should be able to fix this specific case by overriding `list.copy()` method with: ```python class HDUList(list, _Verify): ... def copy(self): return self[:] ...
diff --git a/astropy/io/fits/hdu/hdulist.py b/astropy/io/fits/hdu/hdulist.py --- a/astropy/io/fits/hdu/hdulist.py +++ b/astropy/io/fits/hdu/hdulist.py @@ -510,6 +510,25 @@ def fileinfo(self, index): return output + def __copy__(self): + """ + Return a shallow copy of an HDUList. + + ...
diff --git a/astropy/io/fits/tests/test_hdulist.py b/astropy/io/fits/tests/test_hdulist.py --- a/astropy/io/fits/tests/test_hdulist.py +++ b/astropy/io/fits/tests/test_hdulist.py @@ -5,6 +5,7 @@ import os import platform import sys +import copy import pytest import numpy as np @@ -376,6 +377,43 @@ def test_file_...
["astropy/io/fits/tests/test_hdulist.py::TestHDUListFunctions::test_shallow_copy"]
["astropy/io/fits/tests/test_hdulist.py::TestHDUListFunctions::test_update_name", "astropy/io/fits/tests/test_hdulist.py::TestHDUListFunctions::test_create_from_multiple_primary", "astropy/io/fits/tests/test_hdulist.py::TestHDUListFunctions::test_append_primary_to_empty_list", "astropy/io/fits/tests/test_hdulist.py::Te...
null
true
2018-02-20T11:36:56Z
1
19
1
280
0
0.8
1
0.55
1
0.11
80.705
8,681
r2e_gym::train::4634
r2e_gym
train
4,634
numpy__401ebbacb0924350c56362f2b75eaf887ba36671
numpy
numpy/numpy
python
401ebbacb0924350c56362f2b75eaf887ba36671
**Title:** Histogram Does Not Raise TypeError When Using Weights with Automatic Bin Estimation **Description:** When utilizing the `numpy.histogram` function with an automatic bin estimator (`'auto'`) and providing weights, the function is expected to raise a `TypeError` since automated bin estimation does not support...
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -76,7 +76,7 @@ return True -def _hist_optim_numbins_estimator(a, estimator): +def _hist_optim_numbins_estimator(a, estimator, data_range=None, data_weights=None): """ ...
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1380,6 +1380,37 @@ for estimator, numbins in outlier_resultdict.items(): a, b = np.histogram(outlier_dataset, estim...
null
null
namanjain12/numpy_final:401ebbacb0924350c56362f2b75eaf887ba36671
true
null
1
26
null
1,052
0
0.75
1
0.6375
1
0.262
80.70475
8,682
r2e_gym::train::5818
r2e_gym
train
5,818
tornado__fffaa2f7f729570d3bc28b92281d8875e39c9973
tornado
tornadoweb/tornado
python
fffaa2f7f729570d3bc28b92281d8875e39c9973
**Title:** `bind_unused_port` Function Does Not Accept `reuse_port` Parameter, Causing TypeError **Description:** When attempting to bind an unused port with the `reuse_port` option enabled, a `TypeError` is raised because the `bind_unused_port` function does not accept the `reuse_port` parameter. This prevents develo...
diff --git a/tornado/netutil.py b/tornado/netutil.py --- a/tornado/netutil.py +++ b/tornado/netutil.py @@ -111,7 +111,7 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, - backlog=_DEFAULT_BACKLOG, flags=None): + backlog=_DEFAULT_BACKLOG, flags=None, reuse_port=False)...
diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py --- a/tornado/test/netutil_test.py +++ b/tornado/test/netutil_test.py @@ -9,7 +9,7 @@ from tornado.netutil import BlockingResolver, ThreadedResolver, is_valid_ip, bind_sockets from tornado.stack_context import ExceptionStackContext -from torna...
null
null
namanjain12/tornado_final:fffaa2f7f729570d3bc28b92281d8875e39c9973
true
null
2
18
null
1,212
0
0.75
1
0.6375
1
0.262
80.70475
8,683
r2e_gym::train::6316
r2e_gym
train
6,316
pillow__9bf7dae03d90fa48f61409d439d7ea7668f7e497
pillow
python-pillow/pillow
python
9bf7dae03d90fa48f61409d439d7ea7668f7e497
**Title:** TypeError Occurs When Handling Warnings with NoneType in File Operations **Description:** When attempting to handle warnings during file closure operations, passing `None` as the expected warning type results in a `TypeError`. This prevents the proper execution of warning management in the code, leading to ...
diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -48,7 +48,7 @@ from fractions import Fraction from numbers import Number, Rational -from . import Image, ImageFile, ImagePalette, TiffTags +from . import Image, ImageFile, ImageO...
diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -447,9 +447,10 @@ im.seek(1) assert im.getexif()[273] == (1408, 1907) - def test_photometric(self, tmp_path): + @pytest.mark.parametrize("mode", ("1", "L")) + ...
null
null
namanjain12/pillow_final:9bf7dae03d90fa48f61409d439d7ea7668f7e497
true
null
1
19
null
1,190
0
0.75
1
0.6375
1
0.261667
80.70375
8,684
r2e_gym::train::5155
r2e_gym
train
5,155
pyramid__411acbba3402aba9d09856a0c4cb88f572ba77da
pyramid
pylons/pyramid
python
411acbba3402aba9d09856a0c4cb88f572ba77da
**Title:** Authentication Fails with IPv6 Addresses Due to Improper IP Handling **Description:** When using IPv6 addresses with the `AuthTicketAuthenticationPolicy`, the authentication process fails because the system incorrectly attempts to handle the IPv6 address as an IPv4 address. This leads to a `ValueError` when...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,12 @@ - Allow a protocol-relative URL (e.g. ``//example.com/images``) to be passed to ``pyramid.config.Configurator.add_static_view``. This allows externally-hosted static URLs to be generated based on the current protocol. +...
diff --git a/pyramid/tests/test_authentication.py b/pyramid/tests/test_authentication.py --- a/pyramid/tests/test_authentication.py +++ b/pyramid/tests/test_authentication.py @@ -561,9 +561,13 @@ helper.BadTicket = auth_tkt.BadTicket return helper - def _makeRequest(self, cookie=None): + def _...
null
null
namanjain12/pyramid_final:411acbba3402aba9d09856a0c4cb88f572ba77da
true
null
3
28
null
1,008
0
0.75
1
0.6375
1
0.261333
80.70275
8,685
r2e_gym::train::4771
r2e_gym
train
4,771
numpy__22d917776b80dc7cef683fc17f4ea15b1ce98fcc
numpy
numpy/numpy
python
22d917776b80dc7cef683fc17f4ea15b1ce98fcc
**Title:** `np.r_` Raises ValueError When Handling Zero-Dimensional Arrays **Description:** When using `np.r_` to concatenate zero-dimensional (0d) arrays with other scalar values, a `ValueError` is raised. This prevents the creation of combined arrays that include 0d arrays, which should ideally be supported for flex...
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -5,7 +5,7 @@ import numpy.core.numeric as _nx from numpy.core.numeric import ( - asarray, ScalarType, array, alltrue, cumprod, arange + asarray, ScalarType, array, alltrue, cum...
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -216,6 +216,11 @@ assert_equal(actual, expected) assert_equal(type(actual), type(expected)) + def test_0d(self): + ...
null
null
namanjain12/numpy_final:22d917776b80dc7cef683fc17f4ea15b1ce98fcc
true
null
1
27
null
1,027
0
0.75
1
0.6375
1
0.261167
80.70225
8,686
r2e_gym::train::4697
r2e_gym
train
4,697
numpy__36dbfa5dfd62c559dfdc4aa49bb0192df8a33abd
numpy
numpy/numpy
python
36dbfa5dfd62c559dfdc4aa49bb0192df8a33abd
**Title:** `loadtxt` Raises ValueError When Using Multiple Comment Tokens **Description:** When using `numpy.loadtxt` with multiple comment tokens, the function raises a `ValueError` instead of correctly parsing the data. This occurs when the `comments` parameter is provided as a list of comment characters, and the in...
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -717,8 +717,9 @@ each row will be interpreted as an element of the array. In this case, the number of columns used must match the number of fields in the data-type. - comments : str, ...
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -15,7 +15,7 @@ import numpy.ma as ma from numpy.lib._iotools import (ConverterError, ConverterLockError, ConversionWarning) -from numpy.compat impo...
null
null
namanjain12/numpy_final:36dbfa5dfd62c559dfdc4aa49bb0192df8a33abd
true
null
1
22
null
1,127
0
0.75
1
0.6375
1
0.261167
80.70225
8,687
r2e_gym::train::5665
r2e_gym
train
5,665
scrapy__90b8503789f74ce2600a39aa06812f95c9c7e77b
scrapy
scrapy/scrapy
python
90b8503789f74ce2600a39aa06812f95c9c7e77b
**Title:** Encoding Detection Ignoring BOM When Content-Type Header Specifies a Different Charset **Description:** When a response includes a Byte Order Mark (BOM) indicating UTF-8 encoding, but the `Content-Type` header specifies a different charset like `'cp1251'`, the encoding detection prioritizes the `Content-Typ...
diff --git a/scrapy/http/response/text.py b/scrapy/http/response/text.py --- a/scrapy/http/response/text.py +++ b/scrapy/http/response/text.py @@ -11,8 +11,13 @@ from urllib.parse import urljoin import parsel -from w3lib.encoding import (html_body_declared_encoding, html_to_unicode, - htt...
diff --git a/tests/test_http_response.py b/tests/test_http_response.py --- a/tests/test_http_response.py +++ b/tests/test_http_response.py @@ -1,3 +1,4 @@ +import codecs import unittest from unittest import mock @@ -358,6 +359,8 @@ headers={"Content-type": ["text/html; charset=gb23...
null
null
namanjain12/scrapy_final:90b8503789f74ce2600a39aa06812f95c9c7e77b
true
null
1
14
null
1,286
0
0.75
1
0.6375
1
0.261
80.70175
8,688
r2e_gym::train::5912
r2e_gym
train
5,912
tornado__d31bc289316897c440ba313e2ffe58cdf34a422c
tornado
tornadoweb/tornado
python
d31bc289316897c440ba313e2ffe58cdf34a422c
**Title:** `render()` Method Does Not Return a `Future`, Causing Asynchronous Handling Failures **Description:** The `render()` method in `RequestHandler` is expected to return a `Future` object to facilitate asynchronous operations such as awaiting or adding callbacks. Currently, `render()` returns `None`, which lead...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -749,7 +749,18 @@ self._write_buffer.append(chunk) def render(self, template_name, **kwargs): - """Renders the template with the given arguments as the response.""" + """Renders the template with the ...
diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -191,19 +191,38 @@ self.assertEqual(new_handler.get_secure_cookie('foo'), None) -class FinishTest(WebTestCase): - def get_handlers(self): +class FinalReturnTest(WebTestCase):...
null
null
namanjain12/tornado_final:d31bc289316897c440ba313e2ffe58cdf34a422c
true
null
1
30
null
965
0
0.75
1
0.6375
1
0.260833
80.70125
8,689
r2e_gym::train::4093
r2e_gym
train
4,093
coveragepy__2d048353b2d1c62f3eee9d82d7ac055229e8e791
coveragepy
nedbat/coveragepy
python
2d048353b2d1c62f3eee9d82d7ac055229e8e791
**Title:** Missing `deferred_annotations` Attribute in `PYBEHAVIOR` Causes Test Failure **Description:** When attempting to test coverage for classes with deferred annotations, accessing `env.PYBEHAVIOR.deferred_annotations` results in an `AttributeError`. This prevents the test from determining the correct lines to c...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,12 +23,19 @@ Unreleased ---------- +- Fix: Python 3.14 `defers evaluation of annotations <pep649_>`_ by moving them + into separate code objects. That code is rarely executed, so coverage.py + would mark them as missing, as reporte...
diff --git a/tests/test_coverage.py b/tests/test_coverage.py --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -1290,6 +1290,35 @@ ) +class AnnotationTest(CoverageTest): + """Tests specific to annotations.""" + + def test_attribute_annotation(self) -> None: + if env.PYBEHAVIOR.defer...
null
null
namanjain12/coveragepy_final:2d048353b2d1c62f3eee9d82d7ac055229e8e791
true
null
3
23
null
1,103
0
0.75
1
0.6375
1
0.2605
80.70025
8,690
r2e_gym::train::5062
r2e_gym
train
5,062
datalad__1c6afc45526965f755c78971af3a06c59506fe36
datalad
datalad/datalad
python
1c6afc45526965f755c78971af3a06c59506fe36
**Title:** `custom_result_summary_renderer` Raises IndexError When `action_summary` Is Missing **Description:** When executing a push action, the `custom_result_summary_renderer` function expects both `results` and `action_summary` as arguments. However, in some scenarios, it is invoked without the `action_summary`, l...
diff --git a/datalad/core/distributed/push.py b/datalad/core/distributed/push.py --- a/datalad/core/distributed/push.py +++ b/datalad/core/distributed/push.py @@ -28,6 +28,7 @@ ) from datalad.interface.utils import ( eval_results, + render_action_summary, ) from datalad.interface.results import annexjson2re...
diff --git a/datalad/core/distributed/tests/test_push.py b/datalad/core/distributed/tests/test_push.py --- a/datalad/core/distributed/tests/test_push.py +++ b/datalad/core/distributed/tests/test_push.py @@ -50,6 +50,7 @@ Path, chpwd, path_startswith, + swallow_outputs, ) from datalad.support.gitrepo...
null
null
namanjain12/datalad_final:1c6afc45526965f755c78971af3a06c59506fe36
true
null
2
33
null
902
0
0.75
1
0.6375
1
0.260333
80.69975
8,691
r2e_gym::train::4897
r2e_gym
train
4,897
datalad__ec25697dfdb224f814564b61033f75b59db56563
datalad
datalad/datalad
python
ec25697dfdb224f814564b61033f75b59db56563
**Title:** `default_result_renderer()` Raises KeyError When 'action' Key Is Missing **Description:** When processing results that do not include the `'action'` key, the `default_result_renderer` function crashes with a `KeyError`. This occurs because the function assumes that the `'action'` key is always present in th...
diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py --- a/datalad/interface/utils.py +++ b/datalad/interface/utils.py @@ -500,19 +500,27 @@ def default_result_renderer(res): if res.get('status', None) != 'notneeded': path = res.get('path', None) - path = ' {}'.format(path) if path...
diff --git a/datalad/core/local/tests/test_results.py b/datalad/core/local/tests/test_results.py --- a/datalad/core/local/tests/test_results.py +++ b/datalad/core/local/tests/test_results.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# ex: set sts=4 ts=4 sw=4 noet: +# ## ### ### ### ### ### ### ### ### ### ### ### ### ...
null
null
namanjain12/datalad_final:ec25697dfdb224f814564b61033f75b59db56563
true
null
1
32
null
921
0
0.75
1
0.6375
1
0.260167
80.69925
8,692
r2e_gym::train::5583
r2e_gym
train
5,583
scrapy__d91183738920a8336babc64d514fd28de13feab3
scrapy
scrapy/scrapy
python
d91183738920a8336babc64d514fd28de13feab3
**Title:** LxmlParserLinkExtractor Raises ValueError on Links with Invalid URLs Instead of Skipping Them **Description:** When processing HTML content, the `LxmlParserLinkExtractor` encounters links with malformed URLs, such as those containing invalid port values. Instead of gracefully skipping these bad links, the e...
diff --git a/scrapy/linkextractors/lxmlhtml.py b/scrapy/linkextractors/lxmlhtml.py --- a/scrapy/linkextractors/lxmlhtml.py +++ b/scrapy/linkextractors/lxmlhtml.py @@ -1,6 +1,7 @@ """ Link extractor based on lxml.html """ +import logging import operator from functools import partial from urllib.parse import urljoi...
diff --git a/tests/test_linkextractors.py b/tests/test_linkextractors.py --- a/tests/test_linkextractors.py +++ b/tests/test_linkextractors.py @@ -1,6 +1,10 @@ import pickle import re import unittest + +from packaging.version import Version +from pytest import mark +from w3lib import __version__ as w3lib_version ...
null
null
namanjain12/scrapy_final:d91183738920a8336babc64d514fd28de13feab3
true
null
2
11
null
1,339
0
0.75
1
0.6375
1
0.259833
80.69825
8,693
r2e_gym::train::5285
r2e_gym
train
5,285
aiohttp__ea316336f0b247bb85fd7ee0e4e41f5eac682228
aiohttp
aio-libs/aiohttp
python
ea316336f0b247bb85fd7ee0e4e41f5eac682228
**Title:** Closing TCPConnector does not cancel pending resolve_host tasks, causing pending Task errors **Description:** When closing an `aiohttp.TCPConnector`, any ongoing DNS resolution tasks are not properly canceled. This leads to warnings such as "Task was destroyed but it is pending" because the connector does n...
diff --git a/CHANGES/8967.bugfix.rst b/CHANGES/8967.bugfix.rst --- a/CHANGES/8967.bugfix.rst +++ b/CHANGES/8967.bugfix.rst @@ -0,0 +1 @@ +Fixed resolve_host() 'Task was destroyed but is pending' errors -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/connector.py b/aiohttp/connector.py --- a/aiohttp/connector.py +++ b...
diff --git a/tests/test_connector.py b/tests/test_connector.py --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -9,7 +9,7 @@ import sys import uuid from collections import deque -from contextlib import closing +from contextlib import closing, suppress from typing import Any, List, Optional, Type from...
null
null
namanjain12/aiohttp_final:ea316336f0b247bb85fd7ee0e4e41f5eac682228
true
null
2
7
null
1,417
0
0.75
1
0.6375
1
0.2595
80.69725
8,694
r2e_gym::train::4432
r2e_gym
train
4,432
numpy__adf50b93d76fa55d03ccbc4910602cda23b32c7d
numpy
numpy/numpy
python
adf50b93d76fa55d03ccbc4910602cda23b32c7d
**Title:** `linspace` Rounds Integers Towards Zero Instead of -Infinity **Description:** When using `numpy.linspace` with an integer `dtype` and negative start values, the generated values are rounded towards zero instead of towards negative infinity. This results in incorrect integer values being produced. **Example...
diff --git a/doc/release/upcoming_changes/16841.change.rst b/doc/release/upcoming_changes/16841.change.rst --- a/doc/release/upcoming_changes/16841.change.rst +++ b/doc/release/upcoming_changes/16841.change.rst @@ -0,0 +1,19 @@ +`np.linspace` on integers now use floor +--------------------------------------- +When usin...
diff --git a/numpy/core/tests/test_function_base.py b/numpy/core/tests/test_function_base.py --- a/numpy/core/tests/test_function_base.py +++ b/numpy/core/tests/test_function_base.py @@ -402,3 +402,8 @@ stop = array(2, dtype='O') y = linspace(start, stop, 3) assert_array_equal(y, array([1., 1...
null
null
namanjain12/numpy_final:adf50b93d76fa55d03ccbc4910602cda23b32c7d
true
null
2
27
null
1,016
0
0.75
1
0.6375
1
0.259333
80.69675
8,695
r2e_gym::train::4427
r2e_gym
train
4,427
numpy__a525da81de28b7fc46f07fee8af345bcb94422d3
numpy
numpy/numpy
python
a525da81de28b7fc46f07fee8af345bcb94422d3
**Title**: `np.logspace` Fails with Array-like `base` Arguments Due to Broadcasting Errors **Description** When using `np.logspace` with an array-like `base` argument alongside scalar `start` and `stop` values, a broadcasting error occurs. This prevents the function from generating the expected log-spaced values. **...
diff --git a/doc/release/upcoming_changes/23275.improvement.rst b/doc/release/upcoming_changes/23275.improvement.rst --- a/doc/release/upcoming_changes/23275.improvement.rst +++ b/doc/release/upcoming_changes/23275.improvement.rst @@ -0,0 +1,4 @@ +``numpy.logspace`` now supports a non-scalar ``base`` argument +--------...
diff --git a/numpy/core/tests/test_function_base.py b/numpy/core/tests/test_function_base.py --- a/numpy/core/tests/test_function_base.py +++ b/numpy/core/tests/test_function_base.py @@ -1,3 +1,4 @@ +import pytest from numpy import ( logspace, linspace, geomspace, dtype, array, sctypes, arange, isnan, ndarra...
null
null
namanjain12/numpy_final:a525da81de28b7fc46f07fee8af345bcb94422d3
true
null
2
28
null
994
0
0.75
1
0.6375
1
0.259
80.69575
8,696
r2e_gym::train::5448
r2e_gym
train
5,448
aiohttp__c2d9c1904a5bf43aced8d5a5dc579ee80d2573b1
aiohttp
aio-libs/aiohttp
python
c2d9c1904a5bf43aced8d5a5dc579ee80d2573b1
### Title: Response Constructor Missing 'reason' Parameter Causes AttributeError and TypeError ### Description When initializing a `Response` object without providing the `reason` parameter, the `reason` attribute is not set, leading to an `AttributeError`. Additionally, attempting to initialize a `Response` with a `r...
diff --git a/aiohttp/protocol.py b/aiohttp/protocol.py --- a/aiohttp/protocol.py +++ b/aiohttp/protocol.py @@ -823,13 +823,19 @@ } def __init__(self, transport, status, - http_version=HttpVersion11, close=False): + http_version=HttpVersion11, close=False, reason=None): ...
diff --git a/tests/test_http_protocol.py b/tests/test_http_protocol.py --- a/tests/test_http_protocol.py +++ b/tests/test_http_protocol.py @@ -28,8 +28,24 @@ self.assertIs(msg.transport, self.transport) self.assertEqual(msg.status, 200) + self.assertEqual(msg.reason, "OK") self.asser...
null
null
namanjain12/aiohttp_final:c2d9c1904a5bf43aced8d5a5dc579ee80d2573b1
true
null
1
12
null
1,310
0
0.75
1
0.6375
1
0.258333
80.69375
8,697
r2e_gym::train::5567
r2e_gym
train
5,567
scrapy__ff3aec661355a82a6f77355a95e1f391fa586c2b
scrapy
scrapy/scrapy
python
ff3aec661355a82a6f77355a95e1f391fa586c2b
**Title:** MailSender.send() Raises AttributeError When 'to' or 'cc' Are Single Strings **Description:** When using the `MailSender.send()` method, providing single string values for the `to` and `cc` parameters results in an `AttributeError`. The method expects these parameters to be iterables, but passing a single s...
diff --git a/docs/topics/email.rst b/docs/topics/email.rst --- a/docs/topics/email.rst +++ b/docs/topics/email.rst @@ -34,12 +34,6 @@ And here is how to use it to send an e-mail (without attachments):: mailer.send(to=["someone@example.com"], subject="Some subject", body="Some body", cc=["another@example.com"]) ...
diff --git a/tests/test_mail.py b/tests/test_mail.py --- a/tests/test_mail.py +++ b/tests/test_mail.py @@ -10,7 +10,8 @@ def test_send(self): mailsender = MailSender(debug=True) - mailsender.send(to=['test@scrapy.org'], subject='subject', body='body', _callback=self._catch_mail_sent) + mai...
null
null
namanjain12/scrapy_final:ff3aec661355a82a6f77355a95e1f391fa586c2b
true
null
2
16
null
1,229
0
0.75
1
0.6375
1
0.258167
80.69325
8,698
r2e_gym::train::5023
r2e_gym
train
5,023
datalad__accdc2daad71688a700a409818cf706dca3caa43
datalad
datalad/datalad
python
accdc2daad71688a700a409818cf706dca3caa43
**Title:** WitlessRunner.run() Raises TypeError When Passing Additional Protocol Arguments **Description:** When using `WitlessRunner` to execute a command with a custom protocol, attempting to pass additional keyword arguments to the protocol results in a `TypeError`. This prevents the customization of the protocol b...
diff --git a/datalad/cmd.py b/datalad/cmd.py --- a/datalad/cmd.py +++ b/datalad/cmd.py @@ -143,7 +143,8 @@ return ''.join(out), ''.join(err) -async def run_async_cmd(loop, cmd, protocol, stdin, **kwargs): +async def run_async_cmd(loop, cmd, protocol, stdin, protocol_kwargs=None, + **kwar...
diff --git a/datalad/tests/test_witless_runner.py b/datalad/tests/test_witless_runner.py --- a/datalad/tests/test_witless_runner.py +++ b/datalad/tests/test_witless_runner.py @@ -126,3 +126,24 @@ protocol=StdOutCapture, ) assert_in(OBSCURE_FILENAME, out) + + +def test_runner_parametrized_protocol(): ...
null
null
namanjain12/datalad_final:accdc2daad71688a700a409818cf706dca3caa43
true
null
1
14
null
1,269
0
0.75
1
0.6375
1
0.258167
80.69325
8,699
r2e_gym::train::5640
r2e_gym
train
5,640
scrapy__72e8cea8afb85f6704fcf6f5648b0a01f1abaab3
scrapy
scrapy/scrapy
python
72e8cea8afb85f6704fcf6f5648b0a01f1abaab3
**Title:** Parsing Generator Functions with `return` Statements Causes IndentationError **Description:** When analyzing generator functions that include a `return` statement without a value, the utility function `is_generator_with_return_value` raises an `IndentationError`. This error occurs during the parsing of the ...
diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py --- a/scrapy/utils/misc.py +++ b/scrapy/utils/misc.py @@ -9,7 +9,6 @@ from contextlib import contextmanager from importlib import import_module from pkgutil import iter_modules -from textwrap import dedent from w3lib.html import replace_entities @@ -227,7...
diff --git a/tests/test_utils_misc/test_return_with_argument_inside_generator.py b/tests/test_utils_misc/test_return_with_argument_inside_generator.py --- a/tests/test_utils_misc/test_return_with_argument_inside_generator.py +++ b/tests/test_utils_misc/test_return_with_argument_inside_generator.py @@ -1,43 +1,54 @@ im...
null
null
namanjain12/scrapy_final:72e8cea8afb85f6704fcf6f5648b0a01f1abaab3
true
null
1
27
null
1,008
0
0.75
1
0.6375
1
0.258
80.69275