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
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_build_url_without_params
assert
string_literal
10
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestBuildUrl: def test_build_url_without_params(self): url = build_url("https://api.example.com/path") assert url ==
"https://api.example.com/path"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_extract_uri_from_full_url
assert
string_literal
10
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestExtractUri: def test_extract_uri_from_full_url(self): url = "https://edith.xiaohongshu.com/api/sns/web/v2/comment/sub/page" assert extract_uri(url) ==
"/api/sns/web/v2/comment/sub/page"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_client_sign_with_none_uri
pytest.raises
complex_expr
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestXhshowClientUrlMethods: def test_client_sign_with_none_uri(self): client = Xhshow() with pytest.raises(
TypeError, match="uri must be str")
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_build_url_with_existing_query
assert
string_literal
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestBuildUrl: def test_build_url_with_existing_query(self): url = build_url("/api/path?existing=param", {"new": "value"}) assert url ==
"/api/path?existing=param&new=value"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_build_url_with_simple_params
assert
string_literal
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestBuildUrl: def test_build_url_with_simple_params(self): url = build_url("https://api.example.com/path", {"a": "1", "b": "2"}) assert url ==
"https://api.example.com/path?a=1&b=2"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_client_build_url
assert
string_literal
12
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestXhshowClientUrlMethods: def test_client_build_url(self): client = Xhshow() url = client.build_url("https://api.example.com/path", {"key": "value"}) assert url ==
"https://api.example.com/path?key=value"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_client_sign_with_empty_uri
pytest.raises
complex_expr
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestXhshowClientUrlMethods: def test_client_sign_with_empty_uri(self): client = Xhshow() with pytest.raises(
ValueError, match="uri cannot be empty")
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_client_sign_with_empty_a1_value
pytest.raises
complex_expr
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestXhshowClientUrlMethods: def test_client_sign_with_empty_a1_value(self): client = Xhshow() with pytest.raises(
ValueError, match="a1_value cannot be empty")
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_build_url_with_equals_in_value
assert
string_literal
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestBuildUrl: def test_build_url_with_equals_in_value(self): url = build_url("https://api.example.com/path", {"key": "value=test"}) assert url ==
"https://api.example.com/path?key=value%3Dtest"
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cloxl/xhshow
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
train
train
tests/test_url_utils.py
test_client_sign_with_invalid_params
pytest.raises
complex_expr
11
import pytest from xhshow import Xhshow from xhshow.utils.url_utils import build_url, extract_uri class TestXhshowClientUrlMethods: def test_client_sign_with_invalid_params(self): client = Xhshow() with pytest.raises(
TypeError, match="payload must be dict or None")
89a1e540db289b39a1aab8a2ccef62e5a77b17e9
4
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_crawler.py
test_basic_crawl
assert
numeric_literal
35
from __future__ import annotations import pytest from aioresponses import aioresponses from webcrawler.crawler import WebCrawler class TestWebCrawler: async def test_basic_crawl(self): html = """ <html> <head><title>Test Page</title></head> <body> <h1>Hell...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_crawler.py
test_respects_max_pages
assert
numeric_literal
38
from __future__ import annotations import pytest from aioresponses import aioresponses from webcrawler.crawler import WebCrawler class TestWebCrawler: async def test_respects_max_pages(self): html = """ <html><body> <a href="/page1">Link 1</a> <a href="/page2">Link 2</a> ...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_crawler.py
test_avoids_circular_links
assert
numeric_literal
30
from __future__ import annotations import pytest from aioresponses import aioresponses from webcrawler.crawler import WebCrawler class TestWebCrawler: async def test_avoids_circular_links(self): html_a = '<html><body><a href="/b">Link to B</a></body></html>' html_b = '<html><body><a href="/a">Li...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_crawler.py
test_tracks_response_times
assert
numeric_literal
27
from __future__ import annotations import pytest from aioresponses import aioresponses from webcrawler.crawler import WebCrawler class TestWebCrawler: async def test_tracks_response_times(self): html = '<html><body>Test</body></html>' crawler = WebCrawler( start_url="https://example...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_parser.py
test_extract_headings
assert
numeric_literal
22
from __future__ import annotations import pytest from webcrawler.parser import HTMLParser class TestHTMLParser: def test_extract_headings(self): html = """ <html><body> <h1>Heading 1</h1> <h2>Heading 2a</h2> <h2>Heading 2b</h2> <h3>Heading 3</h3> ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_parser.py
test_extract_headings
assert
numeric_literal
24
from __future__ import annotations import pytest from webcrawler.parser import HTMLParser class TestHTMLParser: def test_extract_headings(self): html = """ <html><body> <h1>Heading 1</h1> <h2>Heading 2a</h2> <h2>Heading 2b</h2> <h3>Heading 3</h3> ...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_parser.py
test_extract_internal_links
assert
numeric_literal
21
from __future__ import annotations import pytest from webcrawler.parser import HTMLParser class TestHTMLParser: def test_extract_internal_links(self): html = """ <html><body> <a href="/page1">Link 1</a> <a href="https://example.com/page2">Link 2</a> <a href="p...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_parser.py
test_empty_html
assert
numeric_literal
17
from __future__ import annotations import pytest from webcrawler.parser import HTMLParser class TestHTMLParser: def test_empty_html(self): html = "<html><body></body></html>" parser = HTMLParser("https://example.com") content = parser.parse(html, "https://example.com/page") asse...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_reporter.py
test_json_output
assert
numeric_literal
69
from __future__ import annotations import csv import json from io import StringIO import pytest from webcrawler.crawler import CrawlResult, CrawlStats from webcrawler.parser import PageContent from webcrawler.reporter import Reporter class TestReporter: def sample_results(self): """Create sample crawl ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_reporter.py
test_json_output
assert
numeric_literal
71
from __future__ import annotations import csv import json from io import StringIO import pytest from webcrawler.crawler import CrawlResult, CrawlStats from webcrawler.parser import PageContent from webcrawler.reporter import Reporter class TestReporter: def sample_results(self): """Create sample crawl ...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_reporter.py
test_csv_output
assert
numeric_literal
66
from __future__ import annotations import csv import json from io import StringIO import pytest from webcrawler.crawler import CrawlResult, CrawlStats from webcrawler.parser import PageContent from webcrawler.reporter import Reporter class TestReporter: def sample_results(self): """Create sample crawl ...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code-sonnet/python-crawler_vanilla/tests/test_reporter.py
test_empty_results
assert
numeric_literal
63
from __future__ import annotations import csv import json from io import StringIO import pytest from webcrawler.crawler import CrawlResult, CrawlStats from webcrawler.parser import PageContent from webcrawler.reporter import Reporter class TestReporter: def sample_results(self): """Create sample crawl ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_cli.py
test_json_output
assert
numeric_literal
33
from __future__ import annotations import json from unittest.mock import AsyncMock, patch from click.testing import CliRunner from webcrawler.cli import main from webcrawler.models import CrawlResult, CrawlStats, PageData def _mock_result() -> CrawlResult: page = PageData( url="https://example.com", ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_cli.py
test_json_output
assert
numeric_literal
37
from __future__ import annotations import json from unittest.mock import AsyncMock, patch from click.testing import CliRunner from webcrawler.cli import main from webcrawler.models import CrawlResult, CrawlStats, PageData def _mock_result() -> CrawlResult: page = PageData( url="https://example.com", ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_crawler.py
test_defaults
assert
numeric_literal
62
from __future__ import annotations import asyncio from unittest.mock import AsyncMock, MagicMock, patch import pytest from webcrawler.crawler import Crawler SAMPLE_HTML = """<!DOCTYPE html> <html> <head> <title>Test Page</title> <meta name="description" content="A test page"> </head> <body> <h1>Welcome</h1> ...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_crawler.py
test_defaults
assert
numeric_literal
65
from __future__ import annotations import asyncio from unittest.mock import AsyncMock, MagicMock, patch import pytest from webcrawler.crawler import Crawler SAMPLE_HTML = """<!DOCTYPE html> <html> <head> <title>Test Page</title> <meta name="description" content="A test page"> </head> <body> <h1>Welcome</h1> ...
5
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_crawler.py
test_single_page_crawl
assert
numeric_literal
91
from __future__ import annotations import asyncio from unittest.mock import AsyncMock, MagicMock, patch import pytest from webcrawler.crawler import Crawler SAMPLE_HTML = """<!DOCTYPE html> <html> <head> <title>Test Page</title> <meta name="description" content="A test page"> </head> <body> <h1>Welcome</h1> ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_models.py
test_defaults
assert
numeric_literal
16
from __future__ import annotations from webcrawler.models import CrawlResult, CrawlStats, PageData class TestPageData: def test_defaults(self) -> None: page = PageData(url="https://example.com", status_code=200, response_time=0.5) assert page.title is None assert page.meta_description is N...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_models.py
test_with_data
assert
numeric_literal
20
from __future__ import annotations from webcrawler.models import CrawlResult, CrawlStats, PageData class TestPageData: def test_with_data(self) -> None: page = PageData( url="https://example.com", status_code=200, response_time=0.123, title="Test", ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_parser.py
test_mixed_links
assert
numeric_literal
14
from __future__ import annotations from webcrawler.parser import parse_page, _resolve_url class TestExtractLinks: def test_mixed_links(self) -> None: html = """<html><body> <a href="/local">Local</a> <a href="https://external.com">External</a> </body></html>""" result = pa...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_summary_fields
assert
numeric_literal
64
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_summary_fields
assert
numeric_literal
65
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_most_linked_pages
assert
numeric_literal
65
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
5
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_pages_included
assert
numeric_literal
63
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_empty_result
assert
numeric_literal
63
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/claude-code/python-crawler_vanilla/tests/test_reporter.py
test_valid_csv
assert
numeric_literal
65
from __future__ import annotations import csv import io import json from webcrawler.models import CrawlResult, CrawlStats, PageData from webcrawler.reporter import to_csv, to_html, to_json def _sample_result() -> CrawlResult: """Build a sample CrawlResult for testing.""" page1 = PageData( url="https:...
4
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/codex/python-crawler_vanilla/tests/test_crawler.py
test_crawler_collects_content_and_broken_links
assert
numeric_literal
103
from __future__ import annotations from dataclasses import dataclass from typing import Any import pytest from webcrawler.crawler import CrawlConfig, RobotsPolicy, WebCrawler from webcrawler.parser import normalize_url def _build_request_mock(routes: dict[tuple[str, str], dict[str, Any]]): async def _request_on...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/codex/python-crawler_vanilla/tests/test_crawler.py
test_crawler_robots_and_timeout_handling
assert
numeric_literal
68
from __future__ import annotations from dataclasses import dataclass from typing import Any import pytest from webcrawler.crawler import CrawlConfig, RobotsPolicy, WebCrawler from webcrawler.parser import normalize_url def _build_request_mock(routes: dict[tuple[str, str], dict[str, Any]]): async def _request_on...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/codex/python-crawler_vanilla/tests/test_reporter_and_cli.py
test_reporter_writes_json_csv_html
assert
numeric_literal
59
from __future__ import annotations import json from webcrawler.cli import build_parser from webcrawler.models import ( BrokenLink, CrawlReport, Heading, ImageData, PageData, SummaryStats, ) from webcrawler.reporter import write_report def _sample_report() -> CrawlReport: return CrawlRepor...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
benchmarks/agent-eval/workspaces/codex/python-crawler_vanilla/tests/test_reporter_and_cli.py
test_cli_parser_defaults
assert
numeric_literal
54
from __future__ import annotations import json from webcrawler.cli import build_parser from webcrawler.models import ( BrokenLink, CrawlReport, Heading, ImageData, PageData, SummaryStats, ) from webcrawler.reporter import write_report def _sample_report() -> CrawlReport: return CrawlRepor...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/conftest.py
parse_json_output
assert
numeric_literal
105
from __future__ import annotations import json import os import subprocess import sys import pytest from click.testing import CliRunner def roam(*args, cwd=None): """Run a roam CLI command and return (output, returncode).""" result = subprocess.run( [sys.executable, "-m", "roam"] + list(args), ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_adversarial.py
test_adversarial_runs
assert
numeric_literal
132
from __future__ import annotations import json import os import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process def run_adversarial(proj, args=None, json_mode=False): """Invoke the adver...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_affected.py
test_affected_help
assert
numeric_literal
94
from __future__ import annotations import json import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output from roam.cli import cli def cli_runner(): """Provide a Cl...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_affected.py
test_affected_json_has_changed_files
assert
numeric_literal
98
from __future__ import annotations import json import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output from roam.cli import cli def cli_runner(): """Provide a Cl...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_agent_export.py
indexed_small_project
assert
numeric_literal
63
from __future__ import annotations import json import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process, invoke_cli def small_project(tmp_path): """A minimal Python project with multiple files for agent-export test...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_agent_mode.py
test_agent_mode_conflicts_with_sarif
assert
numeric_literal
14
from __future__ import annotations import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from conftest import invoke_cli, parse_json_output def test_agent_mode_conflicts_with_sarif(cli_runner): """--agent and --sarif are incompatible output modes.""" result = invoke_cli(cli_runne...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_agent_plan_context.py
test_agent_plan_json
assert
numeric_literal
47
from __future__ import annotations import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output def agent_project(project_factory): return project_factory( { ...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_agent_plan_context.py
test_agent_context_invalid_agent
assert
numeric_literal
43
from __future__ import annotations import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output def agent_project(project_factory): return project_factory( { ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_ratio.py
_parse_json
assert
numeric_literal
54
from __future__ import annotations import json import os import subprocess import sys import time from pathlib import Path import click import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, ) def _make_local_cli():...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_ratio.py
test_burst_session_detected
assert
numeric_literal
93
from __future__ import annotations import json import os import subprocess import sys import time from pathlib import Path import click import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, ) def _make_local_cli():...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_ratio.py
test_since_flag_long_range
assert
numeric_literal
143
from __future__ import annotations import json import os import subprocess import sys import time from pathlib import Path import click import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, ) def _make_local_cli():...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_readiness.py
well_structured_project
assert
numeric_literal
79
from __future__ import annotations import json import os import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process def cli_runner(): return CliRunner() @pytest.fixture def well_structured_...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_readiness.py
test_json_dimensions_array
assert
numeric_literal
127
from __future__ import annotations import json import os import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process def cli_runner(): return CliRunner() def well_structured_project(tmp_path...
7
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ai_readiness.py
test_contributions_sum_near_composite
assert
numeric_literal
128
from __future__ import annotations import json import os import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process def cli_runner(): return CliRunner() def well_structured_project(tmp_path...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_annotations.py
annotated_project
assert
numeric_literal
32
from __future__ import annotations import json import sqlite3 import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_commit, git_init, index_in_process, invoke_cli @pytest.fixture def annotated_project(tmp_path): """Create an indexed Python proj...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_annotations.py
test_drop_column_without_guard_still_flagged
assert
numeric_literal
29
from __future__ import annotations import json import sqlite3 import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_commit, git_init, index_in_process, invoke_cli class TestInfoSchemaGuard: def test_drop_column_without_guard_still_flagged(self...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_anomaly.py
test_known_anomaly_detected
assert
numeric_literal
31
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_commit, git_init, index_in_process, roam from roam.graph.anomaly import ( cusum, forecast, mann_kendall_test, modified_z_score, ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_anomaly.py
test_no_anomalies_in_uniform_data
assert
numeric_literal
29
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_commit, git_init, index_in_process, roam from roam.graph.anomaly import ( cusum, forecast, mann_kendall_test, modified_z_score, ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_anomaly.py
test_all_equal_values_mad_zero
assert
numeric_literal
28
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_commit, git_init, index_in_process, roam from roam.graph.anomaly import ( cusum, forecast, mann_kendall_test, modified_z_score, ...
5
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_api_changes.py
test_removed_function
assert
numeric_literal
67
from __future__ import annotations import subprocess import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_commit, git_init, index_in_process, invoke_cli, parse_json_output, ) def cli_runner(): fr...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_attest.py
attest_project
assert
numeric_literal
61
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, invoke_cli, parse_json_output, ) def cli_runner(): from click.testing impor...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_attest.py
test_attest_has_blast_radius
assert
numeric_literal
106
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, invoke_cli, parse_json_output, ) def cli_runner(): from click.testing impor...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_backend_fixes_round2.py
test_service_provider_non_provider_class
assert
numeric_literal
24
from __future__ import annotations class TestAuthGapsServiceProvider: def test_service_provider_non_provider_class(self): """A file that does not extend ServiceProvider should return no protected controllers, even if it contains Route::middleware.""" from roam.commands.cmd_auth_gaps import...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_backend_fixes_round3.py
test_has_table_guards_add_column
assert
numeric_literal
36
from __future__ import annotations from pathlib import Path def _make_migration_dir(tmp_path: Path, filename: str, content: str) -> list[str]: """Create a migration file under a migrations/ subdir and return rel paths.""" mig_dir = tmp_path / "database" / "migrations" mig_dir.mkdir(parents=True, exist_ok=...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_backend_fixes_round3.py
test_no_guard_produces_finding
assert
numeric_literal
33
from __future__ import annotations from pathlib import Path def _make_migration_dir(tmp_path: Path, filename: str, content: str) -> list[str]: """Create a migration file under a migrations/ subdir and return rel paths.""" mig_dir = tmp_path / "database" / "migrations" mig_dir.mkdir(parents=True, exist_ok=...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_basic.py
test_index
assert
numeric_literal
43
import subprocess import sys import pytest def roam_project(tmp_path_factory): """Create a small Python project and index it.""" root = tmp_path_factory.mktemp("project") # Create files (root / "main.py").write_text( 'from helper import add\n\ndef main():\n print(add(1, 2))\n\nif __name__ ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_batch_mcp.py
test_fts_hit
assert
numeric_literal
159
from __future__ import annotations import sqlite3 from unittest.mock import patch import pytest def tmp_db(tmp_path): """Create a minimal in-memory-style SQLite DB with required tables.""" db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=True) conn = sqlite3.connect(str(db_path...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_batch_mcp.py
test_limit_respected
assert
numeric_literal
159
from __future__ import annotations import sqlite3 from unittest.mock import patch import pytest def tmp_db(tmp_path): """Create a minimal in-memory-style SQLite DB with required tables.""" db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=True) conn = sqlite3.connect(str(db_path...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_batch_mcp.py
test_empty_queries_returns_empty_results
assert
numeric_literal
153
from __future__ import annotations import sqlite3 from unittest.mock import patch import pytest def tmp_db(tmp_path): """Create a minimal in-memory-style SQLite DB with required tables.""" db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=True) conn = sqlite3.connect(str(db_path...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_batch_mcp.py
test_multiple_queries
assert
numeric_literal
153
from __future__ import annotations import sqlite3 from unittest.mock import patch import pytest def tmp_db(tmp_path): """Create a minimal in-memory-style SQLite DB with required tables.""" db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=True) conn = sqlite3.connect(str(db_path...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bisect.py
_parse_json
assert
numeric_literal
53
from __future__ import annotations import json import os import sys from pathlib import Path import click import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_commit, git_init, index_in_process, ) def _make_local_cli(): """Return...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bisect.py
test_bisect_top_n
assert
numeric_literal
170
from __future__ import annotations import json import os import sys from pathlib import Path import click import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_commit, git_init, index_in_process, ) def _make_local_cli(): """Return...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bridges.py
test_register_and_get
assert
numeric_literal
26
from __future__ import annotations import pytest from roam.bridges import registry as bridge_registry from roam.bridges.base import LanguageBridge from roam.bridges.bridge_protobuf import ProtobufBridge from roam.bridges.bridge_salesforce import SalesforceBridge def _reset_registry(): """Clear the global bridge ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bridges.py
test_register_multiple
assert
numeric_literal
25
from __future__ import annotations import pytest from roam.bridges import registry as bridge_registry from roam.bridges.base import LanguageBridge from roam.bridges.bridge_protobuf import ProtobufBridge from roam.bridges.bridge_salesforce import SalesforceBridge def _reset_registry(): """Clear the global bridge ...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bridges_extended.py
test_rest_api_resolve_urls
assert
numeric_literal
87
from __future__ import annotations import json import pytest from roam.bridges import registry as bridge_registry from roam.bridges.bridge_config import ConfigBridge from roam.bridges.bridge_rest_api import RestApiBridge from roam.bridges.bridge_template import TemplateBridge from tests.conftest import invoke_cli d...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_bridges_extended.py
test_xlang_command_runs
assert
numeric_literal
65
from __future__ import annotations import json import pytest from roam.bridges import registry as bridge_registry from roam.bridges.bridge_config import ConfigBridge from roam.bridges.bridge_rest_api import RestApiBridge from roam.bridges.bridge_template import TemplateBridge from tests.conftest import invoke_cli d...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget.py
budget_project
assert
numeric_literal
49
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, invoke_cli, ) def cli_runner(): from click.testing import CliRunner return...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget.py
test_budget_default_budgets
assert
numeric_literal
99
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, invoke_cli, ) def cli_runner(): from click.testing import CliRunner return...
6
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget.py
test_budget_evaluate_max_increase
assert
numeric_literal
95
from __future__ import annotations import json import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, invoke_cli, ) def cli_runner(): from click.testing import CliRunner return...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget_flag.py
health_project
assert
numeric_literal
33
from __future__ import annotations import json import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, invoke_cli, ) @pytest.fixture def health_project(tmp_path, monkeypatch): """Minimal indexed pro...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget_flag.py
test_basic_estimate
assert
numeric_literal
24
from __future__ import annotations import json import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, invoke_cli, ) class TestEstimateTokens: def test_basic_estimate(self): """4 chars = 1 ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_budget_phase2.py
basic_project
assert
numeric_literal
52
from __future__ import annotations import json import os import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( git_init, index_in_process, ) @pytest.fixture def basic_project(tmp_path, monkeypatch): """...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_capsule.py
_parse_capsule_json
assert
numeric_literal
51
from __future__ import annotations import json import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, ) def _invoke_capsule(runner, args=None, cwd=None, json_mode=False): """I...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_capsule.py
test_capsule_has_topology
assert
numeric_literal
89
from __future__ import annotations import json import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent)) from conftest import ( assert_json_envelope, git_init, index_in_process, ) def _invoke_capsule(runner, args=None, cwd=None, json_mode=False): """I...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_check_rules.py
test_builtin_rule_evaluate_fn_error
assert
numeric_literal
75
from __future__ import annotations import json import sqlite3 from pathlib import Path import networkx as nx import pytest from click.testing import CliRunner from roam.cli import cli def _make_db(tmp_path: Path) -> sqlite3.Connection: db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=T...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_check_rules.py
test_resolve_rules_disable_multiple
assert
numeric_literal
79
from __future__ import annotations import json import sqlite3 from pathlib import Path import networkx as nx import pytest from click.testing import CliRunner from roam.cli import cli def _make_db(tmp_path: Path) -> sqlite3.Connection: db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=T...
7
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_check_rules.py
test_calculate_verdict_empty
assert
numeric_literal
71
from __future__ import annotations import json import sqlite3 from pathlib import Path import networkx as nx import pytest from click.testing import CliRunner from roam.cli import cli def _make_db(tmp_path: Path) -> sqlite3.Connection: db_path = tmp_path / ".roam" / "index.db" db_path.parent.mkdir(parents=T...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_gate_eval.py
test_scalar_gate_pass
assert
numeric_literal
23
from __future__ import annotations import importlib.util from pathlib import Path def _load_gate_eval_module(): """Load .github/scripts/gate_eval.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" / "gate_eval.py" spec = importlib.util.spec_from_...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_gate_eval.py
test_trend_latest_and_delta
assert
numeric_literal
29
from __future__ import annotations import importlib.util from pathlib import Path def _load_gate_eval_module(): """Load .github/scripts/gate_eval.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" / "gate_eval.py" spec = importlib.util.spec_from_...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_gate_eval.py
test_unknown_metric_warns_but_does_not_fail
assert
numeric_literal
23
from __future__ import annotations import importlib.util from pathlib import Path def _load_gate_eval_module(): """Load .github/scripts/gate_eval.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" / "gate_eval.py" spec = importlib.util.spec_from_...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_sarif_guard.py
test_merge_sarif_files_skips_invalid
assert
numeric_literal
52
from __future__ import annotations import importlib.util import json import sys from copy import deepcopy from pathlib import Path def _load_sarif_guard_module(): """Load .github/scripts/sarif_guard.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" ...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_sarif_guard.py
test_apply_guardrails_run_and_result_caps
assert
numeric_literal
54
from __future__ import annotations import importlib.util import json import sys from copy import deepcopy from pathlib import Path def _load_sarif_guard_module(): """Load .github/scripts/sarif_guard.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" ...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_sarif_guard.py
test_apply_guardrails_run_and_result_caps
assert
numeric_literal
55
from __future__ import annotations import importlib.util import json import sys from copy import deepcopy from pathlib import Path def _load_sarif_guard_module(): """Load .github/scripts/sarif_guard.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" ...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_sarif_guard.py
test_apply_guardrails_run_and_result_caps
assert
numeric_literal
57
from __future__ import annotations import importlib.util import json import sys from copy import deepcopy from pathlib import Path def _load_sarif_guard_module(): """Load .github/scripts/sarif_guard.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" ...
4
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_ci_sarif_guard.py
test_apply_guardrails_size_cap_truncates
assert
numeric_literal
56
from __future__ import annotations import importlib.util import json import sys from copy import deepcopy from pathlib import Path def _load_sarif_guard_module(): """Load .github/scripts/sarif_guard.py as a Python module.""" root = Path(__file__).resolve().parents[1] script = root / ".github" / "scripts" ...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_closure.py
test_closure_finds_definition
assert
numeric_literal
66
from __future__ import annotations import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output from roam.cli import cli def cli_runner(): """Provide a Click CliRunne...
0
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_closure.py
test_closure_counts
assert
numeric_literal
67
from __future__ import annotations import sys from pathlib import Path import pytest from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import assert_json_envelope, invoke_cli, parse_json_output from roam.cli import cli def cli_runner(): """Provide a Click CliRunne...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_codeowners.py
test_simple_rules
assert
numeric_literal
21
from __future__ import annotations import json import sys from pathlib import Path from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process class TestParseCodeowners: def test_simple_rules(self, tmp_path): co = tmp_path / "CODEOW...
2
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_codeowners.py
test_multiple_owners
assert
numeric_literal
21
from __future__ import annotations import json import sys from pathlib import Path from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process class TestParseCodeowners: def test_multiple_owners(self, tmp_path): co = tmp_path / "COD...
1
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor
Cranot/roam-code
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
train
train
tests/test_codeowners.py
test_key_areas
assert
numeric_literal
26
from __future__ import annotations import json import sys from pathlib import Path from click.testing import CliRunner sys.path.insert(0, str(Path(__file__).parent)) from conftest import git_init, index_in_process class TestKeyAreas: def test_key_areas(self): from roam.commands.cmd_codeowners import _k...
3
64016469fb3d3ac3a6c490aa96b52941d5a12a29
57
v2_extractor_at_anchor