repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_run_in_shell | assert | numeric_literal | 31 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | 1 | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_run_shell_check_exit_code | assert | numeric_literal | 28 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | 0 | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_multiple_isolated_shells | assert | string_literal | 44 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_run_in_shell | assert | numeric_literal | 29 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | 127 | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_multiple_isolated_shells | assert | string_literal | 38 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "42" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_multiple_isolated_shells | assert | string_literal | 39 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "24" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_read_write_file | assert | string_literal | 29 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "test" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_interrupt_session | assert | string_literal | 33 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "asdf" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_upload_directory | assert | string_literal | 34 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "test1" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_upload_directory | assert | string_literal | 37 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | "test2" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_execution.py | test_run_in_shell_multiple_interactive_and_normal_commands | assert | complex_expr | 32 | import asyncio
from pathlib import Path
import pytest
from swerex.exceptions import (
BashIncorrectSyntaxError,
CommandTimeoutError,
NonZeroExitCodeError,
SessionDoesNotExistError,
)
from swerex.runtime.abstract import (
BashInterruptAction,
CloseBashSessionRequest,
CreateBashSessionReques... | r.output | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_fargate_deployment.py | test_fargate_deployment | pytest.raises | variable | 17 | import os
import pytest
from swerex.deployment.fargate import FargateDeployment
@pytest.mark.cloud
@pytest.mark.slow
@pytest.mark.skipif(os.getenv("GITHUB_ACTIONS") == "true", reason="Skipping modal tests in github actions")
async def test_fargate_deployment():
d = FargateDeployment(
image="public.ecr.aw... | RuntimeError) | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_local_runtime.py | test_upload_file | assert | string_literal | 17 | from pathlib import Path
import pytest
from swerex.runtime.abstract import ReadFileRequest, UploadRequest
from swerex.runtime.local import LocalRuntime
def local_runtime():
return LocalRuntime()
async def test_upload_file(local_runtime: LocalRuntime, tmp_path: Path):
file_path = tmp_path / "source.txt"
... | "test" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_local_runtime.py | test_upload_directory | assert | string_literal | 19 | from pathlib import Path
import pytest
from swerex.runtime.abstract import ReadFileRequest, UploadRequest
from swerex.runtime.local import LocalRuntime
def local_runtime():
return LocalRuntime()
async def test_upload_directory(local_runtime: LocalRuntime, tmp_path: Path):
dir_path = tmp_path / "source_dir"
... | "test1" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_local_runtime.py | test_upload_directory | assert | string_literal | 20 | from pathlib import Path
import pytest
from swerex.runtime.abstract import ReadFileRequest, UploadRequest
from swerex.runtime.local import LocalRuntime
def local_runtime():
return LocalRuntime()
async def test_upload_directory(local_runtime: LocalRuntime, tmp_path: Path):
dir_path = tmp_path / "source_dir"
... | "test2" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_modal_deployment.py | test_modal_deployment_from_docker_with_swerex_installed | pytest.raises | variable | 14 | from pathlib import Path
import pytest
from swerex.deployment.modal import ModalDeployment, _ImageBuilder
@pytest.mark.cloud
@pytest.mark.slow
async def test_modal_deployment_from_docker_with_swerex_installed():
dockerfile = Path(__file__).parent / "swe_rex_test.Dockerfile"
image = _ImageBuilder().from_file(... | RuntimeError) | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_remote_deployment.py | test_remote_deployment | pytest.raises | variable | 12 | import pytest
from swerex.deployment.remote import RemoteDeployment
from swerex.exceptions import DeploymentNotStartedError
from tests.conftest import TEST_API_KEY
async def test_remote_deployment(remote_server):
port = remote_server.port
print(f"Using port {port} for the remote deployment")
d = RemoteDep... | DeploymentNotStartedError) | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_all_blank_lines | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_all_blank_lines():
assert _split_bash_command("\n\n\n") == | [] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_normal | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_normal():
assert _split_bash_command("cmd1\ncmd2") == | ["cmd1", "cmd2"] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_escaped_newline | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_escaped_newline():
assert _split_bash_command("cmd1\\\n asdf") == | ["cmd1\\\n asdf"] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_heredoc | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_heredoc():
assert _split_bash_command("cmd1<<EOF\na\nb\nEOF") == | ["cmd1<<EOF\na\nb\nEOF"] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_multiple_commands | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_multiple_commands():
assert _split_bash_command("cmd1\ncmd2\ncmd3") == | ["cmd1", "cmd2", "cmd3"] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_check_bash_command_invalid | pytest.raises | variable | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_check_bash_command_invalid():
with pytest.raises( | BashIncorrectSyntaxError) | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_quotation_marks | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_quotation_marks():
assert _split_bash_command('cmd1 "a\nb"') == | [ 'cmd1 "a\nb"', ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_quotation_marks | assert | collection | 11 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_quotation_marks():
assert _split_bash_command('cmd1 "a\nb"') == [
'cmd1 "a\nb"',
]
assert _split_bash_command("cmd1 'a\nb'") =... | [ "cmd1 'a\nb'", ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_command_with_heredoc_quotations | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_command_with_heredoc_quotations():
assert _split_bash_command('cmd1 <<EOF\n"a\nb"\nEOF') == | [ 'cmd1 <<EOF\n"a\nb"\nEOF', ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_command_with_heredoc_quotations | assert | collection | 11 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_command_with_heredoc_quotations():
assert _split_bash_command('cmd1 <<EOF\n"a\nb"\nEOF') == [
'cmd1 <<EOF\n"a\nb"\nEOF',
]
assert _split_ba... | [ "cmd1 <<EOF\n'a\nb'\nEOF", ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_heredoc | assert | collection | 9 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_heredoc():
assert _split_bash_command("cmd1<<EOF\na\nb\nEOF") == ["cmd1<<EOF\na\nb\nEOF"]
assert _split_bash_command("cmd1<<EOF\na\nb\nEOF... | [ "cmd1<<EOF\na\nb\nEOF", "cmd2<<EOF\nd\ne\nEOF", ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_runtime.py | test_split_bash_command_multilline_blank_line_heredoc | assert | collection | 8 | import pytest
from swerex.exceptions import BashIncorrectSyntaxError
from swerex.runtime.local import _check_bash_command, _split_bash_command
def test_split_bash_command_multilline_blank_line_heredoc():
assert _split_bash_command("cmd1<<EOF\na\nb\n\n\nEOF\ncmd2<<EOF\nd\ne\nEOF") == | [ "cmd1<<EOF\na\nb\n\n\nEOF", "cmd2<<EOF\nd\ne\nEOF", ] | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_server.py | test_unauthenticated_request | assert | numeric_literal | 22 | import requests
from tests.conftest import RemoteServer
headers = {"X-API-Key": "your_secret_api_key_here"}
def test_unauthenticated_request(remote_server: RemoteServer):
for endpoint in [
"/is_alive",
"/",
"/create_session",
"/run_in_session",
"/close_session",
"/... | 403 | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-agent/SWE-ReX | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | train | train | tests/test_server.py | test_hello_world | assert | string_literal | 9 | import requests
from tests.conftest import RemoteServer
headers = {"X-API-Key": "your_secret_api_key_here"}
def test_hello_world(remote_server: RemoteServer):
assert | "hello world" | 2d7633f1e33157b6d885029febc2ed047704ac3a | 55 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | swesmith/issue_gen/get_from_tests.py | main | assert | none_literal | 215 | import argparse
import docker
import litellm
import json
import random
import subprocess
import yaml
from concurrent.futures import ThreadPoolExecutor, as_completed
from datasets import load_dataset
from litellm import completion, completion_cost
from pathlib import Path
from swebench.harness.constants import (
DO... | None | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_max | assert | numeric_literal | 16 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_max(test_file_c):
entities = []
get_entities_from_file_c(entities, tes... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_no_functions | assert | numeric_literal | 18 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_no_functions(tmp_path):
no_functions_file = tmp_path / "no_functions.c"
... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_multi_line_signature | assert | numeric_literal | 20 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_multi_line_signature(tmp_path):
multi_line_signature_file = tmp_path / "mu... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_count | assert | numeric_literal | 14 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_count(entities):
assert len(entities) == | 15 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_unreadable | pytest.raises | variable | 14 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_unreadable():
with pytest.raises( | IOError) | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_names | assert | variable | 32 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_names(entities):
names = [e.name for e in entities]
expected_names = [... | expected_names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_stubs | assert | variable | 32 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_stubs(entities):
stubs = [e.stub for e in entities]
expected_stubs = [... | expected_stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_line_ranges | assert | variable | 32 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_line_ranges(entities):
start_end = [(e.line_start, e.line_end) for e in en... | expected_ranges | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_signatures | assert | variable | 32 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_signatures(entities):
signatures = [e.signature for e in entities]
exp... | expected_signatures | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c.py | test_get_entities_from_file_c_multi_line_signature | assert | string_literal | 21 | import pytest
from swesmith.bug_gen.adapters.c import (
get_entities_from_file_c,
)
def entities(test_file_c):
entities = []
get_entities_from_file_c(entities, test_file_c)
return entities
def test_get_entities_from_file_c_multi_line_signature(tmp_path):
multi_line_signature_file = tmp_path / "mu... | "void multi_line(int a1, int a2, int a3)" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_max | assert | numeric_literal | 18 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_max(test_file_c_... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_no_methods | assert | numeric_literal | 20 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_no_methods(tmp_p... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_finalizer | assert | numeric_literal | 20 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_finalizer(tmp_pa... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_count | assert | numeric_literal | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_count(entities):... | 14 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_unreadable | pytest.raises | variable | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_unreadable():
... | IOError) | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_utf_8 | assert | string_literal | 23 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_utf_8(tmp_path):... | "SomeMethod" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_finalizer | assert | string_literal | 22 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_finalizer(tmp_pa... | "~SomeClass()" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_names | assert | variable | 33 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_names(entities):... | expected_names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_stubs | assert | variable | 33 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_stubs(entities):... | expected_stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_line_ranges | assert | variable | 33 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_line_ranges(enti... | expected_ranges | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_signatures | assert | variable | 33 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_signatures(entit... | expected_signatures | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_c_sharp.py | test_get_entities_from_file_c_sharp_finalizer | assert | string_literal | 21 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.c_sharp import (
get_entities_from_file_c_sharp,
)
def entities(test_file_c_sharp):
entities = []
get_entities_from_file_c_sharp(entities, test_file_c_sharp)
return entities
def test_get_entities_from_file_c_sharp_finalizer(tmp_pa... | "SomeClass Finalizer" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_max | assert | numeric_literal | 16 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_max(test_file_cpp):
entities = []
get_entities_from_file_c... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_no_functions | assert | numeric_literal | 18 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_no_functions(tmp_path):
no_functions_file = tmp_path / "no_fun... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_constructor | assert | numeric_literal | 18 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_constructor(tmp_path):
constructor_file = tmp_path / "construc... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_destructor | assert | numeric_literal | 24 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_destructor(tmp_path):
destructor_file = tmp_path / "destructor... | 2 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_count | assert | numeric_literal | 14 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_count(entities):
assert len(entities) == | 13 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_unreadable | pytest.raises | variable | 14 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_unreadable():
with pytest.raises( | IOError) | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_constructor | assert | string_literal | 19 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_constructor(tmp_path):
constructor_file = tmp_path / "construc... | "SomeClass" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_constructor | assert | string_literal | 20 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_constructor(tmp_path):
constructor_file = tmp_path / "construc... | "SomeClass()" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_names | assert | variable | 30 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_names(entities):
names = [e.name for e in entities]
expect... | expected_names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_stubs | assert | variable | 30 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_stubs(entities):
stubs = [e.stub for e in entities]
expect... | expected_stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_destructor | assert | string_literal | 29 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_destructor(tmp_path):
destructor_file = tmp_path / "destructor... | "~SomeClass()" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_suffix_return | assert | string_literal | 21 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_suffix_return(tmp_path):
suffix_file = tmp_path / "suffix_retu... | "parseCookies" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_line_ranges | assert | variable | 30 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_line_ranges(entities):
actual_ranges = [(e.line_start, e.line_... | expected_ranges | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_cpp.py | test_get_entities_from_file_cpp_signatures | assert | variable | 30 | import pytest
from swesmith.bug_gen.adapters.cpp import (
get_entities_from_file_cpp,
)
def entities(test_file_cpp):
entities = []
get_entities_from_file_cpp(entities, test_file_cpp)
return entities
def test_get_entities_from_file_cpp_signatures(entities):
signatures = [e.signature for e in entit... | expected_signatures | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_max | assert | numeric_literal | 18 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_max(test_file_go_gin):
entitie... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_no_functions | assert | numeric_literal | 20 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_no_functions(tmp_path):
no_fun... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_signature_empty_interface | assert | numeric_literal | 20 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_signature_empty_interface(tmp_path... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_complexity_else | assert | numeric_literal | 33 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_complexity_else(tmp_path):
if_... | 7 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_complexity_other_statements | assert | numeric_literal | 32 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
@pytest.mark.parametrize(
"func_definition",
[
("func... | 2 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_count | assert | numeric_literal | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_count(entities):
assert len(e... | 12 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_analyze_properties_comprehensive | assert | bool_literal | 66 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_analyze_properties_comprehensive(t... | True | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_names | assert | variable | 32 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_names(entities):
names = [e.na... | names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_stubs | assert | variable | 32 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_stubs(entities):
stubs = [e.st... | stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_unreadable | pytest.raises | variable | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_unreadable():
with pytest.rai... | IOError) | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_line_ranges | assert | variable | 32 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_line_ranges(entities):
start_e... | start_end | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_signatures | assert | variable | 32 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_signatures(entities):
signatur... | signatures | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_analyze_properties | assert | variable | 86 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_analyze_properties(entities):
... | expected_value | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_golang.py | test_get_entities_from_file_go_complexity | assert | variable | 31 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.golang import (
get_entities_from_file_go,
)
def entities(test_file_go_gin):
entities = []
get_entities_from_file_go(entities, test_file_go_gin)
return entities
def test_get_entities_from_file_go_complexity(entities):
complexi... | expected_scores | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_max | assert | numeric_literal | 18 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_max(test_file_java):
entities ... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_count | assert | numeric_literal | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_count(entities):
assert len(e... | 9 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_no_methods | assert | numeric_literal | 20 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_no_methods(tmp_path):
no_metho... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_signature_param_annotation | assert | numeric_literal | 29 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_signature_param_annotation(tmp_pat... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_unreadable | pytest.raises | variable | 16 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_unreadable():
with pytest.rai... | IOError) | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_names | assert | variable | 28 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_names(entities):
names = [e.na... | expected_names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_stubs | assert | variable | 28 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_stubs(entities):
stubs = [e.st... | expected_stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_line_ranges | assert | variable | 28 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_line_ranges(entities):
actual_... | expected_ranges | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_signatures | assert | variable | 28 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_signatures(entities):
signatur... | expected_signatures | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_java.py | test_get_entities_from_file_java_signature_param_annotation | assert | string_literal | 30 | import pytest
import re
import warnings
from swesmith.bug_gen.adapters.java import (
get_entities_from_file_java,
)
def entities(test_file_java):
entities = []
get_entities_from_file_java(entities, test_file_java)
return entities
def test_get_entities_from_file_java_signature_param_annotation(tmp_pat... | "@MethodAnnotation public void someMethod(@ParamAnnotation String param)" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_max | assert | numeric_literal | 17 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_max(test_file_js):
entities = []
get_e... | 3 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_no_functions | assert | numeric_literal | 19 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_no_functions(tmp_path):
no_functions_file ... | 0 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_complexity_ternary | assert | numeric_literal | 25 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_complexity_ternary(tmp_path):
ternary_file... | 1 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_complexity_control_flow | assert | numeric_literal | 30 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
@pytest.mark.parametrize(
"func_definition",
[
("function f() { i... | 2 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_count | assert | numeric_literal | 15 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_count(entities):
assert len(entities) == | 11 | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_nested_functions | assert | variable | 31 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_nested_functions(tmp_path):
nested_file = ... | names | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_stubs | assert | variable | 30 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_stubs(entities):
stubs = [e.stub for e in ... | stubs | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
SWE-bench/SWE-smith | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | train | train | tests/bug_gen/adapters/test_javascript.py | test_get_entities_from_file_js_assignment_arrow_function | assert | string_literal | 20 | import re
import warnings
import pytest
from swesmith.bug_gen.adapters.javascript import get_entities_from_file_js
def entities(test_file_js):
entities = []
get_entities_from_file_js(entities, test_file_js)
return entities
def test_get_entities_from_file_js_assignment_arrow_function(tmp_path):
assig... | "myVar" | e6946b6d1bb78731de689270df6bd042fb425427 | 50 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.