id stringlengths 13 54 | prompt stringlengths 708 2.91M | answer stringlengths 110 352k | prompt_input_token_count int64 206 1.14M | metadata dict |
|---|---|---|---|---|
conda__conda-620 | 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: conda/conda
Base commit: c453be49e865297bf12858548a6b3e7891a8cb43
Changed files:
- conda/resolve.py
## Problem st... | diff --git a/conda/resolve.py b/conda/resolve.py
index 0000000..0000000 100644
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -30,6 +30,11 @@ def normalized_version(version):
return version
+class NoPackagesFound(RuntimeError):
+ def __init__(self, msg, pkg):
+ super(NoPackagesFound, self).__in... | 15,679 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-620",
"repo": "conda/conda",
"base_commit": "c453be49e865297bf12858548a6b3e7891a8cb43",
"pull_number": 620,
"issue_numbers": [
"599"
],... |
conda__conda-662 | 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: conda/conda
Base commit: 3d4118668fca738984cce13d9235e0fc11a79df4
Changed files:
- conda/cli/main_remove.py
- cond... | diff --git a/conda/cli/main_remove.py b/conda/cli/main_remove.py
index 0000000..0000000 100644
--- a/conda/cli/main_remove.py
+++ b/conda/cli/main_remove.py
@@ -63,6 +63,7 @@ def execute(args, parser):
from conda.api import get_index
from conda.cli import pscheck
from conda.install import rm_rf, linked
+... | 15,077 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-662",
"repo": "conda/conda",
"base_commit": "3d4118668fca738984cce13d9235e0fc11a79df4",
"pull_number": 662,
"issue_numbers": [
"464"
],... |
conda__conda-667 | 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: conda/conda
Base commit: f2934aea3f32ac94907b742a800d82c1e08757fe
Changed files:
- conda/resolve.py
## Problem st... | diff --git a/conda/resolve.py b/conda/resolve.py
index 0000000..0000000 100644
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -278,12 +278,25 @@ def all_deps(self, root_fn, max_only=False):
def add_dependents(fn1, max_only=False):
for ms in self.ms_depends(fn1):
+ found = False
... | 16,103 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-667",
"repo": "conda/conda",
"base_commit": "f2934aea3f32ac94907b742a800d82c1e08757fe",
"pull_number": 667,
"issue_numbers": [
"666"
],... |
conda__conda-682 | 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: conda/conda
Base commit: 102471a0fe64749a94ea0c1c9ddc45d17fd4f2d4
Changed files:
- conda/connection.py
- conda/fet... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -7,106 +7,368 @@
from __future__ import print_function, division, absolute_import
from logging import getLogger
+import re
+import mimetypes
+import os
+import email
+import ba... | 13,564 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-682",
"repo": "conda/conda",
"base_commit": "102471a0fe64749a94ea0c1c9ddc45d17fd4f2d4",
"pull_number": 682,
"issue_numbers": [
"400"
],... |
conda__conda-707 | 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: conda/conda
Base commit: ad6c5ffe86bb2eac4add2c4be7b8987f0f14c453
Changed files:
- conda/lock.py
## Problem state... | diff --git a/conda/lock.py b/conda/lock.py
index 0000000..0000000 100644
--- a/conda/lock.py
+++ b/conda/lock.py
@@ -19,7 +19,7 @@
import os
from os.path import join
import glob
-
+from time import sleep
LOCKFN = '.conda_lock'
@@ -36,15 +36,28 @@ def __init__(self, path):
self.remove = True
def ... | 1,617 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-707",
"repo": "conda/conda",
"base_commit": "ad6c5ffe86bb2eac4add2c4be7b8987f0f14c453",
"pull_number": 707,
"issue_numbers": [
"670"
],... |
conda__conda-739 | 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: conda/conda
Base commit: 27441fe05630c37e7225f275ee041411f995aae5
Changed files:
- conda/config.py
- conda/connect... | diff --git a/conda/config.py b/conda/config.py
index 0000000..0000000 100644
--- a/conda/config.py
+++ b/conda/config.py
@@ -244,7 +244,10 @@ def get_allowed_channels():
def get_proxy_servers():
res = rc.get('proxy_servers')
- if res is None or isinstance(res, dict):
+ if res is None:
+ import requ... | 22,902 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-739",
"repo": "conda/conda",
"base_commit": "27441fe05630c37e7225f275ee041411f995aae5",
"pull_number": 739,
"issue_numbers": [
"731"
],... |
conda__conda-804 | 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: conda/conda
Base commit: 037a783f85eb5edaf5ea59bdb5e456bed92587b3
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -143,10 +143,10 @@ def install(args, parser, command='install'):
common.ensure_override_channels_requires_channel(args)
channel_urls = args.channel or ()
+ specs... | 7,254 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-804",
"repo": "conda/conda",
"base_commit": "037a783f85eb5edaf5ea59bdb5e456bed92587b3",
"pull_number": 804,
"issue_numbers": [
"802"
],... |
conda__conda-834 | 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: conda/conda
Base commit: 997b70c012fc5be64cc9df8cdabfd860a12c8230
Changed files:
- conda/cli/main_run.py
- conda/m... | diff --git a/conda/cli/main_run.py b/conda/cli/main_run.py
index 0000000..0000000 100644
--- a/conda/cli/main_run.py
+++ b/conda/cli/main_run.py
@@ -7,6 +7,7 @@
from __future__ import print_function, division, absolute_import
import sys
+import logging
from conda.cli import common
@@ -17,6 +18,7 @@ def configu... | 9,699 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-834",
"repo": "conda/conda",
"base_commit": "997b70c012fc5be64cc9df8cdabfd860a12c8230",
"pull_number": 834,
"issue_numbers": [
"803",
... |
conda__conda-909 | 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: conda/conda
Base commit: e082781cad83e0bc6a41a2870b605f4ee08bbd4d
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -155,11 +155,20 @@ def rm_rf(path, max_retries=5):
shutil.rmtree(path)
return
except OSError as e:
- log.debug("Unable to delete %... | 16,446 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-909",
"repo": "conda/conda",
"base_commit": "e082781cad83e0bc6a41a2870b605f4ee08bbd4d",
"pull_number": 909,
"issue_numbers": [
"907"
],... |
conda__conda-1138 | 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: conda/conda
Base commit: 7305bf1990c6f6d47fc7f6f7b3f7844ec1948388
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -191,13 +191,13 @@ def install(args, parser, command='install'):
"prefix %s" % prefix)
for pkg in linked:
name, ver, build = pkg.rsplit('... | 11,006 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1138",
"repo": "conda/conda",
"base_commit": "7305bf1990c6f6d47fc7f6f7b3f7844ec1948388",
"pull_number": 1138,
"issue_numbers": [
"897"
... |
conda__conda-1231 | 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: conda/conda
Base commit: 50000e443ff4d60904faf59c1ea04cf269ec42c3
Changed files:
- conda/cli/main_clean.py
## Pro... | diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py
index 0000000..0000000 100644
--- a/conda/cli/main_clean.py
+++ b/conda/cli/main_clean.py
@@ -8,6 +8,7 @@
from argparse import RawDescriptionHelpFormatter
import os
import sys
+from collections import defaultdict
from os.path import join, getsize, isd... | 8,530 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1231",
"repo": "conda/conda",
"base_commit": "50000e443ff4d60904faf59c1ea04cf269ec42c3",
"pull_number": 1231,
"issue_numbers": [
"1230"
... |
conda__conda-1318 | 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: conda/conda
Base commit: d6704ec38705aa3181aabff5759d0365cd0e59b0
Changed files:
- conda/cli/main_remove.py
## Pr... | diff --git a/conda/cli/main_remove.py b/conda/cli/main_remove.py
index 0000000..0000000 100644
--- a/conda/cli/main_remove.py
+++ b/conda/cli/main_remove.py
@@ -190,6 +190,9 @@ def execute(args, parser):
return
+ if not args.json:
+ common.confirm_yn(args)
+
if args.json and not args.quiet:
... | 5,096 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1318",
"repo": "conda/conda",
"base_commit": "d6704ec38705aa3181aabff5759d0365cd0e59b0",
"pull_number": 1318,
"issue_numbers": [
"1317"
... |
conda__conda-1463 | 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: conda/conda
Base commit: 3ea1dc2f9a91b05509b80e6fd8d6ee08299967dd
Changed files:
- conda/fetch.py
## Problem stat... | diff --git a/conda/fetch.py b/conda/fetch.py
index 0000000..0000000 100644
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -185,6 +185,10 @@ def handle_proxy_407(url, session):
# We could also use HTTPProxyAuth, but this does not work with https
# proxies (see https://github.com/kennethreitz/requests/issues/2061... | 12,139 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1463",
"repo": "conda/conda",
"base_commit": "3ea1dc2f9a91b05509b80e6fd8d6ee08299967dd",
"pull_number": 1463,
"issue_numbers": [
"1452"
... |
conda__conda-1496 | 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: conda/conda
Base commit: 8d095e771947121c32edef476efc333e2cfeb60b
Changed files:
- conda/connection.py
- conda/fet... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -19,7 +19,7 @@
import conda
from conda.compat import urlparse, StringIO
-from conda.config import get_proxy_servers
+from conda.config import get_proxy_servers, ssl_verify
i... | 23,111 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1496",
"repo": "conda/conda",
"base_commit": "8d095e771947121c32edef476efc333e2cfeb60b",
"pull_number": 1496,
"issue_numbers": [
"1495"
... |
conda__conda-1541 | 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: conda/conda
Base commit: a003d2809ec13f826f0692c9515a2f1291fae56f
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -272,6 +272,7 @@ def update_prefix(path, new_prefix, placeholder=prefix_placeholder,
if new_data == data:
return
st = os.lstat(path)
+ os.remove(path) # Remove file befor... | 19,205 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1541",
"repo": "conda/conda",
"base_commit": "a003d2809ec13f826f0692c9515a2f1291fae56f",
"pull_number": 1541,
"issue_numbers": [
"1535"
... |
conda__conda-1562 | 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: conda/conda
Base commit: 113e9451512b87d0bf0ef3ecdd19ca78fb25c047
Changed files:
- conda/resolve.py
## Problem st... | diff --git a/conda/resolve.py b/conda/resolve.py
index 0000000..0000000 100644
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -309,7 +309,7 @@ def add_dependents(fn1, max_only=False):
if not found:
raise NoPackagesFound("Could not find some dependencies "
- ... | 19,814 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1562",
"repo": "conda/conda",
"base_commit": "113e9451512b87d0bf0ef3ecdd19ca78fb25c047",
"pull_number": 1562,
"issue_numbers": [
"1561"
... |
conda__conda-1563 | 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: conda/conda
Base commit: 9e9becd30eeb6e56c1601521f5edb7b16a29abd7
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -165,6 +165,8 @@ def install(args, parser, command='install'):
if any(pkg.split('=')[0] == default_pkg for pkg in args.packages):
default_packages... | 11,604 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1563",
"repo": "conda/conda",
"base_commit": "9e9becd30eeb6e56c1601521f5edb7b16a29abd7",
"pull_number": 1563,
"issue_numbers": [
"1557"
... |
conda__conda-1613 | 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: conda/conda
Base commit: acf392df41d6c4ecf311733b38869d83fa19239f
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -196,12 +196,14 @@ def install(args, parser, command='install'):
common.check_specs(prefix, specs, json=args.json,
create=(command == 'crea... | 11,431 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1613",
"repo": "conda/conda",
"base_commit": "acf392df41d6c4ecf311733b38869d83fa19239f",
"pull_number": 1613,
"issue_numbers": [
"1118"
... |
conda__conda-1618 | 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: conda/conda
Base commit: 1b100cde07dac3769e1dbffcb05e11574b9a416b
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -27,19 +27,19 @@
from __future__ import print_function, division, absolute_import
-import time
-import os
-import json
import errno
+import json
+import logging
+import os
+import shlex
... | 20,062 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1618",
"repo": "conda/conda",
"base_commit": "1b100cde07dac3769e1dbffcb05e11574b9a416b",
"pull_number": 1618,
"issue_numbers": [
"1594"
... |
conda__conda-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: conda/conda
Base commit: c13df56c2a6b4e494bfffbb695df63d34e28ad5f
Changed files:
- conda/cli/common.py
- conda/cli... | diff --git a/conda/cli/common.py b/conda/cli/common.py
index 0000000..0000000 100644
--- a/conda/cli/common.py
+++ b/conda/cli/common.py
@@ -180,6 +180,16 @@ def add_parser_use_index_cache(p):
help="Use cache of channel index files.",
)
+
+def add_parser_no_use_index_cache(p):
+ p.add_argument(
+ ... | 18,797 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1668",
"repo": "conda/conda",
"base_commit": "c13df56c2a6b4e494bfffbb695df63d34e28ad5f",
"pull_number": 1668,
"issue_numbers": [
"1667"
... |
conda__conda-1735 | 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: conda/conda
Base commit: 02c652c00ebad8c17747509185d007057d2b0374
Changed files:
- conda/utils.py
## Problem stat... | diff --git a/conda/utils.py b/conda/utils.py
index 0000000..0000000 100644
--- a/conda/utils.py
+++ b/conda/utils.py
@@ -5,8 +5,10 @@
import hashlib
import collections
from functools import partial
-from os.path import abspath, isdir, join
+from os.path import abspath, isdir
import os
+import tempfile
+
log = lo... | 3,661 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1735",
"repo": "conda/conda",
"base_commit": "02c652c00ebad8c17747509185d007057d2b0374",
"pull_number": 1735,
"issue_numbers": [
"1734"
... |
conda__conda-1807 | 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: conda/conda
Base commit: f46c73c3cb6353a409449fdba08fdbd0856bdb35
Changed files:
- conda/cli/main_clean.py
- conda... | diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py
index 0000000..0000000 100644
--- a/conda/cli/main_clean.py
+++ b/conda/cli/main_clean.py
@@ -151,9 +151,13 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True):
for pkgs_dir in pkgs_dirs:
for fn in pkgs_dirs[pkgs_dir]:
- ... | 28,713 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1807",
"repo": "conda/conda",
"base_commit": "f46c73c3cb6353a409449fdba08fdbd0856bdb35",
"pull_number": 1807,
"issue_numbers": [
"1751"
... |
conda__conda-1808 | 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: conda/conda
Base commit: f46c73c3cb6353a409449fdba08fdbd0856bdb35
Changed files:
- conda/cli/main_clean.py
- conda... | diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py
index 0000000..0000000 100644
--- a/conda/cli/main_clean.py
+++ b/conda/cli/main_clean.py
@@ -151,9 +151,13 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True):
for pkgs_dir in pkgs_dirs:
for fn in pkgs_dirs[pkgs_dir]:
- ... | 28,424 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1808",
"repo": "conda/conda",
"base_commit": "f46c73c3cb6353a409449fdba08fdbd0856bdb35",
"pull_number": 1808,
"issue_numbers": [
"1752"
... |
conda__conda-1944 | 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: conda/conda
Base commit: 4db6b4e58c6efa70e461dd68a90d812d4a634619
Changed files:
- conda/cli/main_clean.py
## Pro... | diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py
index 0000000..0000000 100644
--- a/conda/cli/main_clean.py
+++ b/conda/cli/main_clean.py
@@ -65,6 +65,95 @@ def configure_parser(sub_parsers):
p.set_defaults(func=execute)
+# work-around for python bug on Windows prior to python 3.2
+# https://bug... | 10,395 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-1944",
"repo": "conda/conda",
"base_commit": "4db6b4e58c6efa70e461dd68a90d812d4a634619",
"pull_number": 1944,
"issue_numbers": [
"1285"
... |
conda__conda-2108 | 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: conda/conda
Base commit: d637298bb13b5434a989174ebe9acea3d7a0e2a0
Changed files:
- conda/connection.py
## Problem... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -101,7 +101,9 @@ def send(self, request, stream=None, timeout=None, verify=None, cert=None,
import boto
except ImportError:
stderrlog.info('\nErr... | 12,033 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2108",
"repo": "conda/conda",
"base_commit": "d637298bb13b5434a989174ebe9acea3d7a0e2a0",
"pull_number": 2108,
"issue_numbers": [
"2093"
... |
conda__conda-2226 | 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: conda/conda
Base commit: c91a2ecf8ccc7fe4c4545373dc89b0b22fcddba5
Changed files:
- conda/resolve.py
## Problem st... | diff --git a/conda/resolve.py b/conda/resolve.py
index 0000000..0000000 100644
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -1014,8 +1014,13 @@ class Resolve(object):
dashlist(', '.join(diff) for diff in diffs),
'\n ... and others' if nsol > 10 else ''))
+ d... | 30,580 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2226",
"repo": "conda/conda",
"base_commit": "c91a2ecf8ccc7fe4c4545373dc89b0b22fcddba5",
"pull_number": 2226,
"issue_numbers": [
"2224"
... |
conda__conda-2291 | 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: conda/conda
Base commit: c3d54a1bd6a15dcea2ce900b0900c369bb848907
Changed files:
- conda/cli/activate.py
- conda/i... | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
index 0000000..0000000 100644
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -124,10 +124,13 @@ def main():
if rootpath:
path = path.replace(translate_stream(rootpath, win_path_to_cygwin), "")
else:
- ... | 32,270 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2291",
"repo": "conda/conda",
"base_commit": "c3d54a1bd6a15dcea2ce900b0900c369bb848907",
"pull_number": 2291,
"issue_numbers": [
"2284"
... |
conda__conda-2355 | 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: conda/conda
Base commit: f8cfd1e9998ed2503480d1a26f932f337838731f
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -515,7 +515,12 @@ def try_hard_link(pkgs_dir, prefix, dist):
if not isdir(prefix):
os.makedirs(prefix)
_link(src, dst, LINK_HARD)
- return True
+ #... | 22,065 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2355",
"repo": "conda/conda",
"base_commit": "f8cfd1e9998ed2503480d1a26f932f337838731f",
"pull_number": 2355,
"issue_numbers": [
"2345"
... |
conda__conda-2445 | 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: conda/conda
Base commit: 33e1e45b8aee9df5377931619deacfb250be3986
Changed files:
- conda/cli/main_info.py
## Prob... | diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py
index 0000000..0000000 100644
--- a/conda/cli/main_info.py
+++ b/conda/cli/main_info.py
@@ -148,7 +148,7 @@ def execute(args, parser):
import conda.config as config
from conda.resolve import Resolve
from conda.cli.main_init import is_initialize... | 7,480 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2445",
"repo": "conda/conda",
"base_commit": "33e1e45b8aee9df5377931619deacfb250be3986",
"pull_number": 2445,
"issue_numbers": [
"2444"
... |
conda__conda-2472 | 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: conda/conda
Base commit: 91847aab60b571a5d89b5e2a582612b3cd383f7e
Changed files:
- conda/config.py
## Problem sta... | diff --git a/conda/config.py b/conda/config.py
index 0000000..0000000 100644
--- a/conda/config.py
+++ b/conda/config.py
@@ -113,7 +113,6 @@ rc_path = get_rc_path()
def load_condarc(path):
if not path or not isfile(path):
- print("no path!")
return {}
with open(path) as f:
return y... | 9,405 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2472",
"repo": "conda/conda",
"base_commit": "91847aab60b571a5d89b5e2a582612b3cd383f7e",
"pull_number": 2472,
"issue_numbers": [
"2389"
... |
conda__conda-2482 | 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: conda/conda
Base commit: cf91f160c171832055fe5a9189609c7e8ae090dc
Changed files:
- conda/cli/activate.py
## Probl... | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
index 0000000..0000000 100644
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -147,13 +147,13 @@ def main():
# this should throw an error and exit if the env or path can't be found.
try:
- binpath = binpath_from_arg(sys... | 6,936 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2482",
"repo": "conda/conda",
"base_commit": "cf91f160c171832055fe5a9189609c7e8ae090dc",
"pull_number": 2482,
"issue_numbers": [
"2449"
... |
conda__conda-2514 | 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: conda/conda
Base commit: c759a16871f6b20df533e850d3d17ee71d412671
Changed files:
- conda/connection.py
## Problem... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -91,6 +91,8 @@ class CondaSession(requests.Session):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
+ self.trust_env = False... | 13,227 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2514",
"repo": "conda/conda",
"base_commit": "c759a16871f6b20df533e850d3d17ee71d412671",
"pull_number": 2514,
"issue_numbers": [
"2161"
... |
conda__conda-2526 | 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: conda/conda
Base commit: 995d6e35a01e46a485784e1c26de9f616f397e4b
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -44,12 +44,10 @@ import traceback
from os.path import (abspath, basename, dirname, isdir, isfile, islink,
join, relpath, normpath)
-from conda.compat import iteritems,... | 31,185 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2526",
"repo": "conda/conda",
"base_commit": "995d6e35a01e46a485784e1c26de9f616f397e4b",
"pull_number": 2526,
"issue_numbers": [
"2525"
... |
conda__conda-2529 | 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: conda/conda
Base commit: ff8d814b6a8b075e8a2c4bab5b23691b21d0e902
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -85,10 +85,9 @@ except ImportError:
# A simpler version of url_channel will do
def url_channel(url):
- return None, 'defaults'
+ return url.rsplit('/', 2)[0] + '/' if... | 30,980 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2529",
"repo": "conda/conda",
"base_commit": "ff8d814b6a8b075e8a2c4bab5b23691b21d0e902",
"pull_number": 2529,
"issue_numbers": [
"2527"
... |
conda__conda-2534 | 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: conda/conda
Base commit: 4d7286cddf091c0bcf8bd105ad847dd9f57c1ed7
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -624,7 +624,8 @@ def add_cached_package(pdir, url, overwrite=False, urlstxt=False):
xdir = None
if not (xpkg or xdir):
return
- url = remove_binstar_tokens(url)
+ ... | 31,537 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2534",
"repo": "conda/conda",
"base_commit": "4d7286cddf091c0bcf8bd105ad847dd9f57c1ed7",
"pull_number": 2534,
"issue_numbers": [
"2531"
... |
conda__conda-2547 | 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: conda/conda
Base commit: c79c21f471ad19ec2588176e23b64816d5ff5e02
Changed files:
- conda/install.py
- conda/misc.p... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -825,9 +825,11 @@ def load_linked_data(prefix, dist, rec=None):
else:
linked_data(prefix)
url = rec.get('url')
- channel, schannel = url_channel(url)
if 'fn' not in ... | 39,963 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2547",
"repo": "conda/conda",
"base_commit": "c79c21f471ad19ec2588176e23b64816d5ff5e02",
"pull_number": 2547,
"issue_numbers": [
"2546"
... |
conda__conda-2604 | 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: conda/conda
Base commit: 9721c8eb20421724336602e93fbd67bd2fefa7be
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -689,8 +689,9 @@ def package_cache():
add_cached_package(pdir, url)
except IOError:
pass
- for fn in os.listdir(pdir):
- add_cached... | 32,310 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2604",
"repo": "conda/conda",
"base_commit": "9721c8eb20421724336602e93fbd67bd2fefa7be",
"pull_number": 2604,
"issue_numbers": [
"2596"
... |
conda__conda-2631 | 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: conda/conda
Base commit: 38b4966d5c0cf16ebe310ce82ffef63c926f9f3f
Changed files:
- conda/misc.py
## Problem state... | diff --git a/conda/misc.py b/conda/misc.py
index 0000000..0000000 100644
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -9,7 +9,7 @@ import shutil
import sys
from collections import defaultdict
from os.path import (abspath, dirname, expanduser, exists,
- isdir, isfile, islink, join, relpath)
+ ... | 9,369 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2631",
"repo": "conda/conda",
"base_commit": "38b4966d5c0cf16ebe310ce82ffef63c926f9f3f",
"pull_number": 2631,
"issue_numbers": [
"2626"
... |
conda__conda-2670 | 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: conda/conda
Base commit: 53005336f9085426683d27f719d02f20c2a027ed
Changed files:
- conda/cli/main_config.py
## Pr... | diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py
index 0000000..0000000 100644
--- a/conda/cli/main_config.py
+++ b/conda/cli/main_config.py
@@ -218,26 +218,21 @@ def execute_config(args, parser):
else:
rc_path = user_rc_path
- # Create the file if it doesn't exist
- if not os.path... | 10,847 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2670",
"repo": "conda/conda",
"base_commit": "53005336f9085426683d27f719d02f20c2a027ed",
"pull_number": 2670,
"issue_numbers": [
"2669"
... |
conda__conda-2685 | 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: conda/conda
Base commit: dfabcc529bbf2d641c2f866382f70a5ea75b507c
Changed files:
- conda/cli/activate.py
- conda/u... | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
index 0000000..0000000 100644
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -134,8 +134,11 @@ def main():
if rootpath:
path = path.replace(shelldict['pathsep'].join(rootpath), "")
+ path = path.lstrip()
# pre... | 17,357 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2685",
"repo": "conda/conda",
"base_commit": "dfabcc529bbf2d641c2f866382f70a5ea75b507c",
"pull_number": 2685,
"issue_numbers": [
"2680"
... |
conda__conda-2695 | 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: conda/conda
Base commit: 065a09022cfa978c075eabe20b73f8df0e71a5df
Changed files:
- conda/connection.py
## Problem... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -90,8 +90,8 @@ class CondaSession(requests.Session):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
- self.trust_env = False... | 14,293 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2695",
"repo": "conda/conda",
"base_commit": "065a09022cfa978c075eabe20b73f8df0e71a5df",
"pull_number": 2695,
"issue_numbers": [
"2677"
... |
conda__conda-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: conda/conda
Base commit: 210c4fd70ccc770d9660fbca62de92bad2dfeac8
Changed files:
- conda/api.py
- conda/fetch.py
-... | diff --git a/conda/api.py b/conda/api.py
index 0000000..0000000 100644
--- a/conda/api.py
+++ b/conda/api.py
@@ -35,7 +35,8 @@ def get_index(channel_urls=(), prepend=True, platform=None,
key = prefix + fn
if key in index:
# Copy the link information so the resolver knows this ... | 46,367 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2701",
"repo": "conda/conda",
"base_commit": "210c4fd70ccc770d9660fbca62de92bad2dfeac8",
"pull_number": 2701,
"issue_numbers": [
"2693"
... |
conda__conda-2705 | 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: conda/conda
Base commit: 210c4fd70ccc770d9660fbca62de92bad2dfeac8
Changed files:
- conda/cli/activate.py
- conda/i... | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
index 0000000..0000000 100644
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -163,7 +163,8 @@ def main():
conda.install.symlink_conda(prefix, root_dir, shell)
except (IOError, OSError) as e:
if e.errno == errno.EPE... | 38,086 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2705",
"repo": "conda/conda",
"base_commit": "210c4fd70ccc770d9660fbca62de92bad2dfeac8",
"pull_number": 2705,
"issue_numbers": [
"2703"
... |
conda__conda-2706 | 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: conda/conda
Base commit: 2ddebf31b378a452f14b45696a8070d350809ed1
Changed files:
- conda/cli/main_list.py
- conda/... | diff --git a/conda/cli/main_list.py b/conda/cli/main_list.py
index 0000000..0000000 100644
--- a/conda/cli/main_list.py
+++ b/conda/cli/main_list.py
@@ -115,8 +115,7 @@ def print_export_header():
def get_packages(installed, regex):
pat = re.compile(regex, re.I) if regex else None
-
- for dist in sorted(insta... | 23,951 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2706",
"repo": "conda/conda",
"base_commit": "2ddebf31b378a452f14b45696a8070d350809ed1",
"pull_number": 2706,
"issue_numbers": [
"2700"
... |
conda__conda-2708 | 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: conda/conda
Base commit: 6690517d591a9a3fa6b8d4b2a53b1f1f7e94a039
Changed files:
- conda/config.py
- conda/misc.py... | diff --git a/conda/config.py b/conda/config.py
index 0000000..0000000 100644
--- a/conda/config.py
+++ b/conda/config.py
@@ -297,6 +297,8 @@ def url_channel(url):
return None, '<unknown>'
channel = url.rsplit('/', 2)[0]
schannel = canonical_channel_name(channel)
+ if url.startswith('file://') and ... | 19,917 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2708",
"repo": "conda/conda",
"base_commit": "6690517d591a9a3fa6b8d4b2a53b1f1f7e94a039",
"pull_number": 2708,
"issue_numbers": [
"2688"
... |
conda__conda-2715 | 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: conda/conda
Base commit: 7d64a5c361f290e1c76a37a66cb39bdbd1ffe1f0
Changed files:
- conda/plan.py
## Problem state... | diff --git a/conda/plan.py b/conda/plan.py
index 0000000..0000000 100644
--- a/conda/plan.py
+++ b/conda/plan.py
@@ -330,7 +330,7 @@ def ensure_linked_actions(dists, prefix, index=None, force=False,
actions[inst.LINK].append('%s %d %s' % (dist, lt, shortcuts))
except (OSError, IOError):
- ... | 15,851 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2715",
"repo": "conda/conda",
"base_commit": "7d64a5c361f290e1c76a37a66cb39bdbd1ffe1f0",
"pull_number": 2715,
"issue_numbers": [
"2710"
... |
conda__conda-2729 | 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: conda/conda
Base commit: 07e517865bbb98e333a0ba0d217fc5f60c444aeb
Changed files:
- conda/config.py
## Problem sta... | diff --git a/conda/config.py b/conda/config.py
index 0000000..0000000 100644
--- a/conda/config.py
+++ b/conda/config.py
@@ -195,7 +195,9 @@ def get_rc_urls():
return rc['channels']
def is_url(url):
- return url and urlparse.urlparse(url).scheme != ""
+ if url:
+ p = urlparse.urlparse(url)
+ ... | 10,683 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2729",
"repo": "conda/conda",
"base_commit": "07e517865bbb98e333a0ba0d217fc5f60c444aeb",
"pull_number": 2729,
"issue_numbers": [
"2642"
... |
conda__conda-2734 | 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: conda/conda
Base commit: 3c6a9b5827f255735993c433488429e5781d4658
Changed files:
- conda/cli/main_config.py
- cond... | diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py
index 0000000..0000000 100644
--- a/conda/cli/main_config.py
+++ b/conda/cli/main_config.py
@@ -13,7 +13,7 @@ from .common import (Completer, add_parser_json, error_and_exit, exception_and_e
from ..compat import string_types
from ..config import (rc_boo... | 32,056 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2734",
"repo": "conda/conda",
"base_commit": "3c6a9b5827f255735993c433488429e5781d4658",
"pull_number": 2734,
"issue_numbers": [
"2732"
... |
conda__conda-2736 | 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: conda/conda
Base commit: 111d718b4433f49c083cf901a019c03a180cc54d
Changed files:
- conda/connection.py
## Problem... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -90,8 +90,6 @@ class CondaSession(requests.Session):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
- self.auth = NullAuth()... | 14,880 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2736",
"repo": "conda/conda",
"base_commit": "111d718b4433f49c083cf901a019c03a180cc54d",
"pull_number": 2736,
"issue_numbers": [
"2725",
... |
conda__conda-2772 | 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: conda/conda
Base commit: c6fe8c805dc2148eac52aa32591d0fd5a38a91be
Changed files:
- conda/plan.py
## Problem state... | diff --git a/conda/plan.py b/conda/plan.py
index 0000000..0000000 100644
--- a/conda/plan.py
+++ b/conda/plan.py
@@ -442,6 +442,7 @@ def install_actions(prefix, index, specs, force=False, only_names=None, always_c
if auto_update_conda and is_root_prefix(prefix):
specs.append('conda')
+ specs.appe... | 16,930 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2772",
"repo": "conda/conda",
"base_commit": "c6fe8c805dc2148eac52aa32591d0fd5a38a91be",
"pull_number": 2772,
"issue_numbers": [
"2771",
... |
conda__conda-2806 | 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: conda/conda
Base commit: a10456ed13e37a498ae3db4a03b90988e79ff143
Changed files:
- conda/cli/activate.py
## Probl... | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
index 0000000..0000000 100644
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -119,14 +119,11 @@ def main():
shelldict = shells[shell]
if sys.argv[1] == '..activate':
path = get_path(shelldict)
- if len(sys.argv) == 3 or sys... | 5,611 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2806",
"repo": "conda/conda",
"base_commit": "a10456ed13e37a498ae3db4a03b90988e79ff143",
"pull_number": 2806,
"issue_numbers": [
"2765"
... |
conda__conda-2821 | 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: conda/conda
Base commit: dcc70e413ee3e0875ce5889c57206a13747bf990
Changed files:
- conda/fetch.py
## Problem stat... | diff --git a/conda/fetch.py b/conda/fetch.py
index 0000000..0000000 100644
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -69,18 +69,9 @@ class dotlog_on_return(object):
return res
return func
+
@dotlog_on_return("fetching repodata:")
def fetch_repodata(url, cache_dir=None, use_cache=False, sess... | 12,327 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2821",
"repo": "conda/conda",
"base_commit": "dcc70e413ee3e0875ce5889c57206a13747bf990",
"pull_number": 2821,
"issue_numbers": [
"2807"
... |
conda__conda-2862 | 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: conda/conda
Base commit: b332659482ea5e3b3596dbe89f338f9a7e750d30
Changed files:
- conda/fetch.py
## Problem stat... | diff --git a/conda/fetch.py b/conda/fetch.py
index 0000000..0000000 100644
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -98,7 +98,7 @@ def fetch_repodata(url, cache_dir=None, use_cache=False, session=None):
if "_mod" in cache:
headers["If-Modified-Since"] = cache["_mod"]
- if 'repo.continuum.io' in u... | 13,458 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2862",
"repo": "conda/conda",
"base_commit": "b332659482ea5e3b3596dbe89f338f9a7e750d30",
"pull_number": 2862,
"issue_numbers": [
"2845"
... |
conda__conda-2873 | 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: conda/conda
Base commit: 895d23dd3c5154b149bdc5f57b1c1e33b3afdd71
Changed files:
- conda/egg_info.py
## Problem s... | diff --git a/conda/egg_info.py b/conda/egg_info.py
index 0000000..0000000 100644
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -29,14 +29,15 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
for fn in os.listdir(sp_dir):
- if not fn.endswith(('.egg', '.egg-info')):
+ ... | 2,330 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2873",
"repo": "conda/conda",
"base_commit": "895d23dd3c5154b149bdc5f57b1c1e33b3afdd71",
"pull_number": 2873,
"issue_numbers": [
"2754"
... |
conda__conda-2875 | 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: conda/conda
Base commit: 8d744a0fab207153da762d615a7e71342fe9a20f
Changed files:
- conda/cli/main_config.py
## Pr... | diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py
index 0000000..0000000 100644
--- a/conda/cli/main_config.py
+++ b/conda/cli/main_config.py
@@ -257,13 +257,19 @@ def execute_config(args, parser):
if isinstance(rc_config[key], (bool, string_types)):
print("--set", key, rc... | 8,497 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2875",
"repo": "conda/conda",
"base_commit": "8d744a0fab207153da762d615a7e71342fe9a20f",
"pull_number": 2875,
"issue_numbers": [
"2841"
... |
conda__conda-2896 | 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: conda/conda
Base commit: b1c962d3f282ff93b08bbc831f1edae33a9f653a
Changed files:
- conda/config.py
## Problem sta... | diff --git a/conda/config.py b/conda/config.py
index 0000000..0000000 100644
--- a/conda/config.py
+++ b/conda/config.py
@@ -194,7 +194,7 @@ def get_default_urls(merged=False):
return defaults_
def get_rc_urls():
- if rc.get('channels') is None:
+ if rc is None or rc.get('channels') is None:
retu... | 10,783 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2896",
"repo": "conda/conda",
"base_commit": "b1c962d3f282ff93b08bbc831f1edae33a9f653a",
"pull_number": 2896,
"issue_numbers": [
"2891"
... |
conda__conda-2908 | 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: conda/conda
Base commit: 767c0a9c06e8d37b06ad2a5afce8a25af1eac795
Changed files:
- conda/install.py
- conda/misc.p... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -41,7 +41,6 @@ import sys
import tarfile
import tempfile
import time
-import tempfile
import traceback
from os.path import (abspath, basename, dirname, isdir, isfile, islink,
... | 43,298 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2908",
"repo": "conda/conda",
"base_commit": "767c0a9c06e8d37b06ad2a5afce8a25af1eac795",
"pull_number": 2908,
"issue_numbers": [
"2886"
... |
conda__conda-2915 | 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: conda/conda
Base commit: deaccea600d7b80cbcc939f018a5fdfe2a066967
Changed files:
- conda/egg_info.py
- conda/excep... | diff --git a/conda/egg_info.py b/conda/egg_info.py
index 0000000..0000000 100644
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -15,6 +15,7 @@ from .install import linked_data
from .misc import rel_path
+
def get_site_packages_dir(installed_pkgs):
for info in itervalues(installed_pkgs):
if info[... | 6,401 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-2915",
"repo": "conda/conda",
"base_commit": "deaccea600d7b80cbcc939f018a5fdfe2a066967",
"pull_number": 2915,
"issue_numbers": [
"2681"
... |
conda__conda-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: conda/conda
Base commit: 0b4b690e6a3e1b5562307b4bda29f2f7cdbb4632
Changed files:
- conda/cli/main_config.py
- cond... | diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py
index 0000000..0000000 100644
--- a/conda/cli/main_config.py
+++ b/conda/cli/main_config.py
@@ -151,21 +151,19 @@ or the file path given by the 'CONDARC' environment variable, if it is set
choices=BoolOrListKey()
)
action.add_argument(
... | 31,963 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3041",
"repo": "conda/conda",
"base_commit": "0b4b690e6a3e1b5562307b4bda29f2f7cdbb4632",
"pull_number": 3041,
"issue_numbers": [
"3036"
... |
conda__conda-3080 | 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: conda/conda
Base commit: 13302ffd9d51807f34c3bf2fad22cb37356d2449
Changed files:
- conda/misc.py
## Problem state... | diff --git a/conda/misc.py b/conda/misc.py
index 0000000..0000000 100644
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -46,7 +46,7 @@ def explicit(specs, prefix, verbose=False, force_extract=True, index_args=None,
index_args = index_args or {}
index = index or {}
verifies = []
- channels = {}
+ channe... | 11,789 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3080",
"repo": "conda/conda",
"base_commit": "13302ffd9d51807f34c3bf2fad22cb37356d2449",
"pull_number": 3080,
"issue_numbers": [
"3060",
... |
conda__conda-3143 | 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: conda/conda
Base commit: c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a
Changed files:
- conda/connection.py
- conda/exc... | diff --git a/conda/connection.py b/conda/connection.py
index 0000000..0000000 100644
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -6,6 +6,10 @@
from __future__ import print_function, division, absolute_import
+from base64 import b64decode
+
+import ftplib
+
import cgi
import email
import mimetypes
@@ ... | 19,346 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3143",
"repo": "conda/conda",
"base_commit": "c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a",
"pull_number": 3143,
"issue_numbers": [
"3073"
... |
conda__conda-3144 | 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: conda/conda
Base commit: c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a
Changed files:
- conda/_vendor/auxlib/packaging.... | diff --git a/conda/_vendor/auxlib/packaging.py b/conda/_vendor/auxlib/packaging.py
index 0000000..0000000 100644
--- a/conda/_vendor/auxlib/packaging.py
+++ b/conda/_vendor/auxlib/packaging.py
@@ -69,11 +69,14 @@ from __future__ import print_function, division, absolute_import
import sys
from collections import named... | 8,025 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3144",
"repo": "conda/conda",
"base_commit": "c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a",
"pull_number": 3144,
"issue_numbers": [
"3079"
... |
conda__conda-3210 | 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: conda/conda
Base commit: 21c26e487dee9567467c18761fc7bffa511a97bd
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -613,7 +613,7 @@ def symlink_conda_hlp(prefix, root_dir, where, symlink_fn):
symlink_fn(root_file, prefix_file)
except (IOError, OSError) as e:
if (os.pa... | 34,468 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3210",
"repo": "conda/conda",
"base_commit": "21c26e487dee9567467c18761fc7bffa511a97bd",
"pull_number": 3210,
"issue_numbers": [
"2837",
... |
conda__conda-3228 | 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: conda/conda
Base commit: 3b60a03ff8a2a839968a6ab299377129c8e15574
Changed files:
- conda/base/constants.py
## Pro... | diff --git a/conda/base/constants.py b/conda/base/constants.py
index 0000000..0000000 100644
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -62,9 +62,9 @@ SEARCH_PATH = (
'$CONDA_ROOT/condarc',
'$CONDA_ROOT/.condarc',
'$CONDA_ROOT/condarc.d/',
- '$HOME/.conda/condarc',
- '$HOME/.con... | 24,354 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3228",
"repo": "conda/conda",
"base_commit": "3b60a03ff8a2a839968a6ab299377129c8e15574",
"pull_number": 3228,
"issue_numbers": [
"3226"
... |
conda__conda-3257 | 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: conda/conda
Base commit: 83f397d3d596dedc93e0160104dad46c6bfdb7ef
Changed files:
- conda/utils.py
## Problem stat... | diff --git a/conda/utils.py b/conda/utils.py
index 0000000..0000000 100644
--- a/conda/utils.py
+++ b/conda/utils.py
@@ -313,6 +313,12 @@ if on_win:
"sh.exe": dict(
msys2_shell_base, exe="sh.exe",
),
+ "zsh.exe": dict(
+ msys2_shell_base, exe="zsh.exe",
+ ),
+ ... | 9,056 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3257",
"repo": "conda/conda",
"base_commit": "83f397d3d596dedc93e0160104dad46c6bfdb7ef",
"pull_number": 3257,
"issue_numbers": [
"3256"
... |
conda__conda-3258 | 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: conda/conda
Base commit: 83f397d3d596dedc93e0160104dad46c6bfdb7ef
Changed files:
- conda_env/specs/requirements.py... | diff --git a/conda_env/specs/requirements.py b/conda_env/specs/requirements.py
index 0000000..0000000 100644
--- a/conda_env/specs/requirements.py
+++ b/conda_env/specs/requirements.py
@@ -37,6 +37,9 @@ class RequirementsSpec(object):
dependencies = []
with open(self.filename) as reqfile:
... | 4,458 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3258",
"repo": "conda/conda",
"base_commit": "83f397d3d596dedc93e0160104dad46c6bfdb7ef",
"pull_number": 3258,
"issue_numbers": [
"3253"
... |
conda__conda-3259 | 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: conda/conda
Base commit: 83f397d3d596dedc93e0160104dad46c6bfdb7ef
Changed files:
- conda_env/cli/main_export.py
#... | diff --git a/conda_env/cli/main_export.py b/conda_env/cli/main_export.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_export.py
+++ b/conda_env/cli/main_export.py
@@ -90,7 +90,7 @@ def execute(args, parser):
name = args.name
prefix = get_prefix(args)
env = from_environment(name, prefix, no_... | 5,774 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3259",
"repo": "conda/conda",
"base_commit": "83f397d3d596dedc93e0160104dad46c6bfdb7ef",
"pull_number": 3259,
"issue_numbers": [
"3253"
... |
conda__conda-3326 | 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: conda/conda
Base commit: 550d679e447b02781caeb348aa89370a62ffa400
Changed files:
- conda/lock.py
## Problem state... | diff --git a/conda/lock.py b/conda/lock.py
index 0000000..0000000 100644
--- a/conda/lock.py
+++ b/conda/lock.py
@@ -45,8 +45,11 @@ def touch(file_name, times=None):
Examples:
touch("hello_world.py")
"""
- with open(file_name, 'a'):
- os.utime(file_name, times)
+ try:
+ with open(... | 8,544 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3326",
"repo": "conda/conda",
"base_commit": "550d679e447b02781caeb348aa89370a62ffa400",
"pull_number": 3326,
"issue_numbers": [
"3307",
... |
conda__conda-3335 | 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: conda/conda
Base commit: 20e6122508e98f63b2cde8d03c58599d66f3f111
Changed files:
- conda/fetch.py
## Problem stat... | diff --git a/conda/fetch.py b/conda/fetch.py
index 0000000..0000000 100644
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -351,7 +351,6 @@ def fetch_pkg(info, dst_dir=None, session=None):
def download(url, dst_path, session=None, md5=None, urlstxt=False, retries=None):
- assert "::" not in str(url), url
asse... | 12,773 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3335",
"repo": "conda/conda",
"base_commit": "20e6122508e98f63b2cde8d03c58599d66f3f111",
"pull_number": 3335,
"issue_numbers": [
"3332"
... |
conda__conda-3390 | 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: conda/conda
Base commit: 35c14b82aa582f17f37042ae15bcac9d9c0761df
Changed files:
- conda/common/configuration.py
... | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
index 0000000..0000000 100644
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -188,7 +188,7 @@ class RawParameter(object):
return text_type(vars(self))
@abstractmethod
- def value(self, parameter_typ... | 18,882 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3390",
"repo": "conda/conda",
"base_commit": "35c14b82aa582f17f37042ae15bcac9d9c0761df",
"pull_number": 3390,
"issue_numbers": [
"3282"
... |
conda__conda-3395 | 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: conda/conda
Base commit: 9c1750349b4c1d66a9caf95d21a9edf90e1eb9cf
Changed files:
- conda/base/context.py
- conda/c... | diff --git a/conda/base/context.py b/conda/base/context.py
index 0000000..0000000 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -20,10 +20,10 @@ from ..exceptions import CondaEnvironmentNotFoundError, CondaValueError
log = getLogger(__name__)
-
-default_python = '%d.%d' % sys.version_info[:2]
-... | 10,156 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3395",
"repo": "conda/conda",
"base_commit": "9c1750349b4c1d66a9caf95d21a9edf90e1eb9cf",
"pull_number": 3395,
"issue_numbers": [
"3203"
... |
conda__conda-3412 | 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: conda/conda
Base commit: 2dd399d86344c8cb8a2fae41f991f8585e73ec9f
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -15,7 +15,7 @@ import tempfile
from difflib import get_close_matches
from os.path import abspath, basename, exists, isdir, join
-from .. import CondaError, text_type
+from ... | 11,545 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3412",
"repo": "conda/conda",
"base_commit": "2dd399d86344c8cb8a2fae41f991f8585e73ec9f",
"pull_number": 3412,
"issue_numbers": [
"3409",
... |
conda__conda-3413 | 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: conda/conda
Base commit: 2dd399d86344c8cb8a2fae41f991f8585e73ec9f
Changed files:
- conda/common/disk.py
## Proble... | diff --git a/conda/common/disk.py b/conda/common/disk.py
index 0000000..0000000 100644
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -192,7 +192,7 @@ def rm_rf(path, max_retries=5, trash=True):
move_result = move_path_to_trash(path)
if move_result:
... | 9,127 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3413",
"repo": "conda/conda",
"base_commit": "2dd399d86344c8cb8a2fae41f991f8585e73ec9f",
"pull_number": 3413,
"issue_numbers": [
"3408",
... |
conda__conda-3416 | 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: conda/conda
Base commit: f1a591d5a5afd707dc38386d7504ebcf974f22c0
Changed files:
- conda/exceptions.py
- conda/ins... | diff --git a/conda/exceptions.py b/conda/exceptions.py
index 0000000..0000000 100644
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -128,8 +128,9 @@ class SubprocessExit(CondaError):
class PaddingError(CondaError):
- def __init__(self, *args):
- msg = 'Padding error: %s' % ' '.join(text_type(arg)... | 48,430 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3416",
"repo": "conda/conda",
"base_commit": "f1a591d5a5afd707dc38386d7504ebcf974f22c0",
"pull_number": 3416,
"issue_numbers": [
"3407",
... |
conda__conda-3454 | 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: conda/conda
Base commit: 5980241daa95ec60af005ad1764bbadfa1d244a3
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -63,7 +63,7 @@ def check_prefix(prefix, json=False):
if name == ROOT_ENV_NAME:
error = "'%s' is a reserved environment name" % name
if exists(prefix):
- ... | 10,999 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3454",
"repo": "conda/conda",
"base_commit": "5980241daa95ec60af005ad1764bbadfa1d244a3",
"pull_number": 3454,
"issue_numbers": [
"3453"
... |
conda__conda-3521 | 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: conda/conda
Base commit: 8fa70193de809a03208a1f807e701ee29ddac145
Changed files:
- conda/common/configuration.py
... | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
index 0000000..0000000 100644
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -637,9 +637,11 @@ class MapParameter(Parameter):
def collect_errors(self, instance, value, source="<<merged>>"):
errors = su... | 20,525 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3521",
"repo": "conda/conda",
"base_commit": "8fa70193de809a03208a1f807e701ee29ddac145",
"pull_number": 3521,
"issue_numbers": [
"3467",
... |
conda__conda-3524 | 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: conda/conda
Base commit: 4f96dbd1d29ad9b9476be67217f63edd066b26b0
Changed files:
- conda/base/constants.py
## Pro... | diff --git a/conda/base/constants.py b/conda/base/constants.py
index 0000000..0000000 100644
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -99,6 +99,9 @@ class _Null(object):
def __nonzero__(self):
return False
+ def __bool__(self):
+ return False
+
NULL = _Null()
UTF8 = '... | 3,221 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3524",
"repo": "conda/conda",
"base_commit": "4f96dbd1d29ad9b9476be67217f63edd066b26b0",
"pull_number": 3524,
"issue_numbers": [
"3492"
... |
conda__conda-3537 | 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: conda/conda
Base commit: 4f96dbd1d29ad9b9476be67217f63edd066b26b0
Changed files:
- conda_env/cli/main.py
## Probl... | diff --git a/conda_env/cli/main.py b/conda_env/cli/main.py
index 0000000..0000000 100644
--- a/conda_env/cli/main.py
+++ b/conda_env/cli/main.py
@@ -1,4 +1,7 @@
from __future__ import print_function, division, absolute_import
+
+from logging import getLogger, CRITICAL
+
import os
import sys
@@ -66,6 +69,14 @@ def ... | 2,471 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3537",
"repo": "conda/conda",
"base_commit": "4f96dbd1d29ad9b9476be67217f63edd066b26b0",
"pull_number": 3537,
"issue_numbers": [
"3536",
... |
conda__conda-3538 | 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: conda/conda
Base commit: 4f96dbd1d29ad9b9476be67217f63edd066b26b0
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -1046,7 +1046,8 @@ def messages(prefix):
path = join(prefix, '.messages.txt')
try:
with open(path) as fi:
- sys.stdout.write(fi.read())
+ fh = sys.stde... | 29,530 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3538",
"repo": "conda/conda",
"base_commit": "4f96dbd1d29ad9b9476be67217f63edd066b26b0",
"pull_number": 3538,
"issue_numbers": [
"3525",
... |
conda__conda-3625 | 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: conda/conda
Base commit: 63c67adc0fd9cd187bec79abdd5ca23f8ff73297
Changed files:
- conda/common/disk.py
## Proble... | diff --git a/conda/common/disk.py b/conda/common/disk.py
index 0000000..0000000 100644
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -6,7 +6,7 @@ from errno import EACCES, EEXIST, ENOENT, EPERM
from itertools import chain
from logging import getLogger
from os import W_OK, access, chmod, getpid, listdir, l... | 8,110 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3625",
"repo": "conda/conda",
"base_commit": "63c67adc0fd9cd187bec79abdd5ca23f8ff73297",
"pull_number": 3625,
"issue_numbers": [
"3600"
... |
conda__conda-3633 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: conda/conda
Base commit: 2d850dc7ce6ded5c7573ce470dca81517a6f9b94
Changed files:
- conda/common/configuration.py
... | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
index 0000000..0000000 100644
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -23,7 +23,7 @@ from glob import glob
from itertools import chain
from logging import getLogger
from os import environ, stat
-from os.path... | 19,954 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3633",
"repo": "conda/conda",
"base_commit": "2d850dc7ce6ded5c7573ce470dca81517a6f9b94",
"pull_number": 3633,
"issue_numbers": [
"3533"
... |
conda__conda-3654 | 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: conda/conda
Base commit: 08fcffebd379914df4e3ba781d100d48cde11650
Changed files:
- conda/exports.py
## Problem st... | diff --git a/conda/exports.py b/conda/exports.py
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/conda/exports.py
@@ -0,0 +1,96 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+from functools import partial
+from warnings import warn
+
+f... | 1,655 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3654",
"repo": "conda/conda",
"base_commit": "08fcffebd379914df4e3ba781d100d48cde11650",
"pull_number": 3654,
"issue_numbers": [
"3651"
... |
conda__conda-3656 | 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: conda/conda
Base commit: 08fcffebd379914df4e3ba781d100d48cde11650
Changed files:
- conda/models/channel.py
## Pro... | diff --git a/conda/models/channel.py b/conda/models/channel.py
index 0000000..0000000 100644
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -5,7 +5,7 @@ from itertools import chain
from logging import getLogger
from requests.packages.urllib3.util import Url
-from ..base.constants import DEFAULT_CHAN... | 10,800 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3656",
"repo": "conda/conda",
"base_commit": "08fcffebd379914df4e3ba781d100d48cde11650",
"pull_number": 3656,
"issue_numbers": [
"3655",
... |
conda__conda-3683 | 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: conda/conda
Base commit: 94e75d401e415e17d20a0b789a03f1f0bc85b7dc
Changed files:
- conda/install.py
## Problem st... | diff --git a/conda/install.py b/conda/install.py
index 0000000..0000000 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -281,7 +281,7 @@ def binary_replace(data, a, b):
def replace_long_shebang(mode, data):
- if mode is FileMode.text:
+ if mode == FileMode.text:
shebang_match = SHEBANG_REGEX... | 31,131 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3683",
"repo": "conda/conda",
"base_commit": "94e75d401e415e17d20a0b789a03f1f0bc85b7dc",
"pull_number": 3683,
"issue_numbers": [
"3646",
... |
conda__conda-3684 | 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: conda/conda
Base commit: 94e75d401e415e17d20a0b789a03f1f0bc85b7dc
Changed files:
- conda/cli/install.py
## Proble... | diff --git a/conda/cli/install.py b/conda/cli/install.py
index 0000000..0000000 100644
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -142,7 +142,7 @@ def install(args, parser, command='install'):
isinstall = bool(command == 'install')
if newenv:
common.ensure_name_or_prefix(args, command)
... | 10,861 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3684",
"repo": "conda/conda",
"base_commit": "94e75d401e415e17d20a0b789a03f1f0bc85b7dc",
"pull_number": 3684,
"issue_numbers": [
"3517",
... |
conda__conda-3685 | 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: conda/conda
Base commit: 94e75d401e415e17d20a0b789a03f1f0bc85b7dc
Changed files:
- conda/base/context.py
- conda/c... | diff --git a/conda/base/context.py b/conda/base/context.py
index 0000000..0000000 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -104,6 +104,9 @@ class Context(Configuration):
binstar_upload = PrimitiveParameter(None, aliases=('anaconda_upload',),
paramet... | 22,992 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3685",
"repo": "conda/conda",
"base_commit": "94e75d401e415e17d20a0b789a03f1f0bc85b7dc",
"pull_number": 3685,
"issue_numbers": [
"3469",
... |
conda__conda-3686 | 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: conda/conda
Base commit: 94e75d401e415e17d20a0b789a03f1f0bc85b7dc
Changed files:
- conda/cli/main_info.py
- conda/... | diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py
index 0000000..0000000 100644
--- a/conda/cli/main_info.py
+++ b/conda/cli/main_info.py
@@ -11,6 +11,7 @@ import os
import re
import sys
from collections import OrderedDict
+from conda.common.url import mask_anaconda_token
from os import listdir
from os.... | 14,306 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3686",
"repo": "conda/conda",
"base_commit": "94e75d401e415e17d20a0b789a03f1f0bc85b7dc",
"pull_number": 3686,
"issue_numbers": [
"3560"
... |
conda__conda-3698 | 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: conda/conda
Base commit: a5d9c1739f7743a0dc795250beb6ad9b26a786d2
Changed files:
- conda/common/disk.py
## Proble... | diff --git a/conda/common/disk.py b/conda/common/disk.py
index 0000000..0000000 100644
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -20,6 +20,8 @@ __all__ = ["rm_rf", "exp_backoff_fn", "try_write"]
log = getLogger(__name__)
+MAX_TRIES = 7
+
def try_write(dir_path, heavy=False):
"""Test write acce... | 9,289 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3698",
"repo": "conda/conda",
"base_commit": "a5d9c1739f7743a0dc795250beb6ad9b26a786d2",
"pull_number": 3698,
"issue_numbers": [
"3664"
... |
conda__conda-3740 | 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: conda/conda
Base commit: c82d2b307f00db63fb344b1e9089352b1fc452f3
Changed files:
- conda_env/yaml.py
## Problem s... | diff --git a/conda_env/yaml.py b/conda_env/yaml.py
index 0000000..0000000 100644
--- a/conda_env/yaml.py
+++ b/conda_env/yaml.py
@@ -5,7 +5,9 @@ This is based on the answer at http://stackoverflow.com/a/16782282
"""
from __future__ import absolute_import, print_function
from collections import OrderedDict
-import ya... | 963 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3740",
"repo": "conda/conda",
"base_commit": "c82d2b307f00db63fb344b1e9089352b1fc452f3",
"pull_number": 3740,
"issue_numbers": [
"3738",
... |
conda__conda-3747 | 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: conda/conda
Base commit: 2604c2bd504996d1acf627ae9dcc1158a1d73fa5
Changed files:
- conda/base/context.py
## Probl... | diff --git a/conda/base/context.py b/conda/base/context.py
index 0000000..0000000 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -243,7 +243,6 @@ class Context(Configuration):
location, name = url_parts.path.rsplit('/', 1)
if not location:
location = '/'
- assert... | 13,978 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3747",
"repo": "conda/conda",
"base_commit": "2604c2bd504996d1acf627ae9dcc1158a1d73fa5",
"pull_number": 3747,
"issue_numbers": [
"3732",
... |
conda__conda-3748 | 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: conda/conda
Base commit: 2604c2bd504996d1acf627ae9dcc1158a1d73fa5
Changed files:
- conda/models/channel.py
## Pro... | diff --git a/conda/models/channel.py b/conda/models/channel.py
index 0000000..0000000 100644
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -73,9 +73,14 @@ def _get_channel_for_name(channel_name):
def _read_channel_configuration(scheme, host, port, path):
# return location, name, scheme, auth, tok... | 12,613 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3748",
"repo": "conda/conda",
"base_commit": "2604c2bd504996d1acf627ae9dcc1158a1d73fa5",
"pull_number": 3748,
"issue_numbers": [
"3717",
... |
conda__conda-3811 | 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: conda/conda
Base commit: d5af6bb5798b69beb27bb670d01fb5621bae0e4d
Changed files:
- conda/cli/main_config.py
- cond... | diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py
index 0000000..0000000 100644
--- a/conda/cli/main_config.py
+++ b/conda/cli/main_config.py
@@ -13,6 +13,7 @@ import sys
from .common import (Completer, add_parser_json, stdout_json_success)
from .. import CondaError
from .._vendor.auxlib.compat import... | 20,741 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3811",
"repo": "conda/conda",
"base_commit": "d5af6bb5798b69beb27bb670d01fb5621bae0e4d",
"pull_number": 3811,
"issue_numbers": [
"3807"
... |
conda__conda-3813 | 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: conda/conda
Base commit: d5af6bb5798b69beb27bb670d01fb5621bae0e4d
Changed files:
- conda/misc.py
## Problem state... | diff --git a/conda/misc.py b/conda/misc.py
index 0000000..0000000 100644
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -77,17 +77,17 @@ def explicit(specs, prefix, verbose=False, force_extract=True, index_args=None,
# is_local: if the tarball is stored locally (file://)
# is_cache: if the tarball is sitt... | 11,193 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3813",
"repo": "conda/conda",
"base_commit": "d5af6bb5798b69beb27bb670d01fb5621bae0e4d",
"pull_number": 3813,
"issue_numbers": [
"3801"
... |
conda__conda-3832 | 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: conda/conda
Base commit: 1fcd3e169389e8add2f7e4d0fda0aa984c816c24
Changed files:
- conda/base/context.py
- conda/c... | diff --git a/conda/base/context.py b/conda/base/context.py
index 0000000..0000000 100644
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -79,6 +79,8 @@ class Context(Configuration):
_channel_alias = PrimitiveParameter(DEFAULT_CHANNEL_ALIAS,
aliases=('channel_alia... | 30,956 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3832",
"repo": "conda/conda",
"base_commit": "1fcd3e169389e8add2f7e4d0fda0aa984c816c24",
"pull_number": 3832,
"issue_numbers": [
"3830"
... |
conda__conda-3931 | 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: conda/conda
Base commit: 5621882c6fd06ee263738c8981e419df772150b4
Changed files:
- conda/common/url.py
## Problem... | diff --git a/conda/common/url.py b/conda/common/url.py
index 0000000..0000000 100644
--- a/conda/common/url.py
+++ b/conda/common/url.py
@@ -68,6 +68,8 @@ def url_to_s3_info(url):
def is_url(url):
+ if not url:
+ return False
try:
p = urlparse(url)
return p.netloc is not None or p.... | 7,641 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3931",
"repo": "conda/conda",
"base_commit": "5621882c6fd06ee263738c8981e419df772150b4",
"pull_number": 3931,
"issue_numbers": [
"3910"
... |
conda__conda-3969 | 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: conda/conda
Base commit: ca57ef2a1ac70355d1aeb58ddc2da78f655c4fbc
Changed files:
- conda/egg_info.py
- conda_env/i... | diff --git a/conda/egg_info.py b/conda/egg_info.py
index 0000000..0000000 100644
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -30,6 +30,10 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
for fn in os.listdir(sp_dir):
+ if fn.endswith('.egg-link'):
+ with ope... | 3,128 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-3969",
"repo": "conda/conda",
"base_commit": "ca57ef2a1ac70355d1aeb58ddc2da78f655c4fbc",
"pull_number": 3969,
"issue_numbers": [
"4378"
... |
conda__conda-4100 | 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: conda/conda
Base commit: cdd0d5ab8ec583768875aab047de65040bead9cf
Changed files:
- conda/base/constants.py
## Pro... | diff --git a/conda/base/constants.py b/conda/base/constants.py
index 0000000..0000000 100644
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -12,7 +12,10 @@ import sys
from os.path import join
on_win = bool(sys.platform == "win32")
-PREFIX_PLACEHOLDER = '/opt/anaconda1anaconda2anaconda3'
+PREFIX_PLAC... | 7,347 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-4100",
"repo": "conda/conda",
"base_commit": "cdd0d5ab8ec583768875aab047de65040bead9cf",
"pull_number": 4100,
"issue_numbers": [
"4097",
... |
conda__conda-4175 | 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: conda/conda
Base commit: d01341e40f358753db6ce549977835ab84cfd454
Changed files:
- conda_env/env.py
## Problem st... | diff --git a/conda_env/env.py b/conda_env/env.py
index 0000000..0000000 100644
--- a/conda_env/env.py
+++ b/conda_env/env.py
@@ -36,10 +36,9 @@ def from_environment(name, prefix, no_builds=False, ignore_channels=False):
name: The name of environment
prefix: The path of prefix
no_builds: Wheth... | 5,142 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-4175",
"repo": "conda/conda",
"base_commit": "d01341e40f358753db6ce549977835ab84cfd454",
"pull_number": 4175,
"issue_numbers": [
"4152",
... |
conda__conda-4241 | 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: conda/conda
Base commit: 329161ebd54d23d64ba7d156697d2b254da0c28b
Changed files:
- conda/misc.py
## Problem state... | diff --git a/conda/misc.py b/conda/misc.py
index 0000000..0000000 100644
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -224,9 +224,10 @@ def clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None):
if filter:
if not quiet:
- print('The following packages cannot be cloned out of t... | 8,487 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-4241",
"repo": "conda/conda",
"base_commit": "329161ebd54d23d64ba7d156697d2b254da0c28b",
"pull_number": 4241,
"issue_numbers": [
"4235"
... |
conda__conda-4311 | 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: conda/conda
Base commit: 6b683eee6e5db831327d317b2ab766548c26d9ea
Changed files:
- conda/gateways/download.py
## ... | diff --git a/conda/gateways/download.py b/conda/gateways/download.py
index 0000000..0000000 100644
--- a/conda/gateways/download.py
+++ b/conda/gateways/download.py
@@ -95,9 +95,10 @@ def download(url, target_full_path, md5sum):
Content-Length: %(content_length)d
downloaded... | 3,578 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-4311",
"repo": "conda/conda",
"base_commit": "6b683eee6e5db831327d317b2ab766548c26d9ea",
"pull_number": 4311,
"issue_numbers": [
"4299"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.