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-5452 | You are given a GitHub issue and the relevant repository files 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: 2dd2233452e96adf3c2b2af232b3fb457ec6a51d
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
@@ -117,7 +117,7 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True):
print(fmt % ('Total:', human_bytes(totalsize)))
print()
- if not ... | 9,315 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5452",
"repo": "conda/conda",
"base_commit": "2dd2233452e96adf3c2b2af232b3fb457ec6a51d",
"pull_number": 5452,
"issue_numbers": [
"5451"
... |
conda__conda-5467 | You are given a GitHub issue and the relevant repository files 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: 79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e
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
@@ -16,10 +16,10 @@ from ..common.url import (Url, has_scheme, is_url, join_url, path_to_url,
try:
from cytoolz.functoolz import excepts
- from cytoolz.iter... | 11,732 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5467",
"repo": "conda/conda",
"base_commit": "79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e",
"pull_number": 5467,
"issue_numbers": [
"5466",
... |
conda__conda-5471 | You are given a GitHub issue and the relevant repository files 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: 79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e
Changed files:
- conda/cli/python_api.py
- conda... | diff --git a/conda/cli/python_api.py b/conda/cli/python_api.py
index 0000000..0000000 100644
--- a/conda/cli/python_api.py
+++ b/conda/cli/python_api.py
@@ -8,7 +8,7 @@ from shlex import split
from ..base.constants import APP_NAME, SEARCH_PATH
from ..base.context import context
from ..cli.main import generate_parser... | 7,249 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5471",
"repo": "conda/conda",
"base_commit": "79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e",
"pull_number": 5471,
"issue_numbers": [
"5470",
... |
conda__conda-5473 | You are given a GitHub issue and the relevant repository files 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: 918933dc6e0e1bfa726ca814d32de46be67dc856
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
@@ -82,8 +82,8 @@ def print_activate(arg):
# To activate this environment, use:
# > activate %s
#
- # To deactivate this environment, use:
- ... | 10,046 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5473",
"repo": "conda/conda",
"base_commit": "918933dc6e0e1bfa726ca814d32de46be67dc856",
"pull_number": 5473,
"issue_numbers": [
"5400",
... |
conda__conda-5475 | You are given a GitHub issue and the relevant repository files 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: e072cba5e890c24e4557dee2bc6499f8f53162ba
Changed files:
- conda_env/cli/main_create.py
- ... | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -5,11 +5,11 @@ import os
import sys
import textwrap
+from conda._vendor.auxlib.path import expand
from conda.cli import install as cli_inst... | 6,149 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5475",
"repo": "conda/conda",
"base_commit": "e072cba5e890c24e4557dee2bc6499f8f53162ba",
"pull_number": 5475,
"issue_numbers": [
"5444"
... |
conda__conda-5477 | You are given a GitHub issue and the relevant repository files 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: 28f8b9d89b3679bf271754039d6bf93cc8e19a68
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
@@ -8,7 +8,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from difflib import get_close_matches
import errno
-import logging
+from loggi... | 11,532 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5477",
"repo": "conda/conda",
"base_commit": "28f8b9d89b3679bf271754039d6bf93cc8e19a68",
"pull_number": 5477,
"issue_numbers": [
"5302",
... |
conda__conda-5496 | You are given a GitHub issue and the relevant repository files 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: d85347ba5d0dcaf58073d0ddd66687e04f482d8d
Changed files:
- conda/_vendor/auxlib/path.py
#... | diff --git a/conda/_vendor/auxlib/path.py b/conda/_vendor/auxlib/path.py
index 0000000..0000000 100644
--- a/conda/_vendor/auxlib/path.py
+++ b/conda/_vendor/auxlib/path.py
@@ -6,7 +6,7 @@ from os import chdir, getcwd
from os.path import abspath, dirname, exists, expanduser, expandvars, isdir, isfile, join, sep
try:
... | 3,827 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5496",
"repo": "conda/conda",
"base_commit": "d85347ba5d0dcaf58073d0ddd66687e04f482d8d",
"pull_number": 5496,
"issue_numbers": [
"5483"
... |
conda__conda-5526 | You are given a GitHub issue and the relevant repository files 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: cb134f324394dcfc1fed116f4ea1b0c578670d9a
Changed files:
- conda/exceptions.py
## Problem... | diff --git a/conda/exceptions.py b/conda/exceptions.py
index 0000000..0000000 100644
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -355,6 +355,10 @@ class CondaHTTPError(CondaError):
_message += "CF-RAY: %s\n\n" % cf_ray if cf_ray else "\n"
message = _message + message
+ status_code ... | 16,109 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5526",
"repo": "conda/conda",
"base_commit": "cb134f324394dcfc1fed116f4ea1b0c578670d9a",
"pull_number": 5526,
"issue_numbers": [
"5525"
... |
conda__conda-5532 | You are given a GitHub issue and the relevant repository files 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: e0718e46b326233c450390d5a9096df071186a3b
Changed files:
- conda/__init__.py
## Problem s... | diff --git a/conda/__init__.py b/conda/__init__.py
index 0000000..0000000 100644
--- a/conda/__init__.py
+++ b/conda/__init__.py
@@ -88,6 +88,9 @@ class CondaMultiError(CondaError):
error="Multiple Errors Encountered.",
)
+ def contains(self, exception_class):
+ ret... | 5,014 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5532",
"repo": "conda/conda",
"base_commit": "e0718e46b326233c450390d5a9096df071186a3b",
"pull_number": 5532,
"issue_numbers": [
"5515",
... |
conda__conda-5549 | You are given a GitHub issue and the relevant repository files 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: 672c772c233b8f1639d869fb01f4fb1583090304
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
@@ -198,7 +198,7 @@ def append_env(prefix):
os.mkdir(dir_path)
with open(join(dir_path, 'environments.txt'), 'a') as f:
f.write('%s\n' % prefix)
- except IOError:
+ e... | 8,587 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5549",
"repo": "conda/conda",
"base_commit": "672c772c233b8f1639d869fb01f4fb1583090304",
"pull_number": 5549,
"issue_numbers": [
"5523"
... |
conda__conda-5703 | You are given a GitHub issue and the relevant repository files 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: 7cab18070a6397cbf2218144edd7fa64c17a5964
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
@@ -163,14 +163,13 @@ def install(args, parser, command='install'):
raise PackageNotInstalledError(prefix, name)
if newenv and not args.no_default_packages... | 12,834 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5703",
"repo": "conda/conda",
"base_commit": "7cab18070a6397cbf2218144edd7fa64c17a5964",
"pull_number": 5703,
"issue_numbers": [
"5649",
... |
conda__conda-5726 | You are given a GitHub issue and the relevant repository files 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: c1af02bb4fcfb8c962bb52d040ba705174345889
Changed files:
- conda/cli/main_list.py
## Prob... | 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
@@ -39,6 +39,12 @@ def list_packages(prefix, installed, regex=None, format='human',
show_channel_urls=None):
res = 0
result = []
+
+ if for... | 3,829 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5726",
"repo": "conda/conda",
"base_commit": "c1af02bb4fcfb8c962bb52d040ba705174345889",
"pull_number": 5726,
"issue_numbers": [
"1741"
... |
conda__conda-5733 | You are given a GitHub issue and the relevant repository files 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: dce9978e3a226ab407e89f12e693350db4a5fe4f
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
@@ -531,8 +531,8 @@ class Resolve(object):
bld = rec.get('build_number', 0)
bs = rec.get('build')
ts = rec.get('timestamp', 0)
- return ((valid, -cpri, ver, bld,... | 64,607 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5733",
"repo": "conda/conda",
"base_commit": "dce9978e3a226ab407e89f12e693350db4a5fe4f",
"pull_number": 5733,
"issue_numbers": [
"5708",
... |
conda__conda-5764 | You are given a GitHub issue and the relevant repository files 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: c60a7ab0540fa0ce3856c76c4f00a2fa15343c3a
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
@@ -95,14 +95,14 @@ def _read_channel_configuration(scheme, host, port, path):
for name, channel in sorted(context.custom_channels.items(), reverse=True,
... | 11,482 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5764",
"repo": "conda/conda",
"base_commit": "c60a7ab0540fa0ce3856c76c4f00a2fa15343c3a",
"pull_number": 5764,
"issue_numbers": [
"5763"
... |
conda__conda-5814 | You are given a GitHub issue and the relevant repository files 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: be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e
Changed files:
- conda_env/cli/main_update.py
- ... | diff --git a/conda_env/cli/main_update.py b/conda_env/cli/main_update.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_update.py
+++ b/conda_env/cli/main_update.py
@@ -104,7 +104,7 @@ def execute(args, parser):
for installer_type, specs in env.dependencies.items():
try:
installer = g... | 5,909 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5814",
"repo": "conda/conda",
"base_commit": "be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e",
"pull_number": 5814,
"issue_numbers": [
"5809"
... |
conda__conda-5815 | You are given a GitHub issue and the relevant repository files 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: be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e
Changed files:
- conda/core/package_cache.py
##... | diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py
index 0000000..0000000 100644
--- a/conda/core/package_cache.py
+++ b/conda/core/package_cache.py
@@ -265,12 +265,26 @@ class PackageCache(object):
package_tarball_full_path=package_tarball_full_path,
extracted_pack... | 18,031 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5815",
"repo": "conda/conda",
"base_commit": "be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e",
"pull_number": 5815,
"issue_numbers": [
"5808"
... |
conda__conda-5820 | You are given a GitHub issue and the relevant repository files 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: be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e
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
@@ -16,7 +16,7 @@ from .common import check_non_admin
from .._vendor.auxlib.ish import dals
from ..base.constants import ROOT_ENV_NAME
from ..base.context import context
-from ... | 6,907 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5820",
"repo": "conda/conda",
"base_commit": "be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e",
"pull_number": 5820,
"issue_numbers": [
"5790"
... |
conda__conda-5831 | You are given a GitHub issue and the relevant repository files 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: 4f623168b74673105f866c35b1d33aa80f6a6bda
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
@@ -8,7 +8,6 @@ import sys
from .._vendor.auxlib.ish import dals
from ..base.constants import PREFIX_MAGIC_FILE, ROOT_ENV_NAME
from ..base.context import context
-from ..common.com... | 51,952 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5831",
"repo": "conda/conda",
"base_commit": "4f623168b74673105f866c35b1d33aa80f6a6bda",
"pull_number": 5831,
"issue_numbers": [
"5825"
... |
conda__conda-5835 | You are given a GitHub issue and the relevant repository files 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: 2f786d23c891eaca14cbd06b67f79f41cddcec8d
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
@@ -87,7 +87,7 @@ def ssl_verify_validation(value):
class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
- allow_softlinks = Primit... | 22,786 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5835",
"repo": "conda/conda",
"base_commit": "2f786d23c891eaca14cbd06b67f79f41cddcec8d",
"pull_number": 5835,
"issue_numbers": [
"5834"
... |
conda__conda-5839 | You are given a GitHub issue and the relevant repository files before and after the fix.
Your task is to synthesize the unified git diff that transforms the before files into the after files.
Repository: conda/conda
Base commit: b38340806c4f2657dc1647fee7b4b10aec60ee3f
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
@@ -72,7 +72,7 @@ def ssl_verify_validation(value):
class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
- allow_softlinks = Primit... | 20,403 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5839",
"repo": "conda/conda",
"base_commit": "b38340806c4f2657dc1647fee7b4b10aec60ee3f",
"pull_number": 5839,
"issue_numbers": [
"5834",
... |
conda__conda-5846 | You are given a GitHub issue and the relevant repository files 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: d3b47d7b9ee483ba894a385e99361fa13ca9444b
Changed files:
- conda/gateways/disk/delete.py
... | diff --git a/conda/gateways/disk/delete.py b/conda/gateways/disk/delete.py
index 0000000..0000000 100644
--- a/conda/gateways/disk/delete.py
+++ b/conda/gateways/disk/delete.py
@@ -30,16 +30,12 @@ def rm_rf(path, max_retries=5, trash=True):
path = abspath(path)
log.trace("rm_rf %s", path)
if ... | 5,094 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5846",
"repo": "conda/conda",
"base_commit": "d3b47d7b9ee483ba894a385e99361fa13ca9444b",
"pull_number": 5846,
"issue_numbers": [
"5847"
... |
conda__conda-5921 | You are given a GitHub issue and the relevant repository files 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: 40037889fba4b0afb4a9d60d04ed6014637632a6
Changed files:
- conda/core/repodata.py
## Prob... | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
index 0000000..0000000 100644
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -54,7 +54,7 @@ log = getLogger(__name__)
dotlog = getLogger('dotupdate')
stderrlog = getLogger('stderrlog')
-REPODATA_PICKLE_VERSION = 1
+REPODATA_PICKLE_VERSION = ... | 14,139 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5921",
"repo": "conda/conda",
"base_commit": "40037889fba4b0afb4a9d60d04ed6014637632a6",
"pull_number": 5921,
"issue_numbers": [
"5920"
... |
conda__conda-5923 | You are given a GitHub issue and the relevant repository files 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: 40037889fba4b0afb4a9d60d04ed6014637632a6
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
@@ -4,8 +4,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from itertools import chain
from logging import getLogger
-from ..... | 10,485 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5923",
"repo": "conda/conda",
"base_commit": "40037889fba4b0afb4a9d60d04ed6014637632a6",
"pull_number": 5923,
"issue_numbers": [
"5922"
... |
conda__conda-5949 | You are given a GitHub issue and the relevant repository files 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: 9c9dc2b85061399e5dfa0f80331f8b0fe8109226
Changed files:
- conda/gateways/adapters/s3.py
... | diff --git a/conda/gateways/adapters/s3.py b/conda/gateways/adapters/s3.py
index 0000000..0000000 100644
--- a/conda/gateways/adapters/s3.py
+++ b/conda/gateways/adapters/s3.py
@@ -1,13 +1,16 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+import json
... | 2,373 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5949",
"repo": "conda/conda",
"base_commit": "9c9dc2b85061399e5dfa0f80331f8b0fe8109226",
"pull_number": 5949,
"issue_numbers": [
"5948"
... |
conda__conda-5982 | You are given a GitHub issue and the relevant repository files 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: f0032e064a8122ebdb4a0d7885a0b61a053e58f5
Changed files:
- conda/gateways/disk/delete.py
... | diff --git a/conda/gateways/disk/delete.py b/conda/gateways/disk/delete.py
index 0000000..0000000 100644
--- a/conda/gateways/disk/delete.py
+++ b/conda/gateways/disk/delete.py
@@ -49,6 +49,8 @@ def rm_rf(path, max_retries=5, trash=True):
log.info("Failed to remove %s.", path)
else:
... | 4,709 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5982",
"repo": "conda/conda",
"base_commit": "f0032e064a8122ebdb4a0d7885a0b61a053e58f5",
"pull_number": 5982,
"issue_numbers": [
"5980",
... |
conda__conda-5986 | You are given a GitHub issue and the relevant repository files 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: 40c6ae17729142fcd54478996417d171cc111ab9
Changed files:
- conda/cli/activate.py
- conda/c... | 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
@@ -83,12 +83,15 @@ def _get_prefix_paths(prefix):
yield os.path.join(prefix, 'bin')
-def binpath_from_arg(arg, shell):
+def binpath_from_arg(arg, shell, going_to... | 14,795 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5986",
"repo": "conda/conda",
"base_commit": "40c6ae17729142fcd54478996417d171cc111ab9",
"pull_number": 5986,
"issue_numbers": [
"5948",
... |
conda__conda-5988 | You are given a GitHub issue and the relevant repository files 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: 91adf32066cf3ee10b5d10e3419bed4348bdcacd
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
@@ -97,6 +97,7 @@ class Context(Configuration):
element_type=string_types + (NoneType,),
vali... | 59,741 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-5988",
"repo": "conda/conda",
"base_commit": "91adf32066cf3ee10b5d10e3419bed4348bdcacd",
"pull_number": 5988,
"issue_numbers": [
"5983"
... |
conda__conda-6044 | You are given a GitHub issue and the relevant repository files 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: 066fea062b6184a50acd6f0e3de16f52f4c84868
Changed files:
- conda/core/repodata.py
- conda/... | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
index 0000000..0000000 100644
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -51,7 +51,7 @@ except ImportError: # pragma: no cover
log = getLogger(__name__)
stderrlog = getLogger('conda.stderrlog')
-REPODATA_PICKLE_VERSION = 6
+REPODATA_PIC... | 26,851 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6044",
"repo": "conda/conda",
"base_commit": "066fea062b6184a50acd6f0e3de16f52f4c84868",
"pull_number": 6044,
"issue_numbers": [
"5854"
... |
conda__conda-6076 | You are given a GitHub issue and the relevant repository files 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: b934b58893b19c6d3a0b16322d4f7c020f5edcaf
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -449,13 +449,12 @@ class Solver(object):
self._r = Resolve(self._index, channels=self.channels)
else:
# add in required channels that aren't expl... | 23,240 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6076",
"repo": "conda/conda",
"base_commit": "b934b58893b19c6d3a0b16322d4f7c020f5edcaf",
"pull_number": 6076,
"issue_numbers": [
"5852"
... |
conda__conda-6082 | You are given a GitHub issue and the relevant repository files 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: 98c3549429009de3c51cffc5e25753dfe83a7417
Changed files:
- conda/gateways/disk/create.py
... | diff --git a/conda/gateways/disk/create.py b/conda/gateways/disk/create.py
index 0000000..0000000 100644
--- a/conda/gateways/disk/create.py
+++ b/conda/gateways/disk/create.py
@@ -238,7 +238,8 @@ def create_link(src, dst, link_type=LinkType.hardlink, force=False):
return
if not lexists(src):
- r... | 8,445 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6082",
"repo": "conda/conda",
"base_commit": "98c3549429009de3c51cffc5e25753dfe83a7417",
"pull_number": 6082,
"issue_numbers": [
"6057"
... |
conda__conda-6085 | You are given a GitHub issue and the relevant repository files 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: 98c3549429009de3c51cffc5e25753dfe83a7417
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
@@ -377,9 +377,6 @@ def execute_config(args, parser):
bad = rc_config[key].__class__.__name__
from ..exceptions import CouldntPar... | 10,518 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6085",
"repo": "conda/conda",
"base_commit": "98c3549429009de3c51cffc5e25753dfe83a7417",
"pull_number": 6085,
"issue_numbers": [
"6084"
... |
conda__conda-6128 | You are given a GitHub issue and the relevant repository files 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: 8d5b26c24128ac88a725cd275250aa379f58eff0
Changed files:
- conda/models/index_record.py
#... | diff --git a/conda/models/index_record.py b/conda/models/index_record.py
index 0000000..0000000 100644
--- a/conda/models/index_record.py
+++ b/conda/models/index_record.py
@@ -54,12 +54,31 @@ class NoarchField(EnumField):
class TimestampField(NumberField):
- def box(self, instance, val):
- val = super(T... | 5,534 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6128",
"repo": "conda/conda",
"base_commit": "8d5b26c24128ac88a725cd275250aa379f58eff0",
"pull_number": 6128,
"issue_numbers": [
"6096"
... |
conda__conda-6131 | You are given a GitHub issue and the relevant repository files 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: 8d5b26c24128ac88a725cd275250aa379f58eff0
Changed files:
- conda/models/index_record.py
#... | diff --git a/conda/models/index_record.py b/conda/models/index_record.py
index 0000000..0000000 100644
--- a/conda/models/index_record.py
+++ b/conda/models/index_record.py
@@ -54,12 +54,33 @@ class NoarchField(EnumField):
class TimestampField(NumberField):
- def box(self, instance, val):
- val = super(T... | 5,549 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6131",
"repo": "conda/conda",
"base_commit": "8d5b26c24128ac88a725cd275250aa379f58eff0",
"pull_number": 6131,
"issue_numbers": [
"6096"
... |
conda__conda-6154 | You are given a GitHub issue and the relevant repository files 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: 98c3549429009de3c51cffc5e25753dfe83a7417
Changed files:
- conda_env/cli/main_list.py
## ... | diff --git a/conda_env/cli/main_list.py b/conda_env/cli/main_list.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_list.py
+++ b/conda_env/cli/main_list.py
@@ -14,7 +14,7 @@ examples:
def configure_parser(sub_parsers):
- l = sub_parsers.add_parser(
+ list_parser = sub_parsers.add_parser(
'l... | 2,101 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6154",
"repo": "conda/conda",
"base_commit": "98c3549429009de3c51cffc5e25753dfe83a7417",
"pull_number": 6154,
"issue_numbers": [
"6023"
... |
conda__conda-6205 | You are given a GitHub issue and the relevant repository files 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: a8f3ce438379eaaba33864c25a2e05e703da3556
Changed files:
- conda/core/repodata.py
- conda/... | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
index 0000000..0000000 100644
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -18,7 +18,7 @@ from time import time
import warnings
from requests import ConnectionError, HTTPError
-from requests.exceptions import InvalidSchema, SSLError
+from ... | 37,012 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6205",
"repo": "conda/conda",
"base_commit": "a8f3ce438379eaaba33864c25a2e05e703da3556",
"pull_number": 6205,
"issue_numbers": [
"3962"
... |
conda__conda-6221 | You are given a GitHub issue and the relevant repository files 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: ddf0446e73bcfc889f653d5d08b34bacfd9764ac
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
@@ -48,9 +48,9 @@ def from_environment(name, prefix, no_builds=False, ignore_channels=False):
pip_pkgs = sorted(installed - conda_pkgs)
if no_builds:
- dependencies = ['='.join... | 4,440 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6221",
"repo": "conda/conda",
"base_commit": "ddf0446e73bcfc889f653d5d08b34bacfd9764ac",
"pull_number": 6221,
"issue_numbers": [
"6220"
... |
conda__conda-6274 | You are given a GitHub issue and the relevant repository files 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: 478137a45fcd12c80d93a441ecd4528535967c1a
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
@@ -282,7 +282,13 @@ class Context(Configuration):
@property
def root_writable(self):
from ..gateways.disk.test import prefix_is_writable
- return pr... | 21,505 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6274",
"repo": "conda/conda",
"base_commit": "478137a45fcd12c80d93a441ecd4528535967c1a",
"pull_number": 6274,
"issue_numbers": [
"6243"
... |
conda__conda-6275 | You are given a GitHub issue and the relevant repository files 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: b934b58893b19c6d3a0b16322d4f7c020f5edcaf
Changed files:
- conda_env/cli/main_create.py
- ... | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -110,7 +110,7 @@ def execute(args, parser):
sys.stderr.write(textwrap.dedent("""
Unable to install package for {0}... | 8,774 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6275",
"repo": "conda/conda",
"base_commit": "b934b58893b19c6d3a0b16322d4f7c020f5edcaf",
"pull_number": 6275,
"issue_numbers": [
"5680"
... |
conda__conda-6277 | You are given a GitHub issue and the relevant repository files 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: d75d6a6a89049fb71d13b8eb0d719c0cf0937f3b
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
@@ -6,11 +6,12 @@ import re
from .base.constants import CONDA_TARBALL_EXTENSION, DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY
from .base.context import context
-from .common.compat import iter... | 29,024 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6277",
"repo": "conda/conda",
"base_commit": "d75d6a6a89049fb71d13b8eb0d719c0cf0937f3b",
"pull_number": 6277,
"issue_numbers": [
"6057"
... |
conda__conda-6295 | You are given a GitHub issue and the relevant repository files 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: 824ffae0ae9344a99343fe7aafbcefa89a74544c
Changed files:
- conda/base/context.py
- conda/r... | 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
@@ -11,7 +11,7 @@ import sys
from .constants import (APP_NAME, DEFAULTS_CHANNEL_NAME, DEFAULT_CHANNELS, DEFAULT_CHANNEL_ALIAS,
ERROR_UPLOAD_URL, PLAT... | 53,026 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6295",
"repo": "conda/conda",
"base_commit": "824ffae0ae9344a99343fe7aafbcefa89a74544c",
"pull_number": 6295,
"issue_numbers": [
"6220",
... |
conda__conda-6299 | You are given a GitHub issue and the relevant repository files 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: d5d002acefe580451a6bf5cbf26dbada3ad45c9a
Changed files:
- conda_env/cli/main_create.py
#... | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
index 0000000..0000000 100644
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -6,7 +6,7 @@ import sys
import textwrap
from conda.cli import common, install as cli_install
-from conda.gateways.disk.delete import rm_rf
+... | 3,251 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6299",
"repo": "conda/conda",
"base_commit": "d5d002acefe580451a6bf5cbf26dbada3ad45c9a",
"pull_number": 6299,
"issue_numbers": [
"6012"
... |
conda__conda-6352 | You are given a GitHub issue and the relevant repository files 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: 58f340d45f87a3bebfcd6f2058e21aabb99f2021
Changed files:
- conda/cli/conda_argparse.py
- c... | diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py
index 0000000..0000000 100644
--- a/conda/cli/conda_argparse.py
+++ b/conda/cli/conda_argparse.py
@@ -122,14 +122,13 @@ class ArgumentParser(ArgumentParserBase):
else:
argument = None
if argument and argume... | 52,651 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6352",
"repo": "conda/conda",
"base_commit": "58f340d45f87a3bebfcd6f2058e21aabb99f2021",
"pull_number": 6352,
"issue_numbers": [
"5827"
... |
conda__conda-6363 | You are given a GitHub issue and the relevant repository files 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: a3254b18f1d7a379620f502ec6dd7e845cb03ae8
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -1,12 +1,11 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from enum import Enum
from genericpath import exists... | 22,311 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6363",
"repo": "conda/conda",
"base_commit": "a3254b18f1d7a379620f502ec6dd7e845cb03ae8",
"pull_number": 6363,
"issue_numbers": [
"6181"
... |
conda__conda-6364 | You are given a GitHub issue and the relevant repository files 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: aba43f2015c8713a236d858aa91e7b3205d33845
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from enum import Enum
from genericpath import exists... | 22,380 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6364",
"repo": "conda/conda",
"base_commit": "aba43f2015c8713a236d858aa91e7b3205d33845",
"pull_number": 6364,
"issue_numbers": [
"5417"
... |
conda__conda-6367 | You are given a GitHub issue and the relevant repository files 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: aba43f2015c8713a236d858aa91e7b3205d33845
Changed files:
- conda/cli/main_search.py
## Pr... | diff --git a/conda/cli/main_search.py b/conda/cli/main_search.py
index 0000000..0000000 100644
--- a/conda/cli/main_search.py
+++ b/conda/cli/main_search.py
@@ -36,7 +36,7 @@ def execute(args, parser):
channels_urls = tuple(calculate_channel_urls(
channel_urls=context.channels,
prepen... | 3,346 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6367",
"repo": "conda/conda",
"base_commit": "aba43f2015c8713a236d858aa91e7b3205d33845",
"pull_number": 6367,
"issue_numbers": [
"6201"
... |
conda__conda-6368 | You are given a GitHub issue and the relevant repository files 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: aba43f2015c8713a236d858aa91e7b3205d33845
Changed files:
- conda/cli/conda_argparse.py
- c... | diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py
index 0000000..0000000 100644
--- a/conda/cli/conda_argparse.py
+++ b/conda/cli/conda_argparse.py
@@ -112,7 +112,6 @@ class ArgumentParser(ArgumentParserBase):
def error(self, message):
import re
from .find_commands import fin... | 52,897 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6368",
"repo": "conda/conda",
"base_commit": "aba43f2015c8713a236d858aa91e7b3205d33845",
"pull_number": 6368,
"issue_numbers": [
"6045"
... |
conda__conda-6369 | You are given a GitHub issue and the relevant repository files 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: bf233020b4666cfbcaea6f8a2a4c28647aafce32
Changed files:
- conda/exceptions.py
## Problem... | diff --git a/conda/exceptions.py b/conda/exceptions.py
index 0000000..0000000 100644
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -6,7 +6,7 @@ import json
from logging import getLogger
import os
import sys
-from traceback import format_exception_only, format_exception
+from traceback import format_exceptio... | 23,035 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6369",
"repo": "conda/conda",
"base_commit": "bf233020b4666cfbcaea6f8a2a4c28647aafce32",
"pull_number": 6369,
"issue_numbers": [
"6366"
... |
conda__conda-6371 | You are given a GitHub issue and the relevant repository files 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: 640e48a1da494669aae40458e2d18b15b21e0c99
Changed files:
- conda/core/index.py
## Problem... | diff --git a/conda/core/index.py b/conda/core/index.py
index 0000000..0000000 100644
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from concurrent.futures import as_completed
from ite... | 10,470 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6371",
"repo": "conda/conda",
"base_commit": "640e48a1da494669aae40458e2d18b15b21e0c99",
"pull_number": 6371,
"issue_numbers": [
"5370"
... |
conda__conda-6434 | You are given a GitHub issue and the relevant repository files 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: c06adf205b195329c7c13533cac2fd3e20302145
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
@@ -25,7 +25,7 @@ log = logging.getLogger(__name__)
def execute(args, parser):
- if not (args.all or args.package_names or args.features):
+ if not (arg... | 5,456 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6434",
"repo": "conda/conda",
"base_commit": "c06adf205b195329c7c13533cac2fd3e20302145",
"pull_number": 6434,
"issue_numbers": [
"6429"
... |
conda__conda-6436 | You are given a GitHub issue and the relevant repository files 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: c06adf205b195329c7c13533cac2fd3e20302145
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
@@ -195,33 +195,25 @@ def get_info_dict(system=False):
info_dict['UID'] = os.geteuid()
info_dict['GID'] = os.getegid()
- if system:
- evars =... | 10,588 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6436",
"repo": "conda/conda",
"base_commit": "c06adf205b195329c7c13533cac2fd3e20302145",
"pull_number": 6436,
"issue_numbers": [
"6431"
... |
conda__conda-6442 | You are given a GitHub issue and the relevant repository files 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: 5c0cf2afb1c2d0b1dddd7e396cf13f4bfaecf4d6
Changed files:
- conda/models/match_spec.py
## ... | diff --git a/conda/models/match_spec.py b/conda/models/match_spec.py
index 0000000..0000000 100644
--- a/conda/models/match_spec.py
+++ b/conda/models/match_spec.py
@@ -349,10 +349,8 @@ class MatchSpec(object):
matcher = value
elif field_name in _implementors:
matcher = _i... | 20,859 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6442",
"repo": "conda/conda",
"base_commit": "5c0cf2afb1c2d0b1dddd7e396cf13f4bfaecf4d6",
"pull_number": 6442,
"issue_numbers": [
"6441"
... |
conda__conda-6446 | You are given a GitHub issue and the relevant repository files 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: 3d8374eba3a0335c3ac466c3000898d057187792
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -51,7 +51,7 @@ class Activator(object):
self.shift_args = 0
self.unset_var_tmpl = 'unset %s'
- self.set_var_tmpl = 'export %s="%s"'
+ self... | 13,216 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6446",
"repo": "conda/conda",
"base_commit": "3d8374eba3a0335c3ac466c3000898d057187792",
"pull_number": 6446,
"issue_numbers": [
"6419"
... |
conda__conda-6447 | You are given a GitHub issue and the relevant repository files 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: 63234e0470d793e2e2bcfd958de094bbe9223571
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -191,14 +191,8 @@ class Activator(object):
yield self.run_script_tmpl % script
def build_activate(self, env_name_or_prefix):
- test_path = expand(env_name_or_pre... | 13,855 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6447",
"repo": "conda/conda",
"base_commit": "63234e0470d793e2e2bcfd958de094bbe9223571",
"pull_number": 6447,
"issue_numbers": [
"6445"
... |
conda__conda-6448 | You are given a GitHub issue and the relevant repository files 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: 63234e0470d793e2e2bcfd958de094bbe9223571
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
@@ -575,7 +575,6 @@ class Context(Configuration):
'ignore_pinned',
'max_shlvl',
'migrated_custom_channels',
- 'no_dependencie... | 82,824 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6448",
"repo": "conda/conda",
"base_commit": "63234e0470d793e2e2bcfd958de094bbe9223571",
"pull_number": 6448,
"issue_numbers": [
"6283"
... |
conda__conda-6467 | You are given a GitHub issue and the relevant repository files 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: 3d8374eba3a0335c3ac466c3000898d057187792
Changed files:
- conda/core/index.py
## Problem... | diff --git a/conda/core/index.py b/conda/core/index.py
index 0000000..0000000 100644
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -160,6 +160,8 @@ def get_reduced_index(prefix, channels, subdirs, specs):
with backdown_thread_pool() as executor:
channel_urls = all_channel_urls(channels, subdirs... | 7,887 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6467",
"repo": "conda/conda",
"base_commit": "3d8374eba3a0335c3ac466c3000898d057187792",
"pull_number": 6467,
"issue_numbers": [
"5158",
... |
conda__conda-6470 | You are given a GitHub issue and the relevant repository files 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: 3d8374eba3a0335c3ac466c3000898d057187792
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
@@ -75,7 +75,7 @@ def get_egg_info(prefix, all_pkgs=False):
"""
installed_pkgs = linked_data(prefix)
sp_dir = get_site_packages_dir(installed_pkgs)
- if sp_dir is None:
+ ... | 3,074 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6470",
"repo": "conda/conda",
"base_commit": "3d8374eba3a0335c3ac466c3000898d057187792",
"pull_number": 6470,
"issue_numbers": [
"6466"
... |
conda__conda-6491 | You are given a GitHub issue and the relevant repository files 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: 334bb2ee17d0410460705b34eae16ec97e5ea8e1
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -143,20 +143,34 @@ class Solver(object):
# `solution` and `specs_map` are mutated throughout this method
prefix_data = PrefixData(self.prefix)
solution =... | 26,253 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6491",
"repo": "conda/conda",
"base_commit": "334bb2ee17d0410460705b34eae16ec97e5ea8e1",
"pull_number": 6491,
"issue_numbers": [
"6350"
... |
conda__conda-6494 | You are given a GitHub issue and the relevant repository files 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: 334bb2ee17d0410460705b34eae16ec97e5ea8e1
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
@@ -6,13 +6,14 @@ from logging import DEBUG, getLogger
from .base.constants import DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY
from .base.context import context
-from .common.compat import it... | 27,674 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6494",
"repo": "conda/conda",
"base_commit": "334bb2ee17d0410460705b34eae16ec97e5ea8e1",
"pull_number": 6494,
"issue_numbers": [
"6057"
... |
conda__conda-6510 | You are given a GitHub issue and the relevant repository files 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: c12f2e8432324199728deb2bb2418b6c858766c1
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
@@ -17,7 +17,7 @@ from .common import Completer, add_parser_json, stdout_json_success
from .. import CondaError
from ..base.constants import CONDA_HOMEPAGE_URL
... | 10,487 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6510",
"repo": "conda/conda",
"base_commit": "c12f2e8432324199728deb2bb2418b6c858766c1",
"pull_number": 6510,
"issue_numbers": [
"6509"
... |
conda__conda-6511 | You are given a GitHub issue and the relevant repository files 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: eba59e3d6ba486b6e9a39864b1daacbc7f99f719
Changed files:
- conda/base/context.py
- conda/e... | 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
@@ -982,7 +982,7 @@ def _first_writable_envs_dir():
return envs_dir
from ..exceptions import NotWritableError
- raise NotWritableError(context.envs_dirs... | 52,377 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6511",
"repo": "conda/conda",
"base_commit": "eba59e3d6ba486b6e9a39864b1daacbc7f99f719",
"pull_number": 6511,
"issue_numbers": [
"6508"
... |
conda__conda-6517 | You are given a GitHub issue and the relevant repository files 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: 09912b87b21b0a66d638e65561ed126677846a91
Changed files:
- conda/core/index.py
- conda/pla... | diff --git a/conda/core/index.py b/conda/core/index.py
index 0000000..0000000 100644
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -44,6 +44,8 @@ def check_whitelist(channel_urls):
% (bad_channel.location, bad_channel.canonical_name))
+LAST_CHANNEL_URLS = []
+
@t... | 50,817 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6517",
"repo": "conda/conda",
"base_commit": "09912b87b21b0a66d638e65561ed126677846a91",
"pull_number": 6517,
"issue_numbers": [
"6516"
... |
conda__conda-6524 | You are given a GitHub issue and the relevant repository files 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: 09912b87b21b0a66d638e65561ed126677846a91
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -144,7 +144,11 @@ class Solver(object):
prefix_data = PrefixData(self.prefix)
solution = tuple(Dist(d) for d in prefix_data.iter_records())
specs_from_hi... | 25,127 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6524",
"repo": "conda/conda",
"base_commit": "09912b87b21b0a66d638e65561ed126677846a91",
"pull_number": 6524,
"issue_numbers": [
"6523"
... |
conda__conda-6525 | You are given a GitHub issue and the relevant repository files 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: 09912b87b21b0a66d638e65561ed126677846a91
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -241,7 +241,7 @@ class Solver(object):
the output of 'conda info' and 'conda list' for the active environment, along
with the command you ... | 25,394 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6525",
"repo": "conda/conda",
"base_commit": "09912b87b21b0a66d638e65561ed126677846a91",
"pull_number": 6525,
"issue_numbers": [
"6522"
... |
conda__conda-6526 | You are given a GitHub issue and the relevant repository files 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: 09912b87b21b0a66d638e65561ed126677846a91
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
@@ -160,6 +160,7 @@ class Context(Configuration):
migrated_custom_channels = MapParameter(string_types) # TODO: also take a list of strings
override_channels_enable... | 57,225 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6526",
"repo": "conda/conda",
"base_commit": "09912b87b21b0a66d638e65561ed126677846a91",
"pull_number": 6526,
"issue_numbers": [
"6520"
... |
conda__conda-6533 | You are given a GitHub issue and the relevant repository files 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: 6c5d2bab095f9a2a4f846515800dbcf38f2fac39
Changed files:
- conda/common/compat.py
- conda/... | diff --git a/conda/common/compat.py b/conda/common/compat.py
index 0000000..0000000 100644
--- a/conda/common/compat.py
+++ b/conda/common/compat.py
@@ -47,9 +47,11 @@ elif PY2: # pragma: py3 no cover
if PY3: # pragma: py2 no cover
from io import StringIO
from itertools import zip_longest
+ from json im... | 23,077 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6533",
"repo": "conda/conda",
"base_commit": "6c5d2bab095f9a2a4f846515800dbcf38f2fac39",
"pull_number": 6533,
"issue_numbers": [
"6530"
... |
conda__conda-6535 | You are given a GitHub issue and the relevant repository files 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: 6c5d2bab095f9a2a4f846515800dbcf38f2fac39
Changed files:
- conda_env/installers/pip.py
- c... | diff --git a/conda_env/installers/pip.py b/conda_env/installers/pip.py
index 0000000..0000000 100644
--- a/conda_env/installers/pip.py
+++ b/conda_env/installers/pip.py
@@ -37,7 +37,8 @@ def _pip_install_via_requirements(prefix, specs, args, *_, **kwargs):
requirements.write('\n'.join(specs))
requirem... | 4,696 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6535",
"repo": "conda/conda",
"base_commit": "6c5d2bab095f9a2a4f846515800dbcf38f2fac39",
"pull_number": 6535,
"issue_numbers": [
"6536"
... |
conda__conda-6540 | You are given a GitHub issue and the relevant repository files 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: 6c5d2bab095f9a2a4f846515800dbcf38f2fac39
Changed files:
- conda/common/io.py
## Problem ... | diff --git a/conda/common/io.py b/conda/common/io.py
index 0000000..0000000 100644
--- a/conda/common/io.py
+++ b/conda/common/io.py
@@ -5,6 +5,7 @@ from collections import defaultdict
from concurrent.futures import ThreadPoolExecutor
from contextlib import contextmanager
from enum import Enum
+from errno import EPI... | 11,233 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6540",
"repo": "conda/conda",
"base_commit": "6c5d2bab095f9a2a4f846515800dbcf38f2fac39",
"pull_number": 6540,
"issue_numbers": [
"6538"
... |
conda__conda-6542 | You are given a GitHub issue and the relevant repository files 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: 84d8f425252dafadcaeed5a834300e058456881f
Changed files:
- conda/core/envs_manager.py
- co... | diff --git a/conda/core/envs_manager.py b/conda/core/envs_manager.py
index 0000000..0000000 100644
--- a/conda/core/envs_manager.py
+++ b/conda/core/envs_manager.py
@@ -7,7 +7,7 @@ from os.path import dirname, isdir, isfile, join, normpath, split as path_split
from ..base.constants import ROOT_ENV_NAME
from ..base.... | 8,842 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6542",
"repo": "conda/conda",
"base_commit": "84d8f425252dafadcaeed5a834300e058456881f",
"pull_number": 6542,
"issue_numbers": [
"6541"
... |
conda__conda-6550 | You are given a GitHub issue and the relevant repository files 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: 2060458e0c546a3c70fa041e738cb73b41c4b0d3
Changed files:
- conda/cli/install.py
- conda/mo... | 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
@@ -12,17 +12,21 @@ from os.path import abspath, basename, exists, isdir
from . import common
from .common import check_non_admin
+from .. import CondaError
from .._vendor.au... | 27,313 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6550",
"repo": "conda/conda",
"base_commit": "2060458e0c546a3c70fa041e738cb73b41c4b0d3",
"pull_number": 6550,
"issue_numbers": [
"6548"
... |
conda__conda-6555 | You are given a GitHub issue and the relevant repository files 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: 2060458e0c546a3c70fa041e738cb73b41c4b0d3
Changed files:
- conda/core/package_cache.py
##... | diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py
index 0000000..0000000 100644
--- a/conda/core/package_cache.py
+++ b/conda/core/package_cache.py
@@ -304,7 +304,14 @@ class PackageCache(object):
# to do is remove it and try extracting.
rm_... | 18,829 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6555",
"repo": "conda/conda",
"base_commit": "2060458e0c546a3c70fa041e738cb73b41c4b0d3",
"pull_number": 6555,
"issue_numbers": [
"6554"
... |
conda__conda-6558 | You are given a GitHub issue and the relevant repository files 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: 2060458e0c546a3c70fa041e738cb73b41c4b0d3
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,7 +29,7 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
- for fn in os.listdir(sp_dir):
+ for fn in (isdir(sp_dir) and os.listdir(sp_dir) or ()... | 2,938 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6558",
"repo": "conda/conda",
"base_commit": "2060458e0c546a3c70fa041e738cb73b41c4b0d3",
"pull_number": 6558,
"issue_numbers": [
"6557"
... |
conda__conda-6560 | You are given a GitHub issue and the relevant repository files 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: 2060458e0c546a3c70fa041e738cb73b41c4b0d3
Changed files:
- conda/common/serialize.py
- con... | diff --git a/conda/common/serialize.py b/conda/common/serialize.py
index 0000000..0000000 100644
--- a/conda/common/serialize.py
+++ b/conda/common/serialize.py
@@ -64,6 +64,16 @@ def yaml_load_safe(string):
return yaml.load(string, Loader=yaml.SafeLoader, version="1.2")
+def yaml_load_standard(string):
+ "... | 7,446 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6560",
"repo": "conda/conda",
"base_commit": "2060458e0c546a3c70fa041e738cb73b41c4b0d3",
"pull_number": 6560,
"issue_numbers": [
"6529"
... |
conda__conda-6564 | You are given a GitHub issue and the relevant repository files 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: 2060458e0c546a3c70fa041e738cb73b41c4b0d3
Changed files:
- conda/core/package_cache.py
- c... | diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py
index 0000000..0000000 100644
--- a/conda/core/package_cache.py
+++ b/conda/core/package_cache.py
@@ -1,12 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno import EAC... | 43,558 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6564",
"repo": "conda/conda",
"base_commit": "2060458e0c546a3c70fa041e738cb73b41c4b0d3",
"pull_number": 6564,
"issue_numbers": [
"6562"
... |
conda__conda-6565 | You are given a GitHub issue and the relevant repository files 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: 7616b87ad87b80da16b8263011c9c708be98147c
Changed files:
- conda/history.py
## Problem st... | diff --git a/conda/history.py b/conda/history.py
index 0000000..0000000 100644
--- a/conda/history.py
+++ b/conda/history.py
@@ -163,7 +163,7 @@ class History(object):
specs = literal_eval(specs)
elif '[' not in specs:
specs = specs.split(',')
- ... | 9,232 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6565",
"repo": "conda/conda",
"base_commit": "7616b87ad87b80da16b8263011c9c708be98147c",
"pull_number": 6565,
"issue_numbers": [
"6546"
... |
conda__conda-6568 | You are given a GitHub issue and the relevant repository files 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: 5e3915b8d06618206cd29f2654dfc2be698dc332
Changed files:
- conda/history.py
## Problem st... | diff --git a/conda/history.py b/conda/history.py
index 0000000..0000000 100644
--- a/conda/history.py
+++ b/conda/history.py
@@ -163,7 +163,7 @@ class History(object):
specs = literal_eval(specs)
elif '[' not in specs:
specs = specs.split(',')
- ... | 9,231 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6568",
"repo": "conda/conda",
"base_commit": "5e3915b8d06618206cd29f2654dfc2be698dc332",
"pull_number": 6568,
"issue_numbers": [
"6546"
... |
conda__conda-6573 | You are given a GitHub issue and the relevant repository files 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: fbf3c0dac0667293d8926031119fb0798344d848
Changed files:
- conda/core/repodata.py
## Prob... | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
index 0000000..0000000 100644
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
import bz2
from collections import defaultdict
from contextlib import c... | 17,908 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6573",
"repo": "conda/conda",
"base_commit": "fbf3c0dac0667293d8926031119fb0798344d848",
"pull_number": 6573,
"issue_numbers": [
"6572"
... |
conda__conda-6585 | You are given a GitHub issue and the relevant repository files 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: fbf3c0dac0667293d8926031119fb0798344d848
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -426,6 +426,10 @@ class Activator(object):
current_prompt_modifier = os.environ.get('CONDA_PROMPT_MODIFIER')
if current_prompt_modifier:
ps1 = re... | 14,848 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6585",
"repo": "conda/conda",
"base_commit": "fbf3c0dac0667293d8926031119fb0798344d848",
"pull_number": 6585,
"issue_numbers": [
"6577"
... |
conda__conda-6588 | You are given a GitHub issue and the relevant repository files 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: fbf3c0dac0667293d8926031119fb0798344d848
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -266,6 +266,12 @@ class Activator(object):
self._update_prompt(set_vars, conda_prompt_modifier)
+ if on_win and self.shell == 'cmd.exe':
+ import ctypes
+ ... | 14,190 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6588",
"repo": "conda/conda",
"base_commit": "fbf3c0dac0667293d8926031119fb0798344d848",
"pull_number": 6588,
"issue_numbers": [
"6579"
... |
conda__conda-6589 | You are given a GitHub issue and the relevant repository files 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: fbf3c0dac0667293d8926031119fb0798344d848
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
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno import ENOENT
from logging import g... | 30,057 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6589",
"repo": "conda/conda",
"base_commit": "fbf3c0dac0667293d8926031119fb0798344d848",
"pull_number": 6589,
"issue_numbers": [
"6584"
... |
conda__conda-6602 | You are given a GitHub issue and the relevant repository files 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: fbf3c0dac0667293d8926031119fb0798344d848
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -187,6 +187,9 @@ class Activator(object):
self.command = command
def _yield_commands(self, cmds_dict):
+ for script in cmds_dict.get('deactivate_scripts', ()):
+ ... | 14,183 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6602",
"repo": "conda/conda",
"base_commit": "fbf3c0dac0667293d8926031119fb0798344d848",
"pull_number": 6602,
"issue_numbers": [
"6592"
... |
conda__conda-6609 | You are given a GitHub issue and the relevant repository files 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: 03df284ace72bf77601513aaabf91120f5fe9b0c
Changed files:
- conda/cli/conda_argparse.py
##... | diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py
index 0000000..0000000 100644
--- a/conda/cli/conda_argparse.py
+++ b/conda/cli/conda_argparse.py
@@ -6,6 +6,7 @@ from argparse import (ArgumentParser as ArgumentParserBase, RawDescriptionHelpFo
from logging import getLogger
import os
from os.pat... | 29,832 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6609",
"repo": "conda/conda",
"base_commit": "03df284ace72bf77601513aaabf91120f5fe9b0c",
"pull_number": 6609,
"issue_numbers": [
"6607"
... |
conda__conda-6615 | You are given a GitHub issue and the relevant repository files 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: 0f3a83b1fd068c75e530ddece96e98cc5b5e6d8e
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -368,8 +368,20 @@ class Activator(object):
def _get_starting_path_list(self):
path = os.environ['PATH']
if on_win:
- # on Windows, the python interpreter ... | 15,802 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6615",
"repo": "conda/conda",
"base_commit": "0f3a83b1fd068c75e530ddece96e98cc5b5e6d8e",
"pull_number": 6615,
"issue_numbers": [
"6612"
... |
conda__conda-6619 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
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
@@ -11,11 +11,12 @@ from textwrap import wrap
from .. import CondaError
from .._vendor.auxlib.entity import EntityEncoder
+from ..base.constants import PathCon... | 9,134 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6619",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6619,
"issue_numbers": [
"6618"
... |
conda__conda-6647 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
Changed files:
- conda/models/version.py
## Pro... | diff --git a/conda/models/version.py b/conda/models/version.py
index 0000000..0000000 100644
--- a/conda/models/version.py
+++ b/conda/models/version.py
@@ -463,12 +463,17 @@ class VersionSpec(object):
self.op = VersionOrder.startswith
self.cmp = VersionOrder(spec.rstrip('*').rstrip('.'))
... | 15,795 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6647",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6647,
"issue_numbers": [
"6643"
... |
conda__conda-6651 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
Changed files:
- conda/exceptions.py
## Problem... | diff --git a/conda/exceptions.py b/conda/exceptions.py
index 0000000..0000000 100644
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -13,7 +13,7 @@ from ._vendor.auxlib.entity import EntityEncoder
from ._vendor.auxlib.ish import dals
from ._vendor.auxlib.type_coercion import boolify
from .base.constants impor... | 24,197 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6651",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6651,
"issue_numbers": [
"6650"
... |
conda__conda-6652 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -283,7 +283,8 @@ class Activator(object):
def build_deactivate(self):
# query environment
old_conda_shlvl = int(os.getenv('CONDA_SHLVL', 0))
- if old_conda_sh... | 15,210 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6652",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6652,
"issue_numbers": [
"6620"
... |
conda__conda-6653 | You are given a GitHub issue and the relevant repository files 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: 4d963e1da043f3eb8b0430263a6185db134f33df
Changed files:
- conda/common/io.py
- conda/core... | diff --git a/conda/common/io.py b/conda/common/io.py
index 0000000..0000000 100644
--- a/conda/common/io.py
+++ b/conda/common/io.py
@@ -2,7 +2,8 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import defaultdict
-from concurrent.futures import ThreadPoolExecut... | 35,787 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6653",
"repo": "conda/conda",
"base_commit": "4d963e1da043f3eb8b0430263a6185db134f33df",
"pull_number": 6653,
"issue_numbers": [
"6624"
... |
conda__conda-6655 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -413,24 +413,30 @@ class Activator(object):
else:
path_list = list(starting_path_dirs)
if on_win: # pragma: unix no cover
- # windows has a nasty... | 15,373 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6655",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6655,
"issue_numbers": [
"6627"
... |
conda__conda-6656 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
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
@@ -968,6 +968,14 @@ def determine_target_prefix(ctx, args=None):
except AttributeError:
prefix_path = None
+ if prefix_name is not None and not prefix_name... | 29,206 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6656",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6656,
"issue_numbers": [
"6629"
... |
conda__conda-6657 | You are given a GitHub issue and the relevant repository files 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: 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891
Changed files:
- conda/core/repodata.py
## Prob... | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
index 0000000..0000000 100644
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -10,7 +10,6 @@ import hashlib
import json
from logging import DEBUG, getLogger
from mmap import ACCESS_READ, mmap
-from os import makedirs
from os.path import dirna... | 18,107 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6657",
"repo": "conda/conda",
"base_commit": "114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891",
"pull_number": 6657,
"issue_numbers": [
"6630"
... |
conda__conda-6662 | You are given a GitHub issue and the relevant repository files 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: 5b60e3d0acdbd7900c6965f74ba0620c370adda9
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
@@ -11,6 +11,7 @@ from .common import check_non_admin, confirm_yn, specs_from_args, stdout_json
from .install import handle_txn
from ..base.context import contex... | 5,356 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6662",
"repo": "conda/conda",
"base_commit": "5b60e3d0acdbd7900c6965f74ba0620c370adda9",
"pull_number": 6662,
"issue_numbers": [
"6661"
... |
conda__conda-6668 | You are given a GitHub issue and the relevant repository files 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: 83ef15f512e483e2186912271d18ce84b3a61932
Changed files:
- conda/models/dist.py
## Proble... | diff --git a/conda/models/dist.py b/conda/models/dist.py
index 0000000..0000000 100644
--- a/conda/models/dist.py
+++ b/conda/models/dist.py
@@ -147,7 +147,7 @@ class Dist(Entity):
if channel_override != NULL:
channel = channel_override
- elif channel is None:
+ if channel is None:... | 8,331 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6668",
"repo": "conda/conda",
"base_commit": "83ef15f512e483e2186912271d18ce84b3a61932",
"pull_number": 6668,
"issue_numbers": [
"6665"
... |
conda__conda-6669 | You are given a GitHub issue and the relevant repository files 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: 31a52a8a8771aafb0582822dd2e00b3274e1ffba
Changed files:
- conda/activate.py
## Problem s... | diff --git a/conda/activate.py b/conda/activate.py
index 0000000..0000000 100644
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -57,10 +57,10 @@ class Activator(object):
self.shift_args = 0
self.command_join = '\n'
- self.unset_var_tmpl = 'unset %s'
- self.export_va... | 19,612 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6669",
"repo": "conda/conda",
"base_commit": "31a52a8a8771aafb0582822dd2e00b3274e1ffba",
"pull_number": 6669,
"issue_numbers": [
"6667",
... |
conda__conda-6671 | You are given a GitHub issue and the relevant repository files 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: 0ea3086ca52deacb09c6e45c79165e32e751be27
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
@@ -11,7 +11,7 @@ from .common import disp_features, stdout_json
from ..base.constants import DEFAULTS_CHANNEL_NAME, UNKNOWN_CHANNEL
from ..base.context import context
... | 12,811 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6671",
"repo": "conda/conda",
"base_commit": "0ea3086ca52deacb09c6e45c79165e32e751be27",
"pull_number": 6671,
"issue_numbers": [
"6659"
... |
conda__conda-6694 | You are given a GitHub issue and the relevant repository files 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: 4d963e1da043f3eb8b0430263a6185db134f33df
Changed files:
- conda/core/solve.py
## Problem... | diff --git a/conda/core/solve.py b/conda/core/solve.py
index 0000000..0000000 100644
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -380,9 +380,9 @@ class Solver(object):
if ascendant_name not in specs_to_add_names:
update_names.add(ascendant_name)
grou... | 25,465 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6694",
"repo": "conda/conda",
"base_commit": "4d963e1da043f3eb8b0430263a6185db134f33df",
"pull_number": 6694,
"issue_numbers": [
"6693"
... |
conda__conda-6708 | You are given a GitHub issue and the relevant repository files 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: 4d963e1da043f3eb8b0430263a6185db134f33df
Changed files:
- conda/core/package_cache.py
##... | diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py
index 0000000..0000000 100644
--- a/conda/core/package_cache.py
+++ b/conda/core/package_cache.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
-from errno import EACCE... | 21,060 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6708",
"repo": "conda/conda",
"base_commit": "4d963e1da043f3eb8b0430263a6185db134f33df",
"pull_number": 6708,
"issue_numbers": [
"6707"
... |
conda__conda-6709 | You are given a GitHub issue and the relevant repository files 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: 4d963e1da043f3eb8b0430263a6185db134f33df
Changed files:
- conda/exceptions.py
## Problem... | diff --git a/conda/exceptions.py b/conda/exceptions.py
index 0000000..0000000 100644
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -2,6 +2,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from datetime import timedelta
+from errno import ENOSPC
import json
from logg... | 26,308 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6709",
"repo": "conda/conda",
"base_commit": "4d963e1da043f3eb8b0430263a6185db134f33df",
"pull_number": 6709,
"issue_numbers": [
"6700"
... |
conda__conda-6712 | You are given a GitHub issue and the relevant repository files 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: 67dedcf32aff9fcd96fd227fdd4cb19bfdaba64b
Changed files:
- conda/gateways/disk/update.py
... | diff --git a/conda/gateways/disk/update.py b/conda/gateways/disk/update.py
index 0000000..0000000 100644
--- a/conda/gateways/disk/update.py
+++ b/conda/gateways/disk/update.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno impo... | 3,524 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6712",
"repo": "conda/conda",
"base_commit": "67dedcf32aff9fcd96fd227fdd4cb19bfdaba64b",
"pull_number": 6712,
"issue_numbers": [
"6711"
... |
conda__conda-6719 | You are given a GitHub issue and the relevant repository files 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: ad07eba8949e998728c8041af4fc76c34f6bb9ee
Changed files:
- conda/cli/install.py
- conda/pl... | 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
@@ -287,7 +287,7 @@ def install(args, parser, command='install'):
spec_regex = r'^(%s)$' % '|'.join(re.escape(s.split()[0]) for s in ospecs)
print('\n# A... | 32,123 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6719",
"repo": "conda/conda",
"base_commit": "ad07eba8949e998728c8041af4fc76c34f6bb9ee",
"pull_number": 6719,
"issue_numbers": [
"6718",
... |
conda__conda-6723 | You are given a GitHub issue and the relevant repository files 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: cc54f5b5ca84cbe10224f57800202e7aee70e161
Changed files:
- conda/cli/conda_argparse.py
##... | diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py
index 0000000..0000000 100644
--- a/conda/cli/conda_argparse.py
+++ b/conda/cli/conda_argparse.py
@@ -988,8 +988,7 @@ def add_parser_create_install_update(p):
'-f', "--force",
action="store_true",
default=NULL,
- he... | 30,532 | {
"dataset": "internlm/SWE-Fixer-Train-110K-diff",
"source_dataset": "internlm/SWE-Fixer-Train-110K",
"task": "before_after_to_diff",
"instance_id": "conda__conda-6723",
"repo": "conda/conda",
"base_commit": "cc54f5b5ca84cbe10224f57800202e7aee70e161",
"pull_number": 6723,
"issue_numbers": [
"6684"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.