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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_get_logs | assert | string_literal | 19 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | "dodo" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_tasks | assert | string_literal | 19 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | "running" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_service_restart | assert | string_literal | 23 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | "shutdown" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_remove_empty_services_list | assert | variable | 21 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | set_services | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_context_manager | pytest.raises | variable | 15 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | RuntimeError) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_some_functions_no_such_service | pytest.raises | variable | 19 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.parametrize(... | NoSuchService) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_service_scale | assert | collection | 18 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | {"Replicas": 3} | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_service_scale | assert | collection | 21 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | {"Replicas": 1} | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_get_list_of_services | assert | variable | 19 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures(... | list_of_services | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_service.py | test_create_not_swarm_manager | pytest.raises | variable | 14 | import json
import tempfile
import time
import pytest
from python_on_whales import docker
from python_on_whales.components.service.models import ServiceInspectResult
from python_on_whales.exceptions import NoSuchService, NotASwarmManager
from python_on_whales.test_utils import get_all_jsons
def test_create_not_swarm... | NotASwarmManager) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_services_inspect | assert | numeric_literal | 25 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | 4 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_ps_and_services | assert | numeric_literal | 32 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | 0 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_remove_empty_stack_list | assert | collection | 25 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | [] | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_ps_and_services | assert | string_literal | 34 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | "running" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_env_files | assert | collection | 36 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | [third_stack] | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_ps_and_services | assert | variable | 31 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | services_tasks | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_deploy_not_swarm_manager | pytest.raises | variable | 23 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | NotASwarmManager) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_deploy_not_swarm_manager | assert | func_call | 29 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | str(e.value).lower() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_services_inspect | assert | func_call | 27 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | repr(docker.stack.list()) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_ps_and_services | assert | func_call | 28 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | set(with_test_stack.ps()) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_stack_ps_and_services | assert | func_call | 25 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | set(with_test_stack.services()) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_stack.py | test_services_inspect | assert | func_call | 26 | import time
from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
from python_on_whales.utils import PROJECT_ROOT
def with_test_stack(swarm_mode):
time.sleep(1)
some_stack = docker.stack.deploy(
"some_stack",
[PROJE... | set(docker.stack.services("some_stack")) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_update_retention_limit | assert | numeric_literal | 12 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
@pytest.mark.usefixtures("swarm_mode")
def test_swarm_update_retention_limit():
docker.swarm.update(task_history_limit=4)
assert | 4 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_change_certificate_expiry | assert | variable | 17 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
@pytest.mark.usefixtures("swarm_mode")
def test_swarm_change_certificate_expiry():
ca = docker.swarm.ca(certificate_expiry=timedelta(days=1), rotate=True)
info = docker.sy... | ca | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_change_certificate_expiry | assert | func_call | 16 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
@pytest.mark.usefixtures("swarm_mode")
def test_swarm_change_certificate_expiry():
ca = docker.swarm.ca(certificate_expiry=timedelta(days=1), rotate=True)
info = docker.sy... | timedelta(days=1) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_join_token_not_swarm_manager | pytest.raises | variable | 10 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
def test_swarm_join_token_not_swarm_manager():
with pytest.raises( | NotASwarmManager) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_join_token_not_swarm_manager | assert | func_call | 13 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
def test_swarm_join_token_not_swarm_manager():
with pytest.raises(NotASwarmManager) as e:
docker.swarm.join_token("manager")
assert "not a swarm manager" in | str(e.value).lower() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_unlock_key | assert | func_call | 14 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
@pytest.mark.usefixtures("swarm_mode")
def test_swarm_unlock_key():
docker.swarm.update(autolock=True)
first_key = docker.swarm.unlock_key()
# make sure is doesn't cha... | docker.swarm.unlock_key() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_swarm.py | test_swarm_unlock_key | assert | func_call | 17 | from datetime import timedelta
import pytest
from python_on_whales import docker
from python_on_whales.exceptions import NotASwarmManager
@pytest.mark.usefixtures("swarm_mode")
def test_swarm_unlock_key():
docker.swarm.update(autolock=True)
first_key = docker.swarm.unlock_key()
# make sure is doesn't cha... | docker.swarm.unlock_key(rotate=True) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_disk_free | assert | numeric_literal | 19 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | 1 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_events | assert | numeric_literal | 39 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | 5 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_events | assert | numeric_literal | 28 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | 10 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_disk_free | assert | numeric_literal | 20 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | 2000 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_raises_exception_on_invalid_arguments | pytest.raises | variable | 21 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | DockerException) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_parsing_events | assert | func_call | 20 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | date(2020, 12, 28) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_info | assert | complex_expr | 17 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | info.plugins.volume | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_prunes_image | assert | func_call | 20 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | docker.image.list() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_prunes_volumes | assert | func_call | 23 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | docker.volume.list() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_prunes_network | assert | func_call | 18 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | docker.network.list() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_prunes_container | assert | func_call | 22 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | docker.container.list() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_system.py | test_prune_prunes_container | assert | func_call | 21 | import json
import time
from datetime import date, datetime
from pathlib import Path
from time import sleep
import pytest
from python_on_whales import docker
from python_on_whales.components.system.models import DockerEvent, SystemInfo
from python_on_whales.exceptions import DockerException
from python_on_whales.test... | docker.container.list(all=True) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_task.py | test_list_tasks | assert | numeric_literal | 17 | import json
import pytest
from python_on_whales import docker
from python_on_whales.components.task.models import TaskInspectResult
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures("swarm_mode")
def test_list_tasks():
service = docker.service.create("busybox", ["sleep", "infinity"])... | 1 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_task.py | test_list_tasks | assert | string_literal | 18 | import json
import pytest
from python_on_whales import docker
from python_on_whales.components.task.models import TaskInspectResult
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures("swarm_mode")
def test_list_tasks():
service = docker.service.create("busybox", ["sleep", "infinity"])... | "running" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_task.py | test_list_tasks | assert | complex_expr | 19 | import json
import pytest
from python_on_whales import docker
from python_on_whales.components.task.models import TaskInspectResult
from python_on_whales.test_utils import get_all_jsons
@pytest.mark.usefixtures("swarm_mode")
def test_list_tasks():
service = docker.service.create("busybox", ["sleep", "infinity"])... | service.id | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_load_json | assert | none_literal | 30 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | None | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_volume_labels | assert | string_literal | 17 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | "dada" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_volume_cp_to_in_dir | assert | string_literal | 37 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | "dodo.txt" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_list | assert | variable | 19 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | all_volumes | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_functions_no_such_volume | pytest.raises | variable | 16 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | NoSuchVolume) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_copy_to_and_from_volume | assert | string_literal | 35 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | "Hello\nWorld!" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_functions_no_such_volume | assert | func_call | 18 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | str(e.value).lower() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_prune | assert | func_call | 30 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | ctr_client.volume.list() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_volume_remove_empty_list | assert | func_call | 19 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | set(ctr_client.volume.list()) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_simple_volume | assert | func_call | 17 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | repr(ctr_client.volume.list()) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_load_json | assert | func_call | 27 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | Path( "/var/lib/docker/volumes/dodo_letsencrypt_config/_data" ) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/components/test_volume.py | test_load_json | assert | func_call | 18 | import json
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pytest
from python_on_whales import DockerClient
from python_on_whales.components.volume.models import VolumeInspectResult
from python_on_whales.exceptions import NoSuchVolume
from python_on_whales.test_utils import get_all... | datetime( year=2020, month=8, day=27, hour=9, minute=39, second=50, tzinfo=timezone(timedelta(hours=2)), ) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_client_config.py | test_pretty_exception_message_and_report | assert | variable | 34 | from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.client_config import ParsingError
fake_json_message = """
[
{
"CreatedAt": "2020-10-08T18:32:55Z",
"Driver": ["dummy", "fake", ["driver"]],
"Labels": {
"com.docker.stack.namespace"... | error_message | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_client_config.py | test_pretty_exception_message_and_report | pytest.raises | variable | 30 | from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.client_config import ParsingError
fake_json_message = """
[
{
"CreatedAt": "2020-10-08T18:32:55Z",
"Driver": ["dummy", "fake", ["driver"]],
"Labels": {
"com.docker.stack.namespace"... | ParsingError) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_client_config.py | test_pretty_exception_message_and_report | assert | variable | 43 | from pathlib import Path
import pytest
from python_on_whales import docker
from python_on_whales.client_config import ParsingError
fake_json_message = """
[
{
"CreatedAt": "2020-10-08T18:32:55Z",
"Driver": ["dummy", "fake", ["driver"]],
"Labels": {
"com.docker.stack.namespace"... | fake_json_message | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_docker_client.py | test_docker_client_options | assert | collection | 26 | import time
from pathlib import Path
import pytest
from python_on_whales import DockerClient, docker
from python_on_whales.exceptions import DockerException
@pytest.mark.skipif(True, reason="It doesn't work in the ci")
def test_docker_client_options():
if docker.container.exists("test_dind_container"):
d... | [] | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_docker_client.py | test_login_logout | pytest.raises | variable | 13 | import time
from pathlib import Path
import pytest
from python_on_whales import DockerClient, docker
from python_on_whales.exceptions import DockerException
def test_login_logout(docker_registry_without_login):
busybox_image = docker.pull("busybox")
busybox_image.tag(f"{docker_registry_without_login}/my_busy... | DockerException) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_docker_client.py | test_docker_client_options | assert | func_call | 27 | import time
from pathlib import Path
import pytest
from python_on_whales import DockerClient, docker
from python_on_whales.exceptions import DockerException
@pytest.mark.skipif(True, reason="It doesn't work in the ci")
def test_docker_client_options():
if docker.container.exists("test_dind_container"):
d... | dind_client.run("hello-world") | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_docker_client.py | test_login_logout | assert | collection | 18 | import time
from pathlib import Path
import pytest
from python_on_whales import DockerClient, docker
from python_on_whales.exceptions import DockerException
def test_login_logout(docker_registry_without_login):
busybox_image = docker.pull("busybox")
busybox_image.tag(f"{docker_registry_without_login}/my_busy... | (Path.home() / ".docker" / "config.json").read_text() | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_download_binaries.py | test_download_cli | assert | variable | 18 | import platform
from python_on_whales import download_binaries
from python_on_whales.utils import run
def test_download_cli(mocker, tmp_path):
mocker.patch.object(download_binaries, "CACHE_DIR", tmp_path)
download_binaries.download_docker_cli()
simple_command = [
download_binaries.get_docker_bina... | output | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_download_binaries.py | test_download_windows_binaries | assert | string_literal | 12 | import platform
from python_on_whales import download_binaries
from python_on_whales.utils import run
def test_download_windows_binaries(mocker, tmp_path):
mocker.patch.object(platform, "system", lambda: "Windows")
mocker.patch.object(download_binaries, "CACHE_DIR", tmp_path)
assert not download_binaries... | "windows" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_exception_attributes | assert | numeric_literal | 21 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_exception_attributes():
with pytest.raises(DockerException) as excinfo:
docker.image.tag("wrong::image", "wrong::tag")
exception = excinfo.value
assert "The docker command executed w... | 0 | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_exception_attributes | assert | func_call | 12 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_exception_attributes():
with pytest.raises(DockerException) as excinfo:
docker.image.tag("wrong::image", "wrong::tag")
exception = excinfo.value
assert "The docker command executed ... | str(exception) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_exception_attributes | assert | complex_expr | 23 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_exception_attributes():
with pytest.raises(DockerException) as excinfo:
docker.image.tag("wrong::image", "wrong::tag")
exception = excinfo.value
assert "The docker command executed w... | exception.stderr | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_exception_attributes | pytest.raises | variable | 8 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_exception_attributes():
with pytest.raises( | DockerException) | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_not_showing_password_in_exception | assert | complex_expr | 14 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_not_showing_password_in_exception():
chosen_password = "ignore_password"
with pytest.raises(DockerException) as excinfo:
docker.login(username="ignore_user", password=chosen_password)
... | exception.docker_command | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_exceptions.py | test_exception_attributes | assert | collection | 13 | import pytest
from python_on_whales import docker
from python_on_whales.exceptions import DockerException
def test_exception_attributes():
with pytest.raises(DockerException) as excinfo:
docker.image.tag("wrong::image", "wrong::tag")
exception = excinfo.value
assert "The docker command executed w... | [ "image", "tag", "wrong::image", "wrong::tag", ] | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gabrieldemarmiesse/python-on-whales | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | train | train | tests/python_on_whales/test_utils.py | test_environment_variables_propagation | assert | string_literal | 12 | import python_on_whales.utils
def test_environment_variables_propagation(monkeypatch):
monkeypatch.setenv("SOME_VARIABLE", "dododada")
stdout = python_on_whales.utils.run(
["bash", "-c", "echo $SOME_VARIABLE && echo $OTHER_VARIABLE"],
capture_stdout=True,
env={"OTHER_VARIABLE": "dudu"}... | "dododada\ndudu" | ed2e5cec9c4bdf09d67f2a6a884cee437b51b3bb | 225 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_default_repo_path | assert | string_literal | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "." | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_lazy_session_creation | assert | none_literal | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | None | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_multiple_github_clients_independent | assert | variable | 21 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | client2 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_multiple_gharchive_clients_independent | assert | string_literal | 22 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "project1" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_multiple_gharchive_clients_independent | assert | string_literal | 23 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "project2" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_accepts_project_id | assert | string_literal | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "my-project" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_accepts_repo_path | assert | string_literal | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "/path/to/repo" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_source_is_git | assert | complex_expr | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | EvidenceSource.GIT | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_source_is_github | assert | complex_expr | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | EvidenceSource.GITHUB | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_cdx_url | assert | complex_expr | 19 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | WaybackClient.CDX_URL | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_source_is_wayback | assert | complex_expr | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | EvidenceSource.WAYBACK | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_base_url | assert | string_literal | 19 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | "https://api.github.com" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py | test_source_is_gharchive | assert | complex_expr | 20 | import sys
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.clients.gharchive import GHArchiveClient
from src.clients.git import GitClient
from src.clients.github import GitHubClient
from src.clients.wayback import WaybackClient
from src.schema.common import Evide... | EvidenceSource.GHARCHIVE | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_commit | assert | numeric_literal | 36 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | 1 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_dangling_commits | assert | bool_literal | 46 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | True | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_commit | assert | string_literal | 31 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | "a" * 40 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_dangling_commits | assert | string_literal | 45 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | "b" * 40 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_commit | assert | string_literal | 37 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | "test.py" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_commit | assert | string_literal | 32 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | "Test Author" | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py | test_collect_commit | assert | complex_expr | 35 | from unittest.mock import Mock, patch
import pytest
from src.collectors.local import LocalGitCollector
from src.schema.common import EvidenceSource
def mock_git_client():
client = Mock()
client.get_commit.return_value = {
"sha": "a" * 40,
"author_name": "Test Author",
"author_email": ... | EvidenceSource.GIT | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_none_returns_now | assert | numeric_literal | 28 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 5 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_iso_format_with_z | assert | numeric_literal | 25 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 7 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_iso_format_with_z | assert | numeric_literal | 29 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 4 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_hash_length | assert | numeric_literal | 25 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 12 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_datetime_passthrough | assert | variable | 25 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | dt | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_iso_format_with_z | assert | numeric_literal | 26 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 13 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_iso_format_with_z | assert | numeric_literal | 27 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | 20 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
gadievron/raptor | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | train | train | .claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py | test_deterministic | assert | variable | 25 | import sys
from datetime import datetime, timezone
from pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent.parent))
from src.helpers import (
generate_evidence_id,
make_actor,
make_repo,
make_repo_from_full_name,
parse_datetime_lenient,
parse_datetime_strict,
)
cl... | id2 | 4a510397258bda7fac55efdee938ce033c5b9274 | 7 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.