Dataset Viewer
problem_id
stringlengths 11
15
| source
stringclasses 1
value | task_type
stringclasses 1
value | in_source_id
stringlengths 12
58
| prompt
stringlengths 1.77k
532k
| golden_standard_solution
stringlengths 19
285k
| verification_info
stringlengths 2.59k
558k
| metadata
stringclasses 1
value |
---|---|---|---|---|---|---|---|
swe_fixer_0 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-642 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/v4/objects.py', 'code snippet to be modified': \"705 _create_(...TRUNCATED) | "{'input': {'issue': '/groups/:id/members/all not yet supported?\\n## Description of the problem, in(...TRUNCATED) | {} |
swe_fixer_1 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-1213 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/base.py', 'code snippet to be modified': '131 \\n132 def _upd(...TRUNCATED) | "{'input': {'issue': 'RefreshMixin.refresh() doesn\\'t remove removed attributes\\n## Description of(...TRUNCATED) | {} |
swe_fixer_2 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-1027 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/__init__.py', 'code snippet to be modified': '90 \\n91 se(...TRUNCATED) | "{'input': {'issue': 'projects.get() raises error when project is specified as \"userspace/name\" ra(...TRUNCATED) | {} |
swe_fixer_3 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-2538 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/v4/objects/personal_access_tokens.py', 'code snippet to be modifi(...TRUNCATED) | "{'input': {'issue': \"Need support to [...]/personal_access_tokens/self Gitlab API\\n## Description(...TRUNCATED) | {} |
swe_fixer_4 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-2773 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/v4/objects/merge_request_approvals.py', 'code snippet to be modif(...TRUNCATED) | "{'input': {'issue': 'ProjectMergeRequestApprovalRule.save() throws 404\\n## Description of the prob(...TRUNCATED) | {} |
swe_fixer_5 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-2088 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'docs/conf.py', 'code snippet to be modified': '287 # If true, show URL a(...TRUNCATED) | "{'input': {'issue': \"sphinx warnings `reference target not found`\\nOn building my packages I'm us(...TRUNCATED) | {} |
swe_fixer_6 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-1522 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/v4/objects/releases.py', 'code snippet to be modified': '1 from g(...TRUNCATED) | "{'input': {'issue': \"Deprecate tag.set_release_description and remove it from docs\\n## Descriptio(...TRUNCATED) | {} |
swe_fixer_7 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-681 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/__init__.py', 'code snippet to be modified': \"445 \\n446 (...TRUNCATED) | "{'input': {'issue': 'user_activities.list() : \"from\" parameter ?\\n## Description of the problem,(...TRUNCATED) | {} |
swe_fixer_8 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-838 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/base.py', 'code snippet to be modified': '52 def __setstate__(...TRUNCATED) | "{'input': {'issue': 'Fix Pickle support: dump() after load() fails\\nThis is a one-liner fix to pic(...TRUNCATED) | {} |
swe_fixer_9 | internlm/SWE-Fixer-Train-Editing-CoT-70K | swe_fixer | python-gitlab__python-gitlab-1064 | "In this task, you will be provided with a software development issue from a real-world GitHub repos(...TRUNCATED) | "{'edited code': [{'file': 'gitlab/v4/objects.py', 'code snippet to be modified': '1745 self(...TRUNCATED) | "{'input': {'issue': 'Support for project remote mirrors API\\nJust reading the 12.9 release notes a(...TRUNCATED) | {} |
End of preview. Expand
in Data Studio
ds_up = ds_debug.map(lambda x, idx: {"problem_id": f"swe_fixer_{idx}"}, with_indices=True)
ds_up = ds_up.map(lambda x: {"source": "internlm/SWE-Fixer-Train-Editing-CoT-70K", "task_type": "swe_fixer"})
num_proc = 16
# Function to format code files for display
def format_files(files):
formatted = ""
for file_info in files:
formatted += f"## `{file_info['file']}`\n```\n{file_info['file content']}\n```\n\n"
return formatted
ds_up = ds_up.map(lambda x: {"in_source_id": x["instance_id"]}, num_proc=num_proc)
# Format the prompt using the template
ds_up = ds_up.map(lambda x: {
"prompt": prompt_template.format(
issue_description=x['input']['input']['issue'],
files=format_files(x['input']['input']['files to be modified'])
)
}, num_proc=num_proc)
# Format the golden_standard_solution properly - use repr() to ensure it's a valid Python literal
ds_up = ds_up.map(lambda x: {"golden_standard_solution": repr({
"edited code": x["output"]["edited code"]
})}, num_proc=num_proc)
ds_up = ds_up.map(lambda x: {"verification_info": repr({
"input": x["input"]["input"],
"output": x["output"]
})}, num_proc=num_proc)
# Format the metadata as a string representation of a dictionary
ds_up = ds_up.map(lambda x: {"metadata": repr({
# "input": x["input"]["input"]
})}, num_proc=num_proc)
ds_up = ds_up.select_columns(["problem_id", "source", "task_type", "in_source_id", "prompt", "golden_standard_solution", "verification_info", "metadata"])
- Downloads last month
- 141