selection_rank
int64
0
10k
uid
stringlengths
17
29
source
stringclasses
7 values
split
stringclasses
3 values
row_idx
int64
0
58.9k
instance_id
stringlengths
14
120
repo
stringclasses
246 values
repo_canon
stringclasses
232 values
language
stringclasses
8 values
base_commit
stringlengths
40
40
⌀
problem_statement
stringlengths
84
23.6k
extra_context
stringclasses
626 values
hints
stringlengths
0
59.3k
patch
stringlengths
252
175k
test_patch
stringlengths
0
358k
f2p
stringlengths
10
155k
⌀
p2p
stringlengths
2
1.75M
⌀
env_image
stringlengths
41
154
⌀
env_available
bool
1 class
created_at
stringlengths
10
20
⌀
n_src_files
int64
1
15
src_lines
int64
1
1.48k
n_f2p
float64
1
1.87k
⌀
ps_chars
int64
84
23.6k
leak_ratio
float64
0
0.6
s_prior
float64
0.6
1
s_verif
float64
0.75
1
s_ps
float64
0.04
1
s_patch
float64
0.07
1
s_tiebreak
float64
0.02
1
score
float64
47.9
98.6
9,400
r2e_gym::train::6027
r2e_gym
train
6,027
tornado__cc8dcecef263e2f531a89806262a368ca4a38f90
tornado
tornadoweb/tornado
python
cc8dcecef263e2f531a89806262a368ca4a38f90
**WebSocket Server Accepts Connections with Invalid Origin Headers** **Description** When a client attempts to establish a WebSocket connection with an invalid `Origin` header, the server does not reject the connection as expected. This behavior allows unauthorized cross-origin WebSocket connections, potentially lead...
diff --git a/docs/overview.rst b/docs/overview.rst --- a/docs/overview.rst +++ b/docs/overview.rst @@ -296,7 +296,7 @@ self.render("template.html", title="My title", items=items) Tornado templates support *control statements* and *expressions*. -Control statements are surronded by ``{%`` and ``%}``, e.g...
diff --git a/tornado/test/websocket_test.py b/tornado/test/websocket_test.py --- a/tornado/test/websocket_test.py +++ b/tornado/test/websocket_test.py @@ -158,6 +158,81 @@ code, reason = yield self.close_future self.assertEqual(code, 1001) self.assertEqual(reason, 'goodbye') + + @gen_test ...
null
null
namanjain12/tornado_final:cc8dcecef263e2f531a89806262a368ca4a38f90
true
null
2
48
null
1,061
0
0.75
1
0.525
1
0.336833
77.723
9,401
swe_bench::test::1781
swe_bench
test
1,781
sphinx-doc__sphinx-7670
sphinx-doc/sphinx
sphinx-doc/sphinx
python
3419079fb0d1f0eecd845eff0d12b367d34cd5e9
C++20 requires clause not supported Could you please add the support for C++ [requires clauses](https://en.cppreference.com/w/cpp/language/constraints)? I am the author of [mp-units](https://github.com/mpusz/units) which is a Physical Units Library targeting C++23 and implemented in C++20. You can find the initial ver...
Instead of reinventing the wheel regarding name mangling I try to to follow (in spirit) the Itanium ABI, but it looks like the standard is not yet clear on some details (itanium-cxx-abi/cxx-abi#24). @mpusz, do you happen to have seen mangled names with constraints? I can't get GCC to produce any so far.
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -3538,6 +3538,8 @@ def describe_signature_as_introducer( signode += nodes.Text('}') +################################################################################ + class ASTTemplateDec...
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -828,6 +828,15 @@ def test_templates(): check('type', 'template<C T = int&> {key}A', {2: 'I_1CE1A'}, key='using') +def test_requires_clauses(): + check('function', 'template<type...
["tests/test_domain_cpp.py::test_requires_clauses"]
["tests/test_domain_cpp.py::test_fundamental_types", "tests/test_domain_cpp.py::test_expressions", "tests/test_domain_cpp.py::test_type_definitions", "tests/test_domain_cpp.py::test_concept_definitions", "tests/test_domain_cpp.py::test_member_definitions", "tests/test_domain_cpp.py::test_function_definitions", "tests/t...
null
true
2020-05-16T07:58:26Z
1
136
1
519
0
0.8
1
0.4
1
0.539833
77.7195
9,402
r2e_gym::train::6347
r2e_gym
train
6,347
pillow__2d01f7d02243d1b9cd3f2a3c3587d87703e00f96
pillow
python-pillow/pillow
python
2d01f7d02243d1b9cd3f2a3c3587d87703e00f96
**Title:** Incorrect Photometric Interpretation When Saving '1' and 'L' Mode TIFF Images **Description:** When saving TIFF images in `'1'` (binary) or `'L'` (grayscale) modes with the `PhotometricInterpretation` tag set to `0`, the saved images do not retain the specified photometric interpretation. This causes incons...
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 @@ -446,6 +446,15 @@ im.seek(1) assert im.getexif()[273] == (1408, 1907) + + @pytest.mark.parametrize("mode", ("1", "L")) + def test_photometric(self, mode, tmp_pa...
null
null
namanjain12/pillow_final:2d01f7d02243d1b9cd3f2a3c3587d87703e00f96
true
null
1
39
null
1,231
0
0.75
1
0.525
1
0.335167
77.718
9,403
r2e_gym::train::5198
r2e_gym
train
5,198
pyramid__1bbe668972a6ac3b116f44e50825c66ae5813326
pyramid
pylons/pyramid
python
1bbe668972a6ac3b116f44e50825c66ae5813326
**Title:** PredicateMismatch Exception Lacks Predicate Details in Error Message **Description:** When a view's predicates fail, the `PredicateMismatch` exception is raised without specifying which predicate caused the mismatch. This omission makes it challenging to identify the exact cause of the failure, hindering de...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -54,3 +54,7 @@ result for the view being called. The uri format using an asset spec is package:path/to/template#defname.mako. The old way of returning a tuple from the view is supported for backward compatibility, ('defname', {}). ...
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -2905,6 +2905,7 @@ view = lambda *arg: response def predicate1(context, request): return False + ...
null
null
namanjain12/pyramid_final:1bbe668972a6ac3b116f44e50825c66ae5813326
true
null
3
23
null
1,547
0
0.75
1
0.525
1
0.3345
77.716
9,404
r2e_gym::train::6555
r2e_gym
train
6,555
pillow__63c3b26f6aa91740dff5ea041fc713cfb53aee51
pillow
python-pillow/pillow
python
63c3b26f6aa91740dff5ea041fc713cfb53aee51
**Title**: APNG Multi-Frame Saving Ignores 'duration', 'disposal', and 'blend' Info, Causing Incorrect Frame Properties **Description**: When saving an animated PNG with multiple frames, the settings for 'duration', 'disposal', and 'blend' in each frame's info dictionary are not correctly applied. This results in fram...
diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -1061,8 +1061,10 @@ default_image = im.encoderinfo.get("default_image", im.info.get("default_image")) duration = im.encoderinfo.get("duration", im.info.get("duration", 0)) ...
diff --git a/Tests/test_file_apng.py b/Tests/test_file_apng.py --- a/Tests/test_file_apng.py +++ b/Tests/test_file_apng.py @@ -441,6 +441,12 @@ assert im.n_frames == 1 assert im.info.get("duration") == 750 + # test info duration + frame.info["duration"] = 750 + frame.save(test_file, save_al...
null
null
namanjain12/pillow_final:63c3b26f6aa91740dff5ea041fc713cfb53aee51
true
null
1
19
null
1,624
0
0.75
1
0.525
1
0.334
77.7145
9,405
r2e_gym::train::5015
r2e_gym
train
5,015
datalad__9d1d0cb77ae711e22b5dc1201ac3adb9cfe0ecf7
datalad
datalad/datalad
python
9d1d0cb77ae711e22b5dc1201ac3adb9cfe0ecf7
**Title:** Recursive kill drop skips subdatasets under specified paths **Description:** When attempting to remove datasets recursively with the `reckless='kill'` option and specifying certain paths, subdatasets located within those paths are not being dropped as expected. This results in subdatasets remaining present ...
diff --git a/datalad/distributed/drop.py b/datalad/distributed/drop.py --- a/datalad/distributed/drop.py +++ b/datalad/distributed/drop.py @@ -346,6 +346,30 @@ return if paths is not None and paths != [ds.pathobj] and what == 'all': + if recursive and reckless == 'kill': + # check if a...
diff --git a/datalad/distributed/tests/test_drop.py b/datalad/distributed/tests/test_drop.py --- a/datalad/distributed/tests/test_drop.py +++ b/datalad/distributed/tests/test_drop.py @@ -460,6 +460,22 @@ eq_(False, ds.pathobj.exists()) +@with_tempfile +def test_kill_7013(path=None): + """check that a recurs...
null
null
namanjain12/datalad_final:9d1d0cb77ae711e22b5dc1201ac3adb9cfe0ecf7
true
null
1
24
null
1,522
0
0.75
1
0.525
1
0.333667
77.7135
9,406
swe_bench::dev::86
swe_bench
dev
86
pydicom__pydicom-1241
pydicom/pydicom
pydicom/pydicom
python
9d69811e539774f296c2f289839147e741251716
Add support for Extended Offset Table to encaps module [CP1818](http://webcache.googleusercontent.com/search?q=cache:xeWXtrAs9G4J:ftp://medical.nema.org/medical/dicom/final/cp1818_ft_whenoffsettabletoosmall.pdf) added the use of an Extended Offset Table for encapsulated pixel data when the Basic Offset Table isn't suit...
Some notes for myself: * The EOT is optional and intended to support users where there are multiple compressed frames and the total length of all the frames exceeds the `2**32 - 1` limit available in the BOT item lengths. * Only 1 fragment per frame is allowed with an EOT * The *Extended Table Offset Lengths* is ...
diff --git a/pydicom/encaps.py b/pydicom/encaps.py --- a/pydicom/encaps.py +++ b/pydicom/encaps.py @@ -77,13 +77,15 @@ def get_frame_offsets(fp: DicomFileLike) -> Tuple[bool, List[int]]: tag = Tag(fp.read_tag()) if tag != 0xfffee000: - raise ValueError("Unexpected tag '{}' when parsing the Basic Tabl...
diff --git a/pydicom/tests/test_encaps.py b/pydicom/tests/test_encaps.py --- a/pydicom/tests/test_encaps.py +++ b/pydicom/tests/test_encaps.py @@ -1,6 +1,8 @@ -# Copyright 2008-2018 pydicom authors. See LICENSE file for details. +# Copyright 2008-2020 pydicom authors. See LICENSE file for details. """Test for encaps.p...
["pydicom/tests/test_encaps.py::TestGetFrameOffsets::test_bad_tag", "pydicom/tests/test_encaps.py::TestGetFrameOffsets::test_bad_length_multiple", "pydicom/tests/test_encaps.py::TestGetFrameOffsets::test_zero_length", "pydicom/tests/test_encaps.py::TestGetFrameOffsets::test_multi_frame", "pydicom/tests/test_encaps.py::...
[]
null
true
2020-10-30T01:59:32Z
1
145
72
325
0
0.8
1
0.4
1
0.5375
77.7125
9,407
r2e_gym::train::265
r2e_gym
train
265
orange3__fd78b8bb1aa29c9d3f0e7b2a2033657ba640edc1
orange3
biolab/orange3
python
fd78b8bb1aa29c9d3f0e7b2a2033657ba640edc1
**Title:** Incorrect Migration of `multinomial_treatment` and `class_treatment` Settings Leads to Unexpected Behavior **Description:** When migrating settings from older versions, the `multinomial_treatment` and `class_treatment` values are not being mapped correctly to their new representations. This results in incor...
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 @@ -732,10 +732,22 @@ settings["cont_var_hints"] = \ {DefaultKey: settings.pop("continuous_treatment"...
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 @@ -760,7 +760,7 @@ widget = self.create_widget( OWContinuize, - store...
null
null
namanjain12/orange3_final:fd78b8bb1aa29c9d3f0e7b2a2033657ba640edc1
true
null
1
16
null
1,668
0
0.75
1
0.525
1
0.331333
77.7065
9,408
r2e_gym::train::5832
r2e_gym
train
5,832
tornado__c957a5d453594155f8ad4fde35a8093619424304
tornado
tornadoweb/tornado
python
c957a5d453594155f8ad4fde35a8093619424304
**Title:** PATCH Requests with Payload Cause Internal Server Error **Description:** When attempting to send a PATCH request with a payload using the HTTP client, the server responds with a 500 Internal Server Error. This prevents updating resources using custom HTTP methods that include a body. **Example Code:** ```p...
diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -390,7 +390,10 @@ raise KeyError('unknown method ' + request.method) # Handle curl's cryptic options for every individual HTTP method - if request.method in ("POST...
diff --git a/tornado/test/curl_httpclient_test.py b/tornado/test/curl_httpclient_test.py --- a/tornado/test/curl_httpclient_test.py +++ b/tornado/test/curl_httpclient_test.py @@ -1,5 +1,6 @@ from __future__ import absolute_import, division, print_function, with_statement +import json from hashlib import md5 from...
null
null
namanjain12/tornado_final:c957a5d453594155f8ad4fde35a8093619424304
true
null
1
9
null
1,806
0
0.75
1
0.525
1
0.331
77.7055
9,409
r2e_gym::train::6031
r2e_gym
train
6,031
tornado__886643965b5cb782503d8d7b374b7a794ec2077b
tornado
tornadoweb/tornado
python
886643965b5cb782503d8d7b374b7a794ec2077b
**Title:** PeriodicCallback Executes Multiple Times When System Clock Moves Backwards **Description:** When the system clock experiences a slight backward adjustment, `PeriodicCallback` may execute multiple times in quick succession instead of maintaining the correct schedule. This behavior is particularly evident whe...
diff --git a/tornado/ioloop.py b/tornado/ioloop.py --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -1217,7 +1217,27 @@ self._timeout = self.io_loop.add_timeout(self._next_timeout, self._run) def _update_next(self, current_time): + callback_time_sec = self.callback_time / 1000.0 if...
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 @@ -793,8 +793,10 @@ def simulate_calls(self, pc, durations): """Simulate a series of calls to the PeriodicCallback. - Pass a list of call durations in second...
null
null
namanjain12/tornado_final:886643965b5cb782503d8d7b374b7a794ec2077b
true
null
1
22
null
1,544
0
0.75
1
0.525
1
0.330667
77.7045
9,410
r2e_gym::train::6256
r2e_gym
train
6,256
pillow__e5ce1c8c57c4ae2130ce56d3cd179249c2eee906
pillow
python-pillow/pillow
python
e5ce1c8c57c4ae2130ce56d3cd179249c2eee906
**Title:** Incorrect Handling of RGBA Transparency in GIF Saving Leads to Image Discrepancies **Description:** When saving a GIF image that includes RGBA frames, the transparency is not handled correctly. This results in the reloaded image differing from the original, causing tests to fail. **Example Code:** ```pytho...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -424,7 +424,7 @@ RAWMODE = {"1": "L", "L": "L", "P": "P"} -def _normalize_mode(im, initial_call=False): +def _normalize_mode(im): """ Takes an image (or frame), returns an...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -842,6 +842,17 @@ assert "transparency" not in reloaded.info +def test_rgba_transparency(tmp_path): + out = str(tmp_path / "temp.gif") + + im = hopper("P") + im.save(out, save_...
null
null
namanjain12/pillow_final:e5ce1c8c57c4ae2130ce56d3cd179249c2eee906
true
null
1
38
null
1,221
0
0.75
1
0.525
1
0.330167
77.703
9,411
r2e_gym::train::6357
r2e_gym
train
6,357
pillow__c52b45df62a34b14c66159db777e9d3fc942fb55
pillow
python-pillow/pillow
python
c52b45df62a34b14c66159db777e9d3fc942fb55
**Analysis:** - **Key Parts:** - **Commit Message:** "Removed automatic retrieval of GPS IFD." - **Test Failure (Old Commit):** `assert None == {}` in `test_empty_exif_gps`. - **Change in Test:** Using `exif.get_ifd(0x8825)` instead of direct access. - **Main Problem:** The `get_ifd` method for the GPS IFD (`0x...
diff --git a/src/PIL/Image.py b/src/PIL/Image.py --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3360,6 +3360,10 @@ if ifd: merged_dict.update(ifd) + # GPS + if 0x8825 in self: + merged_dict[0x8825] = self._get_ifd_dict(self[0x8825]) + return merged_di...
diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -264,11 +264,11 @@ assert exif[0x0112] == Image.TRANSVERSE # Assert that the GPS IFD is present and empty - assert exif[0x8825] == {} + assert e...
null
null
namanjain12/pillow_final:c52b45df62a34b14c66159db777e9d3fc942fb55
true
null
1
8
null
1,818
0
0.75
1
0.525
1
0.329667
77.7015
9,412
r2e_gym::train::4945
r2e_gym
train
4,945
datalad__2b03324dc8da24884a7b262dd4f8c62a0a111f9c
datalad
datalad/datalad
python
2b03324dc8da24884a7b262dd4f8c62a0a111f9c
**Title:** Non-interactive `log_progress` Fails to Filter Messages Below Specified Logging Level **Description:** When using `log_progress` in non-interactive mode, messages that are intended to be filtered based on their logging level are still being logged, resulting in unnecessary log noise. **Example Buggy Code:*...
diff --git a/datalad/log.py b/datalad/log.py --- a/datalad/log.py +++ b/datalad/log.py @@ -7,6 +7,7 @@ # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## +from functools import partial import logging import os import sys @@ -240,6 +241,11 @@ return hasattr(record, 'dlm_pro...
diff --git a/datalad/tests/test_log.py b/datalad/tests/test_log.py --- a/datalad/tests/test_log.py +++ b/datalad/tests/test_log.py @@ -19,6 +19,7 @@ from datalad.log import ( ColorFormatter, LoggerHelper, + log_progress, TraceBack, ) from datalad import cfg @@ -161,3 +162,21 @@ # TODO: somehow...
null
null
namanjain12/datalad_final:2b03324dc8da24884a7b262dd4f8c62a0a111f9c
true
null
1
17
null
1,633
0
0.75
1
0.525
1
0.328833
77.699
9,413
swe_bench::test::1375
swe_bench
test
1,375
pytest-dev__pytest-10115
pytest-dev/pytest
pytest-dev/pytest
python
966d4fb3e4640de721f87e4190427975ea020c67
Get rid of atomicwrites (unmaintained) PyPI has started enforcing 2-factor-auth for maintainers of various popular packages: https://twitter.com/pypi/status/1545455297388584960 For context, here is the mail I got: > Congratulations! A project you ('The_Compiler') maintain has been designated as a critical project on ...
I think we can just use the unix code, but use `os.replace` instead of `os.rename` -- if I'm reading the history correctly `atomicwrites` was before python had os.replace (3.3+)
diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -302,53 +302,29 @@ def _write_pyc_fp( fp.write(marshal.dumps(co)) -if sys.platform == "win32": - from atomicwrites import atomic_write - - def ...
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -1009,7 +1009,7 @@ def test_meta_path(): ) assert pytester.runpytest().ret == 0 - def test_write_pyc(self, pytester: Pytester, tmp_path, monkeypatc...
["testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_write_pyc"]
["testing/test_assertrewrite.py::TestAssertionRewrite::test_place_initial_imports", "testing/test_assertrewrite.py::TestAssertionRewrite::test_location_is_set", "testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite", "testing/test_assertrewrite.py::TestAssertionRewrite::test_name", "testing/test_asser...
null
true
2022-07-08T20:02:22Z
1
68
1
1,832
0
0.8
1
0.4
1
0.532
77.696
9,414
r2e_gym::train::5557
r2e_gym
train
5,557
aiohttp__18de88ce1e0a176adb12bf9ee44783289c6bed63
aiohttp
aio-libs/aiohttp
python
18de88ce1e0a176adb12bf9ee44783289c6bed63
**Title:** Expect Handler Fails to Return Custom Responses, Ignoring Conditional Responses **Description:** When implementing a custom expect handler to return responses based on specific request headers, the handler's response is not utilized. Instead, the main request handler's response is always returned, disregard...
diff --git a/CHANGES/7025.bugfix b/CHANGES/7025.bugfix --- a/CHANGES/7025.bugfix +++ b/CHANGES/7025.bugfix @@ -0,0 +1 @@ +Fix response returned from expect handler being thrown away. -- by :user:`Dreamsorcerer` diff --git a/aiohttp/abc.py b/aiohttp/abc.py --- a/aiohttp/abc.py +++ b/aiohttp/abc.py @@ -63,7 +63,9 @@ ...
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 @@ -5,7 +5,7 @@ import pathlib import socket import zlib -from typing import Any +from typing import Any, Optional from unittest import mock import brotli @@ -574,6 +574,...
null
null
namanjain12/aiohttp_final:18de88ce1e0a176adb12bf9ee44783289c6bed63
true
null
3
11
null
1,747
0
0.75
1
0.525
1
0.327833
77.696
9,415
r2e_gym::train::4928
r2e_gym
train
4,928
datalad__02674ae6072ec81b174905c57cfb0d9749f3a62f
datalad
datalad/datalad
python
02674ae6072ec81b174905c57cfb0d9749f3a62f
**Title:** Suppression messages display incorrect counts near repetition threshold **Description:** When processing a series of similar results, the system displays incorrect suppression message counts when the number of results is near the repetition threshold. Specifically: - **Below the threshold:** When the numb...
diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py --- a/datalad/interface/utils.py +++ b/datalad/interface/utils.py @@ -589,9 +589,9 @@ else: # this one is new, first report on any prev. suppressed results # by number, and then render this fresh one - ...
diff --git a/datalad/interface/tests/test_utils.py b/datalad/interface/tests/test_utils.py --- a/datalad/interface/tests/test_utils.py +++ b/datalad/interface/tests/test_utils.py @@ -396,14 +396,17 @@ with swallow_outputs() as cmo: list(tu(9, result_fn=n_foo, result_renderer="default")) assert_in...
null
null
namanjain12/datalad_final:02674ae6072ec81b174905c57cfb0d9749f3a62f
true
null
1
12
null
1,712
0
0.75
1
0.525
1
0.325333
77.6885
9,416
r2e_gym::train::5470
r2e_gym
train
5,470
aiohttp__82451b648f25fe6ad75725b824683bf9419be5fd
aiohttp
aio-libs/aiohttp
python
82451b648f25fe6ad75725b824683bf9419be5fd
**Title:** Environment Variable `AIOHTTP_NOSENDFILE` Fails to Disable `sendfile` in StaticRoute **Description:** When the `AIOHTTP_NOSENDFILE` environment variable is set to `1`, the `StaticRoute` should disable the use of `sendfile` for serving static files and fallback to an alternative method. However, currently, s...
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py --- a/aiohttp/web_urldispatcher.py +++ b/aiohttp/web_urldispatcher.py @@ -162,6 +162,9 @@ if not os.path.isdir(self._directory): raise ValueError( "No directory exists at '{}'".format(self._directory)) + + ...
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 @@ -1019,6 +1019,13 @@ self.loop.run_until_complete(go(here, filename)) + def test_env_nosendfile(self): + directory = os.path.dirname(__file__) + + ...
null
null
namanjain12/aiohttp_final:82451b648f25fe6ad75725b824683bf9419be5fd
true
null
2
24
null
1,470
0
0.75
1
0.525
1
0.325
77.6875
9,417
r2e_gym::train::80
r2e_gym
train
80
orange3__d96f1417b5fa3354078b952bac5a8d61bea076ad
orange3
biolab/orange3
python
d96f1417b5fa3354078b952bac5a8d61bea076ad
**Title:** Missing `coef/X_sd` Columns Causes Coefficients Data Shape Mismatch **Description:** When generating the coefficients and loadings data, the `coef/X_sd` columns are not included. This omission results in the coefficients data table having fewer columns than expected, leading to discrepancies in downstream p...
diff --git a/Orange/widgets/model/owpls.py b/Orange/widgets/model/owpls.py --- a/Orange/widgets/model/owpls.py +++ b/Orange/widgets/model/owpls.py @@ -67,7 +67,7 @@ self.Outputs.components.send(components) def _create_output_coeffs_loadings(self) -> Table: - intercept = self.model.intercept + ...
diff --git a/Orange/widgets/model/tests/test_owpls.py b/Orange/widgets/model/tests/test_owpls.py --- a/Orange/widgets/model/tests/test_owpls.py +++ b/Orange/widgets/model/tests/test_owpls.py @@ -34,11 +34,11 @@ self.send_signal(self.widget.Inputs.data, self._data) coefsdata = self.get_output(self.widg...
null
null
namanjain12/orange3_final:d96f1417b5fa3354078b952bac5a8d61bea076ad
true
null
1
25
null
1,443
0
0.75
1
0.525
1
0.323833
77.684
9,418
r2e_gym::train::15
r2e_gym
train
15
orange3__aae8c47f823197a04010a74570793464eb7352fe
orange3
biolab/orange3
python
aae8c47f823197a04010a74570793464eb7352fe
**Title:** OWPurgeDomain widget fails to update status bar with data summary **Description:** When loading or clearing data in the OWPurgeDomain widget, the status bar is expected to display a summary of the dataset, including the number of instances, variables, and details about features, targets, and metas. However,...
diff --git a/Orange/widgets/data/owpurgedomain.py b/Orange/widgets/data/owpurgedomain.py --- a/Orange/widgets/data/owpurgedomain.py +++ b/Orange/widgets/data/owpurgedomain.py @@ -5,6 +5,7 @@ from Orange.widgets.settings import Setting from Orange.widgets.utils.sql import check_sql_input from Orange.widgets.utils.wid...
diff --git a/Orange/widgets/data/tests/test_owpurgedomain.py b/Orange/widgets/data/tests/test_owpurgedomain.py --- a/Orange/widgets/data/tests/test_owpurgedomain.py +++ b/Orange/widgets/data/tests/test_owpurgedomain.py @@ -0,0 +1,32 @@ +# pylint: disable=unsubscriptable-object +from unittest.mock import Mock + +from Or...
null
null
namanjain12/orange3_final:aae8c47f823197a04010a74570793464eb7352fe
true
null
1
10
null
1,733
0
0.75
1
0.525
1
0.322167
77.679
9,419
r2e_gym::train::6421
r2e_gym
train
6,421
pillow__56ca359c657ee2f4e81426f780c4b4e2e281e404
pillow
python-pillow/pillow
python
56ca359c657ee2f4e81426f780c4b4e2e281e404
**Title:** Missing WebP Animation and Transparency Features Causing Feature Check Failures **Description:** After updating the library, certain WebP-related features are no longer recognized, leading to inconsistencies in feature checks. Specifically, features like `webp_anim`, `webp_mux`, and `transp_webp` are expect...
diff --git a/docs/reference/features.rst b/docs/reference/features.rst --- a/docs/reference/features.rst +++ b/docs/reference/features.rst @@ -57,6 +57,9 @@ * ``raqm``: Raqm library, required for ``ImageFont.Layout.RAQM`` in :py:func:`PIL.ImageFont.truetype`. Run-time version number is available for Raqm 0.7.0 or newe...
diff --git a/Tests/check_wheel.py b/Tests/check_wheel.py --- a/Tests/check_wheel.py +++ b/Tests/check_wheel.py @@ -27,6 +27,9 @@ def test_wheel_features() -> None: expected_features = { + "webp_anim", + "webp_mux", + "transp_webp", "raqm", "fribidi", "harfbuzz", d...
null
null
namanjain12/pillow_final:56ca359c657ee2f4e81426f780c4b4e2e281e404
true
null
3
21
null
1,507
0
0.75
1
0.525
1
0.321167
77.676
9,420
r2e_gym::train::6542
r2e_gym
train
6,542
pillow__6a43ea86ead2542bf2ab46adc5db37462c643ae1
pillow
python-pillow/pillow
python
6a43ea86ead2542bf2ab46adc5db37462c643ae1
**Title:** Internal Error When Saving BMP Files Exceeding 4GB **Description:** Attempting to save a BMP image that results in a file size larger than 4GB causes the library to raise an internal `struct.error` instead of a clear and informative exception. **Example Code:** ```python from PIL import Image outfile = "t...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,12 @@ 7.0.0 (unreleased) ------------------ + +- Fixed black lines on upscaled images with the BOX filter #4278 + [homm] + +- Change default resize resampling filter from NEAREST to BICUBIC #4255 + [homm] - Better thumbnail a...
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 @@ -40,6 +40,13 @@ self.assertEqual(im.mode, reloaded.mode) self.assertEqual(im.size, reloaded.size) self.assertEqual(reloaded.format, "BMP") + + def test_save...
null
null
namanjain12/pillow_final:6a43ea86ead2542bf2ab46adc5db37462c643ae1
true
null
4
89
null
859
0
0.75
1
0.6375
0.85
0.439833
77.67575
9,421
r2e_gym::train::5206
r2e_gym
train
5,206
pyramid__21d5beaed1641e1f50ab1ab3c481b1c8f3ad1173
pyramid
pylons/pyramid
python
21d5beaed1641e1f50ab1ab3c481b1c8f3ad1173
**Title:** CSRF Protection Only Applied to POST Requests, Leaving Other Unsafe Methods Unprotected **Description:** Currently, the application applies CSRF protection exclusively to POST requests. This oversight means that other HTTP methods considered unsafe, such as PUT, DELETE, and PATCH, do not have CSRF protectio...
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst --- a/docs/narr/sessions.rst +++ b/docs/narr/sessions.rst @@ -411,15 +411,16 @@ .. versionadded:: 1.7 -:app:`Pyramid` supports automatically checking CSRF tokens on POST requests. -Any other request may be checked manually. This feature can be turned on ...
diff --git a/pyramid/tests/test_viewderivers.py b/pyramid/tests/test_viewderivers.py --- a/pyramid/tests/test_viewderivers.py +++ b/pyramid/tests/test_viewderivers.py @@ -1170,6 +1170,17 @@ view = self.config._derive_view(inner_view, require_csrf='DUMMY') self.assertRaises(BadCSRFToken, lambda: view(N...
null
null
namanjain12/pyramid_final:21d5beaed1641e1f50ab1ab3c481b1c8f3ad1173
true
null
4
26
null
2,108
0
0.75
1
0.6375
0.85
0.438
77.67025
9,422
r2e_gym::train::5378
r2e_gym
train
5,378
aiohttp__d904071c30737baa7189ed1c842c76954274c129
aiohttp
aio-libs/aiohttp
python
d904071c30737baa7189ed1c842c76954274c129
**Title:** Incorrect `SERVER_PORT` Value in WSGI Environment Causes Test Failure **Description:** When building the WSGI environment, the `SERVER_PORT` is incorrectly set to `'443'` instead of the expected `'80'`. This discrepancy causes related tests to fail, as the environment does not reflect the correct server por...
diff --git a/aiohttp/wsgi.py b/aiohttp/wsgi.py --- a/aiohttp/wsgi.py +++ b/aiohttp/wsgi.py @@ -14,7 +14,7 @@ from urllib.parse import urlsplit import aiohttp -from aiohttp import server, helpers, hdrs +from aiohttp import server, hdrs __all__ = ('WSGIServerHttpProtocol',) @@ -63,17 +63,12 @@ 'SERV...
diff --git a/tests/test_wsgi.py b/tests/test_wsgi.py --- a/tests/test_wsgi.py +++ b/tests/test_wsgi.py @@ -22,9 +22,9 @@ self.writer = unittest.mock.Mock() self.writer.drain.return_value = () self.transport = unittest.mock.Mock() - self.transport.get_extra_info.return_value = '127.0.0....
null
null
namanjain12/aiohttp_final:d904071c30737baa7189ed1c842c76954274c129
true
null
1
30
null
1,309
0
0.75
1
0.525
1
0.318167
77.667
9,423
r2e_gym::train::124
r2e_gym
train
124
orange3__7f830084b32b8f185acc46cb91ff003d79d21316
orange3
biolab/orange3
python
7f830084b32b8f185acc46cb91ff003d79d21316
**Title:** Incorrect Handling of Proxy Schemes in `get_proxies` Causes Test Failures **Description:** When both `http_proxy` and `https_proxy` environment variables are set without specifying a scheme, the `get_proxies` function incorrectly maps the proxies. This leads to unexpected behavior in components that rely on...
diff --git a/Orange/misc/utils/embedder_utils.py b/Orange/misc/utils/embedder_utils.py --- a/Orange/misc/utils/embedder_utils.py +++ b/Orange/misc/utils/embedder_utils.py @@ -78,7 +78,7 @@ def get_proxies() -> Optional[Dict[str, str]]: """ - Return dict with proxy addresses if they exists. + Return dict w...
diff --git a/Orange/misc/tests/test_embedder_utils.py b/Orange/misc/tests/test_embedder_utils.py --- a/Orange/misc/tests/test_embedder_utils.py +++ b/Orange/misc/tests/test_embedder_utils.py @@ -0,0 +1,67 @@ +import os +import unittest + +from Orange.misc.utils.embedder_utils import get_proxies + + +class TestProxies(u...
null
null
namanjain12/orange3_final:7f830084b32b8f185acc46cb91ff003d79d21316
true
null
1
28
null
1,348
0
0.75
1
0.525
1
0.318
77.6665
9,424
r2e_gym::train::5252
r2e_gym
train
5,252
pyramid__804eb0edf94d971acc7c2efccd019e24735a882e
pyramid
pylons/pyramid
python
804eb0edf94d971acc7c2efccd019e24735a882e
**Title:** Thread-local request not propagated when registry matches in `Configurator.begin()` **Description:** When using `Configurator.begin()` without specifying a `request`, and the current thread-local registry matches the configurator's registry, the existing request should be retained. However, the request is ...
diff --git a/pyramid/config/__init__.py b/pyramid/config/__init__.py --- a/pyramid/config/__init__.py +++ b/pyramid/config/__init__.py @@ -603,11 +603,15 @@ if autocommit: # callables can depend on the side effects of resolving a # deferred discriminator - undefer(discrimin...
diff --git a/pyramid/tests/test_config/test_i18n.py b/pyramid/tests/test_config/test_i18n.py --- a/pyramid/tests/test_config/test_i18n.py +++ b/pyramid/tests/test_config/test_i18n.py @@ -86,7 +86,7 @@ self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale]) - ...
null
null
namanjain12/pyramid_final:804eb0edf94d971acc7c2efccd019e24735a882e
true
null
1
34
null
1,225
0
0.75
1
0.525
1
0.3175
77.665
9,425
r2e_gym::train::5097
r2e_gym
train
5,097
pyramid__f194db1b3020e1c3610092f292c16a2f07219269
pyramid
pylons/pyramid
python
f194db1b3020e1c3610092f292c16a2f07219269
**Title:** Decorators Passed to `add_view` Are Applied in Reverse Order **Description:** When registering a view with multiple decorators using the `add_view` method, the decorators are applied in the opposite order of their declaration. This behavior leads to unexpected results when the order of decorators is signifi...
diff --git a/pyramid/config/views.py b/pyramid/config/views.py --- a/pyramid/config/views.py +++ b/pyramid/config/views.py @@ -42,6 +42,7 @@ url_quote, WIN, is_bound_method, + is_nonstr_iter ) from pyramid.exceptions import ( @@ -838,19 +839,19 @@ decorator A :term:`dotte...
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -199,7 +199,7 @@ return 'wrapped2' + fn(context, request) return inner config = self._makeO...
null
null
namanjain12/pyramid_final:f194db1b3020e1c3610092f292c16a2f07219269
true
null
1
22
null
1,455
0
0.75
1
0.525
1
0.315833
77.66
9,426
r2e_gym::train::256
r2e_gym
train
256
orange3__2085d4201a51a295c24cad04429c906c8a88b9b8
orange3
biolab/orange3
python
2085d4201a51a295c24cad04429c906c8a88b9b8
**Title:** Duplicate Variable Names Are Not Being Uniquely Renamed in PCA Transformation **Description:** When performing Principal Component Analysis (PCA) on a dataset that contains variables with duplicate names, the resulting transformed data does not rename these variables to ensure uniqueness. This leads to mult...
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 @@ -1,4 +1,5 @@ import numbers +from itertools import chain import numpy from AnyQt.QtWidgets import QFormLayout @@ -6,6 +7,7 @@ from Ora...
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:2085d4201a51a295c24cad04429c906c8a88b9b8
true
null
1
23
null
1,428
0
0.75
1
0.525
1
0.314667
77.6565
9,427
r2e_gym::train::368
r2e_gym
train
368
orange3__08b97ad35fe34ce6cd972647e13f71ae17d2b512
orange3
biolab/orange3
python
08b97ad35fe34ce6cd972647e13f71ae17d2b512
**Title:** Time Variables Missing `have_time` and `have_date` Flags After Transformation **Description:** When applying the `AsTime` transformation to variables, the resulting `TimeVariable` instances do not have the `have_time` or `have_date` flags set. This causes issues in downstream processes that rely on these fl...
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 @@ -1547,7 +1547,7 @@ def set_data(self, var, transform=()): super().set_data(var, transform) - if self.parent() is not None a...
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 @@ -1015,6 +1015,20 @@ v = apply_transform(domain.metas[0],table, []) self.assertIs(v, ...
null
null
namanjain12/orange3_final:08b97ad35fe34ce6cd972647e13f71ae17d2b512
true
null
1
8
null
1,725
0
0.75
1
0.525
1
0.314167
77.655
9,428
r2e_gym::train::219
r2e_gym
train
219
orange3__3b2c6c87051a852fdb6884847464f16d1d526d81
orange3
biolab/orange3
python
3b2c6c87051a852fdb6884847464f16d1d526d81
**Title:** Incorrect Handling of `context_settings` During Settings Migration **Description:** When migrating settings from older versions, the `context_settings` are not properly handled. Specifically, empty `context_settings` are not removed, and existing `context_settings` entries are not correctly migrated into in...
diff --git a/Orange/widgets/unsupervised/owlouvainclustering.py b/Orange/widgets/unsupervised/owlouvainclustering.py --- a/Orange/widgets/unsupervised/owlouvainclustering.py +++ b/Orange/widgets/unsupervised/owlouvainclustering.py @@ -49,6 +49,8 @@ description = "Detects communities in a network of nearest neighbo...
diff --git a/Orange/widgets/unsupervised/tests/test_owlouvain.py b/Orange/widgets/unsupervised/tests/test_owlouvain.py --- a/Orange/widgets/unsupervised/tests/test_owlouvain.py +++ b/Orange/widgets/unsupervised/tests/test_owlouvain.py @@ -1,13 +1,15 @@ from unittest.mock import patch import numpy as np +from sklear...
null
null
namanjain12/orange3_final:3b2c6c87051a852fdb6884847464f16d1d526d81
true
null
1
16
null
1,560
0
0.75
1
0.525
1
0.313333
77.6525
9,429
r2e_gym::train::23
r2e_gym
train
23
orange3__c51009e4b80ea52a187e6891c964218d0cbf09b7
orange3
biolab/orange3
python
c51009e4b80ea52a187e6891c964218d0cbf09b7
**Title:** Header Parsing Misinterprets Names with '#' When Flags Are Not Single Letters **Description:** When parsing header entries that contain the '#' character without restricting flags and types to single letters, the parser incorrectly splits the name, leading to truncated names. **Example Code:** ```python de...
diff --git a/Orange/data/io_base.py b/Orange/data/io_base.py --- a/Orange/data/io_base.py +++ b/Orange/data/io_base.py @@ -169,17 +169,27 @@ e.g. d#sex,c#age,cC#IQ """ - def is_flag(x): - return bool(cls._type_from_flag([x])[0] and - _RE_TYPES.match(cls....
diff --git a/Orange/data/tests/test_io_base.py b/Orange/data/tests/test_io_base.py --- a/Orange/data/tests/test_io_base.py +++ b/Orange/data/tests/test_io_base.py @@ -70,6 +70,16 @@ self.assertListEqual(types, types_) self.assertListEqual(flags, flags_) + def test_get_header_data_1_hashes(self): ...
null
null
namanjain12/orange3_final:c51009e4b80ea52a187e6891c964218d0cbf09b7
true
null
1
32
null
1,235
0
0.75
1
0.525
1
0.3125
77.65
9,430
r2e_gym::train::6549
r2e_gym
train
6,549
pillow__4e16a9a94212a0c0765f4dc8d234710fa0305848
pillow
python-pillow/pillow
python
4e16a9a94212a0c0765f4dc8d234710fa0305848
**Title:** GIFs with Multiple Frames Do Not Retain RGBA Transparency Correctly **Description:** When saving a GIF that includes multiple frames with RGBA transparency, the transparency information is not preserved properly. This leads to the second frame losing its transparency, resulting in incorrect image rendering ...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -424,7 +424,7 @@ RAWMODE = {"1": "L", "L": "L", "P": "P"} -def _normalize_mode(im, initial_call=False): +def _normalize_mode(im): """ Takes an image (or frame), returns an...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -842,6 +842,17 @@ assert "transparency" not in reloaded.info +def test_rgba_transparency(tmp_path): + out = str(tmp_path / "temp.gif") + + im = hopper("P") + im.save(out, save_...
null
null
namanjain12/pillow_final:4e16a9a94212a0c0765f4dc8d234710fa0305848
true
null
1
37
null
1,119
0
0.75
1
0.525
1
0.309833
77.642
9,431
r2e_gym::train::6337
r2e_gym
train
6,337
pillow__8924054dd9ff1a13caea785bfd66210193de8a74
pillow
python-pillow/pillow
python
8924054dd9ff1a13caea785bfd66210193de8a74
**Title:** Incorrect Handling of Large Signed Rational TIFF Metadata Values Exceeding 32-Bit Integer Limits **Description:** When storing TIFF metadata with large signed rational numbers, values that exceed the 32-bit signed integer range are incorrectly limited. This results in invalid numerators or denominators, cau...
diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -263,20 +263,18 @@ return n_d[::-1] if inv else n_d -def _limit_signed_rational(frac, max_val, min_val): - if frac >= 0: - return _limit_rational(frac, max_val) - ...
diff --git a/Tests/test_file_tiff_metadata.py b/Tests/test_file_tiff_metadata.py --- a/Tests/test_file_tiff_metadata.py +++ b/Tests/test_file_tiff_metadata.py @@ -277,7 +277,7 @@ self.assertEqual(denominator, reloaded.tag_v2[37380].denominator) # out of bounds of 4 byte signed long - numerato...
null
null
namanjain12/pillow_final:8924054dd9ff1a13caea785bfd66210193de8a74
true
null
1
26
null
1,337
0
0.75
1
0.525
1
0.3095
77.641
9,432
r2e_gym::train::6209
r2e_gym
train
6,209
pillow__d5d6c3ba8cd85c180682b33a1fac82c5b9c9a05c
pillow
python-pillow/pillow
python
d5d6c3ba8cd85c180682b33a1fac82c5b9c9a05c
**Title:** APNG Frames Saved with Incorrect Duration and Disposal Settings **Description:** When saving animated PNGs (APNG) using PIL's `PngImagePlugin`, the encoder does not correctly handle default values for the `duration`, `disposal`, and `blend` parameters when they are not explicitly provided. This results in f...
diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -1061,8 +1061,10 @@ default_image = im.encoderinfo.get("default_image", im.info.get("default_image")) duration = im.encoderinfo.get("duration", im.info.get("duration", 0)) ...
diff --git a/Tests/test_file_apng.py b/Tests/test_file_apng.py --- a/Tests/test_file_apng.py +++ b/Tests/test_file_apng.py @@ -441,6 +441,12 @@ assert im.n_frames == 1 assert im.info.get("duration") == 750 + # test info duration + frame.info["duration"] = 750 + frame.save(test_file, save_al...
null
null
namanjain12/pillow_final:d5d6c3ba8cd85c180682b33a1fac82c5b9c9a05c
true
null
1
27
null
1,309
0
0.75
1
0.525
1
0.308167
77.637
9,433
r2e_gym::train::5622
r2e_gym
train
5,622
scrapy__c2a31974ffc06412a5ab8d87fe070c98cd9c856b
scrapy
scrapy/scrapy
python
c2a31974ffc06412a5ab8d87fe070c98cd9c856b
**Title**: `get_func_args` Fails to Retrieve Arguments for Built-in Functions with `stripself=True` **Description** When using the `get_func_args` utility to obtain the argument names of certain built-in functions with `stripself=True`, it incorrectly returns an empty list instead of the expected arguments. **Exampl...
diff --git a/scrapy/utils/python.py b/scrapy/utils/python.py --- a/scrapy/utils/python.py +++ b/scrapy/utils/python.py @@ -174,33 +174,33 @@ def get_func_args(func, stripself=False): - """Return the argument name list of a callable""" - if inspect.isfunction(func): - spec = inspect.getfullargspec(func...
diff --git a/tests/test_utils_python.py b/tests/test_utils_python.py --- a/tests/test_utils_python.py +++ b/tests/test_utils_python.py @@ -235,20 +235,16 @@ self.assertEqual(get_func_args(partial_f3), ["c"]) self.assertEqual(get_func_args(cal), ["a", "b", "c"]) self.assertEqual(get_func_args(...
null
null
namanjain12/scrapy_final:c2a31974ffc06412a5ab8d87fe070c98cd9c856b
true
null
1
52
null
802
0
0.75
1
0.525
1
0.307
77.6335
9,434
r2e_gym::train::6414
r2e_gym
train
6,414
pillow__3fd6a1e31201719e527ec9b3aead2d97a5aec7ae
pillow
python-pillow/pillow
python
3fd6a1e31201719e527ec9b3aead2d97a5aec7ae
**Title:** Palette Handling in ImageOps.pad and ImageOps.expand Causes Incorrect RGB Conversion for 'P' and 'PA' Modes **Description:** When using `ImageOps.pad` or `ImageOps.expand` on images with palette modes ('P' or 'PA'), the palette information isn't preserved correctly. This leads to discrepancies when convert...
diff --git a/src/PIL/ImageOps.py b/src/PIL/ImageOps.py --- a/src/PIL/ImageOps.py +++ b/src/PIL/ImageOps.py @@ -21,7 +21,7 @@ import operator import re -from . import Image +from . import Image, ImagePalette # # helpers @@ -291,6 +291,8 @@ out = resized else: out = Image.new(image.mode, si...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -147,6 +147,21 @@ new_im = ImageOps.pad(im, (1, 4)) assert new_im.load()[0, 2] == 1 + + +@pytest.mark.parametrize("mode", ("P", "PA")) +def test_palette(mode): + im = hopper(mode) + +...
null
null
namanjain12/pillow_final:3fd6a1e31201719e527ec9b3aead2d97a5aec7ae
true
null
1
9
null
1,661
0
0.75
1
0.525
1
0.306833
77.633
9,435
r2e_gym::train::4955
r2e_gym
train
4,955
datalad__31b5e7f11582c1ba5e97c1f3089d8a5d1f298041
datalad
datalad/datalad
python
31b5e7f11582c1ba5e97c1f3089d8a5d1f298041
**Title:** Suppressed Messages Lack Feedback, Causing User Confusion During Long Operations **Description:** When performing operations that suppress multiple messages, users experience a confusing silence, especially if the operation takes a considerable amount of time. Without feedback on the number of suppressed me...
diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py --- a/datalad/interface/utils.py +++ b/datalad/interface/utils.py @@ -514,7 +514,7 @@ if res.get('message', None) else '')) -def _display_suppressed_message(nsimilar, ndisplayed): +def _display_suppressed_message(nsimilar, ndispla...
diff --git a/datalad/interface/tests/test_utils.py b/datalad/interface/tests/test_utils.py --- a/datalad/interface/tests/test_utils.py +++ b/datalad/interface/tests/test_utils.py @@ -417,6 +417,14 @@ assert_not_in("path10", cmo.out) assert_re_in(r"[^-0-9]1 .* suppressed", cmo.out, match=False) + ...
null
null
namanjain12/datalad_final:31b5e7f11582c1ba5e97c1f3089d8a5d1f298041
true
null
1
13
null
1,580
0
0.75
1
0.525
1
0.306667
77.6325
9,436
r2e_gym::train::5312
r2e_gym
train
5,312
aiohttp__18a281eff089456797a6c783bec93cb93fbb0995
aiohttp
aio-libs/aiohttp
python
18a281eff089456797a6c783bec93cb93fbb0995
**Title:** Closing a Connection Does Not Release It from the Connector **Description:** When attempting to close a connection, the connection is not properly released from the connector. This results in the transport remaining active instead of being set to `None`, which could lead to resource leaks or unexpected beha...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -35,7 +35,9 @@ def close(self): if self._transport is not None: - self._transport.close() + self._connector._release( + self._key, self._request, self._t...
diff --git a/tests/test_connector.py b/tests/test_connector.py --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -39,8 +39,10 @@ self.connector, self.key, self.request, self.transport, self.protocol, self.loop) conn.close() - self.assertTrue(self.transport.close.ca...
null
null
namanjain12/aiohttp_final:18a281eff089456797a6c783bec93cb93fbb0995
true
null
1
25
null
1,333
0
0.75
1
0.525
1
0.3055
77.629
9,437
r2e_gym::train::81
r2e_gym
train
81
orange3__5357f43a3929e36919b4279c4b5156967fa4d300
orange3
biolab/orange3
python
5357f43a3929e36919b4279c4b5156967fa4d300
**Title:** Recent URLs Not Reordered When Re-entered **Description:** When a user re-enters an existing URL into the recent URLs list, the URL should move to the top of the list to indicate it was recently used. However, currently, re-entering a URL does not change its position in the list. **Example Code:** ```pytho...
diff --git a/Orange/widgets/data/owfile.py b/Orange/widgets/data/owfile.py --- a/Orange/widgets/data/owfile.py +++ b/Orange/widgets/data/owfile.py @@ -28,6 +28,8 @@ open_filename_dialog, stored_recent_paths_prepend from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets.widget import Out...
diff --git a/Orange/widgets/data/tests/test_owfile.py b/Orange/widgets/data/tests/test_owfile.py --- a/Orange/widgets/data/tests/test_owfile.py +++ b/Orange/widgets/data/tests/test_owfile.py @@ -14,6 +14,7 @@ from AnyQt.QtCore import QMimeData, QPoint, Qt, QUrl, QPointF from AnyQt.QtGui import QDragEnterEvent, QDro...
null
null
namanjain12/orange3_final:5357f43a3929e36919b4279c4b5156967fa4d300
true
null
1
16
null
1,512
0
0.75
1
0.525
1
0.305333
77.6285
9,438
r2e_gym::train::240
r2e_gym
train
240
orange3__3be8d0eba7cc2f9704d65ea76938b63d3a57ca0e
orange3
biolab/orange3
python
3be8d0eba7cc2f9704d65ea76938b63d3a57ca0e
**Title:** OWDBSCAN Widget Fails to Assign Unique Meta Variable Names with Duplicate Attributes **Description:** When using the OWDBSCAN widget with datasets that contain duplicate attribute names, the widget does not assign unique names to the resulting meta variables. This leads to conflicts and unexpected behavior ...
diff --git a/Orange/widgets/unsupervised/owdbscan.py b/Orange/widgets/unsupervised/owdbscan.py --- a/Orange/widgets/unsupervised/owdbscan.py +++ b/Orange/widgets/unsupervised/owdbscan.py @@ -1,4 +1,5 @@ import sys +from itertools import chain import numpy as np from AnyQt.QtWidgets import QApplication @@ -10,6 +11...
diff --git a/Orange/widgets/unsupervised/tests/test_owdbscan.py b/Orange/widgets/unsupervised/tests/test_owdbscan.py --- a/Orange/widgets/unsupervised/tests/test_owdbscan.py +++ b/Orange/widgets/unsupervised/tests/test_owdbscan.py @@ -4,7 +4,7 @@ from Orange.data import Table from Orange.distance import Euclidean fr...
null
null
namanjain12/orange3_final:3be8d0eba7cc2f9704d65ea76938b63d3a57ca0e
true
null
1
15
null
1,524
0
0.75
1
0.525
1
0.304
77.6245
9,439
r2e_gym::train::6246
r2e_gym
train
6,246
pillow__8f0db65cd7ca102c8e3c8072afcceba6bb76965e
pillow
python-pillow/pillow
python
8f0db65cd7ca102c8e3c8072afcceba6bb76965e
**Title:** `exif_transpose` Fails to Correctly Orient Images Using Generic `Image` Instances **Description:** When using the `exif_transpose` function on a standard `Image` instance, the image does not get properly transposed based on its EXIF orientation data. This results in incorrectly oriented images, which can le...
diff --git a/src/PIL/ImageOps.py b/src/PIL/ImageOps.py --- a/src/PIL/ImageOps.py +++ b/src/PIL/ImageOps.py @@ -532,22 +532,22 @@ :param image: The image to transpose. :return: An image. """ - if isinstance(image, ImageFile.ImageFile): - exif = image.getexif() - if exif: - orie...
diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -240,22 +240,26 @@ for i in range(2, 9): im = Image.open("Tests/images/hopper_orientation_"+str(i)+ext) orientations.append(im) - for im in ...
null
null
namanjain12/pillow_final:8f0db65cd7ca102c8e3c8072afcceba6bb76965e
true
null
1
36
null
1,104
0
0.75
1
0.525
1
0.304
77.6245
9,440
r2e_gym::train::6480
r2e_gym
train
6,480
pillow__2245df0ac30976960781f291bc45a2ad56cee064
pillow
python-pillow/pillow
python
2245df0ac30976960781f291bc45a2ad56cee064
**Title:** IPTC_NAA_CHUNK Tag Preserved Incorrectly with Non-BYTE/UNDEFINED Types **Description:** When saving TIFF images, the `IPTC_NAA_CHUNK` tag should only be preserved if its type is `BYTE` or `UNDEFINED`. Currently, when the tag is assigned a different type, such as `LONG`, it is still being retained in the sav...
diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -1653,6 +1653,16 @@ except Exception: pass # might not be an IFD. Might not have populated type + legacy_ifd = {} + if hasattr(im, "tag"): + leg...
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 @@ -621,6 +621,19 @@ assert_image_equal_tofile(im, tmpfile) + def test_iptc(self, tmp_path: Path) -> None: + # Do not preserve IPTC_NAA_CHUNK by default if type is LONG +...
null
null
namanjain12/pillow_final:2245df0ac30976960781f291bc45a2ad56cee064
true
null
1
30
null
1,222
0
0.75
1
0.525
1
0.303667
77.6235
9,441
r2e_gym::train::6244
r2e_gym
train
6,244
pillow__2a7eb5415ef20be08d60057623bde858310707fe
pillow
python-pillow/pillow
python
2a7eb5415ef20be08d60057623bde858310707fe
**Title:** Incorrect Image Mode When Saving ICO Files in BMP Format **Description:** When attempting to save ICO images in BMP format, images with modes `'1'`, `'L'`, `'P'`, and `'RGB'` are incorrectly saved with the `'RGBA'` mode. This results in a mismatch between the original image mode and the saved file, leading ...
diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -246,6 +246,12 @@ the size of each image. .. versionadded:: 8.1.0 + +**bitmap_format** + By default, the image data will be sav...
diff --git a/Tests/test_file_ico.py b/Tests/test_file_ico.py --- a/Tests/test_file_ico.py +++ b/Tests/test_file_ico.py @@ -54,6 +54,35 @@ assert (32, 32) == reloaded.size assert reloaded.format == "ICO" assert_image_equal(reloaded, hopper().resize((32, 32), Image.LANCZOS)) + + +@pytest.mark.p...
null
null
namanjain12/pillow_final:2a7eb5415ef20be08d60057623bde858310707fe
true
null
3
37
null
1,075
0
0.75
1
0.525
1
0.3025
77.62
9,442
r2e_gym::train::431
r2e_gym
train
431
orange3__a20bda7762d182408b1e25187d7459ee41ad29af
orange3
biolab/orange3
python
a20bda7762d182408b1e25187d7459ee41ad29af
**Title:** OWPCA Widget Incorrectly Invalidates Selection When Adjusting Components **Description:** When adjusting the number of components in the OWPCA widget, the selection is invalidated unexpectedly under certain conditions. Specifically, setting the number of components to the current value, to zero, or when th...
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 @@ -199,18 +199,19 @@ self._update_axis() def _on_cut_changed(self, components): - - if not (self.ncomponents == 0 and - ...
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 @@ -1,6 +1,7 @@ # Test methods with long descriptive names can omit docstrings -# pylint: disable=mi...
null
null
namanjain12/orange3_final:a20bda7762d182408b1e25187d7459ee41ad29af
true
null
1
15
null
1,515
0
0.75
1
0.525
1
0.3025
77.62
9,443
swe_bench::dev::8
swe_bench
dev
8
marshmallow-code__marshmallow-2123
marshmallow-code/marshmallow
marshmallow-code/marshmallow
python
5a10e83c557d2ee97799c2b85bec49fc90381656
fields.URL should allow relative-only validation Relative URLs may be used to redirect the user within the site, such as to sign in, and allowing absolute URLs without extra validation opens up a possibility of nefarious redirects. Current `fields.URL(relative = True)` allows relative URLs _in addition_ to absolute UR...
Maybe an additional flag `absolute` that would default to `True`? Would you like to work on this? @lafrech Thank you for commenting. My thinking would be that flavors could be selected individually, as if flags are used, so they could be combined. Something along these lines: ``` args = { "ref": fields....
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1710,6 +1710,7 @@ def __init__( self, *, relative: bool = False, + absolute: bool = True, schemes: types.StrSequenceOrSet | None = None, ...
diff --git a/tests/test_validate.py b/tests/test_validate.py --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -75,6 +75,9 @@ def test_url_absolute_invalid(invalid_url): "http://example.com/./icons/logo.gif", "ftp://example.com/../../../../g", "http://example.com/g?y/./x", + ...
["tests/test_validate.py::test_url_relative_only_valid[/foo/bar]", "tests/test_validate.py::test_url_relative_only_valid[/foo?bar]", "tests/test_validate.py::test_url_relative_only_valid[?bar]", "tests/test_validate.py::test_url_relative_only_valid[/foo?bar#baz]", "tests/test_validate.py::test_url_relative_only_invalid...
["tests/test_validate.py::test_url_absolute_valid[http://example.org]", "tests/test_validate.py::test_url_absolute_valid[https://example.org]", "tests/test_validate.py::test_url_absolute_valid[ftp://example.org]", "tests/test_validate.py::test_url_absolute_valid[ftps://example.org]", "tests/test_validate.py::test_url_a...
null
true
2023-04-26T19:13:12Z
2
100
23
1,039
0
0.8
1
0.4
1
0.5065
77.6195
9,444
r2e_gym::train::5255
r2e_gym
train
5,255
pyramid__a4492a9bbe0a58aaed68f12657d3ddf979d22921
pyramid
pylons/pyramid
python
a4492a9bbe0a58aaed68f12657d3ddf979d22921
**Title:** Missing View Defaults Prevents PredicateMismatch from Being Raised in NotFound and Forbidden Views **Description:** When adding forbidden and notfound views without applying view defaults, the views do not correctly enforce predicate conditions. This results in the views being invoked even when they should ...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -56,6 +56,10 @@ browsers alternate between UTF-8 and Latin-1, so the policy now attempts to decode with UTF-8 first, and will fallback to Latin-1. See https://github.com/Pylons/pyramid/pull/1170 + +- The ``@view_defaults`` now apply ...
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -1815,6 +1815,36 @@ self.assertRaises(ConfigurationError, config.add_forbidden_view, http_cach...
null
null
namanjain12/pyramid_final:a4492a9bbe0a58aaed68f12657d3ddf979d22921
true
null
2
6
null
1,689
0
0.75
1
0.525
1
0.3015
77.617
9,445
r2e_gym::train::6435
r2e_gym
train
6,435
pillow__93bf9912e2981c8c03a89d4866d1a0d58f88932d
pillow
python-pillow/pillow
python
93bf9912e2981c8c03a89d4866d1a0d58f88932d
**Incorrect Handling of GIF Disposal Method 2 Leads to Transparency Issues** **Description** When saving GIF images with multiple frames using disposal method 2, the transparency handling is incorrect. Specifically, the background is not properly updated, resulting in unexpected pixel values and unintended transparenc...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -629,7 +629,7 @@ "duration" ] continue - if encoderinfo.get("disposal") == 2: + i...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -647,6 +647,9 @@ # Center remains red every frame assert rgb_img.getpixel((50, 50)) == circle + # Check that frame transparency wasn't added unnecessarily + ...
null
null
namanjain12/pillow_final:93bf9912e2981c8c03a89d4866d1a0d58f88932d
true
null
1
6
null
1,685
0
0.75
1
0.525
1
0.300833
77.615
9,446
r2e_gym::train::6409
r2e_gym
train
6,409
pillow__47773794656c4b303416b7340329ec19f4882935
pillow
python-pillow/pillow
python
47773794656c4b303416b7340329ec19f4882935
**Title:** PDF Saving Does Not Support Separate X and Y DPI, Leading to Incorrect Resolutions **Description:** When attempting to save a PDF with different horizontal (X) and vertical (Y) DPI settings, the resulting image resolutions are incorrect. Instead of applying the specified DPI values independently for the X a...
diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -1497,6 +1497,11 @@ image, will determine the physical dimensions of the page that will be saved in the PDF. +**dpi** + A tuple...
diff --git a/Tests/test_file_pdf.py b/Tests/test_file_pdf.py --- a/Tests/test_file_pdf.py +++ b/Tests/test_file_pdf.py @@ -78,6 +78,34 @@ float(d) for d in contents.split(b"/MediaBox [ 0 0 ")[1].split(b"]")[0].split() ) assert size == (61.44, 61.44) + + +@pytest.mark.parametrize( + "params", + ...
null
null
namanjain12/pillow_final:47773794656c4b303416b7340329ec19f4882935
true
null
2
24
null
1,322
0
0.75
1
0.525
1
0.300333
77.6135
9,447
r2e_gym::train::5972
r2e_gym
train
5,972
tornado__e00e4c61fe2523224887fa0530fe780213c4296d
tornado
tornadoweb/tornado
python
e00e4c61fe2523224887fa0530fe780213c4296d
**Title:** Combining `@asynchronous` and `@gen.coroutine` Causes Requests to Hang Without Explicit Finish **Description:** When using the `@asynchronous` decorator in combination with `@gen.coroutine` in Tornado request handlers, the requests do not finish automatically upon successful completion of the coroutine. Add...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -73,6 +73,7 @@ import types import uuid +from tornado.concurrent import Future from tornado import escape from tornado import httputil from tornado import locale @@ -1165,6 +1166,8 @@ self.finish() """...
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 @@ -647,6 +647,41 @@ self.finish("3") +class GenCoroutineSequenceHandler(RequestHandler): + @asynchronous + @gen.coroutine + def get(self): + self.io_loop = self.re...
null
null
namanjain12/tornado_final:e00e4c61fe2523224887fa0530fe780213c4296d
true
null
1
18
null
1,442
0
0.75
1
0.525
1
0.300333
77.6135
9,448
r2e_gym::train::5478
r2e_gym
train
5,478
aiohttp__4f41d05e1a1340303a92e77a166646af370291e8
aiohttp
aio-libs/aiohttp
python
4f41d05e1a1340303a92e77a166646af370291e8
**Title:** WebSocket client receives NORMAL_CLOSURE instead of GOING_AWAY when server shuts down **Description:** When the server initiates a shutdown, the WebSocket client is expected to receive a close message with the code `1001` (GOING_AWAY). However, the client currently receives a close message with the code `10...
diff --git a/CHANGES/8680.bugfix.rst b/CHANGES/8680.bugfix.rst --- a/CHANGES/8680.bugfix.rst +++ b/CHANGES/8680.bugfix.rst @@ -0,0 +1 @@ +Fixed a race closing the server-side WebSocket where the close code would not reach the client. -- by :user:`bdraco`. diff --git a/aiohttp/web_ws.py b/aiohttp/web_ws.py --- a/aiohttp...
diff --git a/tests/test_web_websocket_functional.py b/tests/test_web_websocket_functional.py --- a/tests/test_web_websocket_functional.py +++ b/tests/test_web_websocket_functional.py @@ -4,6 +4,7 @@ import asyncio import contextlib import sys +import weakref from typing import Any, Optional import pytest @@ -11,...
null
null
namanjain12/aiohttp_final:4f41d05e1a1340303a92e77a166646af370291e8
true
null
2
29
null
1,219
0
0.75
1
0.525
1
0.299833
77.612
9,449
r2e_gym::train::4088
r2e_gym
train
4,088
coveragepy__f7b71e73565b3a12c67ed6a2c11ffee6fda2f600
coveragepy
nedbat/coveragepy
python
f7b71e73565b3a12c67ed6a2c11ffee6fda2f600
**Title:** Coverage Analysis Misinterprets Named Match Patterns as Wildcards in Match-Case Statements **Description:** When using `match-case` statements with named patterns, the coverage analysis incorrectly treats these named patterns as wildcard patterns. This leads to inaccurate coverage arcs, causing tests to fai...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -29,6 +29,9 @@ messages used internal terminology, making it hard for people to understand the problem. They are now changed to mention "branch coverage data" and "statement coverage data." + +- Fixed a minor branch coverage problem...
diff --git a/tests/test_arcs.py b/tests/test_arcs.py --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1375,7 +1375,7 @@ ) assert self.stdout() == "None\nno go\ngo: n\n" - def test_absurd_wildcard(self) -> None: + def test_absurd_wildcards(self) -> None: # https://github.com/nedba...
null
null
namanjain12/coveragepy_final:f7b71e73565b3a12c67ed6a2c11ffee6fda2f600
true
null
2
20
null
1,395
0
0.75
1
0.525
1
0.299167
77.61
9,450
r2e_gym::train::5671
r2e_gym
train
5,671
scrapy__0fcb0554d10d28f33d5c53d964d5d8ebe91d6410
scrapy
scrapy/scrapy
python
0fcb0554d10d28f33d5c53d964d5d8ebe91d6410
**Title:** `response.json()` Causes Unnecessary Memory Allocation and Incorrect Argument Type **Description:** When calling the `json()` method on a `TextResponse` object, the method unnecessarily decodes the response body from bytes to a string before loading the JSON. This leads to additional memory allocation and c...
diff --git a/docs/news.rst b/docs/news.rst --- a/docs/news.rst +++ b/docs/news.rst @@ -2,6 +2,23 @@ Release notes ============= + +.. _release-2.11.0: + +Scrapy 2.11.0 (to be released) +------------------------------ + +Backward-incompatible changes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- The :meth:`TextResponse.json...
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 @@ -844,7 +844,7 @@ with mock.patch("json.loads") as mock_json: for _ in range(2): json_response.json() - mock_json...
null
null
namanjain12/scrapy_final:0fcb0554d10d28f33d5c53d964d5d8ebe91d6410
true
null
2
19
null
1,414
0
0.75
1
0.525
1
0.299
77.6095
9,451
r2e_gym::train::6009
r2e_gym
train
6,009
tornado__245334401570a40ba01813d9adb14976c50d77dd
tornado
tornadoweb/tornado
python
245334401570a40ba01813d9adb14976c50d77dd
Title: `set_cookie` Fails to Recognize Mixed-Case Keyword Arguments **Description** When using `set_cookie` with mixed-case keyword arguments, the cookie attributes are not correctly applied. This results in cookies being set without the intended flags, such as `HttpOnly` and `Path`, which can lead to security issues...
diff --git a/docs/releases.rst b/docs/releases.rst --- a/docs/releases.rst +++ b/docs/releases.rst @@ -4,6 +4,7 @@ .. toctree:: :maxdepth: 2 + releases/v6.3.1 releases/v6.3.0 releases/v6.2.0 releases/v6.1.0 diff --git a/docs/releases/v6.3.1.rst b/docs/releases/v6.3.1.rst --- a/docs/releases/v6.3.1....
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 @@ -17,6 +17,7 @@ from tornado.simple_httpclient import SimpleAsyncHTTPClient from tornado.template import DictLoader from tornado.testing import AsyncHTTPTestCase, AsyncTestCase, ExpectLog,...
null
null
namanjain12/tornado_final:245334401570a40ba01813d9adb14976c50d77dd
true
null
3
30
null
1,193
0
0.75
1
0.525
1
0.298833
77.609
9,452
r2e_gym::train::5747
r2e_gym
train
5,747
scrapy__9ec60e8e4aad9f4ee2405e601ca943beef48a139
scrapy
scrapy/scrapy
python
9ec60e8e4aad9f4ee2405e601ca943beef48a139
**Title:** `<base href>` Not Injected in HTML Responses with Complex `<head>` Tags **Description:** When using the `open_in_browser` utility with HTML responses that contain comments or additional attributes within the `<head>` tag, the `<base href="...">` tag is not being correctly injected. This leads to relative UR...
diff --git a/scrapy/utils/response.py b/scrapy/utils/response.py --- a/scrapy/utils/response.py +++ b/scrapy/utils/response.py @@ -3,8 +3,9 @@ scrapy.http.Response objects """ import os +import re +import tempfile import webbrowser -import tempfile from typing import Any, Callable, Iterable, Optional, Tuple, Union...
diff --git a/tests/test_utils_response.py b/tests/test_utils_response.py --- a/tests/test_utils_response.py +++ b/tests/test_utils_response.py @@ -83,3 +83,56 @@ self.assertEqual(response_status_message(200), '200 OK') self.assertEqual(response_status_message(404), '404 Not Found') self.asser...
null
null
namanjain12/scrapy_final:9ec60e8e4aad9f4ee2405e601ca943beef48a139
true
null
1
8
null
1,632
0
0.75
1
0.525
1
0.298667
77.6085
9,453
r2e_gym::train::27
r2e_gym
train
27
orange3__06794a7a3101f33e93d21b0773a6585164cfaab3
orange3
biolab/orange3
python
06794a7a3101f33e93d21b0773a6585164cfaab3
**Title:** Auto Save Disabled Incorrectly When Stored Path Is Relative and Missing **Description:** When the `stored_path` is set to a relative path that does not exist, the widget incorrectly disables the `auto_save` feature. This causes issues when attempting to move workflows, as the widget fails to update the `las...
diff --git a/Orange/widgets/utils/save/owsavebase.py b/Orange/widgets/utils/save/owsavebase.py --- a/Orange/widgets/utils/save/owsavebase.py +++ b/Orange/widgets/utils/save/owsavebase.py @@ -122,23 +122,21 @@ """ Compute absolute path from `stored_path` from settings. - Auto save is disabled ...
diff --git a/Orange/widgets/utils/save/tests/test_owsavebase.py b/Orange/widgets/utils/save/tests/test_owsavebase.py --- a/Orange/widgets/utils/save/tests/test_owsavebase.py +++ b/Orange/widgets/utils/save/tests/test_owsavebase.py @@ -103,7 +103,8 @@ b = b.replace("\\", "/") self.assertEqual(a.rst...
null
null
namanjain12/orange3_final:06794a7a3101f33e93d21b0773a6585164cfaab3
true
null
1
24
null
1,311
0
0.75
1
0.525
1
0.2985
77.608
9,454
r2e_gym::train::5175
r2e_gym
train
5,175
pyramid__b6d007065132ad313a0777eb89a71b6fbdc4bcdf
pyramid
pylons/pyramid
python
b6d007065132ad313a0777eb89a71b6fbdc4bcdf
**Title:** Router incorrectly hides valid views when a view raises PredicateMismatch **Description:** When multiple views are registered for the same context, if one of the views raises a `PredicateMismatch` exception, the router fails to consider other valid views. This leads to the router not finding a suitable view...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -101,7 +101,8 @@ predicate mismatch error when trying to use GET or DELETE methods. Now the views are found and no predicate mismatch is raised. - See https://github.com/Pylons/pyramid/pull/786 + See https://github.com/Pylons/pyram...
diff --git a/pyramid/tests/test_router.py b/pyramid/tests/test_router.py --- a/pyramid/tests/test_router.py +++ b/pyramid/tests/test_router.py @@ -1180,11 +1180,9 @@ from pyramid.interfaces import IViewClassifier from pyramid.interfaces import IRequest, IResponse from pyramid.response import ...
null
null
namanjain12/pyramid_final:b6d007065132ad313a0777eb89a71b6fbdc4bcdf
true
null
3
7
null
1,651
0
0.75
1
0.525
1
0.2985
77.608
9,455
r2e_gym::train::6524
r2e_gym
train
6,524
pillow__d30eb007ef26dff16d788b2070737f3bb0f2c2b3
pillow
python-pillow/pillow
python
d30eb007ef26dff16d788b2070737f3bb0f2c2b3
**Title:** XPM Images Appear Scrambled When Using Custom Load Read/Seek Methods **Description:** When loading XPM images with custom `load_read` or `load_seek` methods, the resulting image appears scrambled, showing significant pixel differences compared to the expected output. **Example Buggy Code:** ```python from ...
diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -133,11 +133,27 @@ return pixel self.map = None - + use_mmap = self.filename and len(self.tile) == 1 + # As of pypy 2.1.0, memory mapping was failing here. + use_mmap = use_mmap...
diff --git a/Tests/test_file_xpm.py b/Tests/test_file_xpm.py --- a/Tests/test_file_xpm.py +++ b/Tests/test_file_xpm.py @@ -1,4 +1,4 @@ -from helper import unittest, PillowTestCase +from helper import unittest, PillowTestCase, lena from PIL import Image @@ -14,6 +14,9 @@ self.assertEqual(im.mode, "P") ...
null
null
namanjain12/pillow_final:d30eb007ef26dff16d788b2070737f3bb0f2c2b3
true
null
1
34
null
1,106
0
0.75
1
0.525
1
0.297667
77.6055
9,456
r2e_gym::train::187
r2e_gym
train
187
orange3__fabacdf3870d1706b401dce5356325d024a9cd45
orange3
biolab/orange3
python
fabacdf3870d1706b401dce5356325d024a9cd45
**OWHeatMap Widget Includes Hidden Attributes in Effective Data** **Description:** When providing data with hidden attributes to the OWHeatMap widget, the hidden attributes are still included in the effective data and displayed in the heatmap. This causes inconsistencies in data visualization and processing, leading t...
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 @@ -229,8 +229,8 @@ #: The original data with all features (retained to #: preserve the domain on the output) self...
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 @@ -29,15 +29,15 @@ super().setUpClass() WidgetOutputsTestMixin.init(cls) - ...
null
null
namanjain12/orange3_final:fabacdf3870d1706b401dce5356325d024a9cd45
true
null
1
19
null
1,406
0
0.75
1
0.525
1
0.297667
77.6055
9,457
r2e_gym::train::478
r2e_gym
train
478
orange3__e00e95dcf10b681d4fb8ebe2d894c63f1657067b
orange3
biolab/orange3
python
e00e95dcf10b681d4fb8ebe2d894c63f1657067b
**Title:** OWCorrelations Widget Fails to Update Status Bar with Data Summaries **Description:** When data is provided to the OWCorrelations widget, the status bar does not display summaries of the input and output data. This omission prevents users from seeing essential information about the dataset, such as the numb...
diff --git a/Orange/widgets/data/owcorrelations.py b/Orange/widgets/data/owcorrelations.py --- a/Orange/widgets/data/owcorrelations.py +++ b/Orange/widgets/data/owcorrelations.py @@ -25,6 +25,7 @@ from Orange.widgets.utils.itemmodels import DomainModel from Orange.widgets.utils.signals import Input, Output from Oran...
diff --git a/Orange/widgets/data/tests/test_owcorrelations.py b/Orange/widgets/data/tests/test_owcorrelations.py --- a/Orange/widgets/data/tests/test_owcorrelations.py +++ b/Orange/widgets/data/tests/test_owcorrelations.py @@ -1,5 +1,5 @@ # Test methods with long descriptive names can omit docstrings -# pylint: disabl...
null
null
namanjain12/orange3_final:e00e95dcf10b681d4fb8ebe2d894c63f1657067b
true
null
1
15
null
1,486
0
0.75
1
0.525
1
0.297667
77.6055
9,458
r2e_gym::train::6042
r2e_gym
train
6,042
pillow__ff13d184d83c519752c9916740669e1d0968417c
pillow
python-pillow/pillow
python
ff13d184d83c519752c9916740669e1d0968417c
**Title:** GIF Frames Saved with Incorrect Disposal Method **Description:** When saving animated GIFs with a specified disposal method, the resulting frames do not retain the correct disposal settings. This leads to unexpected rendering behavior when the GIF is played. **Example Code:** ```python from PIL import Imag...
diff --git a/PIL/GifImagePlugin.py b/PIL/GifImagePlugin.py --- a/PIL/GifImagePlugin.py +++ b/PIL/GifImagePlugin.py @@ -392,6 +392,7 @@ def _write_multiple_frames(im, fp, palette): duration = im.encoderinfo.get("duration", None) + disposal = im.encoderinfo.get('disposal', None) im_frames = [] fram...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -259,6 +259,40 @@ except EOFError: pass + def test_save_dispose(self): + out = self.tempfile('temp.gif') + im_list = [ + Image.new('L', (100, 100)...
null
null
namanjain12/pillow_final:ff13d184d83c519752c9916740669e1d0968417c
true
null
2
24
null
1,303
0
0.75
1
0.525
1
0.297167
77.604
9,459
r2e_gym::train::6339
r2e_gym
train
6,339
pillow__da61ed133089c33acea39b5c541864826aaf7d6b
pillow
python-pillow/pillow
python
da61ed133089c33acea39b5c541864826aaf7d6b
**[ISSUE]** **Title:** Incorrect `im.tile` Structure When Opening IPTC Images Causes Processing Issues **Description:** When opening an IPTC image, the `im.tile` attribute is structured incorrectly. Instead of the expected format where the tile entry contains the image bounding box followed by the offset and compress...
diff --git a/src/PIL/IptcImagePlugin.py b/src/PIL/IptcImagePlugin.py --- a/src/PIL/IptcImagePlugin.py +++ b/src/PIL/IptcImagePlugin.py @@ -131,24 +131,20 @@ # tile if tag == (8, 10): - self.tile = [ - ("iptc", (compression, offset), (0, 0, self.size[0], self.size[1])) - ...
diff --git a/Tests/test_file_iptc.py b/Tests/test_file_iptc.py --- a/Tests/test_file_iptc.py +++ b/Tests/test_file_iptc.py @@ -9,6 +9,15 @@ from .helper import hopper TEST_FILE = "Tests/images/iptc.jpg" + + +def test_open(): + f = BytesIO( + b"\x1c\x03<\x00\x02\x01\x00\x1c\x03x\x00\x01\x01\x1c" + b...
null
null
namanjain12/pillow_final:da61ed133089c33acea39b5c541864826aaf7d6b
true
null
1
10
null
1,582
0
0.75
1
0.525
1
0.297
77.6035
9,460
r2e_gym::train::5679
r2e_gym
train
5,679
scrapy__3fda2fe103dafa8d4d48b21c63b2321ccec9c378
scrapy
scrapy/scrapy
python
3fda2fe103dafa8d4d48b21c63b2321ccec9c378
**Title:** SitemapSpider Does Not Protect Against Gzip Bomb Sitemaps **Description:** When the SitemapSpider processes a gzip-compressed sitemap that exceeds the configured maximum download size, it fails to handle the oversized decompression properly. Instead of aborting the decompression process, the spider fully de...
diff --git a/scrapy/spiders/sitemap.py b/scrapy/spiders/sitemap.py --- a/scrapy/spiders/sitemap.py +++ b/scrapy/spiders/sitemap.py @@ -3,6 +3,7 @@ from scrapy.http import Request, XmlResponse from scrapy.spiders import Spider +from scrapy.utils._compression import _DecompressionMaxSizeExceeded from scrapy.utils.gz...
diff --git a/tests/test_spider.py b/tests/test_spider.py --- a/tests/test_spider.py +++ b/tests/test_spider.py @@ -2,6 +2,7 @@ import inspect import warnings from io import BytesIO +from pathlib import Path from typing import Any from unittest import mock @@ -25,7 +26,7 @@ ) from scrapy.spiders.init import Ini...
null
null
namanjain12/scrapy_final:3fda2fe103dafa8d4d48b21c63b2321ccec9c378
true
null
1
8
null
1,620
0
0.75
1
0.525
1
0.296667
77.6025
9,461
r2e_gym::train::0
r2e_gym
train
0
orange3__2d9617bd0cb1f0ba61771258410ab8fae8e7e24d
orange3
biolab/orange3
python
2d9617bd0cb1f0ba61771258410ab8fae8e7e24d
**Title:** Context migration fails to remove incompatible contexts, causing initialization errors **Description:** When initializing the `ContextHandler` with a mix of compatible and incompatible contexts, the migration process does not remove the incompatible contexts as expected. Instead, it raises an `IncompatibleC...
diff --git a/Orange/widgets/settings.py b/Orange/widgets/settings.py --- a/Orange/widgets/settings.py +++ b/Orange/widgets/settings.py @@ -49,7 +49,8 @@ __all__ = ["Setting", "SettingsHandler", "SettingProvider", "ContextSetting", "ContextHandler", "DomainContextHandler", "PerfectDomainContextH...
diff --git a/Orange/widgets/tests/test_context_handler.py b/Orange/widgets/tests/test_context_handler.py --- a/Orange/widgets/tests/test_context_handler.py +++ b/Orange/widgets/tests/test_context_handler.py @@ -5,7 +5,7 @@ from unittest.mock import Mock, patch, call from Orange.widgets.settings import ( ContextH...
null
null
namanjain12/orange3_final:2d9617bd0cb1f0ba61771258410ab8fae8e7e24d
true
null
2
25
null
1,272
0
0.75
1
0.525
1
0.295333
77.5985
9,462
r2e_gym::train::4929
r2e_gym
train
4,929
datalad__2a1e96c114e2c657bf611a60d22c9d6979865f33
datalad
datalad/datalad
python
2a1e96c114e2c657bf611a60d22c9d6979865f33
**Title:** Suppression Messages Displayed Incorrectly When Below Threshold **Description:** When processing a series of similar results, suppression messages are incorrectly displayed even when the number of similar messages is below the defined threshold. This leads to unnecessary and confusing suppression notificati...
diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py --- a/datalad/interface/utils.py +++ b/datalad/interface/utils.py @@ -42,8 +42,10 @@ from datalad.support.gitrepo import GitRepo from datalad.support.exceptions import IncompleteResultsError from datalad import cfg as dlcfg -from datalad.dochelpers...
diff --git a/datalad/interface/tests/test_utils.py b/datalad/interface/tests/test_utils.py --- a/datalad/interface/tests/test_utils.py +++ b/datalad/interface/tests/test_utils.py @@ -23,6 +23,7 @@ assert_not_equal, assert_not_in, assert_raises, + assert_re_in, assert_repo_status, assert_true...
null
null
namanjain12/datalad_final:2a1e96c114e2c657bf611a60d22c9d6979865f33
true
null
1
30
null
1,169
0
0.75
1
0.525
1
0.294833
77.597
9,463
r2e_gym::train::377
r2e_gym
train
377
orange3__02a06523fe7d4ed74ee4de952591c0765277c63d
orange3
biolab/orange3
python
02a06523fe7d4ed74ee4de952591c0765277c63d
**Title:** SVM Degree Parameter Accepts Floats Instead of Integers **Description:** In the OWSVM widget, the `degree` parameter is intended to specify the degree of the polynomial kernel, which should be an integer value. However, the widget currently allows `degree` to be set as a floating-point number. This leads to...
diff --git a/Orange/widgets/model/owsvm.py b/Orange/widgets/model/owsvm.py --- a/Orange/widgets/model/owsvm.py +++ b/Orange/widgets/model/owsvm.py @@ -34,6 +34,8 @@ class Warning(OWBaseLearner.Warning): sparse_data = Msg('Input data is sparse, default preprocessing is to scale it.') + + settings_vers...
diff --git a/Orange/widgets/model/tests/test_owsvm.py b/Orange/widgets/model/tests/test_owsvm.py --- a/Orange/widgets/model/tests/test_owsvm.py +++ b/Orange/widgets/model/tests/test_owsvm.py @@ -102,3 +102,22 @@ data.X = csr_matrix(data.X) self.send_signal(self.widget.Inputs.data, data) s...
null
null
namanjain12/orange3_final:02a06523fe7d4ed74ee4de952591c0765277c63d
true
null
1
12
null
1,521
0
0.75
1
0.525
1
0.2935
77.593
9,464
r2e_gym::train::4993
r2e_gym
train
4,993
datalad__8fb58b5da3dcb5ca940664b159653baa9be85133
datalad
datalad/datalad
python
8fb58b5da3dcb5ca940664b159653baa9be85133
**Title:** `to_options` function rearranges command-line options, causing test mismatches **Description:** After updating the `to_options` function by importing code from GitPython, the order of generated command-line options has changed. This alteration leads to mismatches in tests that expect options in a specific s...
diff --git a/datalad/support/gitrepo.py b/datalad/support/gitrepo.py --- a/datalad/support/gitrepo.py +++ b/datalad/support/gitrepo.py @@ -137,8 +137,15 @@ # log Exceptions from git commands. -def to_options(**kwargs): +def to_options(split_single_char_options=True, **kwargs): """Transform keyword arguments i...
diff --git a/datalad/support/tests/test_gitrepo.py b/datalad/support/tests/test_gitrepo.py --- a/datalad/support/tests/test_gitrepo.py +++ b/datalad/support/tests/test_gitrepo.py @@ -1080,6 +1080,32 @@ ['git', '-C/some/where', 'annex', '--JSON', 'my_cmd', '--unused']) +def test_to_options_from_gitpython():...
null
null
namanjain12/datalad_final:8fb58b5da3dcb5ca940664b159653baa9be85133
true
null
1
40
null
957
0
0.75
1
0.525
1
0.292833
77.591
9,465
r2e_gym::train::6311
r2e_gym
train
6,311
pillow__49fa3656b180713dfa9b680e4b9a5885aba501bd
pillow
python-pillow/pillow
python
49fa3656b180713dfa9b680e4b9a5885aba501bd
**Title:** Incorrect Handling of Alpha Channel When Resizing with NEAREST Resampling in RGBA and LA Modes **Description:** When resizing images with the `RGBA` or `LA` mode using the `NEAREST` resampling method, the alpha channel is incorrectly premultiplied. This results in unexpected color values in the resized imag...
diff --git a/src/PIL/Image.py b/src/PIL/Image.py --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1910,7 +1910,7 @@ if self.mode in ("1", "P"): resample = NEAREST - if self.mode in ["LA", "RGBA"]: + if self.mode in ["LA", "RGBA"] and resample != NEAREST: im = self.con...
diff --git a/Tests/test_image_transform.py b/Tests/test_image_transform.py --- a/Tests/test_image_transform.py +++ b/Tests/test_image_transform.py @@ -143,6 +143,42 @@ self._test_alpha_premult(op) + def _test_nearest(self, op, mode): + # create white image with half transparent, + # with t...
null
null
namanjain12/pillow_final:49fa3656b180713dfa9b680e4b9a5885aba501bd
true
null
1
6
null
1,631
0
0.75
1
0.525
1
0.291833
77.588
9,466
r2e_gym::train::5059
r2e_gym
train
5,059
datalad__6b5a296d9d99b41b221faabd5bd048fa47537ca6
datalad
datalad/datalad
python
6b5a296d9d99b41b221faabd5bd048fa47537ca6
**Title:** GitLab Sibling Creation Fails with 'hierarchy' Layout **Description:** When attempting to create a GitLab sibling using the default 'hierarchy' layout, the operation does not process any datasets and returns no results. This prevents the sibling from being created as expected. **Example Code:** ```python c...
diff --git a/datalad/distributed/create_sibling_gitlab.py b/datalad/distributed/create_sibling_gitlab.py --- a/datalad/distributed/create_sibling_gitlab.py +++ b/datalad/distributed/create_sibling_gitlab.py @@ -47,7 +47,7 @@ lgr = logging.getLogger('datalad.distributed.create_sibling_gitlab') -known_layout_labels ...
diff --git a/datalad/distributed/tests/test_create_sibling_gitlab.py b/datalad/distributed/tests/test_create_sibling_gitlab.py --- a/datalad/distributed/tests/test_create_sibling_gitlab.py +++ b/datalad/distributed/tests/test_create_sibling_gitlab.py @@ -158,17 +158,16 @@ assert_result_count( res, 1, path...
null
null
namanjain12/datalad_final:6b5a296d9d99b41b221faabd5bd048fa47537ca6
true
null
1
49
null
764
0
0.75
1
0.525
1
0.290667
77.5845
9,467
r2e_gym::train::6615
r2e_gym
train
6,615
pillow__7c839d8d81b042e5ba48cecffdfb4aa0ab14ea2d
pillow
python-pillow/pillow
python
7c839d8d81b042e5ba48cecffdfb4aa0ab14ea2d
**Title:** Palette Optimization Incorrectly Increases Palette Length for Images with More Than 128 Colors **Description:** When optimizing GIF images that use more than 128 colors, the palette length is set to one higher than the expected number of colors. For example, saving a GIF with 255 colors results in a palette...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -824,17 +824,18 @@ if count: used_palette_colors.append(i) - num_palette_colors = ( - len(im.palette.palette) // 4 - ...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -158,6 +158,9 @@ assert_image_equal(im.convert("RGB"), reloaded.convert("RGB")) # These do optimize the palette + check(256, 511, 256) + check(255, 511, 255) + check(129...
null
null
namanjain12/pillow_final:7c839d8d81b042e5ba48cecffdfb4aa0ab14ea2d
true
null
1
21
null
1,322
0
0.75
1
0.525
1
0.290333
77.5835
9,468
r2e_gym::train::5689
r2e_gym
train
5,689
scrapy__bdb78b9aa51a8b7072235e71eb26fa65388501ba
scrapy
scrapy/scrapy
python
bdb78b9aa51a8b7072235e71eb26fa65388501ba
**Title:** Feed Exporter Incorrectly Handles File Closure with Post Processing Enabled **Description:** When enabling post processing (e.g., using the `GzipPlugin`) in the Feed Exporter, the storage system receives an unexpected object instead of the actual file. This leads to improper file handling and storage issue...
diff --git a/scrapy/extensions/feedexport.py b/scrapy/extensions/feedexport.py --- a/scrapy/extensions/feedexport.py +++ b/scrapy/extensions/feedexport.py @@ -383,13 +383,20 @@ return defer.DeferredList(deferred_list) if deferred_list else None def _close_slot(self, slot, spider): + def get_file(...
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py --- a/tests/test_feedexport.py +++ b/tests/test_feedexport.py @@ -1638,6 +1638,57 @@ data = yield self.exported_data(items, settings) self.assertEqual(row["expected"], data[feed_options["format"]]) + @defer.inlineCallbacks +...
null
null
namanjain12/scrapy_final:bdb78b9aa51a8b7072235e71eb26fa65388501ba
true
null
1
11
null
1,521
0
0.75
1
0.525
1
0.290167
77.583
9,469
r2e_gym::train::6470
r2e_gym
train
6,470
pillow__e98469ecf6ad2b93afc1481e1ebb90bb5af3acc3
pillow
python-pillow/pillow
python
e98469ecf6ad2b93afc1481e1ebb90bb5af3acc3
**Title:** Matrix Conversion Fails to Correctly Update Transparency Information **Description:** When performing a matrix conversion on an RGB image that includes transparency, the transparency data in the resulting image does not update as expected. Instead of transforming the transparency values based on the applied...
diff --git a/src/PIL/Image.py b/src/PIL/Image.py --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -900,12 +900,28 @@ if not mode or (mode == self.mode and not matrix): return self.copy() + has_transparency = self.info.get('transparency') is not None if matrix: # matr...
diff --git a/Tests/test_image_convert.py b/Tests/test_image_convert.py --- a/Tests/test_image_convert.py +++ b/Tests/test_image_convert.py @@ -187,6 +187,7 @@ def matrix_convert(mode): # Arrange im = hopper('RGB') + im.info['transparency'] = (255, 0, 0) matrix ...
null
null
namanjain12/pillow_final:e98469ecf6ad2b93afc1481e1ebb90bb5af3acc3
true
null
1
21
null
1,320
0
0.75
1
0.525
1
0.29
77.5825
9,470
r2e_gym::train::4040
r2e_gym
train
4,040
coveragepy__ff2b70a39bbe5f6b6e1752e4664fad64211d2280
coveragepy
nedbat/coveragepy
python
ff2b70a39bbe5f6b6e1752e4664fad64211d2280
**Title:** `coverage debug` Command Fails When Multiple Topics Are Provided **Description:** When using the `coverage debug` command with multiple topics, the command does not handle the input correctly and results in an error. **Example Code:** ```bash coverage debug sys config ``` **Expected Behavior:** The comma...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -36,6 +36,10 @@ - Debug: The `coverage debug data` command will now sniff out combinable data files, and report on all of them. + +- Debug: The `coverage debug` command used to accept a number of topics at a + time, and show all of the...
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -259,9 +259,13 @@ cov.save() """) - def test_debug(self): - self.cmd_help("debug", "What information would you like: config, data, sys, premain?") - self.cmd...
null
null
namanjain12/coveragepy_final:ff2b70a39bbe5f6b6e1752e4664fad64211d2280
true
null
2
56
null
614
0
0.75
1
0.525
1
0.289
77.5795
9,471
r2e_gym::train::4027
r2e_gym
train
4,027
coveragepy__d521cfaaf3d021d75c5b7f4549492c8161914b64
coveragepy
nedbat/coveragepy
python
d521cfaaf3d021d75c5b7f4549492c8161914b64
**Title:** Debug Stack Traces Retain Unfiltered Initial Frames, Causing Excessive Output **Description:** When generating short stack traces for debugging purposes, the initial stack frames that should be considered uninteresting are not being removed. This leads to stack outputs that contain a large number of irrelev...
diff --git a/coverage/debug.py b/coverage/debug.py --- a/coverage/debug.py +++ b/coverage/debug.py @@ -186,9 +186,9 @@ the function name, the file name, and the line number: ... - start_import_stop : /Users/ned/coverage/trunk/tests/coveragetest.py @95 - import_local_file : /Users/ned/cover...
diff --git a/tests/test_debug.py b/tests/test_debug.py --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -288,18 +288,24 @@ def test_short_stack(self) -> None: stack = f_one().splitlines() - assert len(stack) > 10 - assert "f_three" in stack[-1] - assert "f_two" in stack[-2] - ...
null
null
namanjain12/coveragepy_final:d521cfaaf3d021d75c5b7f4549492c8161914b64
true
null
1
30
null
1,129
0
0.75
1
0.525
1
0.288167
77.577
9,472
r2e_gym::train::4966
r2e_gym
train
4,966
datalad__4c614de1c1e352dddbd135961c0ae4595eb3053f
datalad
datalad/datalad
python
4c614de1c1e352dddbd135961c0ae4595eb3053f
**Title:** `get_local_file_url` Generates Different URI Than `Path.as_uri()` for Absolute Paths **Description:** When converting an absolute file path to a URL using `get_local_file_url`, the resulting URI does not match the one produced by `Path.as_uri()`. This inconsistency triggers a warning and may lead to unexpec...
diff --git a/datalad/support/network.py b/datalad/support/network.py --- a/datalad/support/network.py +++ b/datalad/support/network.py @@ -1029,14 +1029,7 @@ Allow `fname` to be a relative path. The path will be converted to an absolute path, by using the current directory as path prefix. """ - ...
diff --git a/datalad/support/tests/test_network.py b/datalad/support/tests/test_network.py --- a/datalad/support/tests/test_network.py +++ b/datalad/support/tests/test_network.py @@ -508,7 +508,7 @@ # relpaths are special-cased below ('test.txt', 'test.txt', compat_annex), ...
null
null
namanjain12/datalad_final:4c614de1c1e352dddbd135961c0ae4595eb3053f
true
null
1
30
null
1,126
0
0.75
1
0.525
1
0.287667
77.5755
9,473
r2e_gym::train::5851
r2e_gym
train
5,851
tornado__6d0026cf51d7d0390d71ec5069e28a9ca4356ec4
tornado
tornadoweb/tornado
python
6d0026cf51d7d0390d71ec5069e28a9ca4356ec4
**Title:** `on_message` Called Before `open` Coroutine Completes, Causing Unexpected Behavior **Description:** When using a coroutine for the `open` method in the `WebSocketHandler`, messages sent to the WebSocket may be processed before the `open` coroutine has finished executing. This leads to scenarios where `on_me...
diff --git a/docs/releases/v5.1.0.rst b/docs/releases/v5.1.0.rst --- a/docs/releases/v5.1.0.rst +++ b/docs/releases/v5.1.0.rst @@ -141,6 +141,7 @@ - The `.WebSocketHandler.select_subprotocol` method is now called with an empty list instead of a list containing an empty string if no subprotocols were requested by...
diff --git a/tornado/test/websocket_test.py b/tornado/test/websocket_test.py --- a/tornado/test/websocket_test.py +++ b/tornado/test/websocket_test.py @@ -7,6 +7,7 @@ from tornado.concurrent import Future from tornado import gen from tornado.httpclient import HTTPError, HTTPRequest +from tornado.locks import Event ...
null
null
namanjain12/tornado_final:6d0026cf51d7d0390d71ec5069e28a9ca4356ec4
true
null
2
17
null
1,386
0
0.75
1
0.525
1
0.287667
77.5755
9,474
swe_bench::test::1503
swe_bench
test
1,503
scikit-learn__scikit-learn-10459
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
2e85c8608c93ad0e3290414c4e5e650b87d44b27
[RFC] Dissociate NaN and Inf when considering force_all_finite in check_array Due to changes proposed in #10404, it seems that `check_array` as currently a main limitation. `force_all_finite` will force both `NaN` and `inf`to be rejected. If preprocessing methods (whenever this is possible) should let pass `NaN`, this ...
Unsurprisingly, @raghavrv's PR was forgotten in recent discussion of this. I think we want `force_all_finite='allow-nan'` or =`'-nan'` or similar Note: solving #10438 depends on this decision. Oops! Had not noticed that @glemaitre had started this issue, so was tinkering around with the "allow_nan" and "allow_inf" ar...
diff --git a/sklearn/utils/validation.py b/sklearn/utils/validation.py --- a/sklearn/utils/validation.py +++ b/sklearn/utils/validation.py @@ -31,7 +31,7 @@ warnings.simplefilter('ignore', NonBLASDotWarning) -def _assert_all_finite(X): +def _assert_all_finite(X, allow_nan=False): """Like assert_all_finite, bu...
diff --git a/sklearn/utils/tests/test_validation.py b/sklearn/utils/tests/test_validation.py --- a/sklearn/utils/tests/test_validation.py +++ b/sklearn/utils/tests/test_validation.py @@ -6,8 +6,8 @@ from tempfile import NamedTemporaryFile from itertools import product +import pytest import numpy as np -from numpy....
["sklearn/utils/tests/test_validation.py::test_check_array_force_all_finite_valid[asarray-nan-allow-nan]", "sklearn/utils/tests/test_validation.py::test_check_array_force_all_finite_valid[csr_matrix-nan-allow-nan]"]
["sklearn/utils/tests/test_validation.py::test_as_float_array", "sklearn/utils/tests/test_validation.py::test_as_float_array_nan[X0]", "sklearn/utils/tests/test_validation.py::test_as_float_array_nan[X1]", "sklearn/utils/tests/test_validation.py::test_np_matrix", "sklearn/utils/tests/test_validation.py::test_memmap", "...
null
true
2018-01-12T09:47:57Z
1
86
2
1,229
0
0.8
1
0.4
1
0.4915
77.5745
9,475
r2e_gym::train::424
r2e_gym
train
424
orange3__52e9b3988f57664d9b3fcf0e6db091fcbf969273
orange3
biolab/orange3
python
52e9b3988f57664d9b3fcf0e6db091fcbf969273
**Title:** Status Bar Fails to Update Data Summaries When Input Data Changes **Description:** When input data is provided or cleared in the Discretize widget, the status bar does not correctly display the summaries of the input and output data. This leads to discrepancies between the actual data state and what is show...
diff --git a/Orange/widgets/data/owdiscretize.py b/Orange/widgets/data/owdiscretize.py --- a/Orange/widgets/data/owdiscretize.py +++ b/Orange/widgets/data/owdiscretize.py @@ -245,6 +245,9 @@ self._update_spin_positions() + self.info.set_input_summary(self.info.NoInput) + self.info.set_output_...
diff --git a/Orange/widgets/data/tests/test_owdiscretize.py b/Orange/widgets/data/tests/test_owdiscretize.py --- a/Orange/widgets/data/tests/test_owdiscretize.py +++ b/Orange/widgets/data/tests/test_owdiscretize.py @@ -1,8 +1,11 @@ # Test methods with long descriptive names can omit docstrings -# pylint: disable=missi...
null
null
namanjain12/orange3_final:52e9b3988f57664d9b3fcf0e6db091fcbf969273
true
null
1
10
null
1,522
0
0.75
1
0.525
1
0.287
77.5735
9,476
swe_bench::dev::40
swe_bench
dev
40
pvlib__pvlib-python-1426
pvlib/pvlib-python
pvlib/pvlib-python
python
1893b20a7b755004f561037161c242db24e2870c
deprecate existing code in forecast.py, possibly replace with solarforecastarbiter shim `forecast.py` is a burden to maintain. I haven't used it in years, I don't think any of the other pvlib maintainers are interested in it, and I don't see any users stepping up to volunteer to maintain it. The code is not up to my pr...
I used these forecast functions earlier in my career for production forecasting (getting forecasted irradiance data). But that said, everything I used it for can be done with different tools (some already in pvlib). There are some good free/paid weather services out there that return weather forecast data, and pvlib al...
diff --git a/pvlib/forecast.py b/pvlib/forecast.py --- a/pvlib/forecast.py +++ b/pvlib/forecast.py @@ -15,6 +15,7 @@ from siphon.ncss import NCSS import warnings +from pvlib._deprecation import deprecated warnings.warn( @@ -22,7 +23,15 @@ 'The API may change, the functionality may be consolidated into an ...
diff --git a/pvlib/tests/test_forecast.py b/pvlib/tests/test_forecast.py --- a/pvlib/tests/test_forecast.py +++ b/pvlib/tests/test_forecast.py @@ -14,6 +14,8 @@ ) from .conftest import RERUNS, RERUNS_DELAY +from pvlib._deprecation import pvlibDeprecationWarning + pytestmark = pytest.mark.skipif(not has_siphon, rea...
["pvlib/tests/test_forecast.py::test_latest", "pvlib/tests/test_forecast.py::test_full", "pvlib/tests/test_forecast.py::test_temp_convert", "pvlib/tests/test_forecast.py::test_set_location", "pvlib/tests/test_forecast.py::test_set_query_time_range_tzfail", "pvlib/tests/test_forecast.py::test_cloud_cover_to_transmittanc...
[]
null
true
2022-03-14T18:37:44Z
1
15
7
2,633
0
0.8
1
0.4
1
0.488833
77.5665
9,477
r2e_gym::train::6544
r2e_gym
train
6,544
pillow__430f50606e2fc5620c6605cd43eb360be6bbd655
pillow
python-pillow/pillow
python
430f50606e2fc5620c6605cd43eb360be6bbd655
**Title:** Incorrect Pixel Restoration with Disposal Method 2 in GIF Frames **Description:** When creating GIFs with multiple frames, using disposal method 2 (restore to background) does not correctly reset the pixels to the background color. Specifically, after disposing a frame with this method, the affected pixels ...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -629,7 +629,7 @@ "duration" ] continue - if encoderinfo.get("disposal") == 2: + i...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -737,6 +737,25 @@ assert im.n_frames == 3 +def test_dispose2_previous_frame(tmp_path: Path) -> None: + out = str(tmp_path / "temp.gif") + + im = Image.new("P", (100, 100)) + im...
null
null
namanjain12/pillow_final:430f50606e2fc5620c6605cd43eb360be6bbd655
true
null
1
10
null
1,506
0
0.75
1
0.525
1
0.284333
77.5655
9,478
r2e_gym::train::6624
r2e_gym
train
6,624
pillow__bd7e709141fef287245d3d1abcc39ec89c5256a9
pillow
python-pillow/pillow
python
bd7e709141fef287245d3d1abcc39ec89c5256a9
**Title:** Saving Uncompressed TIFF Images in Chunks Results in Content Mismatch **Description:** When attempting to save uncompressed TIFF images in chunks, the resulting file does not match the original image content. This discrepancy causes image integrity issues, as the saved image differs from what was intended. ...
diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -1704,28 +1704,27 @@ colormap += [0] * (256 - colors) ifd[COLORMAP] = colormap # data orientation - stride = len(bits) * ((im.size[0] * bits[0] + 7) // ...
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 @@ -484,13 +484,13 @@ outfile = str(tmp_path / "temp.tif") with Image.open("Tests/images/ifd_tag_type.tiff") as im: exif = im.getexif() - exif[256] = 100 +...
null
null
namanjain12/pillow_final:bd7e709141fef287245d3d1abcc39ec89c5256a9
true
null
1
15
null
1,398
0
0.75
1
0.525
1
0.283
77.5615
9,479
r2e_gym::train::5450
r2e_gym
train
5,450
aiohttp__b8ce8fb669bfca6734f3bb0f0c523ee74353a113
aiohttp
aio-libs/aiohttp
python
b8ce8fb669bfca6734f3bb0f0c523ee74353a113
**Title:** Incorrect `SERVER_PORT` Derived from `HOST` Header with Non-Standard Port **Description:** When the `HOST` header includes a non-standard port, the server incorrectly sets the `SERVER_PORT` environment variable based on the `HOST` header instead of the actual socket's port. This leads to inconsistencies, es...
diff --git a/aiohttp/wsgi.py b/aiohttp/wsgi.py --- a/aiohttp/wsgi.py +++ b/aiohttp/wsgi.py @@ -14,7 +14,7 @@ from urllib.parse import urlsplit import aiohttp -from aiohttp import server, helpers, hdrs +from aiohttp import server, hdrs __all__ = ('WSGIServerHttpProtocol',) @@ -63,16 +63,11 @@ 'SERV...
diff --git a/tests/test_wsgi.py b/tests/test_wsgi.py --- a/tests/test_wsgi.py +++ b/tests/test_wsgi.py @@ -22,9 +22,10 @@ self.writer = unittest.mock.Mock() self.writer.drain.return_value = () self.transport = unittest.mock.Mock() - self.transport.get_extra_info.return_value = '127.0.0...
null
null
namanjain12/aiohttp_final:b8ce8fb669bfca6734f3bb0f0c523ee74353a113
true
null
1
33
null
1,037
0
0.75
1
0.525
1
0.282833
77.561
9,480
r2e_gym::train::115
r2e_gym
train
115
orange3__598bfeae02642480cfa1e5f90caef016a51de293
orange3
biolab/orange3
python
598bfeae02642480cfa1e5f90caef016a51de293
**Title:** Selected backend is not saved and restored correctly in SQL widget **Description:** When selecting a backend in the SQL widget, the chosen backend is not saved to the settings. As a result, upon reopening the widget, it defaults to the first available backend instead of retaining the user's selection. **Ex...
diff --git a/Orange/widgets/data/owsql.py b/Orange/widgets/data/owsql.py --- a/Orange/widgets/data/owsql.py +++ b/Orange/widgets/data/owsql.py @@ -50,6 +50,7 @@ settings_version = 2 + selected_backend = Setting(None) table = Setting(None) sql = Setting("") guess_values = Setting(True) @@ -89,...
diff --git a/Orange/widgets/data/tests/test_owsql.py b/Orange/widgets/data/tests/test_owsql.py --- a/Orange/widgets/data/tests/test_owsql.py +++ b/Orange/widgets/data/tests/test_owsql.py @@ -6,7 +6,7 @@ from Orange.data import Table from Orange.widgets.data.owsql import OWSql -from Orange.widgets.tests.base import ...
null
null
namanjain12/orange3_final:598bfeae02642480cfa1e5f90caef016a51de293
true
null
1
9
null
1,517
0
0.75
1
0.525
1
0.282833
77.561
9,481
r2e_gym::train::5793
r2e_gym
train
5,793
tornado__c40cdb930b2a9335af0451ef51821d4f2838c61d
tornado
tornadoweb/tornado
python
c40cdb930b2a9335af0451ef51821d4f2838c61d
**Title:** Autoreload Fails to Re-execute `__main__` with Relative Imports in Python ≥3.4 **Description:** When using `tornado.autoreload` in a script executed as `__main__` with relative imports, the expected behavior of re-executing the main module does not occur in Python versions 3.4 and above. This results in cer...
diff --git a/tornado/autoreload.py b/tornado/autoreload.py --- a/tornado/autoreload.py +++ b/tornado/autoreload.py @@ -63,12 +63,11 @@ # file.py gets added to the path, which can cause confusion as imports # may become relative in spite of the future import. # -# We address the former problem by setting the $PYTHONP...
diff --git a/tornado/test/autoreload_test.py b/tornado/test/autoreload_test.py --- a/tornado/test/autoreload_test.py +++ b/tornado/test/autoreload_test.py @@ -0,0 +1,46 @@ +from __future__ import absolute_import, division, print_function +import os +import subprocess +from subprocess import Popen +import sys +from temp...
null
null
namanjain12/tornado_final:c40cdb930b2a9335af0451ef51821d4f2838c61d
true
null
1
36
null
976
0
0.75
1
0.525
1
0.282667
77.5605
9,482
r2e_gym::train::5301
r2e_gym
train
5,301
aiohttp__c0e4490aa74767907ae43d491a753d033eaf07c0
aiohttp
aio-libs/aiohttp
python
c0e4490aa74767907ae43d491a753d033eaf07c0
### WebSocket Handshake Ignores Client's Subprotocol Preference Order **Description** During the WebSocket handshake, when a client specifies multiple subprotocols with a defined preference order, the server does not correctly honor this preference. Instead of selecting the highest-preference protocol supported by bo...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,6 +9,9 @@ - Expose multidict classes at package level - add `aiohttp.web.WebSocketResponse` + +- According to RFC 6455 websocket subprotocol preference order is + provided by client, not server 0.13.1 (12-31-2014) diff --git a/ai...
diff --git a/tests/test_websocket.py b/tests/test_websocket.py --- a/tests/test_websocket.py +++ b/tests/test_websocket.py @@ -460,7 +460,7 @@ def test_handshake_protocol_agreement(self): '''Tests if the right protocol is selected given multiple''' - best_proto = 'chat' + best_proto = 'wor...
null
null
namanjain12/aiohttp_final:c0e4490aa74767907ae43d491a753d033eaf07c0
true
null
2
13
null
1,432
0
0.75
1
0.525
1
0.282
77.5585
9,483
r2e_gym::train::6055
r2e_gym
train
6,055
pillow__f338eae128203957b4149a98d59838f79c06c306
pillow
python-pillow/pillow
python
f338eae128203957b4149a98d59838f79c06c306
**Title:** Incorrect `bands` Attribute for `'I;16'` Image Modes Causes Test Failures **Description:** When handling image modes like `'I;16'`, the `bands` attribute is incorrectly set as a string instead of a tuple. This leads to assertion failures in tests and may affect image processing functionalities. **Example B...
diff --git a/src/PIL/ImageMode.py b/src/PIL/ImageMode.py --- a/src/PIL/ImageMode.py +++ b/src/PIL/ImageMode.py @@ -48,9 +48,17 @@ modes["La"] = ModeDescriptor("La", ("L", "a"), "L", "L") modes["PA"] = ModeDescriptor("PA", ("P", "A"), "RGB", "L") # mapping modes - modes["I;16"] = ModeDe...
diff --git a/Tests/test_image_mode.py b/Tests/test_image_mode.py --- a/Tests/test_image_mode.py +++ b/Tests/test_image_mode.py @@ -26,6 +26,17 @@ self.assertEqual(m.basemode, "L") self.assertEqual(m.basetype, "L") + for mode in ("I;16", "I;16S", + "I;16L", "I;16LS", + ...
null
null
namanjain12/pillow_final:f338eae128203957b4149a98d59838f79c06c306
true
null
2
28
null
1,128
0
0.75
1
0.525
1
0.281333
77.5565
9,484
r2e_gym::train::6362
r2e_gym
train
6,362
pillow__6b2da2f1236f774ac6d6526cf479020b68776f95
pillow
python-pillow/pillow
python
6b2da2f1236f774ac6d6526cf479020b68776f95
**Title:** GIF Saving Fails to Preserve Per-Frame Transparency Correctly **Description:** When saving a GIF with multiple frames that have different transparency settings, the transparency information for each frame is not accurately preserved. This leads to inconsistencies between the original GIF and the saved vers...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -573,10 +573,14 @@ im_frame = _normalize_mode(im_frame.copy()) if frame_count == 0: for k, v in im_frame.info.items(): + if ...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -619,7 +619,7 @@ assert im.getpixel((0, 0)) == (255, 0, 0) -def test_transparency_in_second_frame(): +def test_transparency_in_second_frame(tmp_path): with Image.open("Tests/images...
null
null
namanjain12/pillow_final:6b2da2f1236f774ac6d6526cf479020b68776f95
true
null
1
6
null
1,564
0
0.75
1
0.525
1
0.280667
77.5545
9,485
r2e_gym::train::5004
r2e_gym
train
5,004
datalad__0b2d8826d684613d33b411e317ce9368d939d076
datalad
datalad/datalad
python
0b2d8826d684613d33b411e317ce9368d939d076
**Title:** `datalad.credentials.force-ask` Configuration Does Not Prompt for Credential Updates **Description:** When attempting to update stored credentials, setting the `datalad.credentials.force-ask` configuration to `True` is intended to force the system to prompt for new credentials even if existing ones are pre...
diff --git a/datalad/downloaders/credentials.py b/datalad/downloaders/credentials.py --- a/datalad/downloaders/credentials.py +++ b/datalad/downloaders/credentials.py @@ -32,6 +32,7 @@ from ..support.network import iso8601_to_epoch from datalad import cfg as dlcfg +from datalad.config import anything2bool from l...
diff --git a/datalad/downloaders/tests/test_credentials.py b/datalad/downloaders/tests/test_credentials.py --- a/datalad/downloaders/tests/test_credentials.py +++ b/datalad/downloaders/tests/test_credentials.py @@ -27,7 +27,7 @@ CompositeCredential, UserPassword, ) -from datalad.config import ConfigManager +...
null
null
namanjain12/datalad_final:0b2d8826d684613d33b411e317ce9368d939d076
true
null
2
18
null
1,322
0
0.75
1
0.525
1
0.280333
77.5535
9,486
r2e_gym::train::6619
r2e_gym
train
6,619
pillow__95cc0b1109787ffbb2a3e6e2cc84b86487edc930
pillow
python-pillow/pillow
python
95cc0b1109787ffbb2a3e6e2cc84b86487edc930
**Title:** Accessing `huffman_ac` and `huffman_dc` Does Not Emit Deprecation Warnings **Description:** When accessing the `huffman_ac` and `huffman_dc` attributes of a `JpegImageFile` instance from the Pillow library, no `DeprecationWarning` is emitted. This lack of warning can lead developers to inadvertently rely on...
diff --git a/docs/deprecations.rst b/docs/deprecations.rst --- a/docs/deprecations.rst +++ b/docs/deprecations.rst @@ -117,6 +117,14 @@ The ``options`` parameter in :py:meth:`~PIL.ImageMath.lambda_eval()` and :py:meth:`~PIL.ImageMath.unsafe_eval()` has been deprecated. One or more keyword arguments can be used inste...
diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -1045,6 +1045,13 @@ assert im._repr_jpeg_() is None + def test_deprecation(self) -> None: + with Image.open(TEST_FILE) as im: + with pytest.warns(DeprecationWar...
null
null
namanjain12/pillow_final:95cc0b1109787ffbb2a3e6e2cc84b86487edc930
true
null
3
27
null
1,141
0
0.75
1
0.525
1
0.280167
77.553
9,487
swe_bench::test::1545
swe_bench
test
1,545
scikit-learn__scikit-learn-11635
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
be6bf6902c199b27f4f001ce3597e521c3a0d0aa
Is there any reason for SelectFromModel.transform to use force_all_finite=True in check_array? ### Description SelectFromModel's transform raises ValueError if any value is infinite or NaN - however the values aren't actually used anywhere, so it seems to me that this check (check_array using default True value for par...
This sounds reasonable to me for `SelectFromModel`. However `SelectFromModel.transform` is inherited from [`SelectorMixin.transform`](https://github.com/scikit-learn/scikit-learn/blob/a24c8b464d094d2c468a16ea9f8bf8d42d949f84/sklearn/feature_selection/base.py#L62) which is used in other feature selectors. So relaxing...
diff --git a/sklearn/feature_selection/_base.py b/sklearn/feature_selection/_base.py --- a/sklearn/feature_selection/_base.py +++ b/sklearn/feature_selection/_base.py @@ -71,7 +71,9 @@ def transform(self, X): X_r : array of shape [n_samples, n_selected_features] The input samples with only the sel...
diff --git a/sklearn/feature_selection/tests/test_from_model.py b/sklearn/feature_selection/tests/test_from_model.py --- a/sklearn/feature_selection/tests/test_from_model.py +++ b/sklearn/feature_selection/tests/test_from_model.py @@ -10,10 +10,28 @@ from sklearn.linear_model import LogisticRegression, SGDClassifier, ...
["sklearn/feature_selection/tests/test_from_model.py::test_transform_accepts_nan_inf", "sklearn/feature_selection/tests/test_from_model.py::test_allow_nan_tag_comes_from_estimator", "sklearn/feature_selection/tests/test_rfe.py::test_rfe_allow_nan_inf_in_x[None]", "sklearn/feature_selection/tests/test_rfe.py::test_rfe_a...
["sklearn/feature_selection/tests/test_from_model.py::test_invalid_input", "sklearn/feature_selection/tests/test_from_model.py::test_input_estimator_unchanged", "sklearn/feature_selection/tests/test_from_model.py::test_max_features_error[-1-ValueError-'max_features'", "sklearn/feature_selection/tests/test_from_model.py...
null
true
2018-07-19T16:56:01Z
4
47
5
539
0
0.8
1
0.55
0.85
0.2465
77.552
9,488
r2e_gym::train::49
r2e_gym
train
49
orange3__0a6165d66f8af425dbe6121676e8686d39c39dbf
orange3
biolab/orange3
python
0a6165d66f8af425dbe6121676e8686d39c39dbf
**ListView does not clear associated variable when all items are deselected** **Description** When all selections in a `ListView` are cleared, the associated variable is expected to be empty. However, currently, the variable retains the last selected value instead of being reset. This can lead to inconsistent applicat...
diff --git a/Orange/widgets/gui.py b/Orange/widgets/gui.py --- a/Orange/widgets/gui.py +++ b/Orange/widgets/gui.py @@ -503,14 +503,14 @@ if isinstance(self.view.model(), QSortFilterProxyModel): selection = self.view.model().mapSelectionToSource(selection) values = [i.row() for i in select...
diff --git a/Orange/widgets/tests/test_gui.py b/Orange/widgets/tests/test_gui.py --- a/Orange/widgets/tests/test_gui.py +++ b/Orange/widgets/tests/test_gui.py @@ -1,3 +1,4 @@ +import unittest from unittest.mock import patch import numpy as np @@ -54,6 +55,10 @@ sel_model.clear() view.setCurrentInd...
null
null
namanjain12/orange3_final:0a6165d66f8af425dbe6121676e8686d39c39dbf
true
null
1
16
null
1,354
0
0.75
1
0.525
1
0.279
77.5495
9,489
r2e_gym::train::5696
r2e_gym
train
5,696
scrapy__4f72b49f975a406784779dc19ede31364f92235f
scrapy
scrapy/scrapy
python
4f72b49f975a406784779dc19ede31364f92235f
**Title:** `xmliter_lxml` Fails to Iterate Over Namespaced Node Names **Description:** When using `xmliter_lxml` to iterate over XML nodes with namespace prefixes, the iterator does not yield any nodes, resulting in a `StopIteration` error. **Example Code:** ```python from scrapy.http import XmlResponse from scrapy.s...
diff --git a/scrapy/utils/iterators.py b/scrapy/utils/iterators.py --- a/scrapy/utils/iterators.py +++ b/scrapy/utils/iterators.py @@ -12,10 +12,13 @@ List, Literal, Optional, + Tuple, Union, cast, overload, ) + +from lxml import etree from scrapy.http import Response, TextResponse ...
diff --git a/tests/test_utils_iterators.py b/tests/test_utils_iterators.py --- a/tests/test_utils_iterators.py +++ b/tests/test_utils_iterators.py @@ -1,4 +1,3 @@ -from pytest import mark from twisted.trial import unittest from scrapy.http import Response, TextResponse, XmlResponse @@ -247,10 +246,6 @@ class LxmlX...
null
null
namanjain12/scrapy_final:4f72b49f975a406784779dc19ede31364f92235f
true
null
1
25
null
1,171
0
0.75
1
0.525
1
0.2785
77.548
9,490
r2e_gym::train::6116
r2e_gym
train
6,116
pillow__295382aadc994dc81e5076450dce5cf573a9bbd0
pillow
python-pillow/pillow
python
295382aadc994dc81e5076450dce5cf573a9bbd0
**Title:** Image Resizing with Boxes Produces Significant Pixel Differences **Description:** When resizing images using specified boxes, the resulting images exhibit significant pixel value differences compared to the expected output. This issue causes tests that verify the accuracy of image resizing with boxes to fai...
diff --git a/PIL/Image.py b/PIL/Image.py --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1544,10 +1544,14 @@ ): raise ValueError("unknown resampling filter") - self.load() - size = tuple(size) - if self.size == size: + + if box is None: + box = (0, 0) + self.si...
diff --git a/Tests/test_image_resample.py b/Tests/test_image_resample.py --- a/Tests/test_image_resample.py +++ b/Tests/test_image_resample.py @@ -1,4 +1,6 @@ from __future__ import division + +from contextlib import contextmanager from helper import unittest, PillowTestCase, hopper from PIL import Image, ImageDra...
null
null
namanjain12/pillow_final:295382aadc994dc81e5076450dce5cf573a9bbd0
true
null
1
13
null
1,409
0
0.75
1
0.525
1
0.278167
77.547
9,491
r2e_gym::train::6227
r2e_gym
train
6,227
pillow__7a19251d0dcdf8c446f14daea9434bfe6a311947
pillow
python-pillow/pillow
python
7a19251d0dcdf8c446f14daea9434bfe6a311947
**Title:** GIF Saving with Disposal=2 Skips Identical Background Frames, Reducing Frame Count **Description:** When saving a GIF with multiple frames using disposal method 2 (restore to background), identical frames that match the background are incorrectly skipped. This results in fewer frames being saved than intend...
diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py --- a/src/PIL/GifImagePlugin.py +++ b/src/PIL/GifImagePlugin.py @@ -565,6 +565,16 @@ fp.write(b"\0") # end of image data +def _getbbox(base_im, im_frame): + if _get_palette_bytes(im_frame) == _get_palette_bytes(base_im): + delta = Im...
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -677,6 +677,24 @@ assert im.getpixel((0, 0)) == (255, 0, 0) +def test_dispose2_background_frame(tmp_path): + out = str(tmp_path / "temp.gif") + + im_list = [Image.new("RGBA", (1, ...
null
null
namanjain12/pillow_final:7a19251d0dcdf8c446f14daea9434bfe6a311947
true
null
1
32
null
1,019
0
0.75
1
0.525
1
0.2765
77.542
9,492
r2e_gym::train::125
r2e_gym
train
125
orange3__f961edaeed8ada5ce32fcb8b737100e00a7782da
orange3
biolab/orange3
python
f961edaeed8ada5ce32fcb8b737100e00a7782da
**Title:** Adding a Feature with a Duplicate Name Results in Multiple Variables Sharing the Same Name **Description:** When using the Feature Constructor to add a new variable with a name that already exists in the dataset, the system does not automatically rename the new variable to ensure uniqueness. This leads to m...
diff --git a/Orange/widgets/data/owfeatureconstructor.py b/Orange/widgets/data/owfeatureconstructor.py --- a/Orange/widgets/data/owfeatureconstructor.py +++ b/Orange/widgets/data/owfeatureconstructor.py @@ -26,11 +26,12 @@ QSizePolicy, QAbstractItemView, QComboBox, QFormLayout, QLineEdit, QHBoxLayout, QVBoxLa...
diff --git a/Orange/widgets/data/tests/test_owfeatureconstructor.py b/Orange/widgets/data/tests/test_owfeatureconstructor.py --- a/Orange/widgets/data/tests/test_owfeatureconstructor.py +++ b/Orange/widgets/data/tests/test_owfeatureconstructor.py @@ -329,6 +329,17 @@ self.widget.apply() self.assertTru...
null
null
namanjain12/orange3_final:f961edaeed8ada5ce32fcb8b737100e00a7782da
true
null
1
39
null
878
0
0.75
1
0.525
1
0.276333
77.5415
9,493
r2e_gym::train::5407
r2e_gym
train
5,407
aiohttp__e3b1011f2146ad0faa4c3d3c29f26b73e1400564
aiohttp
aio-libs/aiohttp
python
e3b1011f2146ad0faa4c3d3c29f26b73e1400564
**Title:** HTTPS Connection Fails to Raise ServerFingerprintMismatch on Fingerprint Mismatch **Description:** When establishing an HTTPS connection through a proxy, if the server's TLS fingerprint does not match the expected fingerprint, the connection does not raise the `aiohttp.ServerFingerprintMismatch` exception a...
diff --git a/CHANGES/6652.bugfix b/CHANGES/6652.bugfix --- a/CHANGES/6652.bugfix +++ b/CHANGES/6652.bugfix @@ -0,0 +1 @@ +Raise `aiohttp.ServerFingerprintMismatch` exception on client-side if request through http proxy with mismatching server fingerprint digest: `aiohttp.ClientSession(headers=headers, connector=TCPConn...
diff --git a/tests/test_proxy.py b/tests/test_proxy.py --- a/tests/test_proxy.py +++ b/tests/test_proxy.py @@ -8,7 +8,7 @@ from yarl import URL import aiohttp -from aiohttp.client_reqrep import ClientRequest, ClientResponse +from aiohttp.client_reqrep import ClientRequest, ClientResponse, Fingerprint from aiohttp....
null
null
namanjain12/aiohttp_final:e3b1011f2146ad0faa4c3d3c29f26b73e1400564
true
null
3
12
null
1,413
0
0.75
1
0.525
1
0.2755
77.539
9,494
r2e_gym::train::66
r2e_gym
train
66
orange3__62549d259297989c27c095ad8f98d686b521075b
orange3
biolab/orange3
python
62549d259297989c27c095ad8f98d686b521075b
**Title:** SOM widget recomputes unnecessarily when input data remains unchanged **Description:** When using the Self-Organizing Map (SOM) widget, providing the same dataset multiple times triggers a recomputation of the SOM each time, even though the data hasn't effectively changed. This leads to unnecessary processi...
diff --git a/Orange/widgets/unsupervised/owsom.py b/Orange/widgets/unsupervised/owsom.py --- a/Orange/widgets/unsupervised/owsom.py +++ b/Orange/widgets/unsupervised/owsom.py @@ -14,6 +14,7 @@ QGraphicsPathItem from Orange.data import Table, Domain +from Orange.data.util import array_equal from Orange.preproce...
diff --git a/Orange/widgets/unsupervised/tests/test_owsom.py b/Orange/widgets/unsupervised/tests/test_owsom.py --- a/Orange/widgets/unsupervised/tests/test_owsom.py +++ b/Orange/widgets/unsupervised/tests/test_owsom.py @@ -549,6 +549,42 @@ self.assertIsNone(self.get_output(widget.Outputs.selected_data)) ...
null
null
namanjain12/orange3_final:62549d259297989c27c095ad8f98d686b521075b
true
null
1
25
null
1,149
0
0.75
1
0.525
1
0.274833
77.537
9,495
r2e_gym::train::4946
r2e_gym
train
4,946
datalad__d182b92981c7519e011959ecb09d12a0373605b7
datalad
datalad/datalad
python
d182b92981c7519e011959ecb09d12a0373605b7
**Title:** Suppression Feedback Not Displayed When Handling Multiple Similar Results **Description:** When processing a large number of similar results, the interface is supposed to suppress redundant messages and provide a summary indicating how many messages were suppressed. Currently, the suppression feedback is ei...
diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py --- a/datalad/interface/utils.py +++ b/datalad/interface/utils.py @@ -514,7 +514,7 @@ if res.get('message', None) else '')) -def _display_suppressed_message(nsimilar, ndisplayed): +def _display_suppressed_message(nsimilar, ndispla...
diff --git a/datalad/interface/tests/test_utils.py b/datalad/interface/tests/test_utils.py --- a/datalad/interface/tests/test_utils.py +++ b/datalad/interface/tests/test_utils.py @@ -10,7 +10,7 @@ """ - +from contextlib import contextmanager import logging from os.path import ( exists, @@ -381,6 +381,14 @@ ...
null
null
namanjain12/datalad_final:d182b92981c7519e011959ecb09d12a0373605b7
true
null
1
15
null
1,348
0
0.75
1
0.525
1
0.274667
77.5365
9,496
r2e_gym::train::481
r2e_gym
train
481
orange3__3abcbed96036d75bbd99917fb97715ffbd45dcb3
orange3
biolab/orange3
python
3abcbed96036d75bbd99917fb97715ffbd45dcb3
**Title:** Parameter Fitter Fails to Show 'Multiple Targets Data' Error with Multiclass Data and Random Forest Learner **Description:** When using the Parameter Fitter widget with a Random Forest learner and providing multiclass data, the widget does not display the expected 'multiple_targets_data' error. This prevent...
diff --git a/Orange/widgets/evaluate/owparameterfitter.py b/Orange/widgets/evaluate/owparameterfitter.py --- a/Orange/widgets/evaluate/owparameterfitter.py +++ b/Orange/widgets/evaluate/owparameterfitter.py @@ -504,7 +504,12 @@ def handleNewSignals(self): self.Warning.clear() - self.Error.clear()...
diff --git a/Orange/widgets/evaluate/tests/test_owparameterfitter.py b/Orange/widgets/evaluate/tests/test_owparameterfitter.py --- a/Orange/widgets/evaluate/tests/test_owparameterfitter.py +++ b/Orange/widgets/evaluate/tests/test_owparameterfitter.py @@ -97,8 +97,24 @@ self.assertTrue(self.widget.Error.missing...
null
null
namanjain12/orange3_final:3abcbed96036d75bbd99917fb97715ffbd45dcb3
true
null
1
7
null
1,504
0
0.75
1
0.525
1
0.274
77.5345
9,497
r2e_gym::train::152
r2e_gym
train
152
orange3__b2b6b7705d8ed4cd169195206d4dc53ce95cb0ef
orange3
biolab/orange3
python
b2b6b7705d8ed4cd169195206d4dc53ce95cb0ef
**Title:** Data Sampler incorrectly handles zero-size sample, resulting in unexpected data output **Description:** When configuring the Data Sampler widget with a sample size of zero, the widget does not handle the scenario correctly. Instead of producing an empty data sample and including all instances in the remaini...
diff --git a/Orange/widgets/data/owdatasampler.py b/Orange/widgets/data/owdatasampler.py --- a/Orange/widgets/data/owdatasampler.py +++ b/Orange/widgets/data/owdatasampler.py @@ -107,7 +107,7 @@ ibox = gui.indentedBox(sampling) self.sampleSizeSpin = gui.spin( ibox, self, "sampleSizeNumber...
diff --git a/Orange/widgets/data/tests/test_owdatasampler.py b/Orange/widgets/data/tests/test_owdatasampler.py --- a/Orange/widgets/data/tests/test_owdatasampler.py +++ b/Orange/widgets/data/tests/test_owdatasampler.py @@ -131,6 +131,13 @@ self.widget.commit() return self.widget.sampleSizeSpin.value()...
null
null
namanjain12/orange3_final:b2b6b7705d8ed4cd169195206d4dc53ce95cb0ef
true
null
1
14
null
1,362
0
0.75
1
0.525
1
0.273667
77.5335
9,498
r2e_gym::train::6292
r2e_gym
train
6,292
pillow__7005e66f003ddcb4fd3a1e1a41f6da5daf41b646
pillow
python-pillow/pillow
python
7005e66f003ddcb4fd3a1e1a41f6da5daf41b646
**Title:** Incorrect Transparency Mapping When Converting RGB to Palette with Repeated Colors **Description:** When converting an RGB image with transparency to a palette-based image using an adaptive palette, the transparency index does not correctly correspond to the intended color. This results in the transparent a...
diff --git a/src/PIL/ImagePalette.py b/src/PIL/ImagePalette.py --- a/src/PIL/ImagePalette.py +++ b/src/PIL/ImagePalette.py @@ -53,10 +53,12 @@ self._palette = palette mode_len = len(self.mode) - self.colors = { - tuple(self.palette[i : i + mode_len]): i // mode_len - for...
diff --git a/Tests/test_image_convert.py b/Tests/test_image_convert.py --- a/Tests/test_image_convert.py +++ b/Tests/test_image_convert.py @@ -155,6 +155,12 @@ assert "transparency" not in im_p.info im_p.save(f) + im = Image.new("RGB", (1, 1)) + im.info["transparency"] = im.getpixel((0, 0)) + im_p ...
null
null
namanjain12/pillow_final:7005e66f003ddcb4fd3a1e1a41f6da5daf41b646
true
null
1
10
null
1,441
0
0.75
1
0.525
1
0.2735
77.533
9,499
r2e_gym::train::6465
r2e_gym
train
6,465
pillow__9980981c2e2063df3e86a14ebd4c109a2bf92122
pillow
python-pillow/pillow
python
9980981c2e2063df3e86a14ebd4c109a2bf92122
**Title:** Missing DeprecationWarning When Using `convert_dict_qtables` **Description:** When passing a dictionary with lists in normal order to the `qtables` parameter, the `convert_dict_qtables` function is expected to emit a `DeprecationWarning`, indicating that this function is deprecated and will be removed in fu...
diff --git a/src/PIL/JpegImagePlugin.py b/src/PIL/JpegImagePlugin.py --- a/src/PIL/JpegImagePlugin.py +++ b/src/PIL/JpegImagePlugin.py @@ -252,7 +252,7 @@ data = array.array("B" if precision == 1 else "H", s[1:qt_length]) if sys.byteorder == "little" and precision > 1: data.byteswap() # ...
diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -446,7 +446,7 @@ assert len(im.quantization) == n reloaded = self.roundtrip(im, qtables="keep") assert im.quantization == reloaded.quantization...
null
null
namanjain12/pillow_final:9980981c2e2063df3e86a14ebd4c109a2bf92122
true
null
2
26
null
1,121
0
0.75
1
0.525
1
0.2735
77.533