id
stringlengths
13
54
prompt
stringlengths
708
2.91M
answer
stringlengths
110
352k
prompt_input_token_count
int64
206
1.14M
metadata
dict
aio-libs__aiohttp-3081
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: b596886b6fe25c49d1c3d501e23cac2a39d87096 Changed files: - aiohttp/web_protocol.py #...
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py index 0000000..0000000 100644 --- a/aiohttp/web_protocol.py +++ b/aiohttp/web_protocol.py @@ -109,7 +109,7 @@ class RequestHandler(BaseProtocol): self._waiter = None self._error_handler = None - self._task_handler = self._loop.cre...
12,406
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3081", "repo": "aio-libs/aiohttp", "base_commit": "b596886b6fe25c49d1c3d501e23cac2a39d87096", "pull_number": 3081, "issue_numbers": [ ...
aio-libs__aiohttp-3091
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 7cf5785f5383ee67756d0f8d86ea3516b823b940 Changed files: - aiohttp/web_request.py ##...
diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 0000000..0000000 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -19,8 +19,9 @@ import attr from multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy from yarl import URL -from . import hdrs, multipart +from ...
16,360
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3091", "repo": "aio-libs/aiohttp", "base_commit": "7cf5785f5383ee67756d0f8d86ea3516b823b940", "pull_number": 3091, "issue_numbers": [ ...
aio-libs__aiohttp-3093
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 69f5c560b6a515c83b4498d799d0c8b4ed56bd8e Changed files: - aiohttp/web_exceptions.py ...
diff --git a/aiohttp/web_exceptions.py b/aiohttp/web_exceptions.py index 0000000..0000000 100644 --- a/aiohttp/web_exceptions.py +++ b/aiohttp/web_exceptions.py @@ -253,6 +253,14 @@ class HTTPPreconditionFailed(HTTPClientError): class HTTPRequestEntityTooLarge(HTTPClientError): status_code = 413 + def __init...
23,646
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3093", "repo": "aio-libs/aiohttp", "base_commit": "69f5c560b6a515c83b4498d799d0c8b4ed56bd8e", "pull_number": 3093, "issue_numbers": [ ...
aio-libs__aiohttp-3094
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 69f5c560b6a515c83b4498d799d0c8b4ed56bd8e Changed files: - aiohttp/multipart.py ## P...
diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py index 0000000..0000000 100644 --- a/aiohttp/multipart.py +++ b/aiohttp/multipart.py @@ -444,7 +444,7 @@ class BodyPartReaderPayload(Payload): if value.name is not None: params['name'] = value.name if value.filename is not None: - ...
20,297
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3094", "repo": "aio-libs/aiohttp", "base_commit": "69f5c560b6a515c83b4498d799d0c8b4ed56bd8e", "pull_number": 3094, "issue_numbers": [ ...
aio-libs__aiohttp-3098
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 319d07f898905ff0a77e9bfba734d0d3a9b081a9 Changed files: - aiohttp/web_exceptions.py ...
diff --git a/aiohttp/web_exceptions.py b/aiohttp/web_exceptions.py index 0000000..0000000 100644 --- a/aiohttp/web_exceptions.py +++ b/aiohttp/web_exceptions.py @@ -83,6 +83,9 @@ class HTTPException(Response, Exception): if self.body is None and not self.empty_body: self.text = "{}: {}".format(sel...
7,877
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3098", "repo": "aio-libs/aiohttp", "base_commit": "319d07f898905ff0a77e9bfba734d0d3a9b081a9", "pull_number": 3098, "issue_numbers": [ ...
aio-libs__aiohttp-3107
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 80b8d7a7f3753d6adfc6d02ee25f7995deb98ab4 Changed files: - aiohttp/web_response.py #...
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index 0000000..0000000 100644 --- a/aiohttp/web_response.py +++ b/aiohttp/web_response.py @@ -432,6 +432,9 @@ class StreamResponse(collections.MutableMapping, HeadersMixin): def __hash__(self): return hash(id(self)) + def __eq__(self, oth...
14,718
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3107", "repo": "aio-libs/aiohttp", "base_commit": "80b8d7a7f3753d6adfc6d02ee25f7995deb98ab4", "pull_number": 3107, "issue_numbers": [ ...
aio-libs__aiohttp-3124
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: fd6ad027903e8dc3e1175d8fbd80c56456de6e26 Changed files: - aiohttp/http_parser.py ##...
diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py index 0000000..0000000 100644 --- a/aiohttp/http_parser.py +++ b/aiohttp/http_parser.py @@ -662,7 +662,7 @@ class DeflateBuffer: if chunk or self.size > 0: self.out.feed_data(chunk, len(chunk)) - if self.encoding != 'br' and...
16,136
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3124", "repo": "aio-libs/aiohttp", "base_commit": "fd6ad027903e8dc3e1175d8fbd80c56456de6e26", "pull_number": 3124, "issue_numbers": [ ...
aio-libs__aiohttp-3125
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 5bbc255923b49e6a727b283570d7c2ff97620d3d Changed files: - aiohttp/web_request.py ##...
diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 0000000..0000000 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -634,6 +634,9 @@ class BaseRequest(collections.MutableMapping, HeadersMixin): return "<{} {} {} >".format(self.__class__.__name__, ...
16,645
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3125", "repo": "aio-libs/aiohttp", "base_commit": "5bbc255923b49e6a727b283570d7c2ff97620d3d", "pull_number": 3125, "issue_numbers": [ ...
aio-libs__aiohttp-3126
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 5bbc255923b49e6a727b283570d7c2ff97620d3d Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -195,19 +195,10 @@ def proxies_from_env(): def current_task(loop=None): - if loop is None: - loop = asyncio.get_event_loop() - if PY_37: - task = asyncio.cur...
19,038
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3126", "repo": "aio-libs/aiohttp", "base_commit": "5bbc255923b49e6a727b283570d7c2ff97620d3d", "pull_number": 3126, "issue_numbers": [ ...
aio-libs__aiohttp-3148
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: f6b9b7b9be03d12e33af6dbd0cccd127146abedb Changed files: - docs/conf.py ## Problem s...
diff --git a/docs/conf.py b/docs/conf.py index 0000000..0000000 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import codecs +import io import os import re import sys @@ -21,7 +21,7 @@ import sy...
8,933
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3148", "repo": "aio-libs/aiohttp", "base_commit": "f6b9b7b9be03d12e33af6dbd0cccd127146abedb", "pull_number": 3148, "issue_numbers": [ ...
aio-libs__aiohttp-3189
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: d036e3845aabf7ef3ee892a007640d2a55263b86 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ from setuptools import Extension, setup if sys.version_info < (3, 5, 3): raise RuntimeError("aiohttp 3.x requires Python 3.5.3+") +here = pathlib.Path(__file__).parent try: from Cython.Build im...
6,990
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3189", "repo": "aio-libs/aiohttp", "base_commit": "d036e3845aabf7ef3ee892a007640d2a55263b86", "pull_number": 3189, "issue_numbers": [ ...
aio-libs__aiohttp-3262
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 9503f2d6a63294cfac246192091f1e24b7b26aba Changed files: - aiohttp/web_app.py ## Pro...
diff --git a/aiohttp/web_app.py b/aiohttp/web_app.py index 0000000..0000000 100644 --- a/aiohttp/web_app.py +++ b/aiohttp/web_app.py @@ -293,12 +293,12 @@ class Application(MutableMapping): self.freeze() kwargs['debug'] = self.debug + kwargs['access_log_class'] = access_log_class if ...
10,292
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3262", "repo": "aio-libs/aiohttp", "base_commit": "9503f2d6a63294cfac246192091f1e24b7b26aba", "pull_number": 3262, "issue_numbers": [ ...
aio-libs__aiohttp-3295
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: da75122f6089a250128d2736f2bd88d10e97ca17 Changed files: - aiohttp/streams.py ## Pro...
diff --git a/aiohttp/streams.py b/aiohttp/streams.py index 0000000..0000000 100644 --- a/aiohttp/streams.py +++ b/aiohttp/streams.py @@ -482,7 +482,7 @@ class EmptyStreamReader(AsyncStreamReaderMixin): return b'' async def readchunk(self) -> Tuple[bytes, bool]: - return (b'', False) + retu...
13,780
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3295", "repo": "aio-libs/aiohttp", "base_commit": "da75122f6089a250128d2736f2bd88d10e97ca17", "pull_number": 3295, "issue_numbers": [ ...
aio-libs__aiohttp-3303
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 01ed525c727211a01d421a423a77fa405db6e9a7 Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -903,6 +903,7 @@ def request(method, url, *, compress=None, chunked=None, expect100=False, + raise_for_status=False, connecto...
21,997
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3303", "repo": "aio-libs/aiohttp", "base_commit": "01ed525c727211a01d421a423a77fa405db6e9a7", "pull_number": 3303, "issue_numbers": [ ...
aio-libs__aiohttp-3324
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 929e197dfee56cca1a8b5a6a428d5796eaff5bd0 Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -52,6 +52,13 @@ def run_app(app, *, host=None, port=None, path=None, sock=None, if asyncio.iscoroutine(app): app = loop.run_until_complete(app) + # Configure if and only if in debug...
5,127
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3324", "repo": "aio-libs/aiohttp", "base_commit": "929e197dfee56cca1a8b5a6a428d5796eaff5bd0", "pull_number": 3324, "issue_numbers": [ ...
aio-libs__aiohttp-3352
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 1778189ad4e5de0799f59ed88428ea7f23d02302 Changed files: - aiohttp/web_app.py ## Pro...
diff --git a/aiohttp/web_app.py b/aiohttp/web_app.py index 0000000..0000000 100644 --- a/aiohttp/web_app.py +++ b/aiohttp/web_app.py @@ -104,7 +104,8 @@ class Application(MutableMapping[str, Any]): self._on_startup = Signal(self) # type: _AppSignal self._on_shutdown = Signal(self) # type: _AppSignal...
12,176
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3352", "repo": "aio-libs/aiohttp", "base_commit": "1778189ad4e5de0799f59ed88428ea7f23d02302", "pull_number": 3352, "issue_numbers": [ ...
aio-libs__aiohttp-3420
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 1618fe6b87ee895ea33792edea44b5f5f6220713 Changed files: - aiohttp/web_exceptions.py ...
diff --git a/aiohttp/web_exceptions.py b/aiohttp/web_exceptions.py index 0000000..0000000 100644 --- a/aiohttp/web_exceptions.py +++ b/aiohttp/web_exceptions.py @@ -1,3 +1,4 @@ +import warnings from typing import Any, Dict, Iterable, List, Optional, Set # noqa from .typedefs import LooseHeaders, StrOrURL @@ -85,6 ...
8,574
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3420", "repo": "aio-libs/aiohttp", "base_commit": "1618fe6b87ee895ea33792edea44b5f5f6220713", "pull_number": 3420, "issue_numbers": [ ...
aio-libs__aiohttp-3434
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 56e39cd1e7cac90711805baaa89bb52842d0aaed Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -151,6 +151,13 @@ args = dict( packages=['aiohttp'], python_requires='>=3.5.3', install_requires=install_requires, + extras_require={ + 'speedups': [ + 'aiodns', + 'brotlipy', +...
4,970
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3434", "repo": "aio-libs/aiohttp", "base_commit": "56e39cd1e7cac90711805baaa89bb52842d0aaed", "pull_number": 3434, "issue_numbers": [ ...
aio-libs__aiohttp-3436
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: f0eee0af357bdc2bc1e47229f856a56955307215 Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -98,8 +98,6 @@ class ClientSession: _source_traceback = None _connector = None - requote_redirect_url = True - def __init__(self, *, connector: Optional[BaseConnector]=...
26,776
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3436", "repo": "aio-libs/aiohttp", "base_commit": "f0eee0af357bdc2bc1e47229f856a56955307215", "pull_number": 3436, "issue_numbers": [ ...
aio-libs__aiohttp-3442
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 8103b8cd772144d9351836ea1a09e8703f9c9b29 Changed files: - aiohttp/web_protocol.py #...
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py index 0000000..0000000 100644 --- a/aiohttp/web_protocol.py +++ b/aiohttp/web_protocol.py @@ -400,7 +400,10 @@ class RequestHandler(BaseProtocol): message, payload, self, writer, handler) try: try: - ...
13,897
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3442", "repo": "aio-libs/aiohttp", "base_commit": "8103b8cd772144d9351836ea1a09e8703f9c9b29", "pull_number": 3442, "issue_numbers": [ ...
aio-libs__aiohttp-3465
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 8c45b4ea5faa93c70eded0e4a3f6fe483ac987c0 Changed files: - aiohttp/worker.py ## Prob...
diff --git a/aiohttp/worker.py b/aiohttp/worker.py index 0000000..0000000 100644 --- a/aiohttp/worker.py +++ b/aiohttp/worker.py @@ -5,7 +5,6 @@ import os import re import signal import sys -from contextlib import suppress from types import FrameType from typing import Any, Optional # noqa @@ -68,8 +67,10 @@ cl...
6,004
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3465", "repo": "aio-libs/aiohttp", "base_commit": "8c45b4ea5faa93c70eded0e4a3f6fe483ac987c0", "pull_number": 3465, "issue_numbers": [ ...
aio-libs__aiohttp-3475
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 6205cce17c984d6e4867db36dd9675aac6125861 Changed files: - aiohttp/multipart.py - aio...
diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py index 0000000..0000000 100644 --- a/aiohttp/multipart.py +++ b/aiohttp/multipart.py @@ -677,7 +677,7 @@ class MultipartReader: self._last_part = None -_Part = Tuple[Payload, 'MultiMapping[str]', str, str] +_Part = Tuple[Payload, str, str] cl...
32,524
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3475", "repo": "aio-libs/aiohttp", "base_commit": "6205cce17c984d6e4867db36dd9675aac6125861", "pull_number": 3475, "issue_numbers": [ ...
aio-libs__aiohttp-3481
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 37722f8e5e0b73a1c43302eac73fad3c03a30934 Changed files: - aiohttp/web_response.py #...
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index 0000000..0000000 100644 --- a/aiohttp/web_response.py +++ b/aiohttp/web_response.py @@ -1,5 +1,5 @@ import asyncio # noqa -import collections # noqa +import collections.abc # noqa import datetime import enum import json @@ -39,7 +39,7 @@ if TYP...
17,979
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3481", "repo": "aio-libs/aiohttp", "base_commit": "37722f8e5e0b73a1c43302eac73fad3c03a30934", "pull_number": 3481, "issue_numbers": [ ...
aio-libs__aiohttp-3500
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: b42a23b4720f5781eb0f257138c78b38915bf561 Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -63,10 +63,15 @@ except ImportError: from typing_extensions import ContextManager -all_tasks = asyncio.Task.all_tasks +def all_tasks( + loop: Optional[asyncio.AbstractE...
18,907
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3500", "repo": "aio-libs/aiohttp", "base_commit": "b42a23b4720f5781eb0f257138c78b38915bf561", "pull_number": 3500, "issue_numbers": [ ...
aio-libs__aiohttp-3503
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 396ec1f4160cf1b1861b340c2fd135b7c777cc8f Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -63,10 +63,15 @@ except ImportError: from typing_extensions import ContextManager -all_tasks = asyncio.Task.all_tasks +def all_tasks( + loop: Optional[asyncio.AbstractE...
18,136
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3503", "repo": "aio-libs/aiohttp", "base_commit": "396ec1f4160cf1b1861b340c2fd135b7c777cc8f", "pull_number": 3503, "issue_numbers": [ ...
aio-libs__aiohttp-3596
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: df1fb5be9c4baf9f583125e246161dc3532362dd Changed files: - aiohttp/tracing.py ## Pro...
diff --git a/aiohttp/tracing.py b/aiohttp/tracing.py index 0000000..0000000 100644 --- a/aiohttp/tracing.py +++ b/aiohttp/tracing.py @@ -1,5 +1,5 @@ from types import SimpleNamespace -from typing import TYPE_CHECKING, Awaitable, Callable, Type +from typing import TYPE_CHECKING, Awaitable, Callable, Type, Union impo...
9,189
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3596", "repo": "aio-libs/aiohttp", "base_commit": "df1fb5be9c4baf9f583125e246161dc3532362dd", "pull_number": 3596, "issue_numbers": [ ...
aio-libs__aiohttp-3633
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 398b5bafc6a0fa1c1e49ea5ace6df03d35232af0 Changed files: - aiohttp/web_routedef.py - ...
diff --git a/aiohttp/web_routedef.py b/aiohttp/web_routedef.py index 0000000..0000000 100644 --- a/aiohttp/web_routedef.py +++ b/aiohttp/web_routedef.py @@ -10,6 +10,7 @@ from typing import ( List, Optional, Sequence, + Type, Union, overload, ) @@ -40,7 +41,7 @@ class AbstractRouteDef(abc.A...
33,735
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3633", "repo": "aio-libs/aiohttp", "base_commit": "398b5bafc6a0fa1c1e49ea5ace6df03d35232af0", "pull_number": 3633, "issue_numbers": [ ...
aio-libs__aiohttp-3694
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 9ea43433b3a9dcd5347923d494021a06cf57c3e6 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -14,18 +14,6 @@ if sys.version_info < (3, 5, 3): here = pathlib.Path(__file__).parent -try: - from Cython.Build import cythonize - USE_CYTHON = True -except ImportError: - USE_CYTHON = False - -if (here / '.git...
4,794
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3694", "repo": "aio-libs/aiohttp", "base_commit": "9ea43433b3a9dcd5347923d494021a06cf57c3e6", "pull_number": 3694, "issue_numbers": [ ...
aio-libs__aiohttp-3699
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: ad2c1872a0548c84ef812b2cc03434d3b8b56d05 Changed files: - aiohttp/web_protocol.py #...
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py index 0000000..0000000 100644 --- a/aiohttp/web_protocol.py +++ b/aiohttp/web_protocol.py @@ -439,8 +439,12 @@ class RequestHandler(BaseProtocol): raise RuntimeError("Web-handler should return " ...
14,443
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3699", "repo": "aio-libs/aiohttp", "base_commit": "ad2c1872a0548c84ef812b2cc03434d3b8b56d05", "pull_number": 3699, "issue_numbers": [ ...
aio-libs__aiohttp-3710
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 9504fe2affaaff673fa4f3754c1c44221f8ba47d Changed files: - aiohttp/web_app.py - aioht...
diff --git a/aiohttp/web_app.py b/aiohttp/web_app.py index 0000000..0000000 100644 --- a/aiohttp/web_app.py +++ b/aiohttp/web_app.py @@ -53,12 +53,9 @@ if TYPE_CHECKING: # pragma: no cover _RespPrepareSignal = Signal[Callable[[Request, StreamResponse], Awaitable[None]]] ...
14,453
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3710", "repo": "aio-libs/aiohttp", "base_commit": "9504fe2affaaff673fa4f3754c1c44221f8ba47d", "pull_number": 3710, "issue_numbers": [ ...
aio-libs__aiohttp-3734
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 61825e785727c41f6827337c67a26f55a3d27626 Changed files: - aiohttp/web_protocol.py #...
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py index 0000000..0000000 100644 --- a/aiohttp/web_protocol.py +++ b/aiohttp/web_protocol.py @@ -444,8 +444,22 @@ class RequestHandler(BaseProtocol): raise RuntimeError("Web-handler should return " ...
14,717
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3734", "repo": "aio-libs/aiohttp", "base_commit": "61825e785727c41f6827337c67a26f55a3d27626", "pull_number": 3734, "issue_numbers": [ ...
aio-libs__aiohttp-3752
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: c8cbbcc3b979e13305c187929f4708c528c19084 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -83,16 +83,6 @@ def read(f): return (here / f).read_text('utf-8').strip() -NEEDS_PYTEST = {'pytest', 'test'}.intersection(sys.argv) -pytest_runner = ['pytest-runner'] if NEEDS_PYTEST else [] - -tests_require = [ - ...
5,776
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3752", "repo": "aio-libs/aiohttp", "base_commit": "c8cbbcc3b979e13305c187929f4708c528c19084", "pull_number": 3752, "issue_numbers": [ ...
aio-libs__aiohttp-3796
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 705120a2718593e00a5dfc97a92fed7197a5b435 Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -401,6 +401,7 @@ def _cancel_tasks(to_cancel: Set['asyncio.Task[Any]'], def run_app(app: Union[Application, Awaitable[Application]], *, + debug: bool=False, host: Optional...
13,457
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3796", "repo": "aio-libs/aiohttp", "base_commit": "705120a2718593e00a5dfc97a92fed7197a5b435", "pull_number": 3796, "issue_numbers": [ ...
aio-libs__aiohttp-3805
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 21b062199ff8da1a8d48b262f3d75fb616cc275f Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -5,7 +5,17 @@ import sys from argparse import ArgumentParser from collections.abc import Iterable from importlib import import_module -from typing import Any, Awaitable, Callable, List, Optional, T...
16,680
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3805", "repo": "aio-libs/aiohttp", "base_commit": "21b062199ff8da1a8d48b262f3d75fb616cc275f", "pull_number": 3805, "issue_numbers": [ ...
aio-libs__aiohttp-3819
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 81cc715227f6b0f3b36ee6d8bcc95a63a37fbdab Changed files: - aiohttp/__init__.py ## Pr...
diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index 0000000..0000000 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -30,6 +30,7 @@ from .client import ( ServerFingerprintMismatch, ServerTimeoutError, TCPConnector, + TooManyRedirects, UnixConnector, WSServerHandshakeEr...
4,461
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3819", "repo": "aio-libs/aiohttp", "base_commit": "81cc715227f6b0f3b36ee6d8bcc95a63a37fbdab", "pull_number": 3819, "issue_numbers": [ ...
aio-libs__aiohttp-3860
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 4273c7fd2b7e1f7adb2d2a57434a0c23c75f8645 Changed files: - aiohttp/web_log.py ## Pro...
diff --git a/aiohttp/web_log.py b/aiohttp/web_log.py index 0000000..0000000 100644 --- a/aiohttp/web_log.py +++ b/aiohttp/web_log.py @@ -4,6 +4,7 @@ import logging import os import re from collections import namedtuple +from time import timezone from typing import Callable, Dict, Iterable, List, Tuple # noqa fr...
6,267
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-3860", "repo": "aio-libs/aiohttp", "base_commit": "4273c7fd2b7e1f7adb2d2a57434a0c23c75f8645", "pull_number": 3860, "issue_numbers": [ ...
aio-libs__aiohttp-4014
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 631fa66f0402508c5a448745d197cdb30e26ce93 Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -778,24 +778,28 @@ class TCPConnector(BaseConnector): if (key in self._cached_hosts) and \ (not self._cached_hosts.expired(key)): + # get...
30,082
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4014", "repo": "aio-libs/aiohttp", "base_commit": "631fa66f0402508c5a448745d197cdb30e26ce93", "pull_number": 4014, "issue_numbers": [ ...
aio-libs__aiohttp-4030
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: c61d2d23f6b3f1472d2298f6e7c22407bbcd2bf8 Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -798,24 +798,28 @@ class TCPConnector(BaseConnector): if (key in self._cached_hosts) and \ (not self._cached_hosts.expired(key)): + # get...
29,924
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4030", "repo": "aio-libs/aiohttp", "base_commit": "c61d2d23f6b3f1472d2298f6e7c22407bbcd2bf8", "pull_number": 4030, "issue_numbers": [ ...
aio-libs__aiohttp-4031
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0f0c3759616e5369403cd711d8ff898c28f38548 Changed files: - aiohttp/helpers.py - aioht...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -330,14 +330,41 @@ def guess_filename(obj: Any, default: Optional[str] = None) -> Optional[str]: return default +not_qtext_re = re.compile(r"[^\041\043-\133\135-\176]") +QCONT...
30,953
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4031", "repo": "aio-libs/aiohttp", "base_commit": "0f0c3759616e5369403cd711d8ff898c28f38548", "pull_number": 4031, "issue_numbers": [ ...
aio-libs__aiohttp-4040
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 21b062199ff8da1a8d48b262f3d75fb616cc275f Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -315,7 +315,7 @@ class ClientRequest: netloc = cast(str, self.url.raw_host) if helpers.is_ipv6_address(netloc): netloc = '[{}]'.f...
24,784
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4040", "repo": "aio-libs/aiohttp", "base_commit": "21b062199ff8da1a8d48b262f3d75fb616cc275f", "pull_number": 4040, "issue_numbers": [ ...
aio-libs__aiohttp-4041
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0464f8af86283a64cc5911ee3a798a36aaceddd5 Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -367,7 +367,7 @@ class ClientRequest: netloc = cast(str, self.url.raw_host) if helpers.is_ipv6_address(netloc): netloc = '[{}]'.f...
27,390
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4041", "repo": "aio-libs/aiohttp", "base_commit": "0464f8af86283a64cc5911ee3a798a36aaceddd5", "pull_number": 4041, "issue_numbers": [ ...
aio-libs__aiohttp-4046
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 88372fe17f7e47490043014c9facd90695217e1d Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -6,8 +6,8 @@ import sys from setuptools import Extension, setup -if sys.version_info < (3, 5, 3): - raise RuntimeError("aiohttp 3.x requires Python 3.5.3+") +if sys.version_info < (3, 6): + raise RuntimeError("aio...
3,913
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4046", "repo": "aio-libs/aiohttp", "base_commit": "88372fe17f7e47490043014c9facd90695217e1d", "pull_number": 4046, "issue_numbers": [ ...
aio-libs__aiohttp-4056
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: dc39183d4351c2fc87dbfa9bcf938567d754571b Changed files: - aiohttp/base_protocol.py -...
diff --git a/aiohttp/base_protocol.py b/aiohttp/base_protocol.py index 0000000..0000000 100644 --- a/aiohttp/base_protocol.py +++ b/aiohttp/base_protocol.py @@ -6,7 +6,7 @@ from .tcp_helpers import tcp_nodelay class BaseProtocol(asyncio.Protocol): __slots__ = ('_loop', '_paused', '_drain_waiter', - ...
34,325
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4056", "repo": "aio-libs/aiohttp", "base_commit": "dc39183d4351c2fc87dbfa9bcf938567d754571b", "pull_number": 4056, "issue_numbers": [ ...
aio-libs__aiohttp-4057
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 58bfa07a547d4585e543828c4706ba0dc938cad5 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,7 @@ except IndexError: install_requires = [ 'attrs>=17.3.0', 'chardet>=2.0,<4.0', - 'multidict>=4.0,<5.0', + 'multidict>=4.5,<5.0', 'async_timeout>=3.0,<4.0', 'yarl>=1.0,<2.0', 'idn...
4,759
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4057", "repo": "aio-libs/aiohttp", "base_commit": "58bfa07a547d4585e543828c4706ba0dc938cad5", "pull_number": 4057, "issue_numbers": [ ...
aio-libs__aiohttp-4058
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 58bfa07a547d4585e543828c4706ba0dc938cad5 Changed files: - aiohttp/resolver.py - setu...
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py index 0000000..0000000 100644 --- a/aiohttp/resolver.py +++ b/aiohttp/resolver.py @@ -52,10 +52,6 @@ class AsyncResolver(AbstractResolver): self._loop = get_running_loop() self._resolver = aiodns.DNSResolver(*args, loop=self._loop, **kwargs) - ...
6,149
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4058", "repo": "aio-libs/aiohttp", "base_commit": "58bfa07a547d4585e543828c4706ba0dc938cad5", "pull_number": 4058, "issue_numbers": [ ...
aio-libs__aiohttp-4120
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 969188d2e870c5528e36b0338e00707de5c6fa60 Changed files: - aiohttp/client_exceptions....
diff --git a/aiohttp/client_exceptions.py b/aiohttp/client_exceptions.py index 0000000..0000000 100644 --- a/aiohttp/client_exceptions.py +++ b/aiohttp/client_exceptions.py @@ -136,8 +136,9 @@ class ClientConnectorError(ClientOSError): return self._conn_key.ssl def __str__(self) -> str: - return ...
5,904
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4120", "repo": "aio-libs/aiohttp", "base_commit": "969188d2e870c5528e36b0338e00707de5c6fa60", "pull_number": 4120, "issue_numbers": [ ...
aio-libs__aiohttp-4188
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 62365364889981a2e5d3cd36a25240c9c38693fe Changed files: - aiohttp/client_exceptions....
diff --git a/aiohttp/client_exceptions.py b/aiohttp/client_exceptions.py index 0000000..0000000 100644 --- a/aiohttp/client_exceptions.py +++ b/aiohttp/client_exceptions.py @@ -160,11 +160,11 @@ class ServerDisconnectedError(ServerConnectionError): """Server disconnected.""" def __init__(self, message: Opti...
6,453
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4188", "repo": "aio-libs/aiohttp", "base_commit": "62365364889981a2e5d3cd36a25240c9c38693fe", "pull_number": 4188, "issue_numbers": [ ...
aio-libs__aiohttp-4193
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 62365364889981a2e5d3cd36a25240c9c38693fe Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -913,6 +913,11 @@ class ClientSession: """Do URL requoting on redirection handling.""" return self._requote_redirect_url + @property + def timeout(self) -> Union[...
27,570
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4193", "repo": "aio-libs/aiohttp", "base_commit": "62365364889981a2e5d3cd36a25240c9c38693fe", "pull_number": 4193, "issue_numbers": [ ...
aio-libs__aiohttp-4218
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 04a519ba5bd686b969b65b7cf11a3fba79be6a79 Changed files: - aiohttp/cookiejar.py - aio...
diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py index 0000000..0000000 100644 --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -124,7 +124,7 @@ class CookieJar(AbstractCookieJar): return if isinstance(cookies, Mapping): - cookies = cookies.items() # type: ignore + ...
9,651
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4218", "repo": "aio-libs/aiohttp", "base_commit": "04a519ba5bd686b969b65b7cf11a3fba79be6a79", "pull_number": 4218, "issue_numbers": [ ...
aio-libs__aiohttp-4238
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 3cf4104a80fa9ac0eb8513c44fff94444a082c15 Changed files: - aiohttp/web_response.py #...
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index 0000000..0000000 100644 --- a/aiohttp/web_response.py +++ b/aiohttp/web_response.py @@ -169,8 +169,8 @@ class StreamResponse(BaseClass, HeadersMixin): domain: Optional[str]=None, max_age: Optional[Union[int, str...
16,912
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4238", "repo": "aio-libs/aiohttp", "base_commit": "3cf4104a80fa9ac0eb8513c44fff94444a082c15", "pull_number": 4238, "issue_numbers": [ ...
aio-libs__aiohttp-4240
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 3cf4104a80fa9ac0eb8513c44fff94444a082c15 Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -14,6 +14,7 @@ from typing import ( # noqa Awaitable, Callable, Coroutine, + FrozenSet, Generator, Generic, Iterable, @@ -918,6 +919,60 @@ class ClientSes...
28,731
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4240", "repo": "aio-libs/aiohttp", "base_commit": "3cf4104a80fa9ac0eb8513c44fff94444a082c15", "pull_number": 4240, "issue_numbers": [ ...
aio-libs__aiohttp-4279
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 1ab0c31d4f0e7171326a1cccf2d2c8b848b1ad87 Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -695,7 +695,7 @@ class TCPConnector(BaseConnector): """ def __init__(self, *, - use_dns_cache: bool=True, ttl_dns_cache: int=10, + u...
29,159
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4279", "repo": "aio-libs/aiohttp", "base_commit": "1ab0c31d4f0e7171326a1cccf2d2c8b848b1ad87", "pull_number": 4279, "issue_numbers": [ ...
aio-libs__aiohttp-4375
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: e70ac6d331bb088a31349134480d4509c38234bd Changed files: - aiohttp/web_request.py - a...
diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 0000000..0000000 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -113,7 +113,7 @@ class BaseRequest(MutableMapping[str, Any], HeadersMixin): '_method', '_version', '_rel_url', '_post', '_read_bytes', '_state', '_cac...
35,150
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4375", "repo": "aio-libs/aiohttp", "base_commit": "e70ac6d331bb088a31349134480d4509c38234bd", "pull_number": 4375, "issue_numbers": [ ...
aio-libs__aiohttp-4415
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: d3219238447f09162f2c38c63ae136a94f39c594 Changed files: - aiohttp/web_protocol.py #...
diff --git a/aiohttp/web_protocol.py b/aiohttp/web_protocol.py index 0000000..0000000 100644 --- a/aiohttp/web_protocol.py +++ b/aiohttp/web_protocol.py @@ -277,6 +277,10 @@ class RequestHandler(BaseProtocol): if self._error_handler is not None: self._error_handler.cancel() + if self._tas...
15,254
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4415", "repo": "aio-libs/aiohttp", "base_commit": "d3219238447f09162f2c38c63ae136a94f39c594", "pull_number": 4415, "issue_numbers": [ ...
aio-libs__aiohttp-4481
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0b7dd579f035555df81b3f7e93aaa15e0b1c33e1 Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -938,6 +938,9 @@ class ClientResponse(HeadersMixin): if mimetype.type == 'application' and mimetype.subtype == 'json': # RFC 7159 ...
23,537
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4481", "repo": "aio-libs/aiohttp", "base_commit": "0b7dd579f035555df81b3f7e93aaa15e0b1c33e1", "pull_number": 4481, "issue_numbers": [ ...
aio-libs__aiohttp-4517
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: ec493d6cb5381d9d6867494edc28c6ff20bc8a6e Changed files: - aiohttp/web_fileresponse.p...
diff --git a/aiohttp/web_fileresponse.py b/aiohttp/web_fileresponse.py index 0000000..0000000 100644 --- a/aiohttp/web_fileresponse.py +++ b/aiohttp/web_fileresponse.py @@ -48,13 +48,14 @@ class SendfileStreamWriter(StreamWriter): protocol: BaseProtocol, loop: asyncio.AbstractEventLo...
8,802
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4517", "repo": "aio-libs/aiohttp", "base_commit": "ec493d6cb5381d9d6867494edc28c6ff20bc8a6e", "pull_number": 4517, "issue_numbers": [ ...
aio-libs__aiohttp-4535
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: be4056d8f6e643ca530b699232761e66a5f9f957 Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -5,7 +5,17 @@ import sys from argparse import ArgumentParser from collections.abc import Iterable from importlib import import_module -from typing import Any, Awaitable, Callable, List, Optional, T...
14,688
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4535", "repo": "aio-libs/aiohttp", "base_commit": "be4056d8f6e643ca530b699232761e66a5f9f957", "pull_number": 4535, "issue_numbers": [ ...
aio-libs__aiohttp-4556
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 294048432d67c85d593ab0a0bbc14b9eee559bb7 Changed files: - aiohttp/resolver.py ## Pr...
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py index 0000000..0000000 100644 --- a/aiohttp/resolver.py +++ b/aiohttp/resolver.py @@ -31,11 +31,23 @@ class ThreadedResolver(AbstractResolver): hosts = [] for family, _, proto, _, address in infos: - hosts.append( - {'h...
2,932
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4556", "repo": "aio-libs/aiohttp", "base_commit": "294048432d67c85d593ab0a0bbc14b9eee559bb7", "pull_number": 4556, "issue_numbers": [ ...
aio-libs__aiohttp-4604
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 91963c0e96bc5ea4d884cb413d2f65c637f8c4c6 Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -1130,10 +1130,10 @@ def request( total timeout by default. Usage:: >>> import aiohttp - >>> resp = await aiohttp.request('GET', 'http://python.org/') - >>> r...
29,360
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4604", "repo": "aio-libs/aiohttp", "base_commit": "91963c0e96bc5ea4d884cb413d2f65c637f8c4c6", "pull_number": 4604, "issue_numbers": [ ...
aio-libs__aiohttp-4615
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 84c8ca7dc95e71e7016fb05b25bb9257def3838d Changed files: - aiohttp/web_routedef.py #...
diff --git a/aiohttp/web_routedef.py b/aiohttp/web_routedef.py index 0000000..0000000 100644 --- a/aiohttp/web_routedef.py +++ b/aiohttp/web_routedef.py @@ -191,6 +191,9 @@ class RouteTableDef(Sequence[AbstractRouteDef]): def delete(self, path: str, **kwargs: Any) -> _Deco: return self.route(hdrs.METH_DEL...
5,216
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4615", "repo": "aio-libs/aiohttp", "base_commit": "84c8ca7dc95e71e7016fb05b25bb9257def3838d", "pull_number": 4615, "issue_numbers": [ ...
aio-libs__aiohttp-4661
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 79f47ab1e4b1c3553dd35b9d0269a7af0de396c8 Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -229,15 +229,16 @@ class ProxyInfo: def proxies_from_env() -> Dict[str, ProxyInfo]: proxy_urls = {k: URL(v) for k, v in getproxies().items() - if k in ('http',...
18,476
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4661", "repo": "aio-libs/aiohttp", "base_commit": "79f47ab1e4b1c3553dd35b9d0269a7af0de396c8", "pull_number": 4661, "issue_numbers": [ ...
aio-libs__aiohttp-4662
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 84c8ca7dc95e71e7016fb05b25bb9257def3838d Changed files: - aiohttp/pytest_plugin.py ...
diff --git a/aiohttp/pytest_plugin.py b/aiohttp/pytest_plugin.py index 0000000..0000000 100644 --- a/aiohttp/pytest_plugin.py +++ b/aiohttp/pytest_plugin.py @@ -129,6 +129,13 @@ def _runtime_warning_context(): # type: ignore '\n'.join(rw) )) + # Propagate warnings to pytest + for ...
8,112
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4662", "repo": "aio-libs/aiohttp", "base_commit": "84c8ca7dc95e71e7016fb05b25bb9257def3838d", "pull_number": 4662, "issue_numbers": [ ...
aio-libs__aiohttp-4795
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 55e649789f0806a8e2d4528df73d678f877cc913 Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -932,18 +932,27 @@ class TCPConnector(BaseConnector): sslcontext = self._get_ssl_context(req) fingerprint = self._get_fingerprint(req) + host = req.u...
30,178
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4795", "repo": "aio-libs/aiohttp", "base_commit": "55e649789f0806a8e2d4528df73d678f877cc913", "pull_number": 4795, "issue_numbers": [ ...
aio-libs__aiohttp-4813
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 55e649789f0806a8e2d4528df73d678f877cc913 Changed files: - aiohttp/web_fileresponse.p...
diff --git a/aiohttp/web_fileresponse.py b/aiohttp/web_fileresponse.py index 0000000..0000000 100644 --- a/aiohttp/web_fileresponse.py +++ b/aiohttp/web_fileresponse.py @@ -360,6 +360,9 @@ class FileResponse(StreamResponse): self.headers[hdrs.CONTENT_RANGE] = 'bytes {0}-{1}/{2}'.format( re...
9,654
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4813", "repo": "aio-libs/aiohttp", "base_commit": "55e649789f0806a8e2d4528df73d678f877cc913", "pull_number": 4813, "issue_numbers": [ ...
aio-libs__aiohttp-4873
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 6d996de12eed655f74bba378fc991f06c36a4ea7 Changed files: - aiohttp/cookiejar.py ## P...
diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py index 0000000..0000000 100644 --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -50,6 +50,9 @@ class CookieJar(AbstractCookieJar): MAX_TIME = datetime.datetime.max.replace( tzinfo=datetime.timezone.utc) + MAX_32BIT_TIME = datetime.dateti...
9,179
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4873", "repo": "aio-libs/aiohttp", "base_commit": "6d996de12eed655f74bba378fc991f06c36a4ea7", "pull_number": 4873, "issue_numbers": [ ...
aio-libs__aiohttp-4973
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 967b1b906db330ad4bbb4f0de9e4a8f80a177977 Changed files: - aiohttp/web_urldispatcher....
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py index 0000000..0000000 100644 --- a/aiohttp/web_urldispatcher.py +++ b/aiohttp/web_urldispatcher.py @@ -31,6 +31,7 @@ from typing import ( # noqa from typing_extensions import TypedDict from yarl import URL +from yarl import __version__ as ya...
29,988
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-4973", "repo": "aio-libs/aiohttp", "base_commit": "967b1b906db330ad4bbb4f0de9e4a8f80a177977", "pull_number": 4973, "issue_numbers": [ ...
aio-libs__aiohttp-5012
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 2a8828009cf60c271b4708b55c71d26339cf80b6 Changed files: - aiohttp/client_proto.py #...
diff --git a/aiohttp/client_proto.py b/aiohttp/client_proto.py index 0000000..0000000 100644 --- a/aiohttp/client_proto.py +++ b/aiohttp/client_proto.py @@ -153,6 +153,7 @@ class ResponseHandler(BaseProtocol, self._parser = HttpResponseParser( self, self._loop, timer=timer, payload_ex...
6,125
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5012", "repo": "aio-libs/aiohttp", "base_commit": "2a8828009cf60c271b4708b55c71d26339cf80b6", "pull_number": 5012, "issue_numbers": [ ...
aio-libs__aiohttp-5050
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: fea5244a41a8923fdb751432b570b2bb4802f8e3 Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -954,18 +954,27 @@ class TCPConnector(BaseConnector): sslcontext = self._get_ssl_context(req) fingerprint = self._get_fingerprint(req) + host = req.u...
30,753
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5050", "repo": "aio-libs/aiohttp", "base_commit": "fea5244a41a8923fdb751432b570b2bb4802f8e3", "pull_number": 5050, "issue_numbers": [ ...
aio-libs__aiohttp-5051
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0c85bb29c00929c85a10faee3cdcaa472f1a60bb Changed files: - aiohttp/web_urldispatcher....
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py index 0000000..0000000 100644 --- a/aiohttp/web_urldispatcher.py +++ b/aiohttp/web_urldispatcher.py @@ -981,7 +981,11 @@ class UrlDispatcher(AbstractRouter, Mapping[str, AbstractResource]): if name is not None: parts = self.N...
29,067
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5051", "repo": "aio-libs/aiohttp", "base_commit": "0c85bb29c00929c85a10faee3cdcaa472f1a60bb", "pull_number": 5051, "issue_numbers": [ ...
aio-libs__aiohttp-5064
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: f19f1f4c42ebba28f3283941fd39486cc530617f Changed files: - aiohttp/web_response.py #...
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index 0000000..0000000 100644 --- a/aiohttp/web_response.py +++ b/aiohttp/web_response.py @@ -346,19 +346,29 @@ class StreamResponse(BaseClass, HeadersMixin): if self._payload_writer is not None: return self._payload_writer - ...
18,636
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5064", "repo": "aio-libs/aiohttp", "base_commit": "f19f1f4c42ebba28f3283941fd39486cc530617f", "pull_number": 5064, "issue_numbers": [ ...
aio-libs__aiohttp-5072
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: ecaf3423b44ee811681378771d8224a9f44263f9 Changed files: - aiohttp/web_request.py ##...
diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 0000000..0000000 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -620,7 +620,12 @@ class BaseRequest(MutableMapping[str, Any], HeadersMixin): if isinstance(field, BodyPartReader): assert field....
18,581
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5072", "repo": "aio-libs/aiohttp", "base_commit": "ecaf3423b44ee811681378771d8224a9f44263f9", "pull_number": 5072, "issue_numbers": [ ...
aio-libs__aiohttp-5077
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: d9f0f4d603c19a19e53f2956eb1b929a0ba2b364 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ except IndexError: install_requires = [ 'attrs>=17.3.0', 'chardet>=2.0,<4.0', - 'multidict>=4.5,<6.0', + 'multidict>=4.5', 'async_timeout>=4.0a2,<5.0', 'yarl>=1.0,<2.0', 'idna-s...
3,618
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5077", "repo": "aio-libs/aiohttp", "base_commit": "d9f0f4d603c19a19e53f2956eb1b929a0ba2b364", "pull_number": 5077, "issue_numbers": [ ...
aio-libs__aiohttp-5091
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 860743c1ee862f727c62cecd0010889eaa14c8cd Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -515,10 +515,10 @@ def _weakref_handle(info): # type: ignore getattr(ob, name)() -def weakref_handle(ob, name, timeout, loop, ceil_timeout=True): # type: ignore +def...
20,523
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5091", "repo": "aio-libs/aiohttp", "base_commit": "860743c1ee862f727c62cecd0010889eaa14c8cd", "pull_number": 5091, "issue_numbers": [ ...
aio-libs__aiohttp-5095
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: a8d9ec3f1667463e80545b1cacc7833d1ff305e9 Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -292,6 +292,7 @@ async def _run_app( path: Optional[str] = None, sock: Optional[socket.socket] = None, shutdown_timeout: float = 60.0, + keepalive_timeout: float = 75.0, ssl_con...
12,657
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5095", "repo": "aio-libs/aiohttp", "base_commit": "a8d9ec3f1667463e80545b1cacc7833d1ff305e9", "pull_number": 5095, "issue_numbers": [ ...
aio-libs__aiohttp-5118
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: db3db675b4fe4e67ac702b7f3c725cf454db7a3c Changed files: - aiohttp/resolver.py ## Pr...
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py index 0000000..0000000 100644 --- a/aiohttp/resolver.py +++ b/aiohttp/resolver.py @@ -25,10 +25,10 @@ class ThreadedResolver(AbstractResolver): self._loop = get_running_loop() async def resolve( - self, host: str, port: int = 0, family: int =...
4,239
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5118", "repo": "aio-libs/aiohttp", "base_commit": "db3db675b4fe4e67ac702b7f3c725cf454db7a3c", "pull_number": 5118, "issue_numbers": [ ...
aio-libs__aiohttp-5119
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 99f1d29306f80c4243718d283cf16459202df13e Changed files: - aiohttp/web_response.py #...
diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index 0000000..0000000 100644 --- a/aiohttp/web_response.py +++ b/aiohttp/web_response.py @@ -426,6 +426,10 @@ class StreamResponse(BaseClass, HeadersMixin): del headers[hdrs.CONTENT_LENGTH] else: ...
19,780
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5119", "repo": "aio-libs/aiohttp", "base_commit": "99f1d29306f80c4243718d283cf16459202df13e", "pull_number": 5119, "issue_numbers": [ ...
aio-libs__aiohttp-5121
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0353589c8d29ab6ea8f4cc0791d8fd402714fe2f Changed files: - aiohttp/resolver.py ## Pr...
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py index 0000000..0000000 100644 --- a/aiohttp/resolver.py +++ b/aiohttp/resolver.py @@ -26,10 +26,10 @@ class ThreadedResolver(AbstractResolver): self._loop = get_running_loop(loop) async def resolve( - self, host: str, port: int = 0, family: i...
5,161
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5121", "repo": "aio-libs/aiohttp", "base_commit": "0353589c8d29ab6ea8f4cc0791d8fd402714fe2f", "pull_number": 5121, "issue_numbers": [ ...
aio-libs__aiohttp-5123
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 70d86773f29dad60c4709f3fdc4a86ec23fe27a4 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ install_requires = [ "async_timeout>=3.0,<4.0", "yarl>=1.0,<2.0", 'idna-ssl>=1.0; python_version<"3.7"', - 'typing_extensions>=3.6.5; python_version<"3.7"', + "typing_extensions>=3.6.5", ...
4,287
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5123", "repo": "aio-libs/aiohttp", "base_commit": "70d86773f29dad60c4709f3fdc4a86ec23fe27a4", "pull_number": 5123, "issue_numbers": [ ...
aio-libs__aiohttp-5125
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 6fed31f1044001bba2e792587fc46ef233c862e1 Changed files: - aiohttp/web_fileresponse.p...
diff --git a/aiohttp/web_fileresponse.py b/aiohttp/web_fileresponse.py index 0000000..0000000 100644 --- a/aiohttp/web_fileresponse.py +++ b/aiohttp/web_fileresponse.py @@ -98,7 +98,13 @@ class SendfileStreamWriter(StreamWriter): if hasattr(loop, "sendfile"): # Python 3.7+ self.transp...
9,692
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5125", "repo": "aio-libs/aiohttp", "base_commit": "6fed31f1044001bba2e792587fc46ef233c862e1", "pull_number": 5125, "issue_numbers": [ ...
aio-libs__aiohttp-5130
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 07c58675ea619cabd6438f21cfc7edabc5a2c0ea Changed files: - aiohttp/web.py ## Problem...
diff --git a/aiohttp/web.py b/aiohttp/web.py index 0000000..0000000 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -420,7 +420,7 @@ async def _run_app( # sleep forever by 1 hour intervals, # on Windows before Python 3.8 wake up every 1 second to handle # Ctrl+C smoothly - if sys.p...
13,163
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5130", "repo": "aio-libs/aiohttp", "base_commit": "07c58675ea619cabd6438f21cfc7edabc5a2c0ea", "pull_number": 5130, "issue_numbers": [ ...
aio-libs__aiohttp-5157
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 21805dc1d3b42b2af7f22e227cef8cb4bd6705ff Changed files: - aiohttp/web_fileresponse.p...
diff --git a/aiohttp/web_fileresponse.py b/aiohttp/web_fileresponse.py index 0000000..0000000 100644 --- a/aiohttp/web_fileresponse.py +++ b/aiohttp/web_fileresponse.py @@ -2,7 +2,7 @@ import asyncio import mimetypes import os import pathlib -from functools import partial +import sys from typing import ( # noqa ...
8,648
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5157", "repo": "aio-libs/aiohttp", "base_commit": "21805dc1d3b42b2af7f22e227cef8cb4bd6705ff", "pull_number": 5157, "issue_numbers": [ ...
aio-libs__aiohttp-5165
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 3c02a71d07ba9e63e485bb05cc2aba1559d02d0b Changed files: - aiohttp/multipart.py ## P...
diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py index 0000000..0000000 100644 --- a/aiohttp/multipart.py +++ b/aiohttp/multipart.py @@ -10,6 +10,7 @@ from types import TracebackType from typing import ( TYPE_CHECKING, Any, + AsyncIterator, Dict, Iterator, List, @@ -271,7 +272,7 @@ ...
26,376
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5165", "repo": "aio-libs/aiohttp", "base_commit": "3c02a71d07ba9e63e485bb05cc2aba1559d02d0b", "pull_number": 5165, "issue_numbers": [ ...
aio-libs__aiohttp-5176
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: a2dad92d17a02c0d3361cc2488ede58766446a4b Changed files: - aiohttp/resolver.py ## Pr...
diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py index 0000000..0000000 100644 --- a/aiohttp/resolver.py +++ b/aiohttp/resolver.py @@ -28,7 +28,11 @@ class ThreadedResolver(AbstractResolver): self, hostname: str, port: int = 0, family: int = socket.AF_INET ) -> List[Dict[str, Any]]: infos =...
7,366
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5176", "repo": "aio-libs/aiohttp", "base_commit": "a2dad92d17a02c0d3361cc2488ede58766446a4b", "pull_number": 5176, "issue_numbers": [ ...
aio-libs__aiohttp-5198
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: db1a2cd5b85c81eec5d68342379b603eff4869be Changed files: - aiohttp/client_ws.py - aio...
diff --git a/aiohttp/client_ws.py b/aiohttp/client_ws.py index 0000000..0000000 100644 --- a/aiohttp/client_ws.py +++ b/aiohttp/client_ws.py @@ -13,6 +13,7 @@ from .http import ( WS_CLOSED_MESSAGE, WS_CLOSING_MESSAGE, WebSocketError, + WSCloseCode, WSMessage, WSMsgType, ) @@ -109,7 +110,7 @...
35,822
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5198", "repo": "aio-libs/aiohttp", "base_commit": "db1a2cd5b85c81eec5d68342379b603eff4869be", "pull_number": 5198, "issue_numbers": [ ...
aio-libs__aiohttp-5249
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: e18c47f8a7801a70daf9728c6aaf30fe15b5078b Changed files: - aiohttp/abc.py - aiohttp/c...
diff --git a/aiohttp/abc.py b/aiohttp/abc.py index 0000000..0000000 100644 --- a/aiohttp/abc.py +++ b/aiohttp/abc.py @@ -133,12 +133,19 @@ else: IterableBase = Iterable +ClearCookiePredicate = Callable[["Morsel[str]"], bool] + + class AbstractCookieJar(Sized, IterableBase): """Abstract Cookie Jar.""" ...
14,300
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5249", "repo": "aio-libs/aiohttp", "base_commit": "e18c47f8a7801a70daf9728c6aaf30fe15b5078b", "pull_number": 5249, "issue_numbers": [ ...
aio-libs__aiohttp-5263
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 213be2269894d5dfab2dfc7e2da48071d1eb8a52 Changed files: - aiohttp/web_app.py - aioht...
diff --git a/aiohttp/web_app.py b/aiohttp/web_app.py index 0000000..0000000 100644 --- a/aiohttp/web_app.py +++ b/aiohttp/web_app.py @@ -318,7 +318,11 @@ class Application(MutableMapping[str, Any]): Should be called after shutdown() """ - await self.on_cleanup.send(self) + if self.on_c...
18,836
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5263", "repo": "aio-libs/aiohttp", "base_commit": "213be2269894d5dfab2dfc7e2da48071d1eb8a52", "pull_number": 5263, "issue_numbers": [ ...
aio-libs__aiohttp-5285
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 9815a7d13a07622a8be3b203fe14c66653453d0b Changed files: - aiohttp/connector.py ## P...
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 0000000..0000000 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -526,8 +526,14 @@ class BaseConnector: await trace.send_connection_create_end() else: if traces: + # Acquire the conne...
31,121
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5285", "repo": "aio-libs/aiohttp", "base_commit": "9815a7d13a07622a8be3b203fe14c66653453d0b", "pull_number": 5285, "issue_numbers": [ ...
aio-libs__aiohttp-5364
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 883dc3db8d93fe402dd32c277e67131a80593948 Changed files: - setup.py ## Problem state...
diff --git a/setup.py b/setup.py index 0000000..0000000 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ if sys.implementation.name != "cpython": NO_EXTENSIONS = True -if IS_GIT_REPO and not (HERE / "vendor/http-parser/README.md").exists(): +if IS_GIT_REPO and not (HERE / "vendor/llhttp/README.md").exist...
3,816
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5364", "repo": "aio-libs/aiohttp", "base_commit": "883dc3db8d93fe402dd32c277e67131a80593948", "pull_number": 5364, "issue_numbers": [ ...
aio-libs__aiohttp-5393
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: c091db813c01e48140bc8146d3ca1d80bb1e9578 Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -245,7 +245,7 @@ class ClientRequest: self.update_proxy(proxy, proxy_auth, proxy_headers) self.update_body_from_data(data) - if data ...
26,135
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5393", "repo": "aio-libs/aiohttp", "base_commit": "c091db813c01e48140bc8146d3ca1d80bb1e9578", "pull_number": 5393, "issue_numbers": [ ...
aio-libs__aiohttp-5404
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 3401bef59608e8ae2a7ba93bc6ddb2abc7029c0f Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -923,14 +923,10 @@ class ClientResponse(HeadersMixin): This is **not** a check for ``200 OK`` but a check that the response status is under 40...
27,047
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5404", "repo": "aio-libs/aiohttp", "base_commit": "3401bef59608e8ae2a7ba93bc6ddb2abc7029c0f", "pull_number": 5404, "issue_numbers": [ ...
aio-libs__aiohttp-5407
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: f086e92467d81cf5f3a4c7ddf2d8e56d1d1a5ee2 Changed files: - aiohttp/client_reqrep.py ...
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 0000000..0000000 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -995,14 +995,10 @@ class ClientResponse(HeadersMixin): This is **not** a check for ``200 OK`` but a check that the response status is under 40...
28,871
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5407", "repo": "aio-libs/aiohttp", "base_commit": "f086e92467d81cf5f3a4c7ddf2d8e56d1d1a5ee2", "pull_number": 5407, "issue_numbers": [ ...
aio-libs__aiohttp-5529
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 0b2e8a27e52bcaf8ea879fb67501b63c640118de Changed files: - aiohttp/helpers.py ## Pro...
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 0000000..0000000 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -671,15 +671,15 @@ class TimerContext(BaseTimerContext): def ceil_timeout(delay: Optional[float]) -> async_timeout.Timeout: - if delay is None: + if delay is None or delay <...
20,278
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5529", "repo": "aio-libs/aiohttp", "base_commit": "0b2e8a27e52bcaf8ea879fb67501b63c640118de", "pull_number": 5529, "issue_numbers": [ ...
aio-libs__aiohttp-5534
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 9220703948df682bdce1ebcb3a555ea85e5ed6a1 Changed files: - aiohttp/web_urldispatcher....
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py index 0000000..0000000 100644 --- a/aiohttp/web_urldispatcher.py +++ b/aiohttp/web_urldispatcher.py @@ -495,6 +495,7 @@ class PrefixResource(AbstractResource): assert prefix in ("", "/") or not prefix.endswith("/"), prefix super(...
30,844
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5534", "repo": "aio-libs/aiohttp", "base_commit": "9220703948df682bdce1ebcb3a555ea85e5ed6a1", "pull_number": 5534, "issue_numbers": [ ...
aio-libs__aiohttp-5556
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 8090594b92090d910e40d6815f351725f1b202bb Changed files: - aiohttp/client.py - aiohtt...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -8,6 +8,7 @@ import os import sys import traceback import warnings +from contextlib import suppress from types import SimpleNamespace, TracebackType from typing import ( Any, @@ ...
50,304
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5556", "repo": "aio-libs/aiohttp", "base_commit": "8090594b92090d910e40d6815f351725f1b202bb", "pull_number": 5556, "issue_numbers": [ ...
aio-libs__aiohttp-5678
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 4d58400477331704132cc9427d66699e5815ee25 Changed files: - docs/conf.py ## Problem s...
diff --git a/docs/conf.py b/docs/conf.py index 0000000..0000000 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,7 +146,6 @@ html_theme = "aiohttp_theme" # further. For a list of options available for each theme, see the # documentation. html_theme_options = { - "logo": "aiohttp-icon-128x128.png", "desc...
9,074
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5678", "repo": "aio-libs/aiohttp", "base_commit": "4d58400477331704132cc9427d66699e5815ee25", "pull_number": 5678, "issue_numbers": [ ...
aio-libs__aiohttp-5712
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 991a189bdd0dd2a8228b9057c5971a68cba58865 Changed files: - docs/conf.py ## Problem s...
diff --git a/docs/conf.py b/docs/conf.py index 0000000..0000000 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,7 +146,6 @@ html_theme = "aiohttp_theme" # further. For a list of options available for each theme, see the # documentation. html_theme_options = { - "logo": "aiohttp-icon-128x128.png", "desc...
8,995
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5712", "repo": "aio-libs/aiohttp", "base_commit": "991a189bdd0dd2a8228b9057c5971a68cba58865", "pull_number": 5712, "issue_numbers": [ ...
aio-libs__aiohttp-5774
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 4af3d4af7408d5dd3ce416d54c82a82c4224c6d3 Changed files: - docs/conf.py ## Problem s...
diff --git a/docs/conf.py b/docs/conf.py index 0000000..0000000 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -351,7 +351,7 @@ texinfo_documents = [ # ------------------------------------------------------------------------- -# nitpicky = True +nitpicky = True nitpick_ignore = [ ("py:mod", "aiohttp"), # u...
18,329
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5774", "repo": "aio-libs/aiohttp", "base_commit": "4af3d4af7408d5dd3ce416d54c82a82c4224c6d3", "pull_number": 5774, "issue_numbers": [ ...
aio-libs__aiohttp-5780
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 8c2061138b38559b64dcd8be3b869c32369c5fa3 Changed files: - docs/conf.py ## Problem s...
diff --git a/docs/conf.py b/docs/conf.py index 0000000..0000000 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -351,7 +351,7 @@ texinfo_documents = [ # ------------------------------------------------------------------------- -# nitpicky = True +nitpicky = True nitpick_ignore = [ ("py:mod", "aiohttp"), # u...
18,808
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5780", "repo": "aio-libs/aiohttp", "base_commit": "8c2061138b38559b64dcd8be3b869c32369c5fa3", "pull_number": 5780, "issue_numbers": [ ...
aio-libs__aiohttp-5839
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: ccb9c0f2dca226945ca064434dc134868c0b8077 Changed files: - aiohttp/cookiejar.py ## P...
diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py index 0000000..0000000 100644 --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -1,4 +1,5 @@ import asyncio +import contextlib import datetime import os # noqa import pathlib @@ -12,6 +13,7 @@ from typing import ( # noqa Dict, Iterable, ...
12,704
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5839", "repo": "aio-libs/aiohttp", "base_commit": "ccb9c0f2dca226945ca064434dc134868c0b8077", "pull_number": 5839, "issue_numbers": [ ...
aio-libs__aiohttp-5848
You are given a GitHub issue and the relevant repository files before and after the fix. Your task is to synthesize the unified git diff that transforms the before files into the after files. Repository: aio-libs/aiohttp Base commit: 3d73221072c350d973b2fb0c54c78ad30863d433 Changed files: - aiohttp/client.py ## Prob...
diff --git a/aiohttp/client.py b/aiohttp/client.py index 0000000..0000000 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -566,7 +566,16 @@ class ClientSession: elif not scheme: parsed_url = url.join(parsed_url) - if url.origin() !...
32,372
{ "dataset": "internlm/SWE-Fixer-Train-110K-diff", "source_dataset": "internlm/SWE-Fixer-Train-110K", "task": "before_after_to_diff", "instance_id": "aio-libs__aiohttp-5848", "repo": "aio-libs/aiohttp", "base_commit": "3d73221072c350d973b2fb0c54c78ad30863d433", "pull_number": 5848, "issue_numbers": [ ...