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-446 | 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: 2028c3ee1c7e2c9e88db72ac0f17e749eea26f87
Changed files:
- aiohttp/server.py
## Prob... | diff --git a/aiohttp/server.py b/aiohttp/server.py
index 0000000..0000000 100644
--- a/aiohttp/server.py
+++ b/aiohttp/server.py
@@ -275,7 +275,7 @@ class ServerHttpProtocol(aiohttp.StreamProtocol):
if self.debug:
self.log_exception(
'Ignored premature clie... | 9,230 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-446",
"repo": "aio-libs/aiohttp",
"base_commit": "2028c3ee1c7e2c9e88db72ac0f17e749eea26f87",
"pull_number": 446,
"issue_numbers": [
... |
aio-libs__aiohttp-484 | 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: d18762764cecda58f9b391f78d681e411b40c651
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
@@ -174,8 +174,8 @@ class ClientRequest:
else:
query = params
- self.path = urllib.parse.urlunsplit(
- ('', '', u... | 28,170 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-484",
"repo": "aio-libs/aiohttp",
"base_commit": "d18762764cecda58f9b391f78d681e411b40c651",
"pull_number": 484,
"issue_numbers": [
... |
aio-libs__aiohttp-488 | 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: 755a232fd03d23773a255aa3fd74d7d9fc4b9d66
Changed files:
- aiohttp/web_reqrep.py
## ... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index 0000000..0000000 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -24,7 +24,7 @@ from .multidict import (CIMultiDictProxy,
CIMultiDict,
MultiDictProxy,
MultiDict)
... | 17,505 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-488",
"repo": "aio-libs/aiohttp",
"base_commit": "755a232fd03d23773a255aa3fd74d7d9fc4b9d66",
"pull_number": 488,
"issue_numbers": [
... |
aio-libs__aiohttp-493 | 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: c533d9790ce2d9e6cb64ec45ec97e25536a21b1f
Changed files:
- aiohttp/web_reqrep.py
## ... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index 0000000..0000000 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -173,7 +173,8 @@ class Request(dict, HeadersMixin):
@reify
def _splitted_path(self):
- return urlsplit(self._path_qs)
+ url = '{}://{}{}'.format(s... | 17,020 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-493",
"repo": "aio-libs/aiohttp",
"base_commit": "c533d9790ce2d9e6cb64ec45ec97e25536a21b1f",
"pull_number": 493,
"issue_numbers": [
... |
aio-libs__aiohttp-549 | 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: 04191d9e44bd55a25be516fb246986141a5bdea5
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
@@ -583,6 +583,10 @@ class ClientResponse:
self.content = self.flow_control_class(
connection.reader, loop=connection.loop)
+ def _need_... | 17,559 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-549",
"repo": "aio-libs/aiohttp",
"base_commit": "04191d9e44bd55a25be516fb246986141a5bdea5",
"pull_number": 549,
"issue_numbers": [
... |
aio-libs__aiohttp-569 | 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: 7c38deb7c709be6c69962002c133e2781512724b
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
@@ -239,7 +239,7 @@ def atoms(message, environ, response, transport, request_time):
if transport is not None:
remote_addr = parse_remote_addr(
- transport.get_e... | 8,775 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-569",
"repo": "aio-libs/aiohttp",
"base_commit": "7c38deb7c709be6c69962002c133e2781512724b",
"pull_number": 569,
"issue_numbers": [
... |
aio-libs__aiohttp-572 | 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: 649a50931b61c1017bbc1b65d7337b704227b8d1
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
@@ -1,10 +1,12 @@
"""Various helper functions"""
import base64
+import datetime
+import functools
import io
import os
+import re
from urllib.parse import quote, urlencode
from colle... | 38,276 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-572",
"repo": "aio-libs/aiohttp",
"base_commit": "649a50931b61c1017bbc1b65d7337b704227b8d1",
"pull_number": 572,
"issue_numbers": [
... |
aio-libs__aiohttp-599 | 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: 86faf1b42fc21aaae56199f517699388c1e6715c
Changed files:
- aiohttp/web_reqrep.py
## ... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index 0000000..0000000 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -26,7 +26,9 @@ from .protocol import Response as ResponseImpl, HttpVersion10, HttpVersion11
from .streams import EOF_MARKER
-__all__ = ('ContentCoding', 'Request', 'St... | 19,080 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-599",
"repo": "aio-libs/aiohttp",
"base_commit": "86faf1b42fc21aaae56199f517699388c1e6715c",
"pull_number": 599,
"issue_numbers": [
... |
aio-libs__aiohttp-649 | 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: 0e4f91e3d07cbc9003621fb707d328e2c9be8cc8
Changed files:
- aiohttp/wsgi.py
## Proble... | diff --git a/aiohttp/wsgi.py b/aiohttp/wsgi.py
index 0000000..0000000 100644
--- a/aiohttp/wsgi.py
+++ b/aiohttp/wsgi.py
@@ -66,9 +66,7 @@ class WSGIServerHttpProtocol(server.ServerHttpProtocol):
script_name = self.SCRIPT_NAME
for hdr_name, hdr_value in message.headers.items():
- if hdr_n... | 5,081 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-649",
"repo": "aio-libs/aiohttp",
"base_commit": "0e4f91e3d07cbc9003621fb707d328e2c9be8cc8",
"pull_number": 649,
"issue_numbers": [
... |
aio-libs__aiohttp-654 | 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: dad000e9ac4ef0c706df7a3397e977fc782a2907
Changed files:
- aiohttp/wsgi.py
## Proble... | diff --git a/aiohttp/wsgi.py b/aiohttp/wsgi.py
index 0000000..0000000 100644
--- a/aiohttp/wsgi.py
+++ b/aiohttp/wsgi.py
@@ -88,16 +88,22 @@ class WSGIServerHttpProtocol(server.ServerHttpProtocol):
# http://www.ietf.org/rfc/rfc3875
remote = self.transport.get_extra_info('peername')
- environ[... | 5,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-654",
"repo": "aio-libs/aiohttp",
"base_commit": "dad000e9ac4ef0c706df7a3397e977fc782a2907",
"pull_number": 654,
"issue_numbers": [
... |
aio-libs__aiohttp-687 | 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: 66c42342a4db7fcec4ec8c8604360f705b5ba664
Changed files:
- aiohttp/websocket.py
## P... | diff --git a/aiohttp/websocket.py b/aiohttp/websocket.py
index 0000000..0000000 100644
--- a/aiohttp/websocket.py
+++ b/aiohttp/websocket.py
@@ -6,6 +6,7 @@ import collections
import hashlib
import os
import random
+import sys
from struct import Struct
from aiohttp import errors, hdrs
@@ -172,6 +173,9 @@ def Web... | 11,031 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-687",
"repo": "aio-libs/aiohttp",
"base_commit": "66c42342a4db7fcec4ec8c8604360f705b5ba664",
"pull_number": 687,
"issue_numbers": [
... |
aio-libs__aiohttp-783 | 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: 513c0e6623ef0ffbd73cc2cf198ed8664ebf28e0
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
@@ -440,7 +440,10 @@ class StaticRoute(Route):
self._prefix = prefix
self._prefix_len = len(self._prefix)
try:
- ... | 18,378 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-783",
"repo": "aio-libs/aiohttp",
"base_commit": "513c0e6623ef0ffbd73cc2cf198ed8664ebf28e0",
"pull_number": 783,
"issue_numbers": [
... |
aio-libs__aiohttp-807 | 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: bcd4a8555e9ab3e9fa144560243f902a331b7cba
Changed files:
- aiohttp/protocol.py
- aioh... | diff --git a/aiohttp/protocol.py b/aiohttp/protocol.py
index 0000000..0000000 100644
--- a/aiohttp/protocol.py
+++ b/aiohttp/protocol.py
@@ -286,7 +286,8 @@ class HttpPayloadParser:
length = 8
# payload decompression wrapper
- if self.compression and self.message.compression:
+ if ... | 41,361 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-807",
"repo": "aio-libs/aiohttp",
"base_commit": "bcd4a8555e9ab3e9fa144560243f902a331b7cba",
"pull_number": 807,
"issue_numbers": [
... |
aio-libs__aiohttp-861 | 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: 024f6e19833d6da8f1e8afd0775052303ea07fd0
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
@@ -297,27 +297,33 @@ class BaseConnector(object):
# This connection will now count towards the limit.
waiters.append(fut)
- yield from fut
... | 18,303 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-861",
"repo": "aio-libs/aiohttp",
"base_commit": "024f6e19833d6da8f1e8afd0775052303ea07fd0",
"pull_number": 861,
"issue_numbers": [
... |
aio-libs__aiohttp-881 | 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: 15cdce80dc960ad48196f381ae5bfb3573dee1d4
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
@@ -510,6 +510,7 @@ class MultipartReader(object):
self._content = content
self._last_part = None
self._at_eof = False
+ self._at_bof = True
... | 21,790 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-881",
"repo": "aio-libs/aiohttp",
"base_commit": "15cdce80dc960ad48196f381ae5bfb3573dee1d4",
"pull_number": 881,
"issue_numbers": [
... |
aio-libs__aiohttp-908 | 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: 8cf1a33c772836414f6cb81c9b5934866e88c0c4
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
@@ -694,6 +694,12 @@ class ClientResponse:
self._connection = None
self._cleanup_writer()
+ def raise_for_status(self):
+ ... | 17,746 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-908",
"repo": "aio-libs/aiohttp",
"base_commit": "8cf1a33c772836414f6cb81c9b5934866e88c0c4",
"pull_number": 908,
"issue_numbers": [
... |
aio-libs__aiohttp-912 | 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: 85cea23aa69682ab6e13b306edb3917c06c572b9
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
@@ -333,6 +333,8 @@ class AccessLogger:
@staticmethod
def _format_i(key, args):
+ if not args[0]:
+ return '(no headers)'
return args[0].headers.get... | 28,859 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-912",
"repo": "aio-libs/aiohttp",
"base_commit": "85cea23aa69682ab6e13b306edb3917c06c572b9",
"pull_number": 912,
"issue_numbers": [
... |
aio-libs__aiohttp-916 | 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: 1f8e01297d5b9ee043fe532ea29057edd723a642
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
@@ -105,11 +105,12 @@ class FormData:
"""Helper class for multipart/form-data and
application/x-www-form-urlencoded body generation."""
- def __init__(self, fields=()):
+ ... | 41,860 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-916",
"repo": "aio-libs/aiohttp",
"base_commit": "1f8e01297d5b9ee043fe532ea29057edd723a642",
"pull_number": 916,
"issue_numbers": [
... |
aio-libs__aiohttp-970 | 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: 054a0f664487fcde3dbc7c45d6cec75ddcec3a24
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
@@ -561,7 +561,7 @@ class Timeout:
if exc_type is asyncio.CancelledError and self._cancelled:
self._cancel_handler = None
self._task = None
- ... | 20,818 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-970",
"repo": "aio-libs/aiohttp",
"base_commit": "054a0f664487fcde3dbc7c45d6cec75ddcec3a24",
"pull_number": 970,
"issue_numbers": [
... |
aio-libs__aiohttp-984 | 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: 328bb368cc08240ef8c995bcc36ba0b694fe79ca
Changed files:
- aiohttp/web_ws.py
- aiohtt... | diff --git a/aiohttp/web_ws.py b/aiohttp/web_ws.py
index 0000000..0000000 100644
--- a/aiohttp/web_ws.py
+++ b/aiohttp/web_ws.py
@@ -154,6 +154,9 @@ class WebSocketResponse(StreamResponse):
type(data))
self._writer.send(data, binary=True)
+ def send_json(self, data, *, dumps=j... | 11,181 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-984",
"repo": "aio-libs/aiohttp",
"base_commit": "328bb368cc08240ef8c995bcc36ba0b694fe79ca",
"pull_number": 984,
"issue_numbers": [
... |
aio-libs__aiohttp-989 | 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: 328bb368cc08240ef8c995bcc36ba0b694fe79ca
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
@@ -738,3 +738,33 @@ class UrlDispatcher(AbstractRouter, collections.abc.Mapping):
response_factory=response_factory)
... | 16,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-989",
"repo": "aio-libs/aiohttp",
"base_commit": "328bb368cc08240ef8c995bcc36ba0b694fe79ca",
"pull_number": 989,
"issue_numbers": [
... |
aio-libs__aiohttp-1074 | 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: 44d4b27917afae065f264c5118bf0eead86856d4
Changed files:
- aiohttp/web_reqrep.py
## ... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index 0000000..0000000 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -16,7 +16,7 @@ from urllib.parse import parse_qsl, unquote, urlsplit
from multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy
-from . import hdrs... | 20,246 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1074",
"repo": "aio-libs/aiohttp",
"base_commit": "44d4b27917afae065f264c5118bf0eead86856d4",
"pull_number": 1074,
"issue_numbers": [
... |
aio-libs__aiohttp-1080 | 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: c9660ab6b8a84d8b9ab219de83367822908c43ad
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
@@ -741,6 +741,9 @@ class CookieJar(AbstractCookieJar):
@staticmethod
def _is_path_match(req_path, cookie_path):
"""Implements path matching adhering to RFC 6265."""
+ ... | 20,634 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1080",
"repo": "aio-libs/aiohttp",
"base_commit": "c9660ab6b8a84d8b9ab219de83367822908c43ad",
"pull_number": 1080,
"issue_numbers": [
... |
aio-libs__aiohttp-1117 | 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: eb87b1972096359c36c6440eb2a639b91f6de4bd
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
@@ -2,19 +2,24 @@
import asyncio
import os
+import re
import signal
import ssl
import sys
import gunicorn.workers.base as base
-from aiohttp.helpers import ensure_future
+from gun... | 5,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-1117",
"repo": "aio-libs/aiohttp",
"base_commit": "eb87b1972096359c36c6440eb2a639b91f6de4bd",
"pull_number": 1117,
"issue_numbers": [
... |
aio-libs__aiohttp-1124 | 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: 19c0f3151739b8a0ce02f7c3e39b00ff9d18a074
Changed files:
- aiohttp/web_reqrep.py
## ... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index 0000000..0000000 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -417,6 +417,8 @@ class StreamResponse(HeadersMixin):
if headers is not None:
self._headers.extend(headers)
+ self._parse_content_type(self._h... | 19,505 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1124",
"repo": "aio-libs/aiohttp",
"base_commit": "19c0f3151739b8a0ce02f7c3e39b00ff9d18a074",
"pull_number": 1124,
"issue_numbers": [
... |
aio-libs__aiohttp-1150 | 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: 34c3647b7e90cddbb6ae5eb51835e8d153ad4343
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
@@ -284,7 +284,8 @@ class ClientRequest:
if hdrs.CONTENT_LENGTH not in self.headers and not self.chunked:
self.headers[hdrs.CONTENT_L... | 31,081 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1150",
"repo": "aio-libs/aiohttp",
"base_commit": "34c3647b7e90cddbb6ae5eb51835e8d153ad4343",
"pull_number": 1150,
"issue_numbers": [
... |
aio-libs__aiohttp-1157 | 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: 0d57f70a7b45b2852184e15f49f437e4335c4510
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
@@ -1,6 +1,7 @@
"""Async gunicorn worker for aiohttp.web"""
import asyncio
+import logging
import os
import re
import signal
@@ -47,11 +48,16 @@ class GunicornWebWorker(base.Worker):
... | 5,562 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1157",
"repo": "aio-libs/aiohttp",
"base_commit": "0d57f70a7b45b2852184e15f49f437e4335c4510",
"pull_number": 1157,
"issue_numbers": [
... |
aio-libs__aiohttp-1161 | 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: 0199e4a6673967381cb9917edfd7f15244368865
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
@@ -479,7 +479,7 @@ class StaticRoute(Route):
@asyncio.coroutine
def handle(self, request):
- filename = request.match_info['fil... | 18,514 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1161",
"repo": "aio-libs/aiohttp",
"base_commit": "0199e4a6673967381cb9917edfd7f15244368865",
"pull_number": 1161,
"issue_numbers": [
... |
aio-libs__aiohttp-1169 | 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: 0199e4a6673967381cb9917edfd7f15244368865
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
@@ -443,7 +443,7 @@ class BodyPartReader(object):
Supports ``gzip``, ``deflate`` and ``identity`` encodings for
`Content-Encoding` header.
- Supports ``... | 22,170 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1169",
"repo": "aio-libs/aiohttp",
"base_commit": "0199e4a6673967381cb9917edfd7f15244368865",
"pull_number": 1169,
"issue_numbers": [
... |
aio-libs__aiohttp-1170 | 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: 908c9841fd4ed613c8305750d35521d6c8383f92
Changed files:
- aiohttp/__init__.py
- aioh... | diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py
index 0000000..0000000 100644
--- a/aiohttp/__init__.py
+++ b/aiohttp/__init__.py
@@ -20,6 +20,7 @@ from .client_ws import ClientWebSocketResponse # noqa
from ._ws_impl import WSMsgType, WSCloseCode, WSMessage, WebSocketError # noqa
from .file_sender import Fil... | 20,975 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1170",
"repo": "aio-libs/aiohttp",
"base_commit": "908c9841fd4ed613c8305750d35521d6c8383f92",
"pull_number": 1170,
"issue_numbers": [
... |
aio-libs__aiohttp-1326 | 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: 0f74eae4123d8d7baa4b5982474545b031aa8251
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,6 @@
import datetime
+import pathlib
+import pickle
import re
from collections import defaultdict
from collections.abc import Mapping
@@ -37,6 +39,16 @@ class Cooki... | 7,232 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1326",
"repo": "aio-libs/aiohttp",
"base_commit": "0f74eae4123d8d7baa4b5982474545b031aa8251",
"pull_number": 1326,
"issue_numbers": [
... |
aio-libs__aiohttp-1327 | 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: 42940674f704edd5e4376006632e5ade6ded4242
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
@@ -335,7 +335,7 @@ class StaticResource(PrefixResource):
def __init__(self, prefix, directory, *, name=None,
expect_handler... | 17,429 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1327",
"repo": "aio-libs/aiohttp",
"base_commit": "42940674f704edd5e4376006632e5ade6ded4242",
"pull_number": 1327,
"issue_numbers": [
... |
aio-libs__aiohttp-1387 | 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: 53383c9ffc0df288300da1aeee9c8062b4db01a3
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
@@ -76,6 +76,9 @@ class AbstractResource(Sized, Iterable):
def get_info(self):
"""Return a dict with additional info useful for intro... | 19,891 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1387",
"repo": "aio-libs/aiohttp",
"base_commit": "53383c9ffc0df288300da1aeee9c8062b4db01a3",
"pull_number": 1387,
"issue_numbers": [
... |
aio-libs__aiohttp-1431 | 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: 9a0bc18221b4f0d877bb02bea26d3384f504135e
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
@@ -332,10 +332,6 @@ class BodyPartReader(object):
chunk = window[len(self._prev_chunk):idx]
if not chunk:
self._at_eof = True
- ... | 22,706 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1431",
"repo": "aio-libs/aiohttp",
"base_commit": "9a0bc18221b4f0d877bb02bea26d3384f504135e",
"pull_number": 1431,
"issue_numbers": [
... |
aio-libs__aiohttp-1445 | 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: 718313b89d6a5b1ecdc48cdd908aabdbac53a1cf
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
@@ -165,7 +165,7 @@ class ClientRequest:
# add host
if hdrs.HOST not in used_headers:
- netloc = self.url.host
+ netloc =... | 24,714 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1445",
"repo": "aio-libs/aiohttp",
"base_commit": "718313b89d6a5b1ecdc48cdd908aabdbac53a1cf",
"pull_number": 1445,
"issue_numbers": [
... |
aio-libs__aiohttp-1460 | 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: 36b14324c38ddbcaf480280dce3d734db04e0f65
Changed files:
- aiohttp/abc.py
- aiohttp/w... | diff --git a/aiohttp/abc.py b/aiohttp/abc.py
index 0000000..0000000 100644
--- a/aiohttp/abc.py
+++ b/aiohttp/abc.py
@@ -11,9 +11,14 @@ class AbstractRouter(ABC):
def __init__(self):
self._frozen = False
- @abstractmethod
def post_init(self, app):
- pass # pragma: no cover
+ """Po... | 27,779 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1460",
"repo": "aio-libs/aiohttp",
"base_commit": "36b14324c38ddbcaf480280dce3d734db04e0f65",
"pull_number": 1460,
"issue_numbers": [
... |
aio-libs__aiohttp-1461 | 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: 1811685728fbabd7c3a71f31704f3f00cdebea6c
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
@@ -668,8 +668,10 @@ class ClientResponse(HeadersMixin):
try:
content = self.content
if content is not None:
- wh... | 34,371 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1461",
"repo": "aio-libs/aiohttp",
"base_commit": "1811685728fbabd7c3a71f31704f3f00cdebea6c",
"pull_number": 1461,
"issue_numbers": [
... |
aio-libs__aiohttp-1500 | 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: 70fad8efc158eef3e8afc5ab767ca1307f30f3e9
Changed files:
- aiohttp/protocol.py
## Pr... | diff --git a/aiohttp/protocol.py b/aiohttp/protocol.py
index 0000000..0000000 100644
--- a/aiohttp/protocol.py
+++ b/aiohttp/protocol.py
@@ -684,7 +684,7 @@ class HttpMessage(ABC):
# set the connection header
connection = None
if self.upgrade:
- connection = 'upgrade'
+ ... | 21,583 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1500",
"repo": "aio-libs/aiohttp",
"base_commit": "70fad8efc158eef3e8afc5ab767ca1307f30f3e9",
"pull_number": 1500,
"issue_numbers": [
... |
aio-libs__aiohttp-1530 | 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: 63d1ad544b6489a538e53988f05dfdf5f45fceed
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
@@ -670,7 +670,11 @@ class BodyPartWriter(object):
"""Multipart writer for single body part."""
def __init__(self, obj, headers=None, *, chunk_size=8192):
- if ... | 22,943 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1530",
"repo": "aio-libs/aiohttp",
"base_commit": "63d1ad544b6489a538e53988f05dfdf5f45fceed",
"pull_number": 1530,
"issue_numbers": [
... |
aio-libs__aiohttp-1532 | 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: 7107386d1dd0503b3b2a9b438d5c909884f517ea
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
@@ -631,6 +631,7 @@ class MultipartReader(object):
pass
elif chunk == self._boundary + b'--':
self._at_eof = True
+ yield from self._... | 22,798 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1532",
"repo": "aio-libs/aiohttp",
"base_commit": "7107386d1dd0503b3b2a9b438d5c909884f517ea",
"pull_number": 1532,
"issue_numbers": [
... |
aio-libs__aiohttp-1580 | 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: 5399c250f2258c82173c7ea57568f488c89d65e1
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
@@ -698,6 +698,19 @@ class BodyPartWriter(object):
('application', 'json'): self._serialize_json,
('application', 'x-www-form-urlencoded'): self._seriali... | 24,465 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1580",
"repo": "aio-libs/aiohttp",
"base_commit": "5399c250f2258c82173c7ea57568f488c89d65e1",
"pull_number": 1580,
"issue_numbers": [
... |
aio-libs__aiohttp-1668 | 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: 82d7566433306ec9de487d9267afd92e6ab590fa
Changed files:
- aiohttp/abc.py
- aiohttp/w... | diff --git a/aiohttp/abc.py b/aiohttp/abc.py
index 0000000..0000000 100644
--- a/aiohttp/abc.py
+++ b/aiohttp/abc.py
@@ -14,10 +14,9 @@ class AbstractRouter(ABC):
def post_init(self, app):
"""Post init stage.
- It's not an abstract method for sake of backward compatibility
- but if router ... | 23,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-1668",
"repo": "aio-libs/aiohttp",
"base_commit": "82d7566433306ec9de487d9267afd92e6ab590fa",
"pull_number": 1668,
"issue_numbers": [
... |
aio-libs__aiohttp-1752 | 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: 8a539ef8f8d5b6a301937b978b3edc3b0c270c1b
Changed files:
- aiohttp/formdata.py
## Pr... | diff --git a/aiohttp/formdata.py b/aiohttp/formdata.py
index 0000000..0000000 100644
--- a/aiohttp/formdata.py
+++ b/aiohttp/formdata.py
@@ -96,7 +96,7 @@ class FormData:
charset = self._charset if self._charset is not None else 'utf-8'
return payload.BytesPayload(
- urlencode(data, doseq... | 3,661 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1752",
"repo": "aio-libs/aiohttp",
"base_commit": "8a539ef8f8d5b6a301937b978b3edc3b0c270c1b",
"pull_number": 1752,
"issue_numbers": [
... |
aio-libs__aiohttp-1834 | 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: 0ed47a25aca8b095169ddffec3c5de34f70bdfd9
Changed files:
- aiohttp/web.py
- aiohttp/w... | diff --git a/aiohttp/web.py b/aiohttp/web.py
index 0000000..0000000 100644
--- a/aiohttp/web.py
+++ b/aiohttp/web.py
@@ -42,10 +42,15 @@ __all__ = (web_protocol.__all__ +
class Application(MutableMapping):
-
- def __init__(self, *, logger=web_logger, router=None, middlewares=(),
- handler_args=N... | 21,113 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1834",
"repo": "aio-libs/aiohttp",
"base_commit": "0ed47a25aca8b095169ddffec3c5de34f70bdfd9",
"pull_number": 1834,
"issue_numbers": [
... |
aio-libs__aiohttp-1854 | 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: 267df4ae203e45099485279ec725c8920eba9214
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
@@ -288,7 +288,7 @@ class Application(MutableMapping):
if resp is None:
handler = match_info.handler
- for app in match_info.apps:
+ for app in match_info.ap... | 11,289 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1854",
"repo": "aio-libs/aiohttp",
"base_commit": "267df4ae203e45099485279ec725c8920eba9214",
"pull_number": 1854,
"issue_numbers": [
... |
aio-libs__aiohttp-1888 | 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: 127c451e2b6015c0f760ed6e19657a9163b4e615
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
@@ -81,6 +81,9 @@ class Application(MutableMapping):
# MutableMapping API
+ def __eq__(self, other):
+ return self is other
+
def __getitem__(self, key):
return self._sta... | 11,350 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1888",
"repo": "aio-libs/aiohttp",
"base_commit": "127c451e2b6015c0f760ed6e19657a9163b4e615",
"pull_number": 1888,
"issue_numbers": [
... |
aio-libs__aiohttp-1908 | 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: eee65a4eed846394082c5e931fc75f9c1e7f30cd
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
@@ -30,6 +30,7 @@ __all__ = ('UrlDispatcher', 'UrlMappingMatchInfo',
'StaticResource', 'View')
HTTP_METHOD_RE = re.compile(r"^[0-9A-... | 20,483 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1908",
"repo": "aio-libs/aiohttp",
"base_commit": "eee65a4eed846394082c5e931fc75f9c1e7f30cd",
"pull_number": 1908,
"issue_numbers": [
... |
aio-libs__aiohttp-1910 | 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: 44ebcacd9f9827f6d6f86866d8be122a7bfb7be3
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
@@ -5,6 +5,7 @@ import json
import math
import time
import warnings
+import zlib
from email.utils import parsedate
from multidict import CIMultiDict, CIMultiDic... | 15,533 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1910",
"repo": "aio-libs/aiohttp",
"base_commit": "44ebcacd9f9827f6d6f86866d8be122a7bfb7be3",
"pull_number": 1910,
"issue_numbers": [
... |
aio-libs__aiohttp-1988 | 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: 99423d55f8a699de9a937e2455bfe546e5d15659
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
@@ -222,7 +222,8 @@ class ClientSession:
compress=compress, chunked=chunked,
expect100=expect100, loop=self._loop,
r... | 33,367 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1988",
"repo": "aio-libs/aiohttp",
"base_commit": "99423d55f8a699de9a937e2455bfe546e5d15659",
"pull_number": 1988,
"issue_numbers": [
... |
aio-libs__aiohttp-1989 | 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: 5562f9a7892ba447bb359f91605f81b92ef20042
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
@@ -199,6 +199,8 @@ class Application(MutableMapping):
@property
def on_loop_available(self):
+ warnings.warn("on_loop_available is deprecated and will be removed",
+ ... | 11,959 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-1989",
"repo": "aio-libs/aiohttp",
"base_commit": "5562f9a7892ba447bb359f91605f81b92ef20042",
"pull_number": 1989,
"issue_numbers": [
... |
aio-libs__aiohttp-2000 | 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: 6f2adacff9b37c90aea4e416d73c7f2305d279ad
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
@@ -161,7 +161,7 @@ class ClientRequest:
def update_auto_headers(self, skip_auto_headers):
self.skip_auto_headers = CIMultiDict(
- (hdr,... | 16,748 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2000",
"repo": "aio-libs/aiohttp",
"base_commit": "6f2adacff9b37c90aea4e416d73c7f2305d279ad",
"pull_number": 2000,
"issue_numbers": [
... |
aio-libs__aiohttp-2011 | 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: 81e0592139509147863488b021f5381ef3a96fb7
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
@@ -26,6 +26,7 @@ from .cookiejar import CookieJar
from .helpers import (PY_35, CeilTimeout, TimeoutHandle, deprecated_noop,
sentinel)
from .http import WS_KEY, WebSo... | 18,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-2011",
"repo": "aio-libs/aiohttp",
"base_commit": "81e0592139509147863488b021f5381ef3a96fb7",
"pull_number": 2011,
"issue_numbers": [
... |
aio-libs__aiohttp-2088 | 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: 81357fd8241f753c627a526d1fc88dc352ac45d4
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
@@ -74,7 +74,7 @@ class CookieJar(AbstractCookieJar):
cookies = self._cookies
expirations = self._expirations
for (domain, name), when in expirations.it... | 7,385 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2088",
"repo": "aio-libs/aiohttp",
"base_commit": "81357fd8241f753c627a526d1fc88dc352ac45d4",
"pull_number": 2088,
"issue_numbers": [
... |
aio-libs__aiohttp-2125 | 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: 240a0e2c82f8ef2efba4370f5c395b124ba04f0c
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
@@ -106,6 +106,11 @@ if not PY_35:
class _CoroGuard(_BaseCoroMixin):
+ """Only to be used with func:`deprecated_noop`.
+
+ Otherwise the stack information in the raised warning... | 19,308 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2125",
"repo": "aio-libs/aiohttp",
"base_commit": "240a0e2c82f8ef2efba4370f5c395b124ba04f0c",
"pull_number": 2125,
"issue_numbers": [
... |
aio-libs__aiohttp-2173 | 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: ee69c4026ae035bd0a488cbe718eaae5d49fc0e1
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
@@ -27,7 +27,7 @@ FileField = collections.namedtuple(
_TCHAR = string.digits + string.ascii_letters + r"!#$%&'*+.^_`|~-"
# '-' at the end to prevent interpretation as ra... | 14,517 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2173",
"repo": "aio-libs/aiohttp",
"base_commit": "ee69c4026ae035bd0a488cbe718eaae5d49fc0e1",
"pull_number": 2173,
"issue_numbers": [
... |
aio-libs__aiohttp-2237 | 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: d0000cd956cc1ee5437f6f45ddb629356471c639
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
@@ -60,31 +60,42 @@ class AsyncResolver(AbstractResolver):
if not hasattr(self._resolver, 'gethostbyname'):
# aiodns 1.1 is not available, fallback to DNSResol... | 3,118 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2237",
"repo": "aio-libs/aiohttp",
"base_commit": "d0000cd956cc1ee5437f6f45ddb629356471c639",
"pull_number": 2237,
"issue_numbers": [
... |
aio-libs__aiohttp-2244 | 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: 3afb09ed2ee00d7ec48b911d775a55834f83d908
Changed files:
- aiohttp/__init__.py
- aioh... | diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py
index 0000000..0000000 100644
--- a/aiohttp/__init__.py
+++ b/aiohttp/__init__.py
@@ -10,7 +10,7 @@ from .http import (HttpVersion, HttpVersion10, HttpVersion11, # noqa
WSMsgType, WSCloseCode, WSMessage, WebSocketError) # noqa
from .streams i... | 26,927 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2244",
"repo": "aio-libs/aiohttp",
"base_commit": "3afb09ed2ee00d7ec48b911d775a55834f83d908",
"pull_number": 2244,
"issue_numbers": [
... |
aio-libs__aiohttp-2252 | 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: 20854d625ca0b267c0f25cb724c3e58cab3ef839
Changed files:
- aiohttp/web.py
- aiohttp/w... | diff --git a/aiohttp/web.py b/aiohttp/web.py
index 0000000..0000000 100644
--- a/aiohttp/web.py
+++ b/aiohttp/web.py
@@ -7,6 +7,7 @@ import sys
import warnings
from argparse import ArgumentParser
from collections import Iterable, MutableMapping
+from functools import partial
from importlib import import_module
f... | 16,737 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2252",
"repo": "aio-libs/aiohttp",
"base_commit": "20854d625ca0b267c0f25cb724c3e58cab3ef839",
"pull_number": 2252,
"issue_numbers": [
... |
aio-libs__aiohttp-2253 | 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: bb3b0911934dde0c6950118f551fff1b085c44de
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
@@ -30,8 +30,8 @@ def pytest_addoption(parser):
'--fast', action='store_true', default=False,
help='run tests faster by disabling extra checks')
... | 6,234 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2253",
"repo": "aio-libs/aiohttp",
"base_commit": "bb3b0911934dde0c6950118f551fff1b085c44de",
"pull_number": 2253,
"issue_numbers": [
... |
aio-libs__aiohttp-2256 | 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: 23406aa866a7a4ef81d5800ef118cc5d41638561
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 collections.abc import Mapping
from multidict import CIMultiDict, MultiDict, MultiDictProxy, istr
from yarl ... | 53,819 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2256",
"repo": "aio-libs/aiohttp",
"base_commit": "23406aa866a7a4ef81d5800ef118cc5d41638561",
"pull_number": 2256,
"issue_numbers": [
... |
aio-libs__aiohttp-2258 | 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: a5ee9f28c53e2908c025d7768fc1ed76a9d6b7b6
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
@@ -15,8 +15,8 @@ from yarl import URL
from . import connector as connector_mod
from . import client_exceptions, client_reqrep, hdrs, http, payload
from .client_exceptions import * # noqa... | 36,037 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2258",
"repo": "aio-libs/aiohttp",
"base_commit": "a5ee9f28c53e2908c025d7768fc1ed76a9d6b7b6",
"pull_number": 2258,
"issue_numbers": [
... |
aio-libs__aiohttp-2287 | 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: 98bc1e2a4923eba463f38311534574e1c4aa94c5
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
@@ -62,7 +62,10 @@ class BaseRequest(collections.MutableMapping, HeadersMixin):
def __init__(self, message, payload, protocol, writer, time_service, task,
... | 14,240 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2287",
"repo": "aio-libs/aiohttp",
"base_commit": "98bc1e2a4923eba463f38311534574e1c4aa94c5",
"pull_number": 2287,
"issue_numbers": [
... |
aio-libs__aiohttp-2295 | 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: 716fcaa2033bdb7f24f8ae8294d2450234dac2c8
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
@@ -372,6 +372,10 @@ class ClientSession:
headers=None,
proxy=None,
proxy_auth=None,
+ verify_ssl=None,
+ ... | 17,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-2295",
"repo": "aio-libs/aiohttp",
"base_commit": "716fcaa2033bdb7f24f8ae8294d2450234dac2c8",
"pull_number": 2295,
"issue_numbers": [
... |
aio-libs__aiohttp-2299 | 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: 17cd3e98fcc00c2a501c2dde82655321f4217211
Changed files:
- aiohttp/web.py
- aiohttp/w... | diff --git a/aiohttp/web.py b/aiohttp/web.py
index 0000000..0000000 100644
--- a/aiohttp/web.py
+++ b/aiohttp/web.py
@@ -50,7 +50,6 @@ class Application(MutableMapping):
middlewares=(),
handler_args=None,
client_max_size=1024**2,
- secure_proxy_ssl_h... | 27,010 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2299",
"repo": "aio-libs/aiohttp",
"base_commit": "17cd3e98fcc00c2a501c2dde82655321f4217211",
"pull_number": 2299,
"issue_numbers": [
... |
aio-libs__aiohttp-2319 | 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: 60f3342fde5f19a97db1667428c3a5f86953fe96
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
@@ -182,9 +182,13 @@ class FileResponse(StreamResponse):
self._length_check = False
return (yield from super().prepare(reques... | 6,187 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2319",
"repo": "aio-libs/aiohttp",
"base_commit": "60f3342fde5f19a97db1667428c3a5f86953fe96",
"pull_number": 2319,
"issue_numbers": [
... |
aio-libs__aiohttp-2326 | 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: fc8fb0415cc449b3d756a8fc81c9d9254401b202
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
@@ -605,6 +605,18 @@ class Request(BaseRequest):
# or information about traversal lookup
self._match_info = None # initialized after route resolving
+... | 15,234 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2326",
"repo": "aio-libs/aiohttp",
"base_commit": "fc8fb0415cc449b3d756a8fc81c9d9254401b202",
"pull_number": 2326,
"issue_numbers": [
... |
aio-libs__aiohttp-2328 | 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: 214d02a026c67d0ac2d81ea9db9869d77cad08d8
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
@@ -24,7 +24,8 @@ from .connector import * # noqa
from .connector import TCPConnector
from .cookiejar import CookieJar
from .helpers import (PY_35, CeilTimeout, TimeoutHandle, _BaseCoroMi... | 36,305 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2328",
"repo": "aio-libs/aiohttp",
"base_commit": "214d02a026c67d0ac2d81ea9db9869d77cad08d8",
"pull_number": 2328,
"issue_numbers": [
... |
aio-libs__aiohttp-2329 | 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: a01c4ec94fbdd0c5964a6bf4149116e5e7b88935
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
@@ -375,10 +375,13 @@ class BaseConnector(object):
# This connection will now count towards the limit.
waiters = self._waiters[key]
waiters.... | 21,448 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2329",
"repo": "aio-libs/aiohttp",
"base_commit": "a01c4ec94fbdd0c5964a6bf4149116e5e7b88935",
"pull_number": 2329,
"issue_numbers": [
... |
aio-libs__aiohttp-2341 | 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: c2884d00a9150bdd1ffe125b7631716ac4d97ec0
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
@@ -288,12 +288,10 @@ class Application(MutableMapping):
def _prepare_middleware(self):
for m in reversed(self._middlewares):
if getattr(m, '__middleware_version__', None) == 1... | 12,425 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2341",
"repo": "aio-libs/aiohttp",
"base_commit": "c2884d00a9150bdd1ffe125b7631716ac4d97ec0",
"pull_number": 2341,
"issue_numbers": [
... |
aio-libs__aiohttp-2379 | 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: bce180580ee19e35484e2a006795b0f433682111
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
@@ -563,8 +563,6 @@ class TCPConnector(BaseConnector):
digest of the expected certificate in DER format to verify
that the certificate the server presents matche... | 21,042 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2379",
"repo": "aio-libs/aiohttp",
"base_commit": "bce180580ee19e35484e2a006795b0f433682111",
"pull_number": 2379,
"issue_numbers": [
... |
aio-libs__aiohttp-2459 | 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: 04f59e7907b5b97f4ac6ae1c06781b9858691f82
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
@@ -162,8 +162,11 @@ def content_disposition_filename(params, name='filename'):
class MultipartResponseWrapper(object):
- """Wrapper around the :class:`MultipartBodyReader... | 19,701 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2459",
"repo": "aio-libs/aiohttp",
"base_commit": "04f59e7907b5b97f4ac6ae1c06781b9858691f82",
"pull_number": 2459,
"issue_numbers": [
... |
aio-libs__aiohttp-2535 | 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: e27a20bac69745ef9748cde2b4e5d6dabe260f8b
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
@@ -350,11 +350,8 @@ class ClientRequest:
if not hashfunc:
raise ValueError('fingerprint has invalid length')
elif hashf... | 42,670 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2535",
"repo": "aio-libs/aiohttp",
"base_commit": "e27a20bac69745ef9748cde2b4e5d6dabe260f8b",
"pull_number": 2535,
"issue_numbers": [
... |
aio-libs__aiohttp-2541 | 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: 39ea16889558a764dff8f4905f46d0df1060f474
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 collections.abc import Coroutine
from multidict import CIMultiDict, MultiDict, MultiDictProxy, istr
from yar... | 35,166 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2541",
"repo": "aio-libs/aiohttp",
"base_commit": "39ea16889558a764dff8f4905f46d0df1060f474",
"pull_number": 2541,
"issue_numbers": [
... |
aio-libs__aiohttp-2543 | 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: 8e7985ac52b1c9328b66df9cc83e727760c71e04
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
@@ -711,11 +711,11 @@ class ClientSession:
self._connector = None
def __enter__(self):
- warnings.warn("Use async with instead", DeprecationWarning)
- return sel... | 20,103 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2543",
"repo": "aio-libs/aiohttp",
"base_commit": "8e7985ac52b1c9328b66df9cc83e727760c71e04",
"pull_number": 2543,
"issue_numbers": [
... |
aio-libs__aiohttp-2545 | 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: 999cf08c00214e188edb6593c918989da57e04c4
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
@@ -633,11 +633,18 @@ class MultipartWriter(Payload):
def __init__(self, subtype='mixed', boundary=None):
boundary = boundary if boundary is not None else uuid.uui... | 20,365 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2545",
"repo": "aio-libs/aiohttp",
"base_commit": "999cf08c00214e188edb6593c918989da57e04c4",
"pull_number": 2545,
"issue_numbers": [
... |
aio-libs__aiohttp-2548 | 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: ed3c7ca0d6324013f4d0b0f60936f86acb6bd428
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
@@ -356,13 +356,6 @@ class BaseRequest(collections.MutableMapping, HeadersMixin):
"""A multidict with all the variables in the query string."""
return se... | 13,905 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2548",
"repo": "aio-libs/aiohttp",
"base_commit": "ed3c7ca0d6324013f4d0b0f60936f86acb6bd428",
"pull_number": 2548,
"issue_numbers": [
... |
aio-libs__aiohttp-2573 | 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: 5577631c9c952c78b29d452d96ffef6235899a09
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
@@ -96,8 +96,14 @@ def pytest_fixture_setup(fixturedef, request):
@pytest.fixture
def fast(request):
- """ --fast config option """
- return request.conf... | 7,012 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2573",
"repo": "aio-libs/aiohttp",
"base_commit": "5577631c9c952c78b29d452d96ffef6235899a09",
"pull_number": 2573,
"issue_numbers": [
... |
aio-libs__aiohttp-2583 | 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: d166230d08adac5dd6de8b254773d5c2eedf9748
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
@@ -112,19 +112,19 @@ class ClientWebSocketResponse:
async def pong(self, message='b'):
await self._writer.pong(message)
- async def send_str(self, data):
+ ... | 30,175 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2583",
"repo": "aio-libs/aiohttp",
"base_commit": "d166230d08adac5dd6de8b254773d5c2eedf9748",
"pull_number": 2583,
"issue_numbers": [
... |
aio-libs__aiohttp-2640 | 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: b78228fbd0b87f49160a1f84360e32d464465ee4
Changed files:
- aiohttp/http_writer.py
##... | diff --git a/aiohttp/http_writer.py b/aiohttp/http_writer.py
index 0000000..0000000 100644
--- a/aiohttp/http_writer.py
+++ b/aiohttp/http_writer.py
@@ -1,5 +1,6 @@
"""Http related parsers and protocol."""
+import asyncio
import collections
import socket
import zlib
@@ -126,6 +127,9 @@ class PayloadWriter(Abstrac... | 5,226 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2640",
"repo": "aio-libs/aiohttp",
"base_commit": "b78228fbd0b87f49160a1f84360e32d464465ee4",
"pull_number": 2640,
"issue_numbers": [
... |
aio-libs__aiohttp-2657 | 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: b348e0f47c8ad16f898fd0dffa00c814b259131e
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
@@ -163,6 +163,7 @@ class Application(MutableMapping):
self.router.register_resource(resource)
self._reg_subapp_signals(subapp)
self._subapps.append(subapp)
+ ... | 7,241 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2657",
"repo": "aio-libs/aiohttp",
"base_commit": "b348e0f47c8ad16f898fd0dffa00c814b259131e",
"pull_number": 2657,
"issue_numbers": [
... |
aio-libs__aiohttp-2667 | 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: ad2a833ce25f349b514153d05eec7d952e1ea768
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
@@ -15,10 +15,10 @@ from functools import wraps
from pathlib import Path
from types import MappingProxyType
-# do not use yarl.quote directly,
... | 29,362 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2667",
"repo": "aio-libs/aiohttp",
"base_commit": "ad2a833ce25f349b514153d05eec7d952e1ea768",
"pull_number": 2667,
"issue_numbers": [
... |
aio-libs__aiohttp-2701 | 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: fdd9aabfd260119394698bf23aa60434c40b916a
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
@@ -80,6 +80,7 @@ class RequestHandler(asyncio.streams.FlowControlMixin, asyncio.Protocol):
"""
_request_count = 0
_keepalive = False # keep transport ... | 21,785 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2701",
"repo": "aio-libs/aiohttp",
"base_commit": "fdd9aabfd260119394698bf23aa60434c40b916a",
"pull_number": 2701,
"issue_numbers": [
... |
aio-libs__aiohttp-2763 | 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: 6c92e8f535edc62749cc69d9dbfe6a9826a8dccf
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
@@ -244,12 +244,14 @@ class RequestHandler(asyncio.streams.FlowControlMixin, asyncio.Protocol):
500, exc))
self.close()
... | 12,881 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2763",
"repo": "aio-libs/aiohttp",
"base_commit": "6c92e8f535edc62749cc69d9dbfe6a9826a8dccf",
"pull_number": 2763,
"issue_numbers": [
... |
aio-libs__aiohttp-2775 | 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: 5d5e9fd78034cabddc6b392fb454367f5d91f4bf
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
@@ -250,8 +250,11 @@ class RequestHandler(asyncio.streams.FlowControlMixin, asyncio.Protocol):
self._request_count += 1
... | 13,013 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2775",
"repo": "aio-libs/aiohttp",
"base_commit": "5d5e9fd78034cabddc6b392fb454367f5d91f4bf",
"pull_number": 2775,
"issue_numbers": [
... |
aio-libs__aiohttp-2794 | 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: ca22766c79f820a97c19c7be78393b89a61b51cd
Changed files:
- demos/chat/aiohttpdemo_cha... | diff --git a/demos/chat/aiohttpdemo_chat/views.py b/demos/chat/aiohttpdemo_chat/views.py
index 0000000..0000000 100644
--- a/demos/chat/aiohttpdemo_chat/views.py
+++ b/demos/chat/aiohttpdemo_chat/views.py
@@ -12,8 +12,8 @@ log = logging.getLogger(__name__)
async def index(request):
resp = web.WebSocketResponse(... | 1,548 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2794",
"repo": "aio-libs/aiohttp",
"base_commit": "ca22766c79f820a97c19c7be78393b89a61b51cd",
"pull_number": 2794,
"issue_numbers": [
... |
aio-libs__aiohttp-2812 | 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: 6c31dc9182f7abe587fdd72caee06fdd58b4feec
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
@@ -193,9 +193,9 @@ class FileResponse(StreamResponse):
# If a range request has been made, convert start, end slice notation
# into ... | 20,660 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2812",
"repo": "aio-libs/aiohttp",
"base_commit": "6c31dc9182f7abe587fdd72caee06fdd58b4feec",
"pull_number": 2812,
"issue_numbers": [
... |
aio-libs__aiohttp-2819 | 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: 7f7b12af3b684396738e52762d64b7eb58e7930c
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
@@ -2,6 +2,7 @@ import asyncio
import codecs
import io
import json
+import re
import sys
import traceback
import warnings
@@ -39,6 +40,9 @@ except ImportErro... | 21,085 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2819",
"repo": "aio-libs/aiohttp",
"base_commit": "7f7b12af3b684396738e52762d64b7eb58e7930c",
"pull_number": 2819,
"issue_numbers": [
... |
aio-libs__aiohttp-2824 | 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: 9108698af4890439cc3831e2c3a4dd2dfc4d27af
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
@@ -29,16 +29,23 @@ from .web_response import Response
__all__ = ('UrlDispatcher', 'UrlMappingMatchInfo',
'AbstractResource', 'Resourc... | 25,547 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2824",
"repo": "aio-libs/aiohttp",
"base_commit": "9108698af4890439cc3831e2c3a4dd2dfc4d27af",
"pull_number": 2824,
"issue_numbers": [
... |
aio-libs__aiohttp-2828 | 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: 9108698af4890439cc3831e2c3a4dd2dfc4d27af
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
@@ -326,11 +326,14 @@ class ClientSession:
tcp_nodelay(conn.transport, True)
tcp_cork(conn.transport, False)
try:
- ... | 19,926 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2828",
"repo": "aio-libs/aiohttp",
"base_commit": "9108698af4890439cc3831e2c3a4dd2dfc4d27af",
"pull_number": 2828,
"issue_numbers": [
... |
aio-libs__aiohttp-2858 | 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: 4f8ea944bb049bc9af02a17e91716154db88afea
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
@@ -728,12 +728,12 @@ class TCPConnector(BaseConnector):
if req.proxy:
_, proto = await self._create_proxy_connection(
req,
- ... | 21,324 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2858",
"repo": "aio-libs/aiohttp",
"base_commit": "4f8ea944bb049bc9af02a17e91716154db88afea",
"pull_number": 2858,
"issue_numbers": [
... |
aio-libs__aiohttp-2943 | 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: af0994fedd471f73f0a23e18a99a8635f8d83f87
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
@@ -18,7 +18,8 @@ from . import connector as connector_mod
from . import hdrs, http, payload
from .client_exceptions import * # noqa
from .client_exceptions import (ClientError, ClientOSE... | 25,541 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2943",
"repo": "aio-libs/aiohttp",
"base_commit": "af0994fedd471f73f0a23e18a99a8635f8d83f87",
"pull_number": 2943,
"issue_numbers": [
... |
aio-libs__aiohttp-2944 | 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: 544716cf93b3856e485c8e993de60d9911c002cb
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
@@ -107,7 +107,8 @@ class FileResponse(StreamResponse):
transport = request.transport
if (transport.get_extra_info("sslcontext") or... | 21,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-2944",
"repo": "aio-libs/aiohttp",
"base_commit": "544716cf93b3856e485c8e993de60d9911c002cb",
"pull_number": 2944,
"issue_numbers": [
... |
aio-libs__aiohttp-2985 | 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: e0378bd3e831a32444de704317bc47251ef81b9a
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
@@ -241,7 +241,7 @@ class ClientConnectorCertificateError(*certificate_errors_bases):
@property
def ssl(self):
- return self._co... | 47,931 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2985",
"repo": "aio-libs/aiohttp",
"base_commit": "e0378bd3e831a32444de704317bc47251ef81b9a",
"pull_number": 2985,
"issue_numbers": [
... |
aio-libs__aiohttp-2993 | 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: af53fe00b1a7e09ca1173b56169c40047700fa0e
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
@@ -45,6 +45,15 @@ class AbstractResource(Sized, Iterable):
def name(self):
return self._name
+ @property
+ @abc.abstractmeth... | 21,058 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-2993",
"repo": "aio-libs/aiohttp",
"base_commit": "af53fe00b1a7e09ca1173b56169c40047700fa0e",
"pull_number": 2993,
"issue_numbers": [
... |
aio-libs__aiohttp-3037 | 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: dfe75822d7837a5833345311f7ccc7e5ef8a16c7
Changed files:
- aiohttp/web_runner.py
## ... | diff --git a/aiohttp/web_runner.py b/aiohttp/web_runner.py
index 0000000..0000000 100644
--- a/aiohttp/web_runner.py
+++ b/aiohttp/web_runner.py
@@ -148,12 +148,18 @@ class BaseRunner(ABC):
self._handle_signals = handle_signals
self._kwargs = kwargs
self._server = None
- self._sites = ... | 6,638 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-3037",
"repo": "aio-libs/aiohttp",
"base_commit": "dfe75822d7837a5833345311f7ccc7e5ef8a16c7",
"pull_number": 3037,
"issue_numbers": [
... |
aio-libs__aiohttp-3041 | 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: b21f04bed3dbb34e23288ce259e4dfb9c32c66dd
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
@@ -286,14 +286,12 @@ class RequestHandler(BaseProtocol):
if self._waiter:
self._waiter.cancel()
- def force_close(self, send_last_heartbeat... | 12,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-3041",
"repo": "aio-libs/aiohttp",
"base_commit": "b21f04bed3dbb34e23288ce259e4dfb9c32c66dd",
"pull_number": 3041,
"issue_numbers": [
... |
aio-libs__aiohttp-3055 | 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: fdf3806c983bc36f862315604f5543bff5819d8a
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
@@ -51,6 +51,7 @@ class ResponseHandler(BaseProtocol, DataQueue):
transport.close()
self.transport = None
self._payload = None
+... | 5,542 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-3055",
"repo": "aio-libs/aiohttp",
"base_commit": "fdf3806c983bc36f862315604f5543bff5819d8a",
"pull_number": 3055,
"issue_numbers": [
... |
aio-libs__aiohttp-3063 | 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: d8831f36d0ba1c7e2ffa7f5442e14d020de98bb8
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
@@ -6,7 +6,7 @@ import attr
from . import hdrs
-__all__ = ('RouteDef', 'StaticDef', 'RouteTableDef', 'head', 'get',
+__all__ = ('RouteDef', 'StaticDef', 'RouteTab... | 24,594 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-3063",
"repo": "aio-libs/aiohttp",
"base_commit": "d8831f36d0ba1c7e2ffa7f5442e14d020de98bb8",
"pull_number": 3063,
"issue_numbers": [
... |
aio-libs__aiohttp-3065 | 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: f26a49d1845479c4bfb9a724a52f32f1a7521d3d
Changed files:
- setup.py
## Problem state... | diff --git a/setup.py b/setup.py
index 0000000..0000000 100644
--- a/setup.py
+++ b/setup.py
@@ -119,7 +119,7 @@ args = dict(
url='https://github.com/aio-libs/aiohttp',
project_urls={
'Chat: Gitter': 'https://gitter.im/aio-libs/Lobby',
- 'CI: AppVeyor': 'https://ci.appveyor.com/project/asvetlo... | 4,028 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-3065",
"repo": "aio-libs/aiohttp",
"base_commit": "f26a49d1845479c4bfb9a724a52f32f1a7521d3d",
"pull_number": 3065,
"issue_numbers": [
... |
aio-libs__aiohttp-3079 | 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: 36b27f99e94eb54814c23467ebebb6ebb600955e
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
@@ -194,7 +194,11 @@ class ResponseHandler(BaseProtocol, DataQueue):
try:
messages, upgraded, tail = self._parser.feed_data(data)... | 6,003 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "aio-libs__aiohttp-3079",
"repo": "aio-libs/aiohttp",
"base_commit": "36b27f99e94eb54814c23467ebebb6ebb600955e",
"pull_number": 3079,
"issue_numbers": [
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.