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,600
r2e_gym::train::365
r2e_gym
train
365
orange3__cd675c8e4e74de86ed4c05110f9c084327741764
orange3
biolab/orange3
python
cd675c8e4e74de86ed4c05110f9c084327741764
**Title: Language Selection Not Preserved After Restarting the Data Sets Widget** **Description** When a user selects a language other than the default in the Data Sets widget, the selection is not retained after restarting the application or reloading the widget settings. For example, choosing "Slovenščina" does not ...
diff --git a/Orange/widgets/data/owdatasets.py b/Orange/widgets/data/owdatasets.py --- a/Orange/widgets/data/owdatasets.py +++ b/Orange/widgets/data/owdatasets.py @@ -204,6 +204,7 @@ #: Selected dataset id selected_id = settings.Setting(None) # type: Optional[str] + language = settings.Setting(DEFAULT_...
diff --git a/Orange/widgets/data/tests/test_owdatasets.py b/Orange/widgets/data/tests/test_owdatasets.py --- a/Orange/widgets/data/tests/test_owdatasets.py +++ b/Orange/widgets/data/tests/test_owdatasets.py @@ -63,6 +63,27 @@ self.assertEqual(model.rowCount(), 2) @patch("Orange.widgets.data.owdatasets.l...
null
null
namanjain12/orange3_final:cd675c8e4e74de86ed4c05110f9c084327741764
true
null
1
18
null
1,079
0
0.75
1
0.525
1
0.239833
77.432
9,601
r2e_gym::train::5990
r2e_gym
train
5,990
tornado__c2a8c322b3f3f54f6525d7469ecab1af46862bc2
tornado
tornadoweb/tornado
python
c2a8c322b3f3f54f6525d7469ecab1af46862bc2
**Title:** XSRF Token Versioning Causes Inconsistent Token Generation **Description:** When requesting an XSRF token with version 1, the tokens generated are expected to remain consistent across multiple requests. However, the tokens are differing instead of being identical. This inconsistency leads to failures in tes...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -1071,13 +1071,20 @@ """ if not hasattr(self, "_xsrf_token"): version, token, timestamp = self._get_raw_xsrf_token() - mask = os.urandom(4) - self._xsrf_token = b"|".join([ - ...
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 @@ -1910,6 +1910,10 @@ class XSRFTest(SimpleHandlerTestCase): class Handler(RequestHandler): def get(self): + version = int(self.get_argument("version", "2")) + ...
null
null
namanjain12/tornado_final:c2a8c322b3f3f54f6525d7469ecab1af46862bc2
true
null
1
23
null
979
0
0.75
1
0.525
1
0.239833
77.432
9,602
r2e_gym::train::5398
r2e_gym
train
5,398
aiohttp__1a389a53b21305d05cbe9f4fa64b271b5c42015f
aiohttp
aio-libs/aiohttp
python
1a389a53b21305d05cbe9f4fa64b271b5c42015f
**Title:** CookieJar Fails to Expire Stale Cookies and Raises Resource Warnings When Clearing Domains **Description:** When using the `CookieJar` to manage cookies, stale cookies are not properly expired, and attempting to clear domains results in resource warnings. **Example Code:** ```python from aiohttp import Coo...
diff --git a/CHANGES/7784.bugfix b/CHANGES/7784.bugfix --- a/CHANGES/7784.bugfix +++ b/CHANGES/7784.bugfix @@ -0,0 +1 @@ +Fix duplicate cookie expiration calls in the CookieJar implementation diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -154,7 +154,12...
diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py --- a/tests/test_cookiejar.py +++ b/tests/test_cookiejar.py @@ -854,7 +854,28 @@ assert len(sut) == 0 -async def test_cookie_jar_clear_domain(): +async def test_cookie_jar_filter_cookies_expires(): + """Test that calling filter_cookies will ...
null
null
namanjain12/aiohttp_final:1a389a53b21305d05cbe9f4fa64b271b5c42015f
true
null
2
8
null
1,279
0
0.75
1
0.525
1
0.239833
77.432
9,603
r2e_gym::train::5977
r2e_gym
train
5,977
tornado__c443fb7bf8a87ba8ab02b9a6af9e140cabc0ab0d
tornado
tornadoweb/tornado
python
c443fb7bf8a87ba8ab02b9a6af9e140cabc0ab0d
**Title:** HTTP client does not convert POST to GET on 301 redirects **Description:** When a POST request receives a 301 redirect response, the HTTP client fails to convert the request method to GET. While the client correctly changes POST to GET for 302 and 303 redirects, it leaves the method as POST for 301 redirect...
diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py --- a/tornado/simple_httpclient.py +++ b/tornado/simple_httpclient.py @@ -626,14 +626,17 @@ ) new_request.max_redirects = self.request.max_redirects - 1 del new_request.headers["Host"] - # http://w...
diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py --- a/tornado/test/httpclient_test.py +++ b/tornado/test/httpclient_test.py @@ -126,7 +126,7 @@ def method(self): self.write(self.request.method) - get = post = put = delete = options = patch = other = method # type: igno...
null
null
namanjain12/tornado_final:c443fb7bf8a87ba8ab02b9a6af9e140cabc0ab0d
true
null
1
19
null
1,058
0
0.75
1
0.525
1
0.239667
77.4315
9,604
r2e_gym::train::5861
r2e_gym
train
5,861
tornado__dce186641b516f76924de7dbfc5de035e25e310f
tornado
tornadoweb/tornado
python
dce186641b516f76924de7dbfc5de035e25e310f
**Title:** Incorrect URL Concatenation When Using Absolute URLs in AsyncHTTPTestCase **Description:** When providing a full HTTP or HTTPS URL to the `fetch` method in `AsyncHTTPTestCase`, the resulting request URL is incorrectly concatenated with the server's base URL. This leads to malformed URLs and causes the reque...
diff --git a/tornado/testing.py b/tornado/testing.py --- a/tornado/testing.py +++ b/tornado/testing.py @@ -395,14 +395,20 @@ raise NotImplementedError() def fetch(self, path, **kwargs): - """Convenience method to synchronously fetch a url. + """Convenience method to synchronously fetch a U...
diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -4,8 +4,9 @@ from tornado import gen, ioloop from tornado.log import app_log -from tornado.testing import AsyncTestCase, gen_test, ExpectLog from tornado.test.util impor...
null
null
namanjain12/tornado_final:dce186641b516f76924de7dbfc5de035e25e310f
true
null
1
12
null
1,194
0
0.75
1
0.525
1
0.239
77.4295
9,605
r2e_gym::train::50
r2e_gym
train
50
orange3__8a6c0525e64ea4c3eed74dea981891028dbc2061
orange3
biolab/orange3
python
8a6c0525e64ea4c3eed74dea981891028dbc2061
**Title:** OWColor Widget Fails to Update Data Information in Status Bar **Description:** When data is sent to the OWColor widget, the status bar is expected to display a summary of the input and output data. However, the status bar does not update accordingly, leaving the information fields empty. This issue prevents...
diff --git a/Orange/widgets/data/owcolor.py b/Orange/widgets/data/owcolor.py --- a/Orange/widgets/data/owcolor.py +++ b/Orange/widgets/data/owcolor.py @@ -12,6 +12,7 @@ from Orange.widgets.gui import HorizontalGridDelegate from Orange.widgets.utils import itemmodels, colorpalettes from Orange.widgets.utils.widgetpre...
diff --git a/Orange/widgets/data/tests/test_owcolor.py b/Orange/widgets/data/tests/test_owcolor.py --- a/Orange/widgets/data/tests/test_owcolor.py +++ b/Orange/widgets/data/tests/test_owcolor.py @@ -1,5 +1,5 @@ # Test methods with long descriptive names can omit docstrings -# pylint: disable=missing-docstring, protect...
null
null
namanjain12/orange3_final:8a6c0525e64ea4c3eed74dea981891028dbc2061
true
null
1
9
null
1,250
0
0.75
1
0.525
1
0.238333
77.4275
9,606
r2e_gym::train::5537
r2e_gym
train
5,537
aiohttp__b235e7656f8a4b07e1ad5ec74f28f6c05933620b
aiohttp
aio-libs/aiohttp
python
b235e7656f8a4b07e1ad5ec74f28f6c05933620b
**Title:** Routes with ANY method not registered in UrlDispatcher, causing route resolution failures **Description:** When adding a route with the `ANY` HTTP method using `UrlDispatcher`, the route does not appear in the dispatcher’s list of routes. This prevents the dispatcher from recognizing and correctly handling ...
diff --git a/CHANGES/9899.bugfix.rst b/CHANGES/9899.bugfix.rst --- a/CHANGES/9899.bugfix.rst +++ b/CHANGES/9899.bugfix.rst @@ -0,0 +1 @@ +9987.bugfix.rst diff --git a/CHANGES/9987.bugfix.rst b/CHANGES/9987.bugfix.rst --- a/CHANGES/9987.bugfix.rst +++ b/CHANGES/9987.bugfix.rst @@ -0,0 +1 @@ +Fixed the ``ANY`` method not...
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py --- a/tests/test_urldispatch.py +++ b/tests/test_urldispatch.py @@ -257,7 +257,13 @@ assert info1.route is info2.route -async def test_match_second_result_in_table(router) -> None: +async def test_any_method_appears_in_routes(router: web.UrlDis...
null
null
namanjain12/aiohttp_final:b235e7656f8a4b07e1ad5ec74f28f6c05933620b
true
null
3
7
null
1,282
0
0.75
1
0.525
1
0.237
77.4235
9,607
r2e_gym::train::5317
r2e_gym
train
5,317
aiohttp__922541b8f49e894bd2d52e0ae7d5b6daf3efa073
aiohttp
aio-libs/aiohttp
python
922541b8f49e894bd2d52e0ae7d5b6daf3efa073
**Title:** Cleanup Task Not Scheduled Correctly After Granular Update **Description:** After updating the cleanup procedure to be more granular with 1-second steps, the cleanup task is not being scheduled as expected. When initiating the cleanup process, the scheduler fails to invoke the `call_at` method with the corr...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -8,6 +8,7 @@ import traceback import warnings +from math import ceil from . import hdrs from .client import ClientRequest @@ -170,21 +171,22 @@ transport.close() ...
diff --git a/tests/test_connector.py b/tests/test_connector.py --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -374,13 +374,14 @@ def test_start_cleanup_task(self): loop = unittest.mock.Mock() - conn = aiohttp.BaseConnector(loop=loop) + loop.time.return_value = 1.5 + ...
null
null
namanjain12/aiohttp_final:922541b8f49e894bd2d52e0ae7d5b6daf3efa073
true
null
1
12
null
1,177
0
0.75
1
0.525
1
0.236167
77.421
9,608
r2e_gym::train::5420
r2e_gym
train
5,420
aiohttp__02d8dba9a320e4d15d8d7539ca5fb6d93083bd26
aiohttp
aio-libs/aiohttp
python
02d8dba9a320e4d15d8d7539ca5fb6d93083bd26
**Title:** Proxy Headers Included in ConnectionKey When No Proxy is Configured **Description:** When creating a client request without specifying a proxy, any provided proxy headers are still being included in the `ConnectionKey`. This results in incorrect connection handling because proxy headers should only be consi...
diff --git a/CHANGES/9368.bugfix.rst b/CHANGES/9368.bugfix.rst --- a/CHANGES/9368.bugfix.rst +++ b/CHANGES/9368.bugfix.rst @@ -0,0 +1,3 @@ +Fixed proxy headers being used in the ``ConnectionKey`` hash when proxy was being used -- by :user:`bdraco`. + +If default headers are used, they are also used for proxy headers. T...
diff --git a/tests/test_client_request.py b/tests/test_client_request.py --- a/tests/test_client_request.py +++ b/tests/test_client_request.py @@ -1474,3 +1474,30 @@ """Test that no Authorization header is sent when netrc is empty""" req = make_request("get", "http://example.com", trust_env=True) assert ...
null
null
namanjain12/aiohttp_final:02d8dba9a320e4d15d8d7539ca5fb6d93083bd26
true
null
2
11
null
1,195
0
0.75
1
0.525
1
0.235833
77.42
9,609
r2e_gym::train::5693
r2e_gym
train
5,693
scrapy__6f9265b44be6f52a2af94458a86fb4ba503fa74d
scrapy
scrapy/scrapy
python
6f9265b44be6f52a2af94458a86fb4ba503fa74d
**Title:** Crawler Fails to Override Project Settings with Spider's Custom Settings **Description:** When initializing a `Crawler` with a spider that defines custom settings, the spider's settings are not correctly overriding the project-level settings. This results in project settings taking precedence, which is cont...
diff --git a/scrapy/crawler.py b/scrapy/crawler.py --- a/scrapy/crawler.py +++ b/scrapy/crawler.py @@ -18,12 +18,16 @@ def __init__(self, spidercls, settings): self.spidercls = spidercls - self.settings = settings + self.settings = settings.copy() + self.signals = SignalManager(se...
diff --git a/tests/test_crawler.py b/tests/test_crawler.py --- a/tests/test_crawler.py +++ b/tests/test_crawler.py @@ -25,16 +25,6 @@ self.crawler.spiders self.assertEqual(len(w), 1, "Warn deprecated access only once") - -class CrawlerRunnerTest(unittest.TestCase): - - def setUp(self): - ...
null
null
namanjain12/scrapy_final:6f9265b44be6f52a2af94458a86fb4ba503fa74d
true
null
1
12
null
1,174
0
0.75
1
0.525
1
0.235667
77.4195
9,610
r2e_gym::train::4078
r2e_gym
train
4,078
coveragepy__aabc54031a673e2f789620a993a90197a36f0e95
coveragepy
nedbat/coveragepy
python
aabc54031a673e2f789620a993a90197a36f0e95
**Title:** JSON Coverage Report Missing Branch Execution Details **Description:** When generating a JSON coverage report with branch coverage enabled, the report does not include information about which branches were taken and which were missed. This omission leads to incomplete coverage metrics and causes related tes...
diff --git a/coverage/jsonreport.py b/coverage/jsonreport.py --- a/coverage/jsonreport.py +++ b/coverage/jsonreport.py @@ -102,4 +102,17 @@ 'covered_branches': nums.n_executed_branches, 'missing_branches': nums.n_missing_branches, }) + reported_file['executed_br...
diff --git a/tests/test_json.py b/tests/test_json.py --- a/tests/test_json.py +++ b/tests/test_json.py @@ -21,6 +21,12 @@ a = {'b': 1} if a.get('a'): b = 1 + elif a.get('b'): + b = 2 + else: + b = 3 + if not a: + ...
null
null
namanjain12/coveragepy_final:aabc54031a673e2f789620a993a90197a36f0e95
true
null
1
13
null
1,150
0
0.75
1
0.525
1
0.235
77.4175
9,611
swe_bench::dev::33
swe_bench
dev
33
pvlib__pvlib-python-1225
pvlib/pvlib-python
pvlib/pvlib-python
python
0415365031ca8d0b2867f2a2877e0ad9d7098ffc
Improve docstring or behavior for irradiance.get_total_irradiance and irradiance.get_sky_diffuse `pvlib.irradiance.get_total_irradiance` accepts kwargs `dni_extra` and `airmass`, both default to `None`. However, values for these kwargs are required for several of the irradiance transposition models. See discussion [he...
Consider also specifying it is relative airmass. This came up again in @mikofski's thread [here](https://groups.google.com/g/pvlib-python/c/AUQ_hsbL_B8/m/0y83YIRrBgAJ). @mikofski proposed calculating values if needed and not provided. @kanderso-nrel proposed a couple of solutions to provide more informative erro...
diff --git a/pvlib/irradiance.py b/pvlib/irradiance.py --- a/pvlib/irradiance.py +++ b/pvlib/irradiance.py @@ -14,7 +14,7 @@ from pvlib import atmosphere, solarposition, tools -# see References section of grounddiffuse function +# see References section of get_ground_diffuse function SURFACE_ALBEDOS = {'urban': 0...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -281,13 +281,35 @@ def test_sky_diffuse_zenith_close_to_90(model): assert sky_diffuse < 100 -def test_get_sky_diffuse_invalid(): +def test_get_sky_diffuse_mo...
["pvlib/tests/test_irradiance.py::test_get_sky_diffuse_missing_dni_extra", "pvlib/tests/test_irradiance.py::test_get_sky_diffuse_missing_airmass", "pvlib/tests/test_irradiance.py::test_get_total_irradiance_missing_dni_extra", "pvlib/tests/test_irradiance.py::test_get_total_irradiance_missing_airmass"]
["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes...
null
true
2021-05-10T16:32:59Z
1
103
4
573
0
0.8
1
0.4
1
0.438833
77.4165
9,612
r2e_gym::train::416
r2e_gym
train
416
orange3__b5a965e31d82da4134b21b15a62d708cd48e03f4
orange3
biolab/orange3
python
b5a965e31d82da4134b21b15a62d708cd48e03f4
**Title:** Status Bar Missing Detailed Data Summary in OWContinuize Widget **Description:** When data is sent to the OWContinuize widget, the status bar is expected to display both the number of instances and a detailed summary of the data. Currently, it only shows the count of instances, omitting the summary details....
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 @@ -13,6 +13,7 @@ from Orange.widgets.settings import Setting from Orange.widgets.utils.sql import check_sql_input from Orange.widgets.utils.widge...
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 @@ -10,7 +10,7 @@ from Orange.widgets.data import owcontinuize from Orange.widgets.data.owcontinuize im...
null
null
namanjain12/orange3_final:b5a965e31d82da4134b21b15a62d708cd48e03f4
true
null
1
7
null
1,267
0
0.75
1
0.525
1
0.2345
77.416
9,613
r2e_gym::train::121
r2e_gym
train
121
orange3__5a7d3d3d1abb3eb2d825311a02f1440bd031b550
orange3
biolab/orange3
python
5a7d3d3d1abb3eb2d825311a02f1440bd031b550
Title: Status bar does not update input and output summaries in OWContinuize widget **Description:** When data is sent to the OWContinuize widget, the status bar should display the number of input and output data instances. However, the summaries are not updating correctly, causing inconsistencies and failed validatio...
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 @@ -97,6 +97,8 @@ gui.auto_apply(self.buttonsArea, self, "autosend", box=False) self.data = None + self.info.set_input_sum...
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 @@ -1,6 +1,7 @@ # Test methods with long descriptive names can omit docstrings -# pylint: disable=missin...
null
null
namanjain12/orange3_final:5a7d3d3d1abb3eb2d825311a02f1440bd031b550
true
null
1
9
null
1,226
0
0.75
1
0.525
1
0.234333
77.4155
9,614
r2e_gym::train::178
r2e_gym
train
178
orange3__e00a4a78e510f5d4edc01df83e9b2643e573ff85
orange3
biolab/orange3
python
e00a4a78e510f5d4edc01df83e9b2643e573ff85
**Title:** Multiple `drawRect` Calls Cause Prediction Visualization Issues **Description:** The `drawBar` function in the `RegressionItemDelegate` class incorrectly calls `drawRect` multiple times when rendering predictions. This leads to unintended visual artifacts and causes related tests to fail. **Example Buggy C...
diff --git a/Orange/widgets/evaluate/owpredictions.py b/Orange/widgets/evaluate/owpredictions.py --- a/Orange/widgets/evaluate/owpredictions.py +++ b/Orange/widgets/evaluate/owpredictions.py @@ -1026,7 +1026,7 @@ self.span = 1 else: self.offset = minv - self.span = maxv - m...
diff --git a/Orange/widgets/evaluate/tests/test_owpredictions.py b/Orange/widgets/evaluate/tests/test_owpredictions.py --- a/Orange/widgets/evaluate/tests/test_owpredictions.py +++ b/Orange/widgets/evaluate/tests/test_owpredictions.py @@ -1475,7 +1475,6 @@ painter = Mock() dr = painter.drawRect ...
null
null
namanjain12/orange3_final:e00a4a78e510f5d4edc01df83e9b2643e573ff85
true
null
1
14
null
1,124
0
0.75
1
0.525
1
0.234
77.4145
9,615
r2e_gym::train::5637
r2e_gym
train
5,637
scrapy__768f3155e57ed54419f0c137fc066a95197d1b46
scrapy
scrapy/scrapy
python
768f3155e57ed54419f0c137fc066a95197d1b46
**Title: Empty Referrer-Policy Header Causes Incorrect Referer Handling** **Description:** When a response includes a `Referrer-Policy` header set to an empty string, the Referer middleware does not apply the `no-referrer-when-downgrade` policy correctly. This results in the `Referer` header being set to the origin U...
diff --git a/scrapy/spidermiddlewares/referer.py b/scrapy/spidermiddlewares/referer.py --- a/scrapy/spidermiddlewares/referer.py +++ b/scrapy/spidermiddlewares/referer.py @@ -261,6 +261,9 @@ DefaultReferrerPolicy, )} +# Reference: https://www.w3.org/TR/referrer-policy/#referrer-policy-empty-string +_policy_clas...
diff --git a/tests/test_spidermiddleware_referer.py b/tests/test_spidermiddleware_referer.py --- a/tests/test_spidermiddleware_referer.py +++ b/tests/test_spidermiddleware_referer.py @@ -526,6 +526,13 @@ settings = {'REFERRER_POLICY': 'scrapy.spidermiddlewares.referer.OriginWhenCrossOriginPolicy'} resp_header...
null
null
namanjain12/scrapy_final:768f3155e57ed54419f0c137fc066a95197d1b46
true
null
1
8
null
1,237
0
0.75
1
0.525
1
0.232833
77.411
9,616
r2e_gym::train::4906
r2e_gym
train
4,906
datalad__d969b8ad9847aa909318d7a7bb0abc36906a0564
datalad
datalad/datalad
python
d969b8ad9847aa909318d7a7bb0abc36906a0564
**Title:** Documentation Processor Leaves 'REFLOW' Tags Due to Greedy Regex **Description:** When processing interface documentation, the system incorrectly retains 'REFLOW' tags, causing unexpected markers to appear in the output. This issue is caused by the regex patterns being too greedy when searching for closing ...
diff --git a/datalad/interface/base.py b/datalad/interface/base.py --- a/datalad/interface/base.py +++ b/datalad/interface/base.py @@ -99,7 +99,7 @@ docs = dedent_docstring(docs) # clean cmdline sections docs = re.sub( - '\|\| CMDLINE \>\>.*\<\< CMDLINE \|\|', + '\|\| CMDLINE \>\>.*?\<\< CM...
diff --git a/datalad/interface/tests/test_docs.py b/datalad/interface/tests/test_docs.py --- a/datalad/interface/tests/test_docs.py +++ b/datalad/interface/tests/test_docs.py @@ -33,6 +33,16 @@ Multiline! << REFLOW || << CMDLINE || + + || REFLOW >> + a + b + << REFLOW || + not + refl...
null
null
namanjain12/datalad_final:d969b8ad9847aa909318d7a7bb0abc36906a0564
true
null
1
12
null
1,151
0
0.75
1
0.525
1
0.231833
77.408
9,617
r2e_gym::train::5750
r2e_gym
train
5,750
scrapy__0b9336418ef40ca95052ebbaa02f12953e165115
scrapy
scrapy/scrapy
python
0b9336418ef40ca95052ebbaa02f12953e165115
**Title:** Test Assertions Fail Due to Byte-String Mismatch in HTTP Headers with Python 3 **Description:** When running tests for the `HttpCompressionMiddleware` in a Python 3 environment, several assertions fail because HTTP header values are handled as bytes instead of strings. For instance, setting the `'Accept-En...
diff --git a/scrapy/downloadermiddlewares/httpcompression.py b/scrapy/downloadermiddlewares/httpcompression.py --- a/scrapy/downloadermiddlewares/httpcompression.py +++ b/scrapy/downloadermiddlewares/httpcompression.py @@ -9,13 +9,13 @@ class HttpCompressionMiddleware(object): """This middleware allows compressed...
diff --git a/tests/py3-ignores.txt b/tests/py3-ignores.txt --- a/tests/py3-ignores.txt +++ b/tests/py3-ignores.txt @@ -4,7 +4,6 @@ tests/test_exporters.py tests/test_linkextractors_deprecated.py tests/test_crawl.py -tests/test_downloadermiddleware_httpcompression.py tests/test_downloadermiddleware_httpproxy.py tes...
null
null
namanjain12/scrapy_final:0b9336418ef40ca95052ebbaa02f12953e165115
true
null
1
8
null
1,231
0
0.75
1
0.525
1
0.231833
77.408
9,618
r2e_gym::train::4104
r2e_gym
train
4,104
coveragepy__5a031b056c6f9613b3fa4ceb1a6b73774b56195c
coveragepy
nedbat/coveragepy
python
5a031b056c6f9613b3fa4ceb1a6b73774b56195c
**Title:** Incorrect Branch Message for Last Case in Match/Case Statements **Description:** When using match/case statements with multiple cases, the parser incorrectly describes the final case's branch. Specifically, it states that the pattern in the last case never matches, even when it always does. This leads to mi...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,10 @@ Unreleased ---------- + +- Fix: the last case of a match/case statement had an incorrect message if the + branch was missed. It said the pattern never matched, when actually the + branch is missed if the last case alway...
diff --git a/tests/test_parser.py b/tests/test_parser.py --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -902,21 +902,23 @@ assert parser.missing_arc_description(2, -3) == "line 3 didn't finish the lambda on line 3" @pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in...
null
null
namanjain12/coveragepy_final:5a031b056c6f9613b3fa4ceb1a6b73774b56195c
true
null
2
8
null
1,226
0
0.75
1
0.525
1
0.231
77.4055
9,619
r2e_gym::train::5692
r2e_gym
train
5,692
scrapy__571bf68d7d45524b8150f15776af85ed98258882
scrapy
scrapy/scrapy
python
571bf68d7d45524b8150f15776af85ed98258882
**Title:** Incorrect Field Defaults in Diamond Multiple Inheritance **Description:** When using multiple inheritance with a diamond structure, certain fields inherit incorrect default values from base classes. **Example Buggy Code:** ```python class A(Item): save = Field(default='A') load = Field(default='A')...
diff --git a/scrapy/item.py b/scrapy/item.py --- a/scrapy/item.py +++ b/scrapy/item.py @@ -24,18 +24,21 @@ class ItemMeta(ABCMeta): def __new__(mcs, class_name, bases, attrs): + new_bases = tuple(base._class for base in bases if hasattr(base, '_class')) + _class = super(ItemMeta, mcs).__new__(mcs,...
diff --git a/tests/test_item.py b/tests/test_item.py --- a/tests/test_item.py +++ b/tests/test_item.py @@ -134,6 +134,76 @@ self.assertEqual(list(i.keys()), ['keys']) self.assertEqual(list(i.values()), [3]) + def test_metaclass_multiple_inheritance_simple(self): + class A(Item): + ...
null
null
namanjain12/scrapy_final:571bf68d7d45524b8150f15776af85ed98258882
true
null
1
17
null
1,046
0
0.75
1
0.525
1
0.231
77.4055
9,620
r2e_gym::train::5306
r2e_gym
train
5,306
aiohttp__7fa8d945a452fb4ad912589f4ba5bcea13338bcf
aiohttp
aio-libs/aiohttp
python
7fa8d945a452fb4ad912589f4ba5bcea13338bcf
**Incorrect Capitalization of Header Keys When Merging in ClientSession** **Description** When merging default headers with additional headers in the `ClientSession` class, the header keys are being unexpectedly capitalized. This causes discrepancies between the provided headers and the resulting merged headers, lead...
diff --git a/aiohttp/client.py b/aiohttp/client.py --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -262,19 +262,17 @@ """ Add default headers and transform it to CIMultiDict """ # Convert headers to MultiDict - result = CIMultiDict() + result = CIMultiDict(self._default_heade...
diff --git a/tests/test_client_session.py b/tests/test_client_session.py --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -108,8 +108,8 @@ }) self.assertIsInstance(headers, CIMultiDict) self.assertEqual(headers, CIMultiDict([ - ("h1", "h1"), - ("h...
null
null
namanjain12/aiohttp_final:7fa8d945a452fb4ad912589f4ba5bcea13338bcf
true
null
1
20
null
985
0
0.75
1
0.525
1
0.230833
77.405
9,621
r2e_gym::train::5586
r2e_gym
train
5,586
scrapy__eb0253e5301ea54d4f37da8974d0dac295ebe871
scrapy
scrapy/scrapy
python
eb0253e5301ea54d4f37da8974d0dac295ebe871
**Title:** CrawlSpider Fails to Initialize `_follow_links` Based on Crawler Settings **Description:** When creating a `CrawlSpider` using the `from_crawler` method, the spider does not correctly set the `_follow_links` attribute according to the `CRAWLSPIDER_FOLLOW_LINKS` setting. This results in the spider following ...
diff --git a/scrapy/contrib/spiders/crawl.py b/scrapy/contrib/spiders/crawl.py --- a/scrapy/contrib/spiders/crawl.py +++ b/scrapy/contrib/spiders/crawl.py @@ -86,6 +86,13 @@ rule.process_links = get_method(rule.process_links) rule.process_request = get_method(rule.process_request) + @clas...
diff --git a/tests/test_spider.py b/tests/test_spider.py --- a/tests/test_spider.py +++ b/tests/test_spider.py @@ -220,6 +220,30 @@ 'http://example.org/about.html', 'http://example.org/nofollow.html']) + def test_follow_links_attribute_population(self): + ...
null
null
namanjain12/scrapy_final:eb0253e5301ea54d4f37da8974d0dac295ebe871
true
null
1
7
null
1,242
0
0.75
1
0.525
1
0.230333
77.4035
9,622
r2e_gym::train::4973
r2e_gym
train
4,973
datalad__8e3eafb7cc413c799b8f84461b3276a90f6d1ed6
datalad
datalad/datalad
python
8e3eafb7cc413c799b8f84461b3276a90f6d1ed6
**Title:** Incorrect Path Extraction for SSHRI URLs Outside Windows **Description:** The function responsible for extracting the installation path from URLs fails to correctly handle SSH Resource Identifier (SSHRI) URLs on non-Windows systems. For example, when provided with the URL `hostname:lastbit`, the function re...
diff --git a/datalad/core/distributed/clone.py b/datalad/core/distributed/clone.py --- a/datalad/core/distributed/clone.py +++ b/datalad/core/distributed/clone.py @@ -48,13 +48,14 @@ from datalad.support.exceptions import DownloadError from datalad.support.param import Parameter from datalad.support.network import (...
diff --git a/datalad/core/distributed/tests/test_clone.py b/datalad/core/distributed/tests/test_clone.py --- a/datalad/core/distributed/tests/test_clone.py +++ b/datalad/core/distributed/tests/test_clone.py @@ -532,24 +532,41 @@ def test_installationpath_from_url(): - cases = ( + # cases for all OSes + ca...
null
null
namanjain12/datalad_final:8e3eafb7cc413c799b8f84461b3276a90f6d1ed6
true
null
1
13
null
1,121
0
0.75
1
0.525
1
0.230167
77.403
9,623
r2e_gym::train::5919
r2e_gym
train
5,919
tornado__86225304aee403c02f44ee59b4a76a14454eb926
tornado
tornadoweb/tornado
python
86225304aee403c02f44ee59b4a76a14454eb926
**Title:** Exception in asynchronous `open()` not properly handled, causing connection timeouts **Description:** When a WebSocket handler's asynchronous `open()` method raises an exception, the server fails to catch and handle it appropriately. This results in the connection hanging indefinitely, eventually leading to...
diff --git a/tornado/websocket.py b/tornado/websocket.py --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -948,11 +948,15 @@ self.stream = handler._detach_stream() self.start_pinging() - open_result = self._run_callback( - handler.open, *handler.open_args, **handler.open_kw...
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 @@ -187,6 +187,17 @@ self.write_message("ok") +class ErrorInOpenHandler(TestWebSocketHandler): + def open(self): + raise Exception("boom") + + +cl...
null
null
namanjain12/tornado_final:86225304aee403c02f44ee59b4a76a14454eb926
true
null
1
14
null
1,098
0
0.75
1
0.525
1
0.229667
77.4015
9,624
r2e_gym::train::6030
r2e_gym
train
6,030
tornado__92f29b8f24446173ca44d11264a09272d012f1d7
tornado
tornadoweb/tornado
python
92f29b8f24446173ca44d11264a09272d012f1d7
**IOLoop Spins Excessively When Callback Returns Empty Dictionary or List** **Description** When a callback added to the IOLoop returns an empty dictionary `{}` or an empty list `[]`, the IOLoop enters a continuous loop, leading to excessive CPU usage and a rapidly increasing number of callback invocations. **Example...
diff --git a/tornado/ioloop.py b/tornado/ioloop.py --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -616,9 +616,13 @@ # result, which should just be ignored. pass else: - self.add_future(ret, lambda f: f.result()) + self....
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 @@ -9,6 +9,7 @@ import sys import threading import time +import types from tornado import gen from tornado.ioloop import IOLoop, TimeoutError, PollIOLoop, PeriodicCallback @@...
null
null
namanjain12/tornado_final:92f29b8f24446173ca44d11264a09272d012f1d7
true
null
1
6
null
1,257
0
0.75
1
0.525
1
0.2295
77.401
9,625
r2e_gym::train::5721
r2e_gym
train
5,721
scrapy__53757e51e56ace34bef8616451cca921da16791c
scrapy
scrapy/scrapy
python
53757e51e56ace34bef8616451cca921da16791c
**Title:** Custom Request subclasses are not preserved during serialization **Description:** When serializing and deserializing requests, instances of custom subclasses of `Request` such as `FormRequest` or user-defined subclasses are converted into base `Request` objects. This loss of the original subclass type can l...
diff --git a/scrapy/utils/reqser.py b/scrapy/utils/reqser.py --- a/scrapy/utils/reqser.py +++ b/scrapy/utils/reqser.py @@ -5,6 +5,7 @@ from scrapy.http import Request from scrapy.utils.python import to_unicode, to_native_str +from scrapy.utils.misc import load_object def request_to_dict(request, spider=None): ...
diff --git a/tests/test_utils_reqser.py b/tests/test_utils_reqser.py --- a/tests/test_utils_reqser.py +++ b/tests/test_utils_reqser.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import unittest -from scrapy.http import Request +from scrapy.http import Request, FormRequest from scrapy.spiders import Spider from scrap...
null
null
namanjain12/scrapy_final:53757e51e56ace34bef8616451cca921da16791c
true
null
1
6
null
1,254
0
0.75
1
0.525
1
0.229
77.3995
9,626
swe_bench::test::1602
swe_bench
test
1,602
scikit-learn__scikit-learn-13472
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
3b35104c93cb53f67fb5f52ae2fece76ef7144da
GradientBoostingRegressor initial estimator does not play together with Pipeline Using a pipeline as the initial estimator of GradientBoostingRegressor doesn't work due to incompatible signatures. ```python import sklearn import sklearn.pipeline import sklearn.ensemble import sklearn.decomposition import sklearn.linea...
diff --git a/sklearn/ensemble/gradient_boosting.py b/sklearn/ensemble/gradient_boosting.py --- a/sklearn/ensemble/gradient_boosting.py +++ b/sklearn/ensemble/gradient_boosting.py @@ -1476,20 +1476,25 @@ def fit(self, X, y, sample_weight=None, monitor=None): raw_predictions = np.zeros(shape=(X.shape[0],...
diff --git a/sklearn/ensemble/tests/test_gradient_boosting.py b/sklearn/ensemble/tests/test_gradient_boosting.py --- a/sklearn/ensemble/tests/test_gradient_boosting.py +++ b/sklearn/ensemble/tests/test_gradient_boosting.py @@ -39,6 +39,9 @@ from sklearn.exceptions import DataConversionWarning from sklearn.exceptions ...
["sklearn/ensemble/tests/test_gradient_boosting.py::test_gradient_boosting_with_init_pipeline"]
["sklearn/ensemble/tests/test_gradient_boosting.py::test_classification_toy[deviance-auto]", "sklearn/ensemble/tests/test_gradient_boosting.py::test_classification_toy[deviance-True]", "sklearn/ensemble/tests/test_gradient_boosting.py::test_classification_toy[deviance-False]", "sklearn/ensemble/tests/test_gradient_boos...
null
true
2019-03-18T22:15:59Z
1
25
1
1,854
0.111111
0.8
1
0.7
1
0.392333
77.398667
9,627
r2e_gym::train::5000
r2e_gym
train
5,000
datalad__3deb4d632f5f9eb628d20a42319a4d51bc253c03
datalad
datalad/datalad
python
3deb4d632f5f9eb628d20a42319a4d51bc253c03
**Title:** `is_url` Fails to Recognize RI Instances as URLs **Description:** The `is_url` function currently does not handle `RI` (Resource Identifier) instances correctly. When an `RI` instance is passed to `is_url`, the function fails to identify it as a valid URL, leading to incorrect behavior. **Example Buggy Cod...
diff --git a/datalad/distribution/dataset.py b/datalad/distribution/dataset.py --- a/datalad/distribution/dataset.py +++ b/datalad/distribution/dataset.py @@ -27,7 +27,7 @@ def resolve_path(path, ds=None): """Resolve a path specification (against a Dataset location) - Any explicit path (absolute or relative)...
diff --git a/datalad/tests/test_network.py b/datalad/tests/test_network.py --- a/datalad/tests/test_network.py +++ b/datalad/tests/test_network.py @@ -343,6 +343,10 @@ nok_(is_url('')) nok_(is_url(' ')) + # we can pass RI instance directly + ok_(is_url(RI('file://localhost/some'))) + nok_(is_url(RI...
null
null
namanjain12/datalad_final:3deb4d632f5f9eb628d20a42319a4d51bc253c03
true
null
2
22
null
930
0
0.75
1
0.525
1
0.228333
77.3975
9,628
r2e_gym::train::6029
r2e_gym
train
6,029
tornado__e59aa2f438f732397ca55368c61f41e411461fc4
tornado
tornadoweb/tornado
python
e59aa2f438f732397ca55368c61f41e411461fc4
**Title:** Calling `static_url` Without `include_version` Causes Internal Server Error **Description:** When using the `static_url` method without providing the `include_version` keyword argument, the server responds with a 500 Internal Server Error instead of generating the expected static URL. **Example Code:** ```...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -987,24 +987,26 @@ return '<input type="hidden" name="_xsrf" value="' + \ escape.xhtml_escape(self.xsrf_token) + '"/>' - def static_url(self, path, include_host=None, include_version=True): + def stat...
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 @@ -967,7 +967,7 @@ def get_handlers(self): class MyStaticFileHandler(StaticFileHandler): @classmethod - def make_static_url(cls, settings, path, include_v...
null
null
namanjain12/tornado_final:e59aa2f438f732397ca55368c61f41e411461fc4
true
null
1
24
null
887
0
0.75
1
0.525
1
0.227833
77.396
9,629
r2e_gym::train::5415
r2e_gym
train
5,415
aiohttp__695b0dc4bada1aca19a1bb99ea52176409658951
aiohttp
aio-libs/aiohttp
python
695b0dc4bada1aca19a1bb99ea52176409658951
**Title:** `readuntil()` Fails to Correctly Handle Multi-Byte Separators **Description:** When using the `readuntil()` method with a separator longer than one byte, it fails to correctly identify the entire separator. This results in incomplete data being read and unexpected behavior in the stream processing. **Examp...
diff --git a/CHANGES/6701.bugfix b/CHANGES/6701.bugfix --- a/CHANGES/6701.bugfix +++ b/CHANGES/6701.bugfix @@ -0,0 +1 @@ +Fix ``readuntil`` to work with a delimiter of more than one character diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -215,6 +215,7 @@ Mathieu Dugr...
diff --git a/tests/test_streams.py b/tests/test_streams.py --- a/tests/test_streams.py +++ b/tests/test_streams.py @@ -411,44 +411,47 @@ with pytest.raises(ValueError): await stream.readline() - async def test_readuntil(self) -> None: + @pytest.mark.parametrize("separator", [b"*", b"**"]) ...
null
null
namanjain12/aiohttp_final:695b0dc4bada1aca19a1bb99ea52176409658951
true
null
3
6
null
1,243
0
0.75
1
0.525
1
0.227167
77.394
9,630
r2e_gym::train::5894
r2e_gym
train
5,894
tornado__5390ea3da16a7f1cc1f9e71d65fb955cb333e8ac
tornado
tornadoweb/tornado
python
5390ea3da16a7f1cc1f9e71d65fb955cb333e8ac
**Title:** `Finish` Exception Does Not Pass Arguments, Resulting in Empty Response Body **Description:** When attempting to send a response before terminating a request by raising the `Finish` exception with arguments, the response body remains empty instead of containing the intended message. **Example Code:** ```py...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -1473,7 +1473,7 @@ if isinstance(e, Finish): # Not an error; just finish the request without logging. if not self._finished: - self.finish() + self.finish(*e.args) ...
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 @@ -2544,15 +2544,19 @@ def get(self): self.set_status(401) self.set_header('WWW-Authenticate', 'Basic realm="something"') - self.write('authentica...
null
null
namanjain12/tornado_final:5390ea3da16a7f1cc1f9e71d65fb955cb333e8ac
true
null
1
18
null
997
0
0.75
1
0.525
1
0.226167
77.391
9,631
r2e_gym::train::5525
r2e_gym
train
5,525
aiohttp__68f1e414133066c4f620201a09f71b20cda8bb29
aiohttp
aio-libs/aiohttp
python
68f1e414133066c4f620201a09f71b20cda8bb29
**Title:** HTTP Parser Fails to Mark Connection as Closing for Responses Without Length **Description:** When parsing HTTP responses that do not specify a `Content-Length` or `Transfer-Encoding`, the parser fails to mark the connection as closing. This leads to the parser incorrectly keeping the connection open, which...
diff --git a/CHANGES/8320.bugfix.rst b/CHANGES/8320.bugfix.rst --- a/CHANGES/8320.bugfix.rst +++ b/CHANGES/8320.bugfix.rst @@ -0,0 +1 @@ +Fixed the pure python parser to mark a connection as closing when a response has no length -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py -...
diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -743,7 +743,7 @@ assert msg.version == (1, 1) assert msg.headers == CIMultiDict({"data": "test " + value.decode()}) assert msg.raw_headers == ((b"data", b"test " + value),...
null
null
namanjain12/aiohttp_final:68f1e414133066c4f620201a09f71b20cda8bb29
true
null
2
12
null
1,114
0
0.75
1
0.525
1
0.225667
77.3895
9,632
swe_bench::test::1657
swe_bench
test
1,657
scikit-learn__scikit-learn-14898
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
d2476fb679f05e80c56e8b151ff0f6d7a470e4ae
Documentation section 3.3.1.1 has incorrect description of brier_score_loss In the documentation, section 3.3.1.1. "Common cases: predefined values" includes the remark > All scorer objects follow the convention that higher return values are better than lower return values. As far as I can tell, this is true for all ...
Indeed this is probably the right course of action. Please feel free to open a PR if your wish. @Sycor4x I'll gladly work on it if you're not already doing it @qdeffense Thank you. I had planned to start these revisions if this suggestion were well-received; however, I've just come down with a cold and won't be able ...
diff --git a/sklearn/metrics/classification.py b/sklearn/metrics/classification.py --- a/sklearn/metrics/classification.py +++ b/sklearn/metrics/classification.py @@ -2369,7 +2369,7 @@ def brier_score_loss(y_true, y_prob, sample_weight=None, pos_label=None): raise ValueError("y_prob contains values less than 0...
diff --git a/sklearn/metrics/tests/test_score_objects.py b/sklearn/metrics/tests/test_score_objects.py --- a/sklearn/metrics/tests/test_score_objects.py +++ b/sklearn/metrics/tests/test_score_objects.py @@ -54,7 +54,7 @@ 'roc_auc', 'average_precision', 'precision', 'precision_weighted', ...
["sklearn/metrics/tests/test_score_objects.py::test_scorer_sample_weight", "sklearn/metrics/tests/test_score_objects.py::test_scorer_memmap_input[neg_brier_score]", "sklearn/metrics/tests/test_score_objects.py::test_deprecated_scorer"]
["sklearn/metrics/tests/test_score_objects.py::test_all_scorers_repr", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_and_check_multimetric_scoring", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_gridsearchcv", "sklearn/metrics/tests/test_score_objects.py::test_make_scorer", "sklear...
null
true
2019-09-06T00:32:56Z
2
30
3
1,976
0
0.8
1
0.4
1
0.429333
77.388
9,633
r2e_gym::train::45
r2e_gym
train
45
orange3__32b2bd473dc9e4583bd64f3e21502189917ee135
orange3
biolab/orange3
python
32b2bd473dc9e4583bd64f3e21502189917ee135
**Title:** Variables with Over 100 Unique Values Incorrectly Classified as DiscreteVariable **Description:** When a variable contains more than 100 unique values, it is incorrectly classified as a `DiscreteVariable` instead of a `StringVariable`. This misclassification affects how the data is handled and can lead to p...
diff --git a/Orange/data/variable.py b/Orange/data/variable.py --- a/Orange/data/variable.py +++ b/Orange/data/variable.py @@ -26,6 +26,8 @@ DISCRETE_MAX_VALUES = 3 # == 2 + nan MAX_NUM_OF_DECIMALS = 5 +# the variable with more than 100 different values should not be StringVariable +DISCRETE_MAX_ALLOWED_VALUES = 1...
diff --git a/Orange/data/tests/test_io.py b/Orange/data/tests/test_io.py --- a/Orange/data/tests/test_io.py +++ b/Orange/data/tests/test_io.py @@ -0,0 +1,70 @@ +import unittest +import numpy as np + +from Orange.data import ContinuousVariable, DiscreteVariable, StringVariable +from Orange.data.io import guess_data_type...
null
null
namanjain12/orange3_final:32b2bd473dc9e4583bd64f3e21502189917ee135
true
null
2
15
null
1,050
0
0.75
1
0.525
1
0.225
77.3875
9,634
r2e_gym::train::122
r2e_gym
train
122
orange3__1a53b71b2cfdb3037c385474f5a8fd5f07f15bdf
orange3
biolab/orange3
python
1a53b71b2cfdb3037c385474f5a8fd5f07f15bdf
**Title:** OWScatterPlotGraph Fails to Display Separate Color Legend When Shape and Color Labels Match **Description:** When the shape labels and color labels are identical, the color legend fails to display separately as expected. This issue occurs even when the color and shape data are distinct, leading to a combine...
diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py --- a/Orange/widgets/visualize/owscatterplotgraph.py +++ b/Orange/widgets/visualize/owscatterplotgraph.py @@ -1208,7 +1208,15 @@ cont_color = self.master.is_continuous_color() shape_labels = se...
diff --git a/Orange/widgets/visualize/tests/test_owscatterplotbase.py b/Orange/widgets/visualize/tests/test_owscatterplotbase.py --- a/Orange/widgets/visualize/tests/test_owscatterplotbase.py +++ b/Orange/widgets/visualize/tests/test_owscatterplotbase.py @@ -1105,6 +1105,10 @@ def test_legend_combine(self): ...
null
null
namanjain12/orange3_final:1a53b71b2cfdb3037c385474f5a8fd5f07f15bdf
true
null
1
10
null
1,146
0
0.75
1
0.525
1
0.224333
77.3855
9,635
r2e_gym::train::4056
r2e_gym
train
4,056
coveragepy__c4fc383351c8a683e85953785d1365c9e5e791b7
coveragepy
nedbat/coveragepy
python
c4fc383351c8a683e85953785d1365c9e5e791b7
**Title**: JSON report missing `percent_covered_display` field causing test failures **Description**: The JSON coverage report does not include the `percent_covered_display` field, which provides a string representation of the coverage percentage. This omission leads to discrepancies when tests or tools expect this fi...
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -129,7 +129,7 @@ set -xe python -m igor combine_html python -m coverage json - echo "::set-output name=total::$(python -c "i...
diff --git a/tests/test_json.py b/tests/test_json.py --- a/tests/test_json.py +++ b/tests/test_json.py @@ -57,6 +57,7 @@ 'covered_branches': 1, 'missing_branches': 1, 'percent_covered': 60.0, + 'percent_covered_display': '...
null
null
namanjain12/coveragepy_final:c4fc383351c8a683e85953785d1365c9e5e791b7
true
null
3
8
null
1,186
0
0.75
1
0.525
1
0.224333
77.3855
9,636
r2e_gym::train::5799
r2e_gym
train
5,799
tornado__dba499ceb0851bb3623a42751c374b138a458fa6
tornado
tornadoweb/tornado
python
dba499ceb0851bb3623a42751c374b138a458fa6
**Title:** XSRF Token Parsing Causes Server Error with Short or Non-Hex Tokens **Description:** Submitting a form with an invalid XSRF token, such as a short token or a non-hexadecimal string, results in the server responding with a 500 Internal Server Error instead of handling the invalid token gracefully. **Example...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -1128,14 +1128,15 @@ else: # Treat unknown versions as not present instead of failing. return None, None, None - elif len(cookie) == 32: + else: version = 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 @@ -2193,6 +2193,20 @@ headers=self.cookie_headers()) self.assertEqual(response.code, 403) + def test_xsrf_success_short_token(self): + response = self.fet...
null
null
namanjain12/tornado_final:dba499ceb0851bb3623a42751c374b138a458fa6
true
null
1
9
null
1,165
0
0.75
1
0.525
1
0.224167
77.385
9,637
r2e_gym::train::301
r2e_gym
train
301
orange3__4ab6177446ca9f8897f22cd71257e7d7ab134843
orange3
biolab/orange3
python
4ab6177446ca9f8897f22cd71257e7d7ab134843
**Title:** `__iter__` method of `Domain` excludes meta variables, causing iteration discrepancies **Description:** When creating a `Domain` with both variables and meta attributes, iterating over the `Domain` instance does not include the meta variables. This leads to unexpected behavior where meta attributes are omit...
diff --git a/Orange/data/domain.py b/Orange/data/domain.py --- a/Orange/data/domain.py +++ b/Orange/data/domain.py @@ -1,3 +1,4 @@ +import itertools import warnings from math import log @@ -245,14 +246,13 @@ def metas(self): return self._metas - @deprecated("len(Domain.variables)") def __len...
diff --git a/Orange/tests/test_domain.py b/Orange/tests/test_domain.py --- a/Orange/tests/test_domain.py +++ b/Orange/tests/test_domain.py @@ -1,6 +1,5 @@ # Test methods with long descriptive names can omit docstrings # pylint: disable=missing-docstring -import warnings from time import time from numbers import Rea...
null
null
namanjain12/orange3_final:4ab6177446ca9f8897f22cd71257e7d7ab134843
true
null
1
15
null
1,039
0
0.75
1
0.525
1
0.223167
77.382
9,638
r2e_gym::train::5850
r2e_gym
train
5,850
tornado__51c9796b10b8b141454f8fe4d080e76962a9ad57
tornado
tornadoweb/tornado
python
51c9796b10b8b141454f8fe4d080e76962a9ad57
**Title:** Custom 404 Handler Not Invoked, Default 404 Page Displayed Instead **Description** When attempting to set up a custom 404 handler by adding a catch-all route, the application continues to serve the default 404 page instead of the intended custom page. This problem arises particularly when multiple handler c...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -1597,7 +1597,14 @@ args = [unquote(s) for s in match.groups()] break if not handler: - handler = ErrorHandler(self, request, status_code=404) + ...
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 @@ -1653,3 +1653,48 @@ def test_finish_in_prepare(self): response = self.fetch('/') self.assertEqual(response.body, b'done') + + +@wsgi_safe +class Default404Test(WebTest...
null
null
namanjain12/tornado_final:51c9796b10b8b141454f8fe4d080e76962a9ad57
true
null
1
9
null
1,155
0
0.75
1
0.525
1
0.2225
77.38
9,639
r2e_gym::train::4964
r2e_gym
train
4,964
datalad__947a0110b48ef9ad82a3a710a5f8bd6297c11f51
datalad
datalad/datalad
python
947a0110b48ef9ad82a3a710a5f8bd6297c11f51
**Title:** `verify_ria_url` Function Strips Username and Port from RIA URLs **Description:** When providing RIA URLs that include a username and port, the `verify_ria_url` function incorrectly strips this information, retaining only the hostname. This behavior prevents the usage of URLs with specified usernames and po...
diff --git a/datalad/customremotes/ria_utils.py b/datalad/customremotes/ria_utils.py --- a/datalad/customremotes/ria_utils.py +++ b/datalad/customremotes/ria_utils.py @@ -79,6 +79,8 @@ ------- tuple (host, base-path, rewritten url) + `host` is not just a hostname, but may also contain username, pa...
diff --git a/datalad/customremotes/tests/test_ria_utils.py b/datalad/customremotes/tests/test_ria_utils.py --- a/datalad/customremotes/tests/test_ria_utils.py +++ b/datalad/customremotes/tests/test_ria_utils.py @@ -139,6 +139,14 @@ 'ria+https://localhost/tmp/this': ('localhost', '/tmp/this'), # with u...
null
null
namanjain12/datalad_final:947a0110b48ef9ad82a3a710a5f8bd6297c11f51
true
null
1
13
null
1,073
0
0.75
1
0.525
1
0.222167
77.379
9,640
r2e_gym::train::5425
r2e_gym
train
5,425
aiohttp__a4e94ffc341d884ed0345d634b56984e1c460274
aiohttp
aio-libs/aiohttp
python
a4e94ffc341d884ed0345d634b56984e1c460274
**Title:** Accept-Encoding Header Case Sensitivity Causes Gzip Compression Failure **Description:** When the `Accept-Encoding` header uses mixed casing (e.g., "GZip"), the server fails to recognize the gzip encoding. This results in the server not serving the gzipped file as expected and leads to unexpected errors dur...
diff --git a/CHANGES/8104.bugfix.rst b/CHANGES/8104.bugfix.rst --- a/CHANGES/8104.bugfix.rst +++ b/CHANGES/8104.bugfix.rst @@ -0,0 +1 @@ +Treated values of ``Accept-Encoding`` header as case-insensitive when checking for gzip files -- by :user:`steverep`. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUT...
diff --git a/tests/test_web_sendfile.py b/tests/test_web_sendfile.py --- a/tests/test_web_sendfile.py +++ b/tests/test_web_sendfile.py @@ -8,7 +8,10 @@ def test_using_gzip_if_header_present_and_file_available(loop) -> None: request = make_mocked_request( - "GET", "http://python.org/logo.png", headers={hd...
null
null
namanjain12/aiohttp_final:a4e94ffc341d884ed0345d634b56984e1c460274
true
null
4
10
null
1,843
0
0.75
1
0.6375
0.85
0.3405
77.37775
9,641
r2e_gym::train::4012
r2e_gym
train
4,012
coveragepy__a9f5f7fadacaa8a84b4ac247e79bcb6f29935bb1
coveragepy
nedbat/coveragepy
python
a9f5f7fadacaa8a84b4ac247e79bcb6f29935bb1
**Title:** Coverage Contexts Missing Full Python Paths, Causing Assertion Failures **Description:** After updating the coverage reporting to include the full Python module path for test functions, some assertions are failing because the coverage contexts only include the function names without their respective module ...
diff --git a/coverage/context.py b/coverage/context.py --- a/coverage/context.py +++ b/coverage/context.py @@ -46,32 +46,36 @@ co = frame.f_code fname = co.co_name if not co.co_varnames: - return fname + func = frame.f_globals[fname] + return func.__module__ + '.' + fname firs...
diff --git a/tests/test_context.py b/tests/test_context.py --- a/tests/test_context.py +++ b/tests/test_context.py @@ -153,10 +153,15 @@ full_names = {os.path.basename(f): f for f in data.measured_files()} fname = full_names["two_tests.py"] - self.assertCountEqual(data.measured_contexts(), ["...
null
null
namanjain12/coveragepy_final:a9f5f7fadacaa8a84b4ac247e79bcb6f29935bb1
true
null
1
18
null
966
0
0.75
1
0.525
1
0.221
77.3755
9,642
r2e_gym::train::5122
r2e_gym
train
5,122
pyramid__050b71c19081d95c1fb8ed57a87fab7fa4dd3ab0
pyramid
pylons/pyramid
python
050b71c19081d95c1fb8ed57a87fab7fa4dd3ab0
**Title:** DummyResource Instances Evaluate to False in Python 3 Due to Missing `__bool__` Method **Description:** In Python 3, the `DummyResource` class from `pyramid.testing` does not define the `__bool__` method. As a result, Python falls back to using the `__len__` method to determine the truthiness of `DummyResou...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -110,6 +110,11 @@ some test files containing higher order characters in their names. These files have now been removed. See https://github.com/Pylons/pyramid/issues/981 + +- ``pyramid.testing.DummyResource`` didn't define ``__bool__`...
diff --git a/pyramid/tests/test_testing.py b/pyramid/tests/test_testing.py --- a/pyramid/tests/test_testing.py +++ b/pyramid/tests/test_testing.py @@ -114,6 +114,10 @@ resource = self._makeOne() self.assertEqual(resource.__nonzero__(), True) + def test_bool(self): + resource = self._makeOn...
null
null
namanjain12/pyramid_final:050b71c19081d95c1fb8ed57a87fab7fa4dd3ab0
true
null
2
7
null
1,185
0
0.75
1
0.525
1
0.220833
77.375
9,643
r2e_gym::train::4014
r2e_gym
train
4,014
coveragepy__d2c87fd4a23ef71f13d6e90aca98585ac515d551
coveragepy
nedbat/coveragepy
python
d2c87fd4a23ef71f13d6e90aca98585ac515d551
**Title:** Plugin-provided sysinfo not included in system information output **Description:** When using coverage plugins that supply custom system information, the expected details from the plugins are missing in the debug output. This makes it difficult to access plugin-specific diagnostics. **Example Buggy Code:**...
diff --git a/coverage/control.py b/coverage/control.py --- a/coverage/control.py +++ b/coverage/control.py @@ -301,6 +301,10 @@ if self.debug.should('sys'): self.debug.write_formatted_info("sys", self.sysinfo()) + for plugin in self.plugins: + header = "sys: " + plugin....
diff --git a/tests/test_plugins.py b/tests/test_plugins.py --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -4,6 +4,7 @@ import coverage from coverage import env +from coverage.backward import StringIO from coverage.control import Plugins import coverage.plugin @@ -135,6 +136,48 @@ cov.co...
null
null
namanjain12/coveragepy_final:d2c87fd4a23ef71f13d6e90aca98585ac515d551
true
null
2
15
null
1,024
0
0.75
1
0.525
1
0.220667
77.3745
9,644
r2e_gym::train::250
r2e_gym
train
250
orange3__56a106fe16e6f8ab955f129f1abc2cf26e3ed592
orange3
biolab/orange3
python
56a106fe16e6f8ab955f129f1abc2cf26e3ed592
**Select Rows widget resets operator when changing attributes** **Description** When applying a filter with a specific operator in the Select Rows widget, changing the attribute causes the operator to reset to a default value instead of retaining the selected operator. For example, after setting a filter on the "age"...
diff --git a/Orange/widgets/data/owselectrows.py b/Orange/widgets/data/owselectrows.py --- a/Orange/widgets/data/owselectrows.py +++ b/Orange/widgets/data/owselectrows.py @@ -339,6 +339,8 @@ def set_new_operators(self, attr_combo, adding_all, selected_index=None, selected_values=None):...
diff --git a/Orange/widgets/data/tests/test_owselectrows.py b/Orange/widgets/data/tests/test_owselectrows.py --- a/Orange/widgets/data/tests/test_owselectrows.py +++ b/Orange/widgets/data/tests/test_owselectrows.py @@ -315,6 +315,26 @@ new_iris = iris.transform(new_domain) self.send_signal(self.widget...
null
null
namanjain12/orange3_final:56a106fe16e6f8ab955f129f1abc2cf26e3ed592
true
null
1
10
null
1,123
0
0.75
1
0.525
1
0.2205
77.374
9,645
r2e_gym::train::5946
r2e_gym
train
5,946
tornado__0a706fa666da91162466ae0d0d79d6dbfe923216
tornado
tornadoweb/tornado
python
0a706fa666da91162466ae0d0d79d6dbfe923216
**Title:** Facebook login does not set `session_expires`, causing test to fail **Description:** During the Facebook authentication process, the `session_expires` field is not being populated correctly in the user data. This issue causes tests that expect `session_expires` to have a valid expiration time to fail. **Ex...
diff --git a/tornado/auth.py b/tornado/auth.py --- a/tornado/auth.py +++ b/tornado/auth.py @@ -954,6 +954,20 @@ .. testoutput:: :hide: + This method returns a dictionary which may contain the following fields: + + * ``access_token``, a string which may be passed to `facebook_request...
diff --git a/tornado/test/auth_test.py b/tornado/test/auth_test.py --- a/tornado/test/auth_test.py +++ b/tornado/test/auth_test.py @@ -149,7 +149,7 @@ class FacebookServerAccessTokenHandler(RequestHandler): def get(self): - self.write(dict(access_token="asdf")) + self.write(dict(access_token="asdf...
null
null
namanjain12/tornado_final:0a706fa666da91162466ae0d0d79d6dbfe923216
true
null
1
23
null
861
0
0.75
1
0.525
1
0.220167
77.373
9,646
r2e_gym::train::214
r2e_gym
train
214
orange3__e7ea9cd778d01e4895aae6e188053b6849e9d1cd
orange3
biolab/orange3
python
e7ea9cd778d01e4895aae6e188053b6849e9d1cd
**Title:** IsDefined filter ignores 'columns' and 'negate' parameters, causing incorrect row filtering **Description:** When using the `IsDefined` filter within `Values` with specific `columns` and the `negate` option, the filtering behavior is incorrect. For instance, applying `IsDefined` with `negate=True` is expect...
diff --git a/Orange/data/table.py b/Orange/data/table.py --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -1242,7 +1242,10 @@ def get_col_indices(): cols = chain(self.domain.variables, self.domain.metas) if isinstance(filter, IsDefined): - return list(cols) + ...
diff --git a/Orange/data/tests/test_table.py b/Orange/data/tests/test_table.py --- a/Orange/data/tests/test_table.py +++ b/Orange/data/tests/test_table.py @@ -131,6 +131,22 @@ filtered = val_filter(self.table) self.assertEqual(list(filtered.metas[:, -2].flatten()), list("abcdef")) + val_filte...
null
null
namanjain12/orange3_final:e7ea9cd778d01e4895aae6e188053b6849e9d1cd
true
null
1
18
null
959
0
0.75
1
0.525
1
0.219833
77.372
9,647
r2e_gym::train::4108
r2e_gym
train
4,108
coveragepy__8eb95b5ad2ed1cee1204b1ce95bad9118063d178
coveragepy
nedbat/coveragepy
python
8eb95b5ad2ed1cee1204b1ce95bad9118063d178
**Title:** Coverage Incorrectly Includes Lines After Jump Statements on PyPy 3.9 **Description:** When using coverage.py with PyPy version 3.9, lines of code that follow jump statements such as `break`, `continue`, `return`, or `raise` are not being omitted as expected. This results in discrepancies in coverage arcs a...
diff --git a/coverage/env.py b/coverage/env.py --- a/coverage/env.py +++ b/coverage/env.py @@ -106,10 +106,16 @@ # Lines after break/continue/return/raise are no longer compiled into the # bytecode. They used to be marked as missing, now they aren't executable. - omit_after_jump = pep626 + omit_after...
diff --git a/tests/test_coverage.py b/tests/test_coverage.py --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -1121,7 +1121,7 @@ ) def test_try_except_stranded_else(self) -> None: - if env.PYBEHAVIOR.omit_after_jump: + if env.PYBEHAVIOR.optimize_unreachable_try_else: ...
null
null
namanjain12/coveragepy_final:8eb95b5ad2ed1cee1204b1ce95bad9118063d178
true
null
1
8
null
1,159
0
0.75
1
0.525
1
0.219833
77.372
9,648
r2e_gym::train::5210
r2e_gym
train
5,210
pyramid__c600ab6fe31e2ea95f1aea9f8c40ae585f6afe39
pyramid
pylons/pyramid
python
c600ab6fe31e2ea95f1aea9f8c40ae585f6afe39
**Title:** Subclassed `Request` Instances Fail to Implement `IRequest` Interface Correctly **Description:** When creating a subclass of the `Request` class and modifying its properties, the subclass instances incorrectly indicate that they do not implement the `IRequest` interface. This issue arises when the `__provid...
diff --git a/pyramid/util.py b/pyramid/util.py --- a/pyramid/util.py +++ b/pyramid/util.py @@ -87,10 +87,10 @@ if attrs: parent = self.__class__ cls = type(parent.__name__, (parent, object), attrs) - # We assign __provides__, __implemented__ and __providedBy__ below - ...
diff --git a/pyramid/tests/test_request.py b/pyramid/tests/test_request.py --- a/pyramid/tests/test_request.py +++ b/pyramid/tests/test_request.py @@ -436,7 +436,6 @@ self.assertEqual(request.environ['PATH_INFO'], '/' + encoded) class Test_subclassing_Request(unittest.TestCase): - def test_subclass(sel...
null
null
namanjain12/pyramid_final:c600ab6fe31e2ea95f1aea9f8c40ae585f6afe39
true
null
1
10
null
1,117
0
0.75
1
0.525
1
0.2195
77.371
9,649
r2e_gym::train::5970
r2e_gym
train
5,970
tornado__1d5fc98018bd1d742b1608634bfb57f6e3d990f0
tornado
tornadoweb/tornado
python
1d5fc98018bd1d742b1608634bfb57f6e3d990f0
**Title:** Reference Cycles Created by Callback Closures in IOLoop.add_future **Description:** When adding a callback to a future using a lambda that captures the future instance, a reference cycle is created. This cycle prevents the garbage collector from reclaiming the memory promptly, potentially leading to memory ...
diff --git a/tornado/concurrent.py b/tornado/concurrent.py --- a/tornado/concurrent.py +++ b/tornado/concurrent.py @@ -150,8 +150,7 @@ """ - def copy(future: "Future[_T]") -> None: - assert future is a + def copy(a: "Future[_T]") -> None: if b.done(): return if hasat...
diff --git a/tornado/test/circlerefs_test.py b/tornado/test/circlerefs_test.py --- a/tornado/test/circlerefs_test.py +++ b/tornado/test/circlerefs_test.py @@ -181,3 +181,29 @@ self.write("ok\n") asyncio.run(self.run_handler(Handler)) + + def test_run_on_executor(self): + # From htt...
null
null
namanjain12/tornado_final:1d5fc98018bd1d742b1608634bfb57f6e3d990f0
true
null
2
9
null
1,137
0
0.75
1
0.525
1
0.2195
77.371
9,650
r2e_gym::train::5704
r2e_gym
train
5,704
scrapy__85f0596c43781103f30eaff13b567942ff967e00
scrapy
scrapy/scrapy
python
85f0596c43781103f30eaff13b567942ff967e00
**Title:** SpiderState Extension Remains Active Without `JOBDIR` Configuration **Description:** When the `JOBDIR` setting is not configured, the `SpiderState` extension should automatically disable itself to prevent improper initialization. However, currently, the extension remains active even when `JOBDIR` is unset, ...
diff --git a/scrapy/extensions/spiderstate.py b/scrapy/extensions/spiderstate.py --- a/scrapy/extensions/spiderstate.py +++ b/scrapy/extensions/spiderstate.py @@ -2,6 +2,7 @@ from six.moves import cPickle as pickle from scrapy import signals +from scrapy.exceptions import NotConfigured from scrapy.utils.job import...
diff --git a/tests/test_spiderstate.py b/tests/test_spiderstate.py --- a/tests/test_spiderstate.py +++ b/tests/test_spiderstate.py @@ -4,6 +4,8 @@ from scrapy.extensions.spiderstate import SpiderState from scrapy.spiders import Spider +from scrapy.exceptions import NotConfigured +from scrapy.utils.test import get_c...
null
null
namanjain12/scrapy_final:85f0596c43781103f30eaff13b567942ff967e00
true
null
1
7
null
1,174
0
0.75
1
0.525
1
0.219
77.3695
9,651
swe_bench::test::1900
swe_bench
test
1,900
sphinx-doc__sphinx-9828
sphinx-doc/sphinx
sphinx-doc/sphinx
python
563936b969dfc29ade7d48f1a802d5f6f6348f4c
Support for fuzzy translations Problem --------- Entries in po files that are currently marked as "fuzzy" are not used in "mo" files. The original source language is used instead of the translated language. Fuzzy translations are translations that in general need to be reviewed by a translator. For example all machine ...
+1: Reasonable. I prefer to name it as `gettext_allow_fuzzy_translations` for the setting because we've given "gettext_" prefix to the i18n settings so far. https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-internationalization
diff --git a/sphinx/application.py b/sphinx/application.py --- a/sphinx/application.py +++ b/sphinx/application.py @@ -284,7 +284,8 @@ def _init_i18n(self) -> None: self.config.language, self.config.source_encoding) for catalog in repo.catalogs: if cat...
diff --git a/tests/test_intl.py b/tests/test_intl.py --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -1301,6 +1301,44 @@ def getwarning(warnings): return strip_escseq(warnings.getvalue().replace(os.sep, '/')) +@pytest.mark.sphinx('html', testroot='basic', + srcdir='gettext_allow_fuzzy_t...
["tests/test_intl.py::test_gettext_allow_fuzzy_translations"]
["tests/test_intl.py::test_text_emit_warnings", "tests/test_intl.py::test_text_warning_node", "tests/test_intl.py::test_text_title_underline", "tests/test_intl.py::test_text_subdirs", "tests/test_intl.py::test_text_inconsistency_warnings", "tests/test_intl.py::test_text_literalblock_warnings", "tests/test_intl.py::test...
null
true
2021-11-08T16:30:59Z
4
11
1
888
0
0.8
1
0.55
0.85
0.184667
77.3665
9,652
r2e_gym::train::5180
r2e_gym
train
5,180
pyramid__cb21ae04bbcc3612704fcc6e5792eb7eb395d059
pyramid
pylons/pyramid
python
cb21ae04bbcc3612704fcc6e5792eb7eb395d059
**Title:** Incorrect Parsing of Request Parameters with Multiple Equal Signs **Description:** When handling request parameters that include multiple equal signs, especially when some parameters start with an equal sign, the parsing logic fails to correctly split and trim the keys and values. For example, consider the...
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -247,6 +247,8 @@ - Donald Stufft, 2015/03/15 +- Timur Izhbulatov, 2015/04/14 + - Karen Dalton, 2015/06/01 - Igor Stroh, 2015/06/10 diff --git a/pyramid/config/predicates.py b/pyramid/config/predicates.py --- a/pyr...
diff --git a/pyramid/tests/test_config/test_predicates.py b/pyramid/tests/test_config/test_predicates.py --- a/pyramid/tests/test_config/test_predicates.py +++ b/pyramid/tests/test_config/test_predicates.py @@ -144,6 +144,10 @@ inst = self._makeOne('abc') self.assertEqual(inst.text(), 'request_param a...
null
null
namanjain12/pyramid_final:cb21ae04bbcc3612704fcc6e5792eb7eb395d059
true
null
2
7
null
1,167
0
0.75
1
0.525
1
0.217833
77.366
9,653
r2e_gym::train::5225
r2e_gym
train
5,225
pyramid__1930ebfdc99e2ee274cc172281da4d73e4f1f66d
pyramid
pylons/pyramid
python
1930ebfdc99e2ee274cc172281da4d73e4f1f66d
**Title:** Escaped Double Braces Not Rendered Correctly in Templates **Description:** When rendering templates that include escaped double braces, the backslashes intended to escape the braces are not removed. This results in the output displaying the backslashes along with the braces, instead of rendering the braces ...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,11 @@ Features -------- + +- It is now possible to escape double braces in Pyramid scaffolds (unescaped, + these represent replacement values). You can use ``\{\{a\}\}`` to + represent a "bare" ``{{a}}``. See + https://gith...
diff --git a/pyramid/tests/test_scaffolds/test_template.py b/pyramid/tests/test_scaffolds/test_template.py --- a/pyramid/tests/test_scaffolds/test_template.py +++ b/pyramid/tests/test_scaffolds/test_template.py @@ -11,7 +11,7 @@ inst = self._makeOne() result = inst.render_template('{{a}} {{b}}', {'a':...
null
null
namanjain12/pyramid_final:1930ebfdc99e2ee274cc172281da4d73e4f1f66d
true
null
3
20
null
907
0
0.75
1
0.525
1
0.217833
77.366
9,654
r2e_gym::train::5963
r2e_gym
train
5,963
tornado__09bc9827e757efb2b28fd4ff50b1ad871344a0e2
tornado
tornadoweb/tornado
python
09bc9827e757efb2b28fd4ff50b1ad871344a0e2
**Title:** Multiple Exceptions in AsyncTestCase Are Silently Swallowed **Description:** When multiple exceptions occur during an asynchronous test, only the last exception is raised, while the earlier ones are silently ignored. This behavior makes it difficult to identify all underlying issues within the test. **Exam...
diff --git a/tornado/testing.py b/tornado/testing.py --- a/tornado/testing.py +++ b/tornado/testing.py @@ -28,7 +28,7 @@ IOLoop = None netutil = None SimpleAsyncHTTPClient = None -from tornado.log import gen_log +from tornado.log import gen_log, app_log from tornado.stack_context import ExceptionStackCo...
diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -3,7 +3,8 @@ from __future__ import absolute_import, division, print_function, with_statement from tornado import gen, ioloop -from tornado.testing import AsyncTestCase, ...
null
null
namanjain12/tornado_final:09bc9827e757efb2b28fd4ff50b1ad871344a0e2
true
null
1
8
null
1,147
0
0.75
1
0.525
1
0.217833
77.366
9,655
r2e_gym::train::5792
r2e_gym
train
5,792
tornado__8d721a877dd5c2bc0693d9c4d3954eb11fbd404b
tornado
tornadoweb/tornado
python
8d721a877dd5c2bc0693d9c4d3954eb11fbd404b
**Title:** HTTPHeaders incorrectly strips non-space/tab whitespace characters from header values **Description:** When parsing HTTP headers, only tabs and spaces should be stripped from the header values as per the HTTP specification. However, the current implementation strips additional whitespace characters, such as...
diff --git a/tornado/httputil.py b/tornado/httputil.py --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -62,6 +62,9 @@ from asyncio import Future # noqa: F401 import unittest # noqa: F401 +# To be used with str.strip() and related methods. +HTTP_WHITESPACE = " \t" + @lru_cache(1000) def _normali...
diff --git a/tornado/test/httputil_test.py b/tornado/test/httputil_test.py --- a/tornado/test/httputil_test.py +++ b/tornado/test/httputil_test.py @@ -334,6 +334,25 @@ gen_log.warning("failed while trying %r in %s", newline, encoding) raise + def test_unicode_whitespace(se...
null
null
namanjain12/tornado_final:8d721a877dd5c2bc0693d9c4d3954eb11fbd404b
true
null
1
7
null
1,164
0
0.75
1
0.525
1
0.217333
77.3645
9,656
r2e_gym::train::4087
r2e_gym
train
4,087
coveragepy__71f0f4c78b925758768b9a4ab10859c4c76c521e
coveragepy
nedbat/coveragepy
python
71f0f4c78b925758768b9a4ab10859c4c76c521e
**Title:** Incorrect Branch Coverage Reporting for `case _ as value` in Match-Case Statements **Description:** When using the `case _ as value` pattern in a match-case statement, the branch coverage tool incorrectly marks this branch as missing. This leads to inaccurate coverage reports, suggesting that there are unte...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,10 @@ Unreleased ---------- +- Fix: a final wildcard match/case clause assigning to a name (``case _ as + value``) was incorrectly marked as a missing branch. This is now fixed, + closing `issue 1860`_. + - Fewer things are ...
diff --git a/tests/test_arcs.py b/tests/test_arcs.py --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1286,6 +1286,23 @@ ) assert self.stdout() == "default\nno go\ngo: n\n" + def test_match_case_with_named_default(self) -> None: + self.check_coverage("""\ + for command in [...
null
null
namanjain12/coveragepy_final:71f0f4c78b925758768b9a4ab10859c4c76c521e
true
null
2
7
null
1,162
0
0.75
1
0.525
1
0.217
77.3635
9,657
r2e_gym::train::6000
r2e_gym
train
6,000
tornado__5d0ac1d2897a18714e748873b44fe9967c21a5cf
tornado
tornadoweb/tornado
python
5d0ac1d2897a18714e748873b44fe9967c21a5cf
**Title:** Invalid `log_rotate_mode` Options Do Not Raise Errors **Description:** When configuring the logging system, setting the `log_rotate_mode` option to an invalid value or type fails to raise an error. Instead of notifying the user of the misconfiguration, the system silently defaults to using a `NullHandler`. ...
diff --git a/tornado/log.py b/tornado/log.py --- a/tornado/log.py +++ b/tornado/log.py @@ -190,19 +190,27 @@ logger = logging.getLogger() logger.setLevel(getattr(logging, options.logging.upper())) if options.log_file_prefix: - if options.log_rotate_mode == 'size': + rotate_mode = option...
diff --git a/tornado/test/log_test.py b/tornado/test/log_test.py --- a/tornado/test/log_test.py +++ b/tornado/test/log_test.py @@ -183,6 +183,28 @@ os.unlink(filename) os.rmdir(tmpdir) + def test_wrong_rotate_mode_value(self): + try: + self.options.log_file_prefix = ...
null
null
namanjain12/tornado_final:5d0ac1d2897a18714e748873b44fe9967c21a5cf
true
null
1
14
null
1,020
0
0.75
1
0.525
1
0.216667
77.3625
9,658
r2e_gym::train::5853
r2e_gym
train
5,853
tornado__b7f9f0b9116ddb09915e7e783fb9cbc82546b301
tornado
tornadoweb/tornado
python
b7f9f0b9116ddb09915e7e783fb9cbc82546b301
**Title:** WebSocket Handshake Returns 500 Error When Headers Are Missing **Description:** When attempting to establish a WebSocket connection without the required `Sec-WebSocket-Key` header, the server responds with a `500 Internal Server Error` instead of the expected `400 Bad Request`. This makes it unclear to the ...
diff --git a/tornado/websocket.py b/tornado/websocket.py --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -616,6 +616,14 @@ def accept_connection(self): try: self._handle_websocket_headers() + except ValueError: + self.handler.set_status(400) + log_msg = "...
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 @@ -189,6 +189,13 @@ response = self.fetch('/echo') self.assertEqual(response.code, 400) + def test_missing_websocket_key(self): + response...
null
null
namanjain12/tornado_final:b7f9f0b9116ddb09915e7e783fb9cbc82546b301
true
null
1
8
null
1,138
0
0.75
1
0.525
1
0.216333
77.3615
9,659
r2e_gym::train::5717
r2e_gym
train
5,717
scrapy__c347acbff6545c428aa2c965cd03f03db6bae1bf
scrapy
scrapy/scrapy
python
c347acbff6545c428aa2c965cd03f03db6bae1bf
**Title:** JSONRequest Overrides `body` with `data` When Both Are Provided Without Warning --- ### Description When creating a `JSONRequest` with both `body` and `data` parameters, the `data` parameter overrides the `body` without issuing any warning. This causes the intended `body` content to be ignored, leading to...
diff --git a/scrapy/http/request/json_request.py b/scrapy/http/request/json_request.py --- a/scrapy/http/request/json_request.py +++ b/scrapy/http/request/json_request.py @@ -6,14 +6,19 @@ """ import json +import warnings from scrapy.http.request import Request class JSONRequest(Request): def __init__(...
diff --git a/tests/test_http_request.py b/tests/test_http_request.py --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -3,6 +3,7 @@ import unittest import re import json +import warnings import six from six.moves import xmlrpc_client as xmlrpclib @@ -1153,6 +1154,10 @@ default_method = 'G...
null
null
namanjain12/scrapy_final:c347acbff6545c428aa2c965cd03f03db6bae1bf
true
null
1
7
null
1,156
0
0.75
1
0.525
1
0.216
77.3605
9,660
r2e_gym::train::5214
r2e_gym
train
5,214
pyramid__aa9aef58b5b2fe4c9135aadc5481d129f1300154
pyramid
pylons/pyramid
python
aa9aef58b5b2fe4c9135aadc5481d129f1300154
**Title:** Logging Configuration Not Properly Invoked in PRequestCommand **Description:** When executing the `PRequestCommand`, the logging configuration does not get set up as expected. This is because the `configure_logging` method is not called with the application specification, resulting in improper or missing l...
diff --git a/pyramid/scripts/prequest.py b/pyramid/scripts/prequest.py --- a/pyramid/scripts/prequest.py +++ b/pyramid/scripts/prequest.py @@ -97,13 +97,18 @@ if not self.quiet: print(msg) + def configure_logging(self, app_spec): + setup_logging(app_spec) + def run(self): ...
diff --git a/pyramid/tests/test_scripts/test_prequest.py b/pyramid/tests/test_scripts/test_prequest.py --- a/pyramid/tests/test_scripts/test_prequest.py +++ b/pyramid/tests/test_scripts/test_prequest.py @@ -210,7 +210,20 @@ self.assertEqual(self._path_info, '/') self.assertEqual(self._spec, 'developme...
null
null
namanjain12/pyramid_final:aa9aef58b5b2fe4c9135aadc5481d129f1300154
true
null
1
7
null
1,150
0
0.75
1
0.525
1
0.215
77.3575
9,661
r2e_gym::train::4112
r2e_gym
train
4,112
coveragepy__45cf7936ee605cfe06f7f5967a72a73198960120
coveragepy
nedbat/coveragepy
python
45cf7936ee605cfe06f7f5967a72a73198960120
**Title:** Coverage Reports 50% Instead of 100% When Using Relative File Paths **Description:** When configuring coverage with `relative_files=true`, coverage reports incorrect results for files located one directory level up. Specifically, the coverage tool fails to recognize all covered lines, resulting in an inaccu...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -34,6 +34,8 @@ - A ``[paths]`` setting like ``*/foo`` will now match ``foo/bar.py`` so that relative file paths can be combined more easily. + - The setting is properly interpreted in more places, fixing `issue 1280`_. + - Fixed e...
diff --git a/tests/test_api.py b/tests/test_api.py --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1239,6 +1239,38 @@ self.assert_file_count(".coverage.*", 0) self.assert_exists(".coverage") + def test_files_up_one_level(self): + # https://github.com/nedbat/coveragepy/issues/1280 + ...
null
null
namanjain12/coveragepy_final:45cf7936ee605cfe06f7f5967a72a73198960120
true
null
3
15
null
987
0
0.75
1
0.525
1
0.2145
77.356
9,662
r2e_gym::train::20
r2e_gym
train
20
orange3__c56fafab522f12165258439d7bd133a6c5d4cc12
orange3
biolab/orange3
python
c56fafab522f12165258439d7bd133a6c5d4cc12
**Title:** Incorrect Handling of Multi-Part Extensions When Enforcing Default Extensions **Description:** When enforcing default extensions on filenames that have multiple extensions, such as `.tab.gz`, the extension replacement function fails to handle them correctly. Specifically, it strips only part of the extensio...
diff --git a/Orange/widgets/data/owsave.py b/Orange/widgets/data/owsave.py --- a/Orange/widgets/data/owsave.py +++ b/Orange/widgets/data/owsave.py @@ -185,11 +185,11 @@ @staticmethod def _replace_extension(filename, extension): - if filename.endswith(extension): # it may contain dots before extensio...
diff --git a/Orange/widgets/data/tests/test_owsave.py b/Orange/widgets/data/tests/test_owsave.py --- a/Orange/widgets/data/tests/test_owsave.py +++ b/Orange/widgets/data/tests/test_owsave.py @@ -402,20 +402,23 @@ class TestOWSaveUtils(unittest.TestCase): def test_replace_extension(self): replace = OWSave...
null
null
namanjain12/orange3_final:c56fafab522f12165258439d7bd133a6c5d4cc12
true
null
1
10
null
1,086
0
0.75
1
0.525
1
0.214333
77.3555
9,663
r2e_gym::train::5878
r2e_gym
train
5,878
tornado__0ed1bb761e8978b42aef2a8f654dd737eb3ff062
tornado
tornadoweb/tornado
python
0ed1bb761e8978b42aef2a8f654dd737eb3ff062
### Custom WebSocket Upgrade Response Headers Not Sent **Description** When attempting to set custom upgrade response headers in a WebSocket connection, the headers are not included in the server's response. This causes clients expecting these headers to receive `None` instead of the specified values. **Example Code*...
diff --git a/tornado/websocket.py b/tornado/websocket.py --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -64,6 +64,9 @@ `write_message` to send messages to the client. You can also override `open` and `on_close` to handle opened and closed connections. + + Custom upgrade response headers can ...
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 @@ -1,5 +1,7 @@ from __future__ import absolute_import, division, print_function, with_statement +import random +import string import traceback from tornado.concu...
null
null
namanjain12/tornado_final:0ed1bb761e8978b42aef2a8f654dd737eb3ff062
true
null
1
14
null
1,005
0
0.75
1
0.525
1
0.214167
77.355
9,664
r2e_gym::train::4068
r2e_gym
train
4,068
coveragepy__341e737bd5010ffd794b029b3051a7ae210bfef2
coveragepy
nedbat/coveragepy
python
341e737bd5010ffd794b029b3051a7ae210bfef2
**Title: Exit Arcs Not Correctly Remapped for Multi-line Statements in Coverage Reports** **Description** When analyzing multi-line statements, exit arcs (represented with negative line numbers) are not properly remapped to the first line of the statement. This leads to incorrect arc representations in coverage report...
diff --git a/coverage/parser.py b/coverage/parser.py --- a/coverage/parser.py +++ b/coverage/parser.py @@ -207,7 +207,11 @@ def first_line(self, line): """Return the first line number of the statement including `line`.""" - return self._multiline.get(line, line) + if line < 0: + ...
diff --git a/tests/test_arcs.py b/tests/test_arcs.py --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -103,7 +103,7 @@ b = \\ 6 """, - arcz="-21 15 5-2", + arcz=".1 15 5.", ) def test_if_return(self): @@ -444,10 +444,6 @@ ) ...
null
null
namanjain12/coveragepy_final:341e737bd5010ffd794b029b3051a7ae210bfef2
true
null
1
6
null
1,164
0
0.75
1
0.525
1
0.214
77.3545
9,665
r2e_gym::train::5632
r2e_gym
train
5,632
scrapy__c4f57608d60538079d12c2031201574c0f367a55
scrapy
scrapy/scrapy
python
c4f57608d60538079d12c2031201574c0f367a55
**Title:** RFPDupeFilter Debug Logs Missing Referer Information for Duplicate Requests **Description:** When using `RFPDupeFilter` in debug mode, the log messages for filtered duplicate requests do not include the referer header. This omission makes it difficult to trace the origin of duplicate requests and hampers ef...
diff --git a/scrapy/dupefilters.py b/scrapy/dupefilters.py --- a/scrapy/dupefilters.py +++ b/scrapy/dupefilters.py @@ -3,8 +3,7 @@ import logging from scrapy.utils.job import job_dir -from scrapy.utils.request import request_fingerprint - +from scrapy.utils.request import referer_str, request_fingerprint class B...
diff --git a/tests/test_dupefilters.py b/tests/test_dupefilters.py --- a/tests/test_dupefilters.py +++ b/tests/test_dupefilters.py @@ -2,6 +2,7 @@ import tempfile import unittest import shutil +from testfixtures import LogCapture from scrapy.dupefilters import RFPDupeFilter from scrapy.http import Request @@ -9,...
null
null
namanjain12/scrapy_final:c4f57608d60538079d12c2031201574c0f367a55
true
null
1
8
null
1,121
0
0.75
1
0.525
1
0.2135
77.353
9,666
r2e_gym::train::5273
r2e_gym
train
5,273
aiohttp__fe6325e7bc23037967f23e5e814783a17e263ffc
aiohttp
aio-libs/aiohttp
python
fe6325e7bc23037967f23e5e814783a17e263ffc
**Title:** Charset Case Sensitivity Causes Assertion Failures in Response Handling **Description:** When setting the `charset` attribute of a response, using uppercase characters leads to unexpected behavior in tests. Specifically, assigning a charset value like `"KOI8-R"` does not match the expected lowercase value `...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,7 +4,7 @@ 0.12.1 (Unreleased) ------------------- -- ... +- `StreamResponse.charset` converts value to lower-case on assigning. 0.12.0 (12-12-2014) diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/we...
diff --git a/tests/test_web_response.py b/tests/test_web_response.py --- a/tests/test_web_response.py +++ b/tests/test_web_response.py @@ -396,3 +396,22 @@ 'SET-COOKIE: name=value\r\n' 'CONNECTION: keep-alive\r\n' 'DATE: .+\r\nSERVER: .+\r\n\...
null
null
namanjain12/aiohttp_final:fe6325e7bc23037967f23e5e814783a17e263ffc
true
null
3
6
null
1,161
0
0.75
1
0.525
1
0.2135
77.353
9,667
r2e_gym::train::385
r2e_gym
train
385
orange3__70d2572a2df07dd096cbc63ee572267dd6b6a7cf
orange3
biolab/orange3
python
70d2572a2df07dd096cbc63ee572267dd6b6a7cf
**Title:** OWHeatMap Displays Hidden Attributes Despite Being Marked as Hidden **Description:** When using the OWHeatMap widget with data that includes hidden attributes, the widget continues to display these hidden attributes instead of excluding them as expected. **Example Buggy Code:** ```python def test_data_with...
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:70d2572a2df07dd096cbc63ee572267dd6b6a7cf
true
null
1
13
null
1,018
0
0.75
1
0.525
1
0.213
77.3515
9,668
r2e_gym::train::5791
r2e_gym
train
5,791
tornado__aadfa6685288eb7bd8756d6e94c5d9ee9bcf4b2d
tornado
tornadoweb/tornado
python
aadfa6685288eb7bd8756d6e94c5d9ee9bcf4b2d
### Title Internal Server Error When Excluding Version in Static URLs ### Description When generating static URLs without including the version query parameter, the server returns an Internal Server Error instead of the expected URL. **Example Code:** ```python response = self.fetch("/static_url/robots.txt?include_ve...
diff --git a/tornado/web.py b/tornado/web.py --- a/tornado/web.py +++ b/tornado/web.py @@ -987,7 +987,7 @@ return '<input type="hidden" name="_xsrf" value="' + \ escape.xhtml_escape(self.xsrf_token) + '"/>' - def static_url(self, path, include_host=None): + def static_url(self, path, inclu...
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 @@ -760,13 +760,11 @@ def get_handlers(self): class StaticUrlHandler(RequestHandler): def get(self, path): - self.write(self.static_url(path)) - - ...
null
null
namanjain12/tornado_final:aadfa6685288eb7bd8756d6e94c5d9ee9bcf4b2d
true
null
1
32
null
637
0
0.75
1
0.525
1
0.212833
77.351
9,669
r2e_gym::train::5342
r2e_gym
train
5,342
aiohttp__e56a4fd45b813a8c41d09c88aaf3c73903935c71
aiohttp
aio-libs/aiohttp
python
e56a4fd45b813a8c41d09c88aaf3c73903935c71
**Title:** `filter_cookies` Does Not Emit DeprecationWarning When Called with a String URL **Description:** When using the `filter_cookies` method of `CookieJar`, passing a URL as a string does not trigger a `DeprecationWarning` as expected. This behavior deviates from the intended functionality where only `URL` inst...
diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -9,6 +9,7 @@ import pickle import re import time +import warnings from collections import defaultdict from http.cookies import BaseCookie, Morsel, SimpleCookie from typing import ( @@ -309,7 +310,14 @...
diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py --- a/tests/test_cookiejar.py +++ b/tests/test_cookiejar.py @@ -313,6 +313,13 @@ assert c in expected_cookies +async def test_filter_cookies_str_deprecated(loop: asyncio.AbstractEventLoop) -> None: + jar = CookieJar() + jar.update_cookies...
null
null
namanjain12/aiohttp_final:e56a4fd45b813a8c41d09c88aaf3c73903935c71
true
null
1
10
null
1,073
0
0.75
1
0.525
1
0.212167
77.349
9,670
r2e_gym::train::4972
r2e_gym
train
4,972
datalad__4a07fb33f39d1e467b61bc359fd746424950ea4c
datalad
datalad/datalad
python
4a07fb33f39d1e467b61bc359fd746424950ea4c
**Title:** Cannot Override `report_status` Filter Using `--report-status=all` from Command Line **Description** Currently, there is no way to reset or override the `report_status` configuration setting via the command line using the `--report-status` option. When attempting to set `--report-status=all`, the system do...
diff --git a/datalad/interface/base.py b/datalad/interface/base.py --- a/datalad/interface/base.py +++ b/datalad/interface/base.py @@ -436,7 +436,9 @@ if args.common_report_status or 'datalad.runtime.report-status' in cfg: report_status = args.common_report_status or \ ...
diff --git a/datalad/interface/tests/test_base.py b/datalad/interface/tests/test_base.py --- a/datalad/interface/tests/test_base.py +++ b/datalad/interface/tests/test_base.py @@ -36,7 +36,7 @@ **updated( dict( common_on_failure=None, # ['ignore', 'continue', 'stop'] - ...
null
null
namanjain12/datalad_final:4a07fb33f39d1e467b61bc359fd746424950ea4c
true
null
2
8
null
1,096
0
0.75
1
0.525
1
0.209333
77.3405
9,671
r2e_gym::train::137
r2e_gym
train
137
orange3__24307c6ae5390b1e6e7dbbe0d420b9c572572cfd
orange3
biolab/orange3
python
24307c6ae5390b1e6e7dbbe0d420b9c572572cfd
**Title:** SaveFileDialog Initializes with Wrong Initial Directory on Linux Due to Parameter Misalignment **Description:** On Linux systems, initializing the `SaveFileDialog` with the intended initial directory and file filters results in incorrect assignment of parameters. Instead of setting the initial directory to ...
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 @@ -283,8 +283,9 @@ # be sure we know what happens. class SaveFileDialog(QFileDialog): # pylint: disab...
diff --git a/Orange/widgets/data/tests/test_owsave.py b/Orange/widgets/data/tests/test_owsave.py --- a/Orange/widgets/data/tests/test_owsave.py +++ b/Orange/widgets/data/tests/test_owsave.py @@ -406,8 +406,8 @@ instance.selectedFiles.return_value = ["foo"] instance.selectedNameFilter.return_value = "b...
null
null
namanjain12/orange3_final:24307c6ae5390b1e6e7dbbe0d420b9c572572cfd
true
null
1
10
null
1,049
0
0.75
1
0.525
1
0.208167
77.337
9,672
r2e_gym::train::5947
r2e_gym
train
5,947
tornado__ccc89025f25079f616c1d0475a35b788e81276ae
tornado
tornadoweb/tornado
python
ccc89025f25079f616c1d0475a35b788e81276ae
**Title:** Importing `tornado.wsgi` Initializes asyncio Event Loop at Import Time Causing Side Effects **Description:** When importing the `tornado.wsgi` module, it interacts with the asyncio event loop during the import process. This unintended side effect prevents subprocesses from running correctly, leading to fail...
diff --git a/tornado/wsgi.py b/tornado/wsgi.py --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -85,8 +85,10 @@ # WSGI has no facilities for flow control, so just return an already-done # Future when the interface requires it. -_dummy_future = Future() -_dummy_future.set_result(None) +def _dummy_future(): + f = Fu...
diff --git a/tornado/test/import_test.py b/tornado/test/import_test.py --- a/tornado/test/import_test.py +++ b/tornado/test/import_test.py @@ -1,50 +1,68 @@ # flake8: noqa from __future__ import absolute_import, division, print_function + +import subprocess +import sys + from tornado.test.util import unittest + +_im...
null
null
namanjain12/tornado_final:ccc89025f25079f616c1d0475a35b788e81276ae
true
null
1
10
null
1,048
0
0.75
1
0.525
1
0.208
77.3365
9,673
r2e_gym::train::223
r2e_gym
train
223
orange3__92715a01b44eb476ed78b04a3c763b592052c4c6
orange3
biolab/orange3
python
92715a01b44eb476ed78b04a3c763b592052c4c6
**Title:** `unique_in_order_mapping` incorrectly maps unique elements for input `[2, 3, 1]` **Description:** The `unique_in_order_mapping` function assigns incorrect mapping indices when processing certain input lists. For example, when provided with the input `[2, 3, 1]`, the function is expected to return `unique_in...
diff --git a/Orange/widgets/data/owcreateclass.py b/Orange/widgets/data/owcreateclass.py --- a/Orange/widgets/data/owcreateclass.py +++ b/Orange/widgets/data/owcreateclass.py @@ -152,9 +152,14 @@ - unique elements of the input list (in the order of appearance) - indices of the input list onto the returned uni...
diff --git a/Orange/widgets/data/tests/test_owcreateclass.py b/Orange/widgets/data/tests/test_owcreateclass.py --- a/Orange/widgets/data/tests/test_owcreateclass.py +++ b/Orange/widgets/data/tests/test_owcreateclass.py @@ -89,6 +89,15 @@ u, m = unique_in_order_mapping([2, 1, 2, 3]) np.testing.assert_e...
null
null
namanjain12/orange3_final:92715a01b44eb476ed78b04a3c763b592052c4c6
true
null
1
11
null
1,025
0
0.75
1
0.525
1
0.2075
77.335
9,674
r2e_gym::train::179
r2e_gym
train
179
orange3__cc5a28119c47563789044ae44a51edaa7fe6b07b
orange3
biolab/orange3
python
cc5a28119c47563789044ae44a51edaa7fe6b07b
**Title:** Missing `'coef * X_sd'` Column in Coefficients Data Causes Shape Mismatch **Description:** When generating the coefficients data, the `'coef * X_sd'` column is not included. This omission leads to the coefficients matrix having fewer columns than expected, resulting in shape mismatches during processing. *...
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 @@ -68,14 +68,15 @@ def _create_output_coeffs_loadings(self) -> Table: intercept = self.model.intercept.T[None, :] - coefficients = self.model.coeffic...
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 @@ -48,11 +48,11 @@ self.send_signal(self.widget.Inputs.data, self._data) coefsdata = self.get_output(self.widg...
null
null
namanjain12/orange3_final:cc5a28119c47563789044ae44a51edaa7fe6b07b
true
null
1
12
null
1,004
0
0.75
1
0.525
1
0.207333
77.3345
9,675
r2e_gym::train::4033
r2e_gym
train
4,033
coveragepy__84f70f69c5e3f7117d219f842ef66ec037478bc9
coveragepy
nedbat/coveragepy
python
84f70f69c5e3f7117d219f842ef66ec037478bc9
**Title:** `CoverageData.update()` Fails to Preserve Measured Files with `no_disk=True` **Description:** When using `CoverageData` with the `no_disk=True` option, updating one instance with another does not correctly preserve the measured files. Specifically, after adding lines to one `CoverageData` instance and updat...
diff --git a/CHANGES.rst b/CHANGES.rst --- a/CHANGES.rst +++ b/CHANGES.rst @@ -39,7 +39,10 @@ - On Python 3.11, the ``[toml]`` extra no longer installs tomli, instead using tomllib from the standard library. Thanks `Shantanu <pull 1359_>`_. +- In-memory CoverageData objects now properly update(), closing `issue ...
diff --git a/tests/test_data.py b/tests/test_data.py --- a/tests/test_data.py +++ b/tests/test_data.py @@ -891,3 +891,19 @@ ) with pytest.raises(DataError, match=msg): covdata.loads(bad_data) + + +class NoDiskTest(CoverageTest): + """Tests of in-memory CoverageData.""" + + run_in_te...
null
null
namanjain12/coveragepy_final:84f70f69c5e3f7117d219f842ef66ec037478bc9
true
null
2
15
null
940
0
0.75
1
0.525
1
0.206667
77.3325
9,676
r2e_gym::train::5105
r2e_gym
train
5,105
pyramid__afa8a7457384aeb2c621b65f3acccce1ec28c3b9
pyramid
pylons/pyramid
python
afa8a7457384aeb2c621b65f3acccce1ec28c3b9
**Title:** Incorrect Parsing of Request Parameters Starting with '=' When Values Contain '=' **Description:** When a request includes parameters that start with an '=' and also contain '=', the parsing logic incorrectly handles the separation and spacing of the key and value. This results in unexpected spaces being re...
diff --git a/pyramid/config/predicates.py b/pyramid/config/predicates.py --- a/pyramid/config/predicates.py +++ b/pyramid/config/predicates.py @@ -70,8 +70,11 @@ for p in val: k = p v = None - if '=' in p and not p.startswith('='): - k, v = p.split('=', 1) + ...
diff --git a/pyramid/tests/test_config/test_predicates.py b/pyramid/tests/test_config/test_predicates.py --- a/pyramid/tests/test_config/test_predicates.py +++ b/pyramid/tests/test_config/test_predicates.py @@ -157,8 +157,8 @@ self.assertEqual(inst.text(), 'request_param abc=1,def') def test_text_multi_...
null
null
namanjain12/pyramid_final:afa8a7457384aeb2c621b65f3acccce1ec28c3b9
true
null
1
7
null
1,098
0
0.75
1
0.525
1
0.206333
77.3315
9,677
r2e_gym::train::5775
r2e_gym
train
5,775
scrapy__00527fdcbe042ae5b3ea06e93e03a8a353d0524c
scrapy
scrapy/scrapy
python
00527fdcbe042ae5b3ea06e93e03a8a353d0524c
**Title:** Missing Deprecation Warning When Running `Crawler.crawl()` Multiple Times **Description:** When attempting to invoke the `crawl()` method of the `Crawler` class more than once, no deprecation warning is emitted. This lack of warning can lead to unintended behavior and makes it unclear that running `crawl()`...
diff --git a/docs/topics/api.rst b/docs/topics/api.rst --- a/docs/topics/api.rst +++ b/docs/topics/api.rst @@ -100,7 +100,7 @@ Starts the crawler by instantiating its spider class with the given ``args`` and ``kwargs`` arguments, while setting the execution engine in - motion. + motion...
diff --git a/tests/test_crawl.py b/tests/test_crawl.py --- a/tests/test_crawl.py +++ b/tests/test_crawl.py @@ -123,7 +123,9 @@ self.assertTrue(crawler.spider.t2 == 0) self.assertTrue(crawler.spider.t2_err > 0) self.assertTrue(crawler.spider.t2_err > crawler.spider.t1) + # server hang...
null
null
namanjain12/scrapy_final:00527fdcbe042ae5b3ea06e93e03a8a353d0524c
true
null
2
11
null
1,016
0
0.75
1
0.525
1
0.206
77.3305
9,678
r2e_gym::train::4923
r2e_gym
train
4,923
datalad__abc454d4f42c246fb0dc69bf4498543cb97be85b
datalad
datalad/datalad
python
abc454d4f42c246fb0dc69bf4498543cb97be85b
**Title:** `EnsureListOf` and `EnsureTupleOf` incorrectly handle string inputs by iterating over characters **Description:** When using `EnsureListOf` or `EnsureTupleOf` with string inputs, the functions incorrectly iterate over each character of the string instead of treating the entire string as a single element. *...
diff --git a/changelog.d/pr-7267.md b/changelog.d/pr-7267.md --- a/changelog.d/pr-7267.md +++ b/changelog.d/pr-7267.md @@ -0,0 +1,3 @@ +### 🐛 Bug Fixes + +- Fix EnsureListOf() and EnsureTupleOf() for string inputs. [PR #7267](https://github.com/datalad/datalad/pull/7267) (by [@nobodyinperson](https://github.com/nobod...
diff --git a/datalad/tests/test_constraints.py b/datalad/tests/test_constraints.py --- a/datalad/tests/test_constraints.py +++ b/datalad/tests/test_constraints.py @@ -158,12 +158,14 @@ c = ct.EnsureListOf(str) assert_equal(c(['a', 'b']), ['a', 'b']) assert_equal(c(['a1', 'b2']), ['a1', 'b2']) + assert...
null
null
namanjain12/datalad_final:abc454d4f42c246fb0dc69bf4498543cb97be85b
true
null
2
7
null
1,096
0
0.75
1
0.525
1
0.206
77.3305
9,679
r2e_gym::train::5711
r2e_gym
train
5,711
scrapy__721df895f9ea9d8073c13fbd2f75a6fbdc75ffc7
scrapy
scrapy/scrapy
python
721df895f9ea9d8073c13fbd2f75a6fbdc75ffc7
**Title:** Incorrect Decoding of UTF-8 Email Body Results in Truncated Payload **Description:** When sending an email with a UTF-8 encoded body, the `MailSender` class fails to correctly decode the payload, resulting in a truncated message. **Example Code:** ```python class MailSenderTest(unittest.TestCase): def...
diff --git a/scrapy/mail.py b/scrapy/mail.py --- a/scrapy/mail.py +++ b/scrapy/mail.py @@ -96,10 +96,9 @@ rcpts.extend(cc) msg["Cc"] = COMMASPACE.join(cc) - if charset: - msg.set_charset(charset) - if attachs: + if charset: + msg.set_chars...
diff --git a/tests/test_mail.py b/tests/test_mail.py --- a/tests/test_mail.py +++ b/tests/test_mail.py @@ -111,7 +111,7 @@ msg = self.catched_msg["msg"] self.assertEqual(msg["subject"], subject) - self.assertEqual(msg.get_payload(), body) + self.assertEqual(msg.get_payload(decode=True)...
null
null
namanjain12/scrapy_final:721df895f9ea9d8073c13fbd2f75a6fbdc75ffc7
true
null
1
7
null
1,086
0
0.75
1
0.525
1
0.204333
77.3255
9,680
r2e_gym::train::5653
r2e_gym
train
5,653
scrapy__016c7e92d1d2893e7a8ce61c7f2e76818e71d019
scrapy
scrapy/scrapy
python
016c7e92d1d2893e7a8ce61c7f2e76818e71d019
**Title:** GET FormRequest Duplicates Query Parameters Instead of Overriding Existing Keys **Description:** When creating a `FormRequest` with the GET method, providing `formdata` that includes keys already present in the URL's query string results in duplicate keys instead of overriding the existing ones. **Example ...
diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.py --- a/scrapy/http/request/form.py +++ b/scrapy/http/request/form.py @@ -6,7 +6,7 @@ """ from typing import Iterable, List, Optional, Tuple, Type, TypeVar, Union -from urllib.parse import urljoin, urlencode +from urllib.parse import urljoin, urle...
diff --git a/tests/test_http_request.py b/tests/test_http_request.py --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -379,6 +379,20 @@ r1 = self.request_class("http://www.example.com", formdata={}) self.assertEqual(r1.body, b'') + def test_formdata_overrides_querystring(self)...
null
null
namanjain12/scrapy_final:016c7e92d1d2893e7a8ce61c7f2e76818e71d019
true
null
1
8
null
1,065
0
0.75
1
0.525
1
0.204167
77.325
9,681
r2e_gym::train::288
r2e_gym
train
288
orange3__bf75c8c72a52b2b7eef46a75bd162e9fca112a51
orange3
biolab/orange3
python
bf75c8c72a52b2b7eef46a75bd162e9fca112a51
Title: Warning Not Displayed When Discrete Data is Provided in HeatMap Widget **Description** When discrete data is input into the HeatMap widget, it is expected to display an information message indicating that the discrete data is being ignored. However, the widget does not show this warning, which can lead to confu...
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 @@ -692,7 +692,11 @@ def update_heatmaps(self): if self.data is not None: self.clear_scene() - self.cle...
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 @@ -72,6 +72,9 @@ self.assertFalse(self.widget.Information.active) self.send_si...
null
null
namanjain12/orange3_final:bf75c8c72a52b2b7eef46a75bd162e9fca112a51
true
null
1
6
null
1,105
0
0.75
1
0.525
1
0.204167
77.325
9,682
swe_bench::test::1276
swe_bench
test
1,276
pydata__xarray-6135
pydata/xarray
pydata/xarray
python
48290fa14accd3ac87768d3f73d69493b82b0be6
[FEATURE]: `CFTimeIndex.shift(float)` ### Is your feature request related to a problem? `CFTimeIndex.shift()` allows only `int` but sometimes I'd like to shift by a float e.g. 0.5. For small freqs, that shouldnt be a problem as `pd.Timedelta` allows floats for `days` and below. For freqs of months and larger, it beco...
For shift intervals that can be represented as timedeltas this seems reasonably straightforward to add. I would hold off for monthly or annual intervals -- even for 360-day calendars, I don't think that non-integer shift factors are very well-defined in that context, since those frequencies involve rounding, e.g. to t...
diff --git a/xarray/coding/cftime_offsets.py b/xarray/coding/cftime_offsets.py --- a/xarray/coding/cftime_offsets.py +++ b/xarray/coding/cftime_offsets.py @@ -39,11 +39,12 @@ # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -18,6 +18,7 @@ QuarterBegin, QuarterEnd, Second, + Tick, YearBegin, YearEnd, _days_in_month, @@ -54,11 +55,25 @@ ...
["xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[year]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[month]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[month-dash]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[day]", "xarray/tests/test_cftimeindex.py::test_parse...
["xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<BaseCFTimeOffset:", "xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<YearBegin:", "xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<YearEnd:", "xarray/tests/test_cftime_offsets.py::tes...
null
true
2022-01-04T15:28:16Z
2
78
14
889
0
0.8
1
0.4
1
0.408167
77.3245
9,683
r2e_gym::train::5162
r2e_gym
train
5,162
pyramid__7b58c0f003107aba5fde6cde57f13491d5248c76
pyramid
pylons/pyramid
python
7b58c0f003107aba5fde6cde57f13491d5248c76
**Title:** SettingsConfigurator Fails to Preserve Original Settings Dictionary When Mapping is Empty **Description:** When initializing the settings with an empty mapping, the original settings dictionary is not preserved. This results in default settings not being applied as expected. **Example Code:** ```python con...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -34,6 +34,10 @@ should only have been used if the client itself broadcast support for the encoding via ``Accept-Encoding`` request headers. See https://github.com/Pylons/pyramid/pull/2810 + +- Settings are no longer accessible as att...
diff --git a/pyramid/tests/test_config/test_settings.py b/pyramid/tests/test_config/test_settings.py --- a/pyramid/tests/test_config/test_settings.py +++ b/pyramid/tests/test_config/test_settings.py @@ -10,6 +10,13 @@ config = self._makeOne() settings = config._set_settings(None) self.assertT...
null
null
namanjain12/pyramid_final:7b58c0f003107aba5fde6cde57f13491d5248c76
true
null
2
15
null
924
0
0.75
1
0.525
1
0.204
77.3245
9,684
r2e_gym::train::5220
r2e_gym
train
5,220
pyramid__073e5247f4adf68fe96423d6669b437dc6f337a8
pyramid
pylons/pyramid
python
073e5247f4adf68fe96423d6669b437dc6f337a8
**Title:** `pcreate` Fails to Generate Correct Project Structure with Trailing Slash in Target Directory **Description:** When using the `pcreate` script to create a new project, specifying a target directory with a trailing slash results in an incorrect project structure. This causes the generated project to be non-f...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,14 @@ Unreleased ========== + +Bug Fixes +--------- + +- Fix the ``pcreate`` script so that when the target directory name ends with a + slash it does not produce a non-working project directory structure. + Previously saying `...
diff --git a/pyramid/tests/test_scripts/test_pcreate.py b/pyramid/tests/test_scripts/test_pcreate.py --- a/pyramid/tests/test_scripts/test_pcreate.py +++ b/pyramid/tests/test_scripts/test_pcreate.py @@ -110,6 +110,21 @@ scaffold2.vars, {'project': 'Distro', 'egg': 'Distro', 'package': 'distro'...
null
null
namanjain12/pyramid_final:073e5247f4adf68fe96423d6669b437dc6f337a8
true
null
2
11
null
996
0
0.75
1
0.525
1
0.202667
77.3205
9,685
r2e_gym::train::5066
r2e_gym
train
5,066
datalad__780607ffa876cd8fdfcb14c1292e9ded444132a0
datalad
datalad/datalad
python
780607ffa876cd8fdfcb14c1292e9ded444132a0
**Title:** Filename extraction from Content-Disposition header fails with varied casing **Description:** When handling HTTP responses, extracting the filename from the `Content-Disposition` header fails if the casing of the parameters varies. For example, using "Filename" instead of "filename" results in the filename ...
diff --git a/datalad/support/network.py b/datalad/support/network.py --- a/datalad/support/network.py +++ b/datalad/support/network.py @@ -46,9 +46,12 @@ if not s: return None # If the response has Content-Disposition, try to get filename from it - cd = dict(map( - lambda x: x.strip().split...
diff --git a/datalad/downloaders/tests/test_http.py b/datalad/downloaders/tests/test_http.py --- a/datalad/downloaders/tests/test_http.py +++ b/datalad/downloaders/tests/test_http.py @@ -246,11 +246,20 @@ 'Last-Modified': 'Sat, 07 Nov 2015 05:23:36 GMT' } headers['bogus1'] = '123' + assert_equal...
null
null
namanjain12/datalad_final:780607ffa876cd8fdfcb14c1292e9ded444132a0
true
null
1
9
null
1,035
0
0.75
1
0.525
1
0.2025
77.32
9,686
r2e_gym::train::5918
r2e_gym
train
5,918
tornado__301f52b532c071a0d2fec1eb7c23f2714bb38567
tornado
tornadoweb/tornado
python
301f52b532c071a0d2fec1eb7c23f2714bb38567
**Title:** Facebook login request hangs and results in timeout **Description:** When attempting to authenticate via Facebook, the login request does not complete and eventually times out. This issue occurs when access tokens are returned as bytes, causing the user objects to be non-JSON-encodable and disrupting the au...
diff --git a/tornado/auth.py b/tornado/auth.py --- a/tornado/auth.py +++ b/tornado/auth.py @@ -75,7 +75,7 @@ import time import uuid -from tornado.concurrent import TracebackFuture, return_future +from tornado.concurrent import TracebackFuture, return_future, chain_future from tornado import gen from tornado impo...
diff --git a/tornado/test/auth_test.py b/tornado/test/auth_test.py --- a/tornado/test/auth_test.py +++ b/tornado/test/auth_test.py @@ -5,7 +5,7 @@ from __future__ import absolute_import, division, print_function, with_statement -from tornado.auth import OpenIdMixin, OAuthMixin, OAuth2Mixin, TwitterMixin, AuthError...
null
null
namanjain12/tornado_final:301f52b532c071a0d2fec1eb7c23f2714bb38567
true
null
1
13
null
950
0
0.75
1
0.525
1
0.201667
77.3175
9,687
r2e_gym::train::87
r2e_gym
train
87
orange3__5425d2b7dffb329006a35c74243f56dae2f2db3b
orange3
biolab/orange3
python
5425d2b7dffb329006a35c74243f56dae2f2db3b
**Title:** Predictions widget minimum size not updated for classless data **Description:** After allowing predictions for datasets without a discrete class, the Predictions widget does not adjust its minimum size correctly. This results in the widget retaining space for class-related controls that are no longer visibl...
diff --git a/Orange/widgets/evaluate/owpredictions.py b/Orange/widgets/evaluate/owpredictions.py --- a/Orange/widgets/evaluate/owpredictions.py +++ b/Orange/widgets/evaluate/owpredictions.py @@ -267,10 +267,16 @@ self.target_class = self.TARGET_AVERAGE else: self.shown_probs = self.NO...
diff --git a/Orange/widgets/evaluate/tests/test_owpredictions.py b/Orange/widgets/evaluate/tests/test_owpredictions.py --- a/Orange/widgets/evaluate/tests/test_owpredictions.py +++ b/Orange/widgets/evaluate/tests/test_owpredictions.py @@ -39,6 +39,7 @@ def setUp(self): self.widget = self.create_widget(OWP...
null
null
namanjain12/orange3_final:5425d2b7dffb329006a35c74243f56dae2f2db3b
true
null
1
8
null
1,049
0
0.75
1
0.525
1
0.2015
77.317
9,688
r2e_gym::train::5575
r2e_gym
train
5,575
scrapy__ecda69130e97629b15d3b09b1e588cb6777ee94d
scrapy
scrapy/scrapy
python
ecda69130e97629b15d3b09b1e588cb6777ee94d
**Title:** JSONRequest Fails to Handle Empty Data Values Properly **Description:** When creating a `JSONRequest` with an empty `data` value and without specifying the `body`, the request body is incorrectly set to an empty bytes object instead of the JSON representation of an empty list (`[]`). **Example Code:** ```p...
diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -520,13 +520,13 @@ remaining arguments are the same as for the :class:`Request` class and are not documented here. - Using the :class:`JSONRequest...
diff --git a/tests/test_http_request.py b/tests/test_http_request.py --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -1175,20 +1175,35 @@ self.assertEqual(r3.body, to_bytes(json.dumps(data))) self.assertEqual(r3.method, 'POST') + r4 = self.request_class(url="http://www.ex...
null
null
namanjain12/scrapy_final:ecda69130e97629b15d3b09b1e588cb6777ee94d
true
null
2
14
null
928
0
0.75
1
0.525
1
0.201333
77.3165
9,689
r2e_gym::train::5841
r2e_gym
train
5,841
tornado__b4f36e70893ccc4f7ab4c6ec63354dce70c00b2f
tornado
tornadoweb/tornado
python
b4f36e70893ccc4f7ab4c6ec63354dce70c00b2f
**Title:** Task Instances Not Released After Engine Stops, Causing Memory Leaks **Description:** When executing tasks with arguments, the associated `Task` instances are not released immediately after the engine stops. This results in memory not being freed as expected, potentially leading to memory leaks in long-runn...
diff --git a/tornado/gen.py b/tornado/gen.py --- a/tornado/gen.py +++ b/tornado/gen.py @@ -439,6 +439,9 @@ return None +_null_yield_point = _NullYieldPoint() + + class Runner(object): """Internal implementation of `tornado.gen.engine`. @@ -449,7 +452,7 @@ def __init__(self, gen, final_callback...
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 @@ -5,6 +5,7 @@ import sys import textwrap import time +import platform from tornado.concurrent import return_future from tornado.escape import url_escape @@ -19,6 +20,8 @@ skipBefo...
null
null
namanjain12/tornado_final:b4f36e70893ccc4f7ab4c6ec63354dce70c00b2f
true
null
1
7
null
1,061
0
0.75
1
0.525
1
0.200167
77.313
9,690
r2e_gym::train::4926
r2e_gym
train
4,926
datalad__a477ba2efff4e891c25a9e35fd42901af1d89c9e
datalad
datalad/datalad
python
a477ba2efff4e891c25a9e35fd42901af1d89c9e
**Title:** Non-interactive Progress Messages Are Visible by Default **Description:** When running in a non-interactive environment, progress messages such as "Clear progress bars" and "Refresh progress bars" are still being logged, cluttering the output unnecessarily. **Example Code:** ```python from datalad.ui.dialo...
diff --git a/datalad/ui/dialog.py b/datalad/ui/dialog.py --- a/datalad/ui/dialog.py +++ b/datalad/ui/dialog.py @@ -72,11 +72,13 @@ def message(self, msg, cr='\n'): from datalad.log import log_progress - log_progress(lgr.info, None, 'Clear progress bars', maint='clear') + log_progress(lgr.i...
diff --git a/datalad/ui/tests/test_dialog.py b/datalad/ui/tests/test_dialog.py --- a/datalad/ui/tests/test_dialog.py +++ b/datalad/ui/tests/test_dialog.py @@ -17,6 +17,8 @@ call, patch, ) + +from datalad.utils import swallow_logs from ...tests.utils import ( assert_in, assert_not_in, @@ -27,6 +29,...
null
null
namanjain12/datalad_final:a477ba2efff4e891c25a9e35fd42901af1d89c9e
true
null
1
6
null
1,077
0
0.75
1
0.525
1
0.1995
77.311
9,691
r2e_gym::train::60
r2e_gym
train
60
orange3__8d9988d7ced95454dee34235c1ede142c8de9bff
orange3
biolab/orange3
python
8d9988d7ced95454dee34235c1ede142c8de9bff
**Title:** Performance Degradation in Basic Statistics Computation for Large Tables **Description:** When computing basic statistics on tables with a large number of columns, the operation takes significantly longer than expected, impacting performance and usability. **Example Buggy Code:** ```python import time impo...
diff --git a/Orange/data/table.py b/Orange/data/table.py --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -1365,18 +1365,16 @@ if len(rr): stats = np.vstack(tuple(rr)) else: - columns = [self.domain.index(c) for c in columns] nattrs = len(self.domai...
diff --git a/Orange/tests/test_basic_stats.py b/Orange/tests/test_basic_stats.py --- a/Orange/tests/test_basic_stats.py +++ b/Orange/tests/test_basic_stats.py @@ -1,6 +1,10 @@ # Test methods with long descriptive names can omit docstrings # pylint: disable=missing-docstring from unittest import TestCase + +import ti...
null
null
namanjain12/orange3_final:8d9988d7ced95454dee34235c1ede142c8de9bff
true
null
1
16
null
870
0
0.75
1
0.525
1
0.198333
77.3075
9,692
r2e_gym::train::4103
r2e_gym
train
4,103
coveragepy__6c0d09d1f1ef38004b75637f965445c15e0d5b4a
coveragepy
nedbat/coveragepy
python
6c0d09d1f1ef38004b75637f965445c15e0d5b4a
**Title:** Incorrect Line Exclusion When Multiline Statements Precede a Suite **Description:** When attempting to exclude a suite that is preceded by a multiline statement, the exclusion improperly includes an additional line that should not be excluded. Specifically, excluding a function with a multiline definition r...
diff --git a/coverage/parser.py b/coverage/parser.py --- a/coverage/parser.py +++ b/coverage/parser.py @@ -136,6 +136,7 @@ empty = True first_on_line = True nesting = 0 + prev_ttext = None assert self.text is not None tokgen = generate_tokens(self.text) @@ -189,6 +1...
diff --git a/tests/test_coverage.py b/tests/test_coverage.py --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -1405,6 +1405,14 @@ assert a == 1 """, [1,7], "", excludes=['#pragma: NO COVER']) + self.check_coverage("""\ + a = 0 + def very_lo...
null
null
namanjain12/coveragepy_final:6c0d09d1f1ef38004b75637f965445c15e0d5b4a
true
null
1
8
null
1,020
0
0.75
1
0.525
1
0.196667
77.3025
9,693
swe_bench::test::36
swe_bench
test
36
astropy__astropy-13734
astropy/astropy
astropy/astropy
python
9fd247339e51441460b43368d415fced327c97a2
Add option to input/output column units for fixed width tables Extend the `io.ascii.FixedWidth` reader to include a keyword arg that will specify that there is a row of unit specifiers after the column name specifiers (or at the top of the header if there are no column names). This will apply for both reading and writ...
Rescheduling for 1.1 since there was interest. Will finish off #2869 for 1.2.
diff --git a/astropy/io/ascii/fixedwidth.py b/astropy/io/ascii/fixedwidth.py --- a/astropy/io/ascii/fixedwidth.py +++ b/astropy/io/ascii/fixedwidth.py @@ -92,6 +92,7 @@ def get_cols(self, lines): List of table lines """ + header_rows = getattr(self, "header_rows", ["name"]) # S...
diff --git a/astropy/io/ascii/tests/test_fixedwidth.py b/astropy/io/ascii/tests/test_fixedwidth.py --- a/astropy/io/ascii/tests/test_fixedwidth.py +++ b/astropy/io/ascii/tests/test_fixedwidth.py @@ -498,3 +498,46 @@ def test_fixedwidthnoheader_splitting(): assert np.all(dat['a'] == [1, 4]) assert np.all(dat['...
["astropy/io/ascii/tests/test_fixedwidth.py::test_fixed_width_header_rows", "astropy/io/ascii/tests/test_fixedwidth.py::test_fixed_width_two_line_header_rows"]
["astropy/io/ascii/tests/test_fixedwidth.py::test_read_normal", "astropy/io/ascii/tests/test_fixedwidth.py::test_read_normal_names", "astropy/io/ascii/tests/test_fixedwidth.py::test_read_normal_names_include", "astropy/io/ascii/tests/test_fixedwidth.py::test_read_normal_exclude", "astropy/io/ascii/tests/test_fixedwidth...
null
true
2022-09-22T09:27:55Z
1
95
2
504
0
0.8
1
0.4
1
0.400667
77.302
9,694
r2e_gym::train::5831
r2e_gym
train
5,831
tornado__f5ac210298c9006e08284d5845fe661fe6f9be44
tornado
tornadoweb/tornado
python
f5ac210298c9006e08284d5845fe661fe6f9be44
**Title:** Header callbacks receive bytes instead of strings, causing encoding issues **Description:** When making HTTP requests using the CurlHTTPClient, the header callbacks receive header lines as bytes rather than decoded strings. This leads to encoding mismatches, causing various functionality tests to fail unexp...
diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -318,10 +318,12 @@ [native_str("%s: %s" % i) for i in request.headers.items()]) if request.header_callback: - curl.setopt(pycurl.HEADERFUNCTION, re...
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 @@ -2,6 +2,7 @@ from hashlib import md5 +from tornado.escape import utf8 from tornado.httpclient import HTTPRequest from tornado.stack_con...
null
null
namanjain12/tornado_final:f5ac210298c9006e08284d5845fe661fe6f9be44
true
null
1
8
null
1,017
0
0.75
1
0.525
1
0.196167
77.301
9,695
swe_bench::test::1644
swe_bench
test
1,644
scikit-learn__scikit-learn-14544
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
7e7b5092991cf7a7cf6bd95d56b08deef5eb9847
RFC ColumnTransformer input validation and requirements There have been some issues around ColumnTransformer input requirements that I think we might want to discuss more explicitly. Examples are an actual bug when changing columns: #14237 and how to define number of input features #13603. Related is also the idea of c...
Actually, whether adding a column works depends on how the columns were specified: ```python import pandas as pd from sklearn.compose import make_column_transformer df = pd.DataFrame({ 'boro': ['Manhattan', 'Queens', 'Manhattan', 'Brooklyn', 'Brooklyn', 'Bronx'], 'salary': [103, 89, 142, 54, 63, 219], 'v...
diff --git a/sklearn/compose/_column_transformer.py b/sklearn/compose/_column_transformer.py --- a/sklearn/compose/_column_transformer.py +++ b/sklearn/compose/_column_transformer.py @@ -6,9 +6,10 @@ # Author: Andreas Mueller # Joris Van den Bossche # License: BSD - +import warnings from itertools import ch...
diff --git a/sklearn/compose/tests/test_column_transformer.py b/sklearn/compose/tests/test_column_transformer.py --- a/sklearn/compose/tests/test_column_transformer.py +++ b/sklearn/compose/tests/test_column_transformer.py @@ -3,6 +3,7 @@ """ import re +import warnings import numpy as np from scipy import sparse ...
["sklearn/compose/tests/test_column_transformer.py::test_column_transformer_invalid_columns[drop]", "sklearn/compose/tests/test_column_transformer.py::test_column_transformer_invalid_columns[passthrough]", "sklearn/compose/tests/test_column_transformer.py::test_column_transformer_reordered_column_names_remainder[first]...
["sklearn/compose/tests/test_column_transformer.py::test_column_transformer", "sklearn/compose/tests/test_column_transformer.py::test_column_transformer_dataframe", "sklearn/compose/tests/test_column_transformer.py::test_column_transformer_empty_columns[list-pandas]", "sklearn/compose/tests/test_column_transformer.py::...
null
true
2019-08-01T16:37:40Z
1
53
5
1,336
0
0.8
1
0.4
1
0.399333
77.298
9,696
r2e_gym::train::5197
r2e_gym
train
5,197
pyramid__2c27c33e45350d98f577bf3e14fda7d66b79904d
pyramid
pylons/pyramid
python
2c27c33e45350d98f577bf3e14fda7d66b79904d
**Title:** Passing String Values for `timeout` Causes TypeError in Session Handling **Description:** When initializing a session with the `timeout` parameter as a string, the session handling logic fails due to type mismatch. The system expects `timeout` to be an integer, but if a string is provided, it leads to runti...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -232,6 +232,11 @@ shell a little more straightfoward. See https://github.com/Pylons/pyramid/pull/1883 +- Fix an issue when user passes unparsed strings to ``pyramid.session.CookieSession`` + and ``pyramid.authentication.AuthTktCookie...
diff --git a/pyramid/tests/test_authentication.py b/pyramid/tests/test_authentication.py --- a/pyramid/tests/test_authentication.py +++ b/pyramid/tests/test_authentication.py @@ -599,6 +599,15 @@ cookies = SimpleCookie() cookies.load(cookie) return cookies.get('auth_tkt') + + def test_init...
null
null
namanjain12/pyramid_final:2c27c33e45350d98f577bf3e14fda7d66b79904d
true
null
4
22
null
1,433
0
0.75
1
0.6375
0.85
0.312167
77.29275
9,697
r2e_gym::train::5213
r2e_gym
train
5,213
pyramid__58951c0a9a4fc2a2122d88170b0761b1d89ea91c
pyramid
pylons/pyramid
python
58951c0a9a4fc2a2122d88170b0761b1d89ea91c
**Title:** Generated URLs Still Encode '/' as '%2F' Despite API Update **Description:** After updating the `route_url` and `route_path` APIs to no longer encode `/` as `%2F` when replacement values contain slashes, the URL generator still encodes the `/`, leading to unexpected URLs. **Example Code:** ```python # Defi...
diff --git a/CHANGES.txt b/CHANGES.txt --- a/CHANGES.txt +++ b/CHANGES.txt @@ -206,6 +206,11 @@ - Modified the ``current_route_url`` method in pyramid.Request. The method previously returned the URL without the query string by default, it now does attach the query string unless it is overriden. + +- The ``route_...
diff --git a/pyramid/tests/test_urldispatch.py b/pyramid/tests/test_urldispatch.py --- a/pyramid/tests/test_urldispatch.py +++ b/pyramid/tests/test_urldispatch.py @@ -295,7 +295,7 @@ 'remainder':'/everything/else/here'}) self.assertEqual(matcher('foo/baz/biz/buz/bar'), None) ...
null
null
namanjain12/pyramid_final:58951c0a9a4fc2a2122d88170b0761b1d89ea91c
true
null
2
11
null
929
0
0.75
1
0.525
1
0.1915
77.287
9,698
r2e_gym::train::356
r2e_gym
train
356
orange3__9b2e5b0fcbe31ee08fb5506dc1dadbd48c5b290f
orange3
biolab/orange3
python
9b2e5b0fcbe31ee08fb5506dc1dadbd48c5b290f
**Title:** Deprecation Warning Not Emitted When Calling `compute_CD` Function **Description:** When using the deprecated `compute_CD` function from the evaluation scoring module, the expected deprecation warning is not triggered. This behavior prevents developers from being notified about the deprecation, which is imp...
diff --git a/Orange/evaluation/scoring.py b/Orange/evaluation/scoring.py --- a/Orange/evaluation/scoring.py +++ b/Orange/evaluation/scoring.py @@ -11,6 +11,7 @@ """ import math +import warnings import numpy as np import sklearn.metrics as skl_metrics @@ -21,6 +22,8 @@ __all__ = ["CA", "Precision", "Recall", ...
diff --git a/Orange/tests/test_evaluation_scoring.py b/Orange/tests/test_evaluation_scoring.py --- a/Orange/tests/test_evaluation_scoring.py +++ b/Orange/tests/test_evaluation_scoring.py @@ -2,8 +2,11 @@ # pylint: disable=missing-docstring import unittest +from distutils.version import LooseVersion + import numpy ...
null
null
namanjain12/orange3_final:9b2e5b0fcbe31ee08fb5506dc1dadbd48c5b290f
true
null
1
13
null
887
0
0.75
1
0.525
1
0.191167
77.286
9,699
r2e_gym::train::148
r2e_gym
train
148
orange3__c168e0225409f11b548ceaeeef66260c0f38bccd
orange3
biolab/orange3
python
c168e0225409f11b548ceaeeef66260c0f38bccd
**Title:** Modifying Attributes in Copied Table Affects Original Table **Description:** When creating a new table from an existing table, modifying the attributes of the new table unintentionally alters the attributes of the original table. **Example Buggy Code:** ```python def test_attributes_modification(): ori...
diff --git a/Orange/data/table.py b/Orange/data/table.py --- a/Orange/data/table.py +++ b/Orange/data/table.py @@ -7,6 +7,7 @@ import zlib from collections.abc import Iterable, Sequence, Sized from contextlib import contextmanager +from copy import deepcopy from functools import reduce from itertools import chain ...
diff --git a/Orange/tests/test_table.py b/Orange/tests/test_table.py --- a/Orange/tests/test_table.py +++ b/Orange/tests/test_table.py @@ -17,7 +17,7 @@ import scipy.sparse as sp from Orange import data -from Orange.data import (filter, Unknown, Variable, Table, DiscreteVariable, +from Orange.data import (filter, U...
null
null
namanjain12/orange3_final:c168e0225409f11b548ceaeeef66260c0f38bccd
true
null
1
7
null
1,006
0
0.75
1
0.525
1
0.191
77.2855