Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
base_commit: string
gold_files: list<item: string>
  child 0, item: string
metrics: struct<MRR: double, Recall@10: double, Recall@20: double, Recall@5: double, gold_coverage@8k: double (... 1 chars omitted)
  child 0, MRR: double
  child 1, Recall@10: double
  child 2, Recall@20: double
  child 3, Recall@5: double
  child 4, gold_coverage@8k: double
repo: string
sample_id: string
task_type: string
top_files: list<item: string>
  child 0, item: string
kind: string
path: string
chunk_id: string
symbol: string
start_line: int64
end_line: int64
text: string
to
{'base_commit': Value('string'), 'chunk_id': Value('string'), 'end_line': Value('int64'), 'kind': Value('string'), 'path': Value('string'), 'repo': Value('string'), 'start_line': Value('int64'), 'symbol': Value('string'), 'text': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1779, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 609, in wrapped
                  for item in generator(*args, **kwargs):
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              base_commit: string
              gold_files: list<item: string>
                child 0, item: string
              metrics: struct<MRR: double, Recall@10: double, Recall@20: double, Recall@5: double, gold_coverage@8k: double (... 1 chars omitted)
                child 0, MRR: double
                child 1, Recall@10: double
                child 2, Recall@20: double
                child 3, Recall@5: double
                child 4, gold_coverage@8k: double
              repo: string
              sample_id: string
              task_type: string
              top_files: list<item: string>
                child 0, item: string
              kind: string
              path: string
              chunk_id: string
              symbol: string
              start_line: int64
              end_line: int64
              text: string
              to
              {'base_commit': Value('string'), 'chunk_id': Value('string'), 'end_line': Value('int64'), 'kind': Value('string'), 'path': Value('string'), 'repo': Value('string'), 'start_line': Value('int64'), 'symbol': Value('string'), 'text': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1342, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 907, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1832, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

base_commit
string
chunk_id
string
end_line
int64
kind
string
path
string
repo
string
start_line
int64
symbol
string
text
string
8ecf49ec2807768105b05dda5461b28cdad89d03
be38562f78486ac928819773
35
file
.git-blame-ignore-revs
pytest-dev/pytest
1
# List of revisions that can be ignored with git-blame(1). # # See `blame.ignoreRevsFile` in git-config(1) to enable it by default, or # use it with `--ignore-revs-file` manually with git-blame. # # To "install" it: # # git config --local blame.ignoreRevsFile .git-blame-ignore-revs # run black 703e4b11ba76171eccd3f1...
8ecf49ec2807768105b05dda5461b28cdad89d03
970538e29a687728e9f54262
1
file
.gitattributes
pytest-dev/pytest
1
*.bat text eol=crlf
8ecf49ec2807768105b05dda5461b28cdad89d03
3c2d2147968d31bdbdcd454d
7
file
.github/FUNDING.yml
pytest-dev/pytest
1
# info: # * https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository # * https://tidelift.com/subscription/how-to-connect-tidelift-with-github github: pytest-dev tidelift: pypi/pytest open_collective: pytest thanks_dev: u/gh/pytest-dev
8ecf49ec2807768105b05dda5461b28cdad89d03
c2317e08c3a0027899e7fd84
16
file
.github/ISSUE_TEMPLATE/1_bug_report.md
pytest-dev/pytest
1
--- name: 🐛 Bug Report about: Report errors and problems --- <!-- Thanks for submitting an issue! Quick check-list while reporting bugs: --> - [ ] a detailed description of the bug or problem you are having - [ ] output of `pip list` from the virtual environment you are using - [ ] pytest and operating system vers...
8ecf49ec2807768105b05dda5461b28cdad89d03
df3eaee3d13cd25c4a0b48e8
25
file
.github/ISSUE_TEMPLATE/2_feature_request.md
pytest-dev/pytest
1
--- name: 🚀 Feature Request about: Ideas for new features and improvements --- <!-- Thanks for suggesting a feature! Quick check-list while suggesting features: --> #### What's the problem this feature will solve? <!-- What are you trying to do, that you are unable to achieve with pytest as it currently stands? --...
8ecf49ec2807768105b05dda5461b28cdad89d03
6099fec327002e00fdc32b65
5
file
.github/ISSUE_TEMPLATE/config.yml
pytest-dev/pytest
1
blank_issues_enabled: false contact_links: - name: ❓ Support Question url: https://github.com/pytest-dev/pytest/discussions about: Use GitHub's new Discussions feature for questions
8ecf49ec2807768105b05dda5461b28cdad89d03
964d1e3792770574fb73a892
31
file
.github/PULL_REQUEST_TEMPLATE.md
pytest-dev/pytest
1
<!-- Thanks for submitting a PR, your contribution is really appreciated! Here is a quick checklist that should be present in PRs. - [ ] Include documentation when adding new features. - [ ] Include new tests or update existing tests when applicable. - [X] Allow maintainers to push and squash when merging my commits....
8ecf49ec2807768105b05dda5461b28cdad89d03
d1bf120205d28569dd31dc5f
20
file
.github/chronographer.yml
pytest-dev/pytest
1
--- branch-protection-check-name: Changelog entry action-hints: check-title-prefix: "Chronographer: " external-docs-url: >- https://docs.pytest.org/en/latest/contributing.html#preparing-pull-requests inline-markdown: >- See https://docs.pytest.org/en/latest/contributing.html#preparing-pull-requests ...
8ecf49ec2807768105b05dda5461b28cdad89d03
c384ca84764a4943e74c6df1
2
file
.github/config.yml
pytest-dev/pytest
1
rtd: project: pytest
8ecf49ec2807768105b05dda5461b28cdad89d03
1c33e3cdbd3aa663ff76378a
21
file
.github/dependabot.yml
pytest-dev/pytest
1
version: 2 updates: - package-ecosystem: pip directory: "/testing/plugins_integration" schedule: interval: weekly time: "03:00" open-pull-requests-limit: 10 allow: - dependency-type: direct - dependency-type: indirect cooldown: default-days: 7 - package-ecosystem: github-actions directory: /...
8ecf49ec2807768105b05dda5461b28cdad89d03
361ad2a55e98a0cf92c8fb7e
149
file
.github/labels.toml
pytest-dev/pytest
1
["os: cygwin"] color = "006b75" description = "cygwin platform-specific problem" name = "os: cygwin" ["os: linux"] color = "1d76db" description = "linux platform-specific problem" name = "os: linux" ["os: mac"] color = "bfdadc" description = "mac platform-specific problem" name = "os: mac" ["os: windows"] color = "f...
8ecf49ec2807768105b05dda5461b28cdad89d03
109c8d80c05d5dc98d8812a7
7
file
.github/patchback.yml
pytest-dev/pytest
1
--- backport_branch_prefix: patchback/backports/ backport_label_prefix: 'backport ' # IMPORTANT: the labels are space-delimited # target_branch_prefix: '' # The project's backport branches are non-prefixed ...
8ecf49ec2807768105b05dda5461b28cdad89d03
9448d80a7467a887bc6232be
141
file
.github/workflows/deploy.yml
pytest-dev/pytest
1
name: deploy on: workflow_dispatch: inputs: version: description: 'Release version' required: true default: '1.2.3' # Set permissions at the job level. permissions: {} jobs: package: runs-on: ubuntu-latest env: SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST: ${{ github...
8ecf49ec2807768105b05dda5461b28cdad89d03
f79ce0f7d4ed4cfeea5d0b33
37
file
.github/workflows/doc-check-links.yml
pytest-dev/pytest
1
name: Doc Check Links on: schedule: # At 00:00 on Sunday. # https://crontab.guru - cron: '0 0 * * 0' workflow_dispatch: # Set permissions at the job level. permissions: {} jobs: doc-check-links: if: github.repository_owner == 'pytest-dev' runs-on: ubuntu-latest steps: - name: Che...
8ecf49ec2807768105b05dda5461b28cdad89d03
661c534e3233e1c70fbce898
62
file
.github/workflows/prepare-release-pr.yml
pytest-dev/pytest
1
name: prepare release pr on: workflow_dispatch: inputs: branch: description: 'Branch to base the release from' required: true default: '' major: description: 'Major release? (yes/no)' required: true default: 'no' prerelease: description: '...
8ecf49ec2807768105b05dda5461b28cdad89d03
cbb46aacf1b10478193559d8
23
file
.github/workflows/stale.yml
pytest-dev/pytest
1
name: close needs-information issues on: schedule: - cron: "30 1 * * *" workflow_dispatch: jobs: close-issues: runs-on: ubuntu-latest permissions: issues: write steps: - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.1.0 with: debug-only: false ...
8ecf49ec2807768105b05dda5461b28cdad89d03
252435053be62a603267312c
319
file
.github/workflows/test.yml
pytest-dev/pytest
1
name: test on: push: branches: - main - "[0-9]+.[0-9]+.x" - "test-me-*" tags: - "[0-9]+.[0-9]+.[0-9]+" - "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" pull_request: branches: - main - "[0-9]+.[0-9]+.x" types: - opened # default - synchronize # default - reo...
8ecf49ec2807768105b05dda5461b28cdad89d03
755346218cb9ccf8a526d71d
69
file
.github/workflows/update-plugin-list.yml
pytest-dev/pytest
1
name: Update Plugin List on: schedule: # At 00:00 on Sunday. # https://crontab.guru - cron: '0 0 * * 0' workflow_dispatch: # Set permissions at the job level. permissions: {} jobs: update-plugin-list: if: github.repository_owner == 'pytest-dev' runs-on: ubuntu-latest permissions: ...
8ecf49ec2807768105b05dda5461b28cdad89d03
21c72ff75945f38c07491ae9
60
file
.gitignore
pytest-dev/pytest
1
# Automatically generated by `hgimportsvn` .svn .hgsvn # Ignore local virtualenvs lib/ bin/ include/ .Python/ # These lines are suggested according to the svn:ignore property # Feel free to enable them by uncommenting them *.pyc *.pyo *.swp *.class *.orig *~ .hypothesis/ # autogenerated src/_pytest/_version.py # set...
8ecf49ec2807768105b05dda5461b28cdad89d03
1c867bfe559f46a3ade53491
2
file
.mailmap
pytest-dev/pytest
1
Freya Bruhin <git@the-compiler.org> Freya Bruhin <me@the-compiler.org>
8ecf49ec2807768105b05dda5461b28cdad89d03
145d4f1a6256fbafd75d9d5e
169
file
.pre-commit-config.yaml
pytest-dev/pytest
1
minimum_pre_commit_version: "4.4.0" repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.15.9" hooks: - id: ruff-check args: ["--fix"] - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-o...
8ecf49ec2807768105b05dda5461b28cdad89d03
41c98ceecb68b91857e85205
31
file
.readthedocs.yaml
pytest-dev/pytest
1
version: 2 python: install: # Install pytest first, then doc/en/requirements.txt. # This order is important to honor any pins in doc/en/requirements.txt # when the pinned library is also a dependency of pytest. - method: pip path: . - requirements: doc/en/requirements.txt sphinx: ...
8ecf49ec2807768105b05dda5461b28cdad89d03
577504af04a7a6fa6c83b8af
522
file
AUTHORS
pytest-dev/pytest
1
Holger Krekel, holger at merlinux eu merlinux GmbH, Germany, office at merlinux eu Contributors include:: Aaron Coleman Abdeali JK Abdelrahman Elbehery Abhijeet Kasurde Adam Johnson Adam Stewart Adam Uhlir Ahn Ki-Wook Akhilesh Ramakrishnan Akiomi Kamakura Alan Velasco Alejandro Villate Alessio Izzo Alex Jones Alex La...
8ecf49ec2807768105b05dda5461b28cdad89d03
35a9f08c6d2c7e08c2d2b966
7
file
CHANGELOG.rst
pytest-dev/pytest
1
========= Changelog ========= The pytest CHANGELOG is located `here <https://docs.pytest.org/en/stable/changelog.html>`__. The source document can be found at: https://github.com/pytest-dev/pytest/blob/main/doc/en/changelog.rst
8ecf49ec2807768105b05dda5461b28cdad89d03
38425610a00e45addb563d2b
28
file
CITATION
pytest-dev/pytest
1
NOTE: Change "x.y" by the version you use. If you are unsure about which version you are using run: `pip show pytest`. Do not include the patch number (i.e., z in x.y.z) Text: [pytest] pytest x.y, 2004 Krekel et al., https://github.com/pytest-dev/pytest BibLaTeX: @software{pytest, title = {pytest x.y}, a...
8ecf49ec2807768105b05dda5461b28cdad89d03
199daaaae2c171c4f342282f
83
file
CODE_OF_CONDUCT.md
pytest-dev/pytest
1
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex ch...
8ecf49ec2807768105b05dda5461b28cdad89d03
2b8a17678bf1e4077a3eae00
615
file
CONTRIBUTING.rst
pytest-dev/pytest
1
============================ Contributing ============================ Contributions are highly welcomed and appreciated. Every little bit of help counts, so do not hesitate! .. _submitfeedback: Feature requests and feedback ----------------------------- Do you like pytest? Share some love on Twitter or in your ...
8ecf49ec2807768105b05dda5461b28cdad89d03
647882129a945cd9bca7668d
406
symbol
CONTRIBUTING.rst
pytest-dev/pytest
98
my_function
def my_function(arg: ArgType) -> Foo: """Do important stuff. More detailed info here, in separate paragraphs from the subject line. Use proper sentences -- start sentences with capital letters and end with periods. Can include annotated documentation: :param short_arg:...
8ecf49ec2807768105b05dda5461b28cdad89d03
892382efa336e91915cfec2c
409
symbol
CONTRIBUTING.rst
pytest-dev/pytest
407
test_true_assertion
def test_true_assertion(pytester): pytester.makepyfile( """
8ecf49ec2807768105b05dda5461b28cdad89d03
30a19712a263073b763b847e
422
symbol
CONTRIBUTING.rst
pytest-dev/pytest
410
test_foo
def test_foo(): assert True """ ) result = pytester.runpytest() result.assert_outcomes(failed=0, passed=1) Alternatively, it is possible to make checks based on the actual output of the terminal using *glob-like* expressions: .. code-block:: python
8ecf49ec2807768105b05dda5461b28cdad89d03
ce43b611c44bdc156ca2941f
425
symbol
CONTRIBUTING.rst
pytest-dev/pytest
423
test_true_assertion
def test_true_assertion(pytester): pytester.makepyfile( """
8ecf49ec2807768105b05dda5461b28cdad89d03
1ceae2565dce42b8ad1d539c
615
symbol
CONTRIBUTING.rst
pytest-dev/pytest
426
test_foo
def test_foo(): assert False """ ) result = pytester.runpytest() result.stdout.fnmatch_lines(["*assert False*", "*1 failed*"]) When choosing a file where to write a new test, take a look at the existing files and see if there's one file which looks like a good fit. For e...
8ecf49ec2807768105b05dda5461b28cdad89d03
62764bef64387fc0105b129e
21
file
LICENSE
pytest-dev/pytest
1
The MIT License (MIT) Copyright (c) 2004 Holger Krekel and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
8ecf49ec2807768105b05dda5461b28cdad89d03
34c27e2b435d5991ff385ec0
44
file
OPENCOLLECTIVE.rst
pytest-dev/pytest
1
============== OpenCollective ============== pytest has a collective setup at `OpenCollective`_. This document describes how the core team manages OpenCollective-related activities. What is it ========== Open Collective is an online funding platform for open and transparent communities. It provides tools to raise mo...
8ecf49ec2807768105b05dda5461b28cdad89d03
e55541fd85985f4d666fa17a
164
file
README.rst
pytest-dev/pytest
1
.. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg :target: https://docs.pytest.org/en/stable/ :align: center :height: 200 :alt: pytest ------ .. image:: https://img.shields.io/pypi/v/pytest.svg :target: https://pypi.org/project/pytest/ .. image:: https://img....
8ecf49ec2807768105b05dda5461b28cdad89d03
6c50054e0c8ff0965192176e
57
symbol
README.rst
pytest-dev/pytest
54
inc
def inc(x): return x + 1
8ecf49ec2807768105b05dda5461b28cdad89d03
94bd823e63823a58ecec7335
58
symbol
README.rst
pytest-dev/pytest
58
test_answer
def test_answer():
8ecf49ec2807768105b05dda5461b28cdad89d03
89182fb9cab3ef2c879246e4
72
symbol
README.rst
pytest-dev/pytest
59
inc
assert inc(3) == 5 To execute it:: $ pytest ============================= test session starts ============================= collected 1 items test_sample.py F ================================== FAILURES =================================== _________________________________ test_answer ______...
8ecf49ec2807768105b05dda5461b28cdad89d03
f873b7863a32d8300180ea9b
73
symbol
README.rst
pytest-dev/pytest
73
test_answer
def test_answer():
8ecf49ec2807768105b05dda5461b28cdad89d03
e5f41b2a6725491339bcaca5
164
symbol
README.rst
pytest-dev/pytest
74
inc
> assert inc(3) == 5 E assert 4 == 5 E + where 4 = inc(3) test_sample.py:5: AssertionError ========================== 1 failed in 0.04 seconds =========================== Thanks to ``pytest``'s detailed assertion introspection, you can simply use plain ``assert`` statements. See `...
8ecf49ec2807768105b05dda5461b28cdad89d03
e7223764c6a11b17e1cc96b1
181
file
RELEASING.rst
pytest-dev/pytest
1
Release Procedure ----------------- Our current policy for releasing is to aim for a bug-fix release every few weeks and a minor release every 2-3 months. The idea is to get fixes and new features out instead of trying to cram a ton of features into a release and by consequence taking a lot of time to make a new one. ...
8ecf49ec2807768105b05dda5461b28cdad89d03
4193e1eee62e0bd19c6fe6ae
60
file
TIDELIFT.rst
pytest-dev/pytest
1
======== Tidelift ======== pytest is a member of `Tidelift`_. This document describes how the core team manages Tidelift-related activities. What is it ========== Tidelift aims to make Open Source sustainable by offering subscriptions to companies which rely on Open Source packages. This subscription allows it to pa...
8ecf49ec2807768105b05dda5461b28cdad89d03
d01ff656c1ef3ef765d154c3
17
file
bench/bench.py
pytest-dev/pytest
1
from __future__ import annotations import sys if __name__ == "__main__": import cProfile import pstats import pytest # noqa: F401 script = sys.argv[1:] if len(sys.argv) > 1 else ["empty.py"] cProfile.run(f"pytest.cmdline.main({script!r})", "prof") p = pstats.Stats("prof") p.strip_dirs(...
8ecf49ec2807768105b05dda5461b28cdad89d03
9c0dd45264465189929801de
17
symbol
bench/bench.py
pytest-dev/pytest
17
print
print(p.print_stats(500))
8ecf49ec2807768105b05dda5461b28cdad89d03
392264aca21604ca24c8b374
22
file
bench/bench_argcomplete.py
pytest-dev/pytest
1
# 10000 iterations, just for relative comparison # 2.7.5 3.3.2 # FilesCompleter 75.1109 69.2116 # FastFilesCompleter 0.7383 1.0760 from __future__ import annotations import timeit imports = [ "from argcomplete.completers import FilesCompleter as completer", "from _pytes...
8ecf49ec2807768105b05dda5461b28cdad89d03
75c509610da7eecb5e6d2714
21
symbol
bench/bench_argcomplete.py
pytest-dev/pytest
21
print
print(timeit.timeit(run, setup=setup % imports[0], number=count))
8ecf49ec2807768105b05dda5461b28cdad89d03
36a55850862fe11567e0ee07
22
symbol
bench/bench_argcomplete.py
pytest-dev/pytest
22
print
print(timeit.timeit(run, setup=setup % imports[1], number=count))
8ecf49ec2807768105b05dda5461b28cdad89d03
b1deb40a282c6176c9e94993
5
file
bench/empty.py
pytest-dev/pytest
1
from __future__ import annotations for i in range(1000): exec(f"def test_func_{i}(): pass")
8ecf49ec2807768105b05dda5461b28cdad89d03
f08ead0d8c4aabd12b4a5bf7
5
symbol
bench/empty.py
pytest-dev/pytest
5
exec
exec(f"def test_func_{i}(): pass")
8ecf49ec2807768105b05dda5461b28cdad89d03
fe5fd5dc9881e17229b389be
16
file
bench/manyparam.py
pytest-dev/pytest
1
from __future__ import annotations import pytest @pytest.fixture(scope="module", params=range(966)) def foo(request): return request.param def test_it(foo): pass def test_it2(foo): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
9dd9303e6e03aa92c5eb52fd
10
symbol
bench/manyparam.py
pytest-dev/pytest
7
foo
def foo(request): return request.param
8ecf49ec2807768105b05dda5461b28cdad89d03
2d30b9c42f93367992bf09ea
14
symbol
bench/manyparam.py
pytest-dev/pytest
11
test_it
def test_it(foo): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
33060824d9660f6a46e47f43
16
symbol
bench/manyparam.py
pytest-dev/pytest
15
test_it2
def test_it2(foo): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
5f029f9213432c5e2c665174
12
file
bench/skip.py
pytest-dev/pytest
1
from __future__ import annotations import pytest SKIP = True @pytest.mark.parametrize("x", range(5000)) def test_foo(x): if SKIP: pytest.skip("heh")
8ecf49ec2807768105b05dda5461b28cdad89d03
5f5ff2bd25263614950a2cee
12
symbol
bench/skip.py
pytest-dev/pytest
10
test_foo
def test_foo(x): if SKIP: pytest.skip("heh")
8ecf49ec2807768105b05dda5461b28cdad89d03
5867134d3ace523e14202e97
16
file
bench/unit_test.py
pytest-dev/pytest
1
from __future__ import annotations from unittest import TestCase # noqa: F401 for i in range(15000): exec( f""" class Test{i}(TestCase): @classmethod def setUpClass(cls): pass def test_1(self): pass def test_2(self): pass def test_3(self): pass """ )
8ecf49ec2807768105b05dda5461b28cdad89d03
6b38b1347c1c8f790807ba26
8
symbol
bench/unit_test.py
pytest-dev/pytest
7
exec
exec( f"""
8ecf49ec2807768105b05dda5461b28cdad89d03
1a03625c486167092e36fdc8
10
symbol
bench/unit_test.py
pytest-dev/pytest
9
Test
class Test{i}(TestCase): @classmethod
8ecf49ec2807768105b05dda5461b28cdad89d03
ac320b457b7af3fec668899f
11
symbol
bench/unit_test.py
pytest-dev/pytest
11
setUpClass
def setUpClass(cls): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
9e2bc621e2b95dcbe6775505
12
symbol
bench/unit_test.py
pytest-dev/pytest
12
test_1
def test_1(self): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
92f661af77f119064778ae2b
13
symbol
bench/unit_test.py
pytest-dev/pytest
13
test_2
def test_2(self): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
258c3f90d9ec5bbb2c8dbe76
16
symbol
bench/unit_test.py
pytest-dev/pytest
14
test_3
def test_3(self): pass """ )
8ecf49ec2807768105b05dda5461b28cdad89d03
19abb97d725d9de164fbeefa
14
file
bench/xunit.py
pytest-dev/pytest
1
from __future__ import annotations for i in range(5000): exec( f""" class Test{i}: @classmethod def setup_class(cls): pass def test_1(self): pass def test_2(self): pass def test_3(self): pass """ )
8ecf49ec2807768105b05dda5461b28cdad89d03
3e52e2bf18d9c0be4a2a1fa2
6
symbol
bench/xunit.py
pytest-dev/pytest
5
exec
exec( f"""
8ecf49ec2807768105b05dda5461b28cdad89d03
807cac76fcaa5cc9c1c5147e
8
symbol
bench/xunit.py
pytest-dev/pytest
7
Test
class Test{i}: @classmethod
8ecf49ec2807768105b05dda5461b28cdad89d03
2bcfc4225880654f15aac89f
9
symbol
bench/xunit.py
pytest-dev/pytest
9
setup_class
def setup_class(cls): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
6b0824650a95d6fa6cefd166
10
symbol
bench/xunit.py
pytest-dev/pytest
10
test_1
def test_1(self): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
d7ba40c4f8402ca0ce87bf68
11
symbol
bench/xunit.py
pytest-dev/pytest
11
test_2
def test_2(self): pass
8ecf49ec2807768105b05dda5461b28cdad89d03
10e414e5e689ee600cb5af59
14
symbol
bench/xunit.py
pytest-dev/pytest
12
test_3
def test_3(self): pass """ )
8ecf49ec2807768105b05dda5461b28cdad89d03
c364bb4e9c51ebe882869ea4
34
file
changelog/.gitignore
pytest-dev/pytest
1
* !.gitignore !_template.rst !README.rst !*.bugfix !*.bugfix.rst !*.bugfix.*.rst !*.breaking !*.breaking.rst !*.breaking.*.rst !*.contrib !*.contrib.rst !*.contrib.*.rst !*.deprecation !*.deprecation.rst !*.deprecation.*.rst !*.doc !*.doc.rst !*.doc.*.rst !*.feature !*.feature.rst !*.feature.*.rst !*.improvement !*.imp...
8ecf49ec2807768105b05dda5461b28cdad89d03
c7be0e5f1d83a8028ade2f7e
1
file
changelog/11225.improvement.rst
pytest-dev/pytest
1
:func:`pytest.warns` now shows "Regex pattern did not match" instead of "DID NOT WARN" when warnings were emitted but the ``match`` pattern did not match.
8ecf49ec2807768105b05dda5461b28cdad89d03
474162f1a7319e5408762892
1
file
changelog/11295.improvement.rst
pytest-dev/pytest
1
Improved output of ``--fixtures-per-test`` by excluding internal-implementation fixtures generated by ``@pytest.mark.parametrize`` and similar.
8ecf49ec2807768105b05dda5461b28cdad89d03
ebf807c9861032d6b9beaf6a
3
file
changelog/12882.deprecation.rst
pytest-dev/pytest
1
Calling :meth:`request.getfixturevalue() <pytest.FixtureRequest.getfixturevalue>` during teardown to request a fixture that was not already requested is now deprecated and will become an error in pytest 10. See :ref:`dynamic-fixture-request-during-teardown` for details.
8ecf49ec2807768105b05dda5461b28cdad89d03
f62a4bb70966023b21d36ba7
1
file
changelog/13192.bugfix.rst
pytest-dev/pytest
1
Fixed `|` (pipe) not being treated as a regex meta-character that needs escaping in :func:`pytest.raises(match=...) <pytest.raises>`.
8ecf49ec2807768105b05dda5461b28cdad89d03
8f8bb93eedd44037881cfb4d
2
file
changelog/13241.improvement.rst
pytest-dev/pytest
1
:func:`pytest.raises`, :func:`pytest.warns` and :func:`pytest.deprecated_call` now uses :class:`ParamSpec` for the type hint to the (old and not recommended) callable overload, instead of :class:`Any`. This allows type checkers to raise errors when passing incorrect function parameters. ``func`` can now also be passed ...
8ecf49ec2807768105b05dda5461b28cdad89d03
5a1b8174e74d74e7b8d2d167
8
file
changelog/13409.deprecation.rst
pytest-dev/pytest
1
Using non-:class:`~collections.abc.Collection` iterables (such as generators, iterators, or custom iterable objects) for the ``argvalues`` parameter in :ref:`@pytest.mark.parametrize <pytest.mark.parametrize ref>` and :meth:`metafunc.parametrize <pytest.Metafunc.parametrize>` is now deprecated. These iterables get exh...
8ecf49ec2807768105b05dda5461b28cdad89d03
83e9ec2ae803e1deb10cefbd
1
file
changelog/13884.bugfix.rst
pytest-dev/pytest
1
Fixed rare internal IndexError caused by `builtins.compile` being overridden in client code.
8ecf49ec2807768105b05dda5461b28cdad89d03
2040e298bcf587a09f684c76
1
file
changelog/13917.bugfix.rst
pytest-dev/pytest
1
:class:`unittest.SkipTest` is no longer considered an interactive exception, i.e. :hook:`pytest_exception_interact` is no longer called for it.
8ecf49ec2807768105b05dda5461b28cdad89d03
24f22bfb204763d9695b05c8
4
file
changelog/13946.deprecation.rst
pytest-dev/pytest
1
The private ``config.inicfg`` attribute is now deprecated. Use :meth:`config.getini() <pytest.Config.getini>` to access configuration values instead. See :ref:`config-inicfg` for more details.
8ecf49ec2807768105b05dda5461b28cdad89d03
607a33b45e14b4c53ccf7153
3
file
changelog/13963.bugfix.rst
pytest-dev/pytest
1
Fixed subtests running with :pypi:`pytest-xdist` when their contexts contain objects that are not JSON-serializable. Fixes `pytest-dev/pytest-xdist#1273 <https://github.com/pytest-dev/pytest-xdist/issues/1273>`__.
8ecf49ec2807768105b05dda5461b28cdad89d03
bd4889f6c6448d4b1ffbde94
1
file
changelog/14012.doc.rst
pytest-dev/pytest
1
The :ref:`ini options ref` section of the API Reference now specified the type and default value of every configuration option.
8ecf49ec2807768105b05dda5461b28cdad89d03
3dd520bef66a2816b5e9f056
1
file
changelog/14023.feature.rst
pytest-dev/pytest
1
Added `--report-chars` long CLI option.
8ecf49ec2807768105b05dda5461b28cdad89d03
f415de7e72585d12fdc57857
1
file
changelog/14026.improvement.rst
pytest-dev/pytest
1
Added test coverage for compiled regex patterns in :func:`pytest.raises` match parameter.
8ecf49ec2807768105b05dda5461b28cdad89d03
ce6e2e31df4bb3b014fd67e9
1
file
changelog/14050.bugfix.rst
pytest-dev/pytest
1
Display dictionary differences in assertion failures using the original key insertion order instead of sorted order.
8ecf49ec2807768105b05dda5461b28cdad89d03
d825f96bf7540dd62c2cdaff
1
file
changelog/14114.bugfix.rst
pytest-dev/pytest
1
An exception from :hook:`pytest_fixture_post_finalizer` no longer prevents fixtures from being torn down, causing additional errors in the following tests.
8ecf49ec2807768105b05dda5461b28cdad89d03
7f31dc15e9fa5dffbdc102dc
1
file
changelog/14137.improvement.rst
pytest-dev/pytest
1
`pytest.ScopeName` is now public to allow using it in function signatures.
8ecf49ec2807768105b05dda5461b28cdad89d03
4358b3dc37408848daa57395
1
file
changelog/14303.doc.rst
pytest-dev/pytest
1
The documentation is now built with Sphinx >= 9.
8ecf49ec2807768105b05dda5461b28cdad89d03
b5e870dbff4477bb110c48ce
2
file
changelog/14335.deprecation.rst
pytest-dev/pytest
1
The method of configuring hooks using markers, deprecated since pytest 7.2, is now scheduled to be removed in pytest 10. See :ref:`hook-markers` for more details.
8ecf49ec2807768105b05dda5461b28cdad89d03
e40d0c901be70513656bc8e8
2
file
changelog/14342.improvement.rst
pytest-dev/pytest
1
Marked ``yield_fixture`` as deprecated to type checkers using the ``deprecated`` decorator. Note it :ref:`has originally been deprecated <yield-fixture-deprecated>` in pytest 6.2 already.
8ecf49ec2807768105b05dda5461b28cdad89d03
df96f2f22ca78285dc7dd112
1
file
changelog/14373.improvement.rst
pytest-dev/pytest
1
Added type annotations for :func:`pytest.approx`.
8ecf49ec2807768105b05dda5461b28cdad89d03
bbba48bf036b9392e1313e51
1
file
changelog/5848.bugfix.rst
pytest-dev/pytest
1
:hook:`pytest_fixture_post_finalizer` is no longer called extra times for the same fixture teardown in some cases.
8ecf49ec2807768105b05dda5461b28cdad89d03
10b10bed1e27458c2de28358
3
file
changelog/719.bugfix.rst
pytest-dev/pytest
1
Fixed :ref:`@pytest.mark.parametrize <pytest.mark.parametrize ref>` not unpacking single-element tuple values when using a string argnames with a trailing comma (e.g., ``"arg,"``). The trailing comma form now correctly behaves like the tuple form ``("arg",)``, treating argvalues as a list of tuples to unpack.
8ecf49ec2807768105b05dda5461b28cdad89d03
771d71d3f989d07010c35e97
49
file
changelog/README.rst
pytest-dev/pytest
1
This directory contains "newsfragments" which are short files that contain a small **ReST**-formatted text that will be added to the next ``CHANGELOG``. The ``CHANGELOG`` will be read by **users**, so this description should be aimed to pytest users instead of describing internal changes which are only relevant to the...
8ecf49ec2807768105b05dda5461b28cdad89d03
0758e2f0d62ac026fb8dcc10
40
file
changelog/_template.rst
pytest-dev/pytest
1
{% for section in sections %} {% set underline = "-" %} {% if section %} {{section}} {{ underline * section|length }}{% set underline = "~" %} {% endif %} {% if sections[section] %} {% for category, val in definitions.items() if category in sections[section] %} {{ definitions[category]['name'] }} {{ underline * defin...
8ecf49ec2807768105b05dda5461b28cdad89d03
eec06b805e98ae9f1f170269
13
file
codecov.yml
pytest-dev/pytest
1
# reference: https://docs.codecov.io/docs/codecovyml-reference --- codecov: token: 1eca3b1f-31a2-4fb8-a8c3-138b441b50a7 #repo token coverage: status: patch: default: target: 100% # require patches to be 100% project: false comment: false
8ecf49ec2807768105b05dda5461b28cdad89d03
ce1c168015b309bac3f9c3e4
43
file
doc/en/Makefile
pytest-dev/pytest
1
# Minimal makefile for Sphinx documentation # # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = . BUILDDIR = _build # Put it first so that "make" without argument is like "make help". help: @$(SP...
8ecf49ec2807768105b05dda5461b28cdad89d03
ca54bdea6f0875fab6c2bfb2
21
file
doc/en/_static/pytest-custom.css
pytest-dev/pytest
1
/* Tweak how the sidebar logo is presented */ .sidebar-logo { width: 70%; } .sidebar-brand { padding: 0; } /* The landing pages' sidebar-in-content highlights */ #features ul { padding-left: 1rem; list-style: none; } #features ul li { margin-bottom: 0; } @media (min-width: 46em) { #features { width: 50...
8ecf49ec2807768105b05dda5461b28cdad89d03
abea8fd89efc760fd825cfc3
7
file
doc/en/_templates/links.html
pytest-dev/pytest
1
<h3>Useful Links</h3> <ul> <li><a href="https://pypi.org/project/pytest/">pytest @ PyPI</a></li> <li><a href="https://github.com/pytest-dev/pytest/">pytest @ GitHub</a></li> <li><a href="https://github.com/pytest-dev/pytest/issues">Issue Tracker</a></li> <li><a href="https://media.readthedocs.org/pdf/pytest/lat...
8ecf49ec2807768105b05dda5461b28cdad89d03
37a2dd475373072022b3ecb9
77
file
doc/en/adopt.rst
pytest-dev/pytest
1
:orphan: .. warnings about this file not being included in any toctree will be suppressed by :orphan: April 2015 is "adopt pytest month" ============================================= Are you an enthusiastic pytest user, the local testing guru in your workplace? Or are you considering using pytest for your open sour...
8ecf49ec2807768105b05dda5461b28cdad89d03
7e8255cf69cfc97b628439a8
193
file
doc/en/announce/index.rst
pytest-dev/pytest
1
Release announcements =========================================== .. toctree:: :maxdepth: 2 release-9.0.3 release-9.0.2 release-9.0.1 release-9.0.0 release-8.4.2 release-8.4.1 release-8.4.0 release-8.3.5 release-8.3.4 release-8.3.3 release-8.3.2 release-8.3.1 release-8.3.0 ...
End of preview.

Agent Retrieval Bench

Project Page Evaluator Citation

Agent Retrieval Bench is a curated code-retrieval benchmark for coding agents. It evaluates whether a retrieval system can find the repository files an agent would need for real software-engineering workflows.

The current public release is Agent Retrieval Bench V1: 225 manually curated samples across three tasks.

Project page: https://agent-retrieval-bench.github.io/

Task Samples What is retrieved
code2test 106 Tests related to an implementation change or PR intent
comment2context 51 Extra context files needed to act on a review comment
trace2code 68 Root-cause source files for a reproduced failure trace
Total 225

V1 is frozen. Future data expansion will use a new version rather than mutating benchmark/v1.

Licensing note: benchmark metadata, reports, documentation, and evaluator code are MIT licensed; redistributed corpus chunks remain governed by their upstream repository licenses. See the evaluator repository for LICENSE, DATA_LICENSE.md, and CITATION.cff.

Files

Recommended download path:

releases/v1/agent_retrieval_bench_v1.tar.zst
releases/v1/agent_retrieval_bench_v1.tar.zst.sha256

The release bundle extracts to:

benchmark/v1/        # JSONL samples and manifest
corpus/v1/           # chunked repository corpora at base commits
eval/v1/             # baseline summaries/details
reports/v1/          # leaderboard, status, analysis

The older v1_code_review track is still available for historical comparisons, but full V1 is the primary benchmark.

Quickstart

Install the evaluator from GitHub:

pip install "git+https://github.com/eyuansu62/agent-retrieval-bench.git"

Download and extract V1 with the evaluator CLI:

arb download-benchmark --version v1 --local-dir data --force

This downloads the release bundle from Hugging Face, verifies the checksum, and extracts benchmark/v1, corpus/v1, eval/v1, and reports/v1.

Manual troubleshooting path:

hf download eyuansu71/agent_retrieval_bench \
  --repo-type dataset \
  --local-dir data \
  --include "releases/v1/**"

cd data
shasum -a 256 -c releases/v1/agent_retrieval_bench_v1.tar.zst.sha256
zstd -dc releases/v1/agent_retrieval_bench_v1.tar.zst | tar -xf - -C .
cd ..

Validate samples:

arb validate data/benchmark/v1/*.jsonl

Run the lexical baseline:

arb eval-baseline \
  --derived data/benchmark/v1 \
  --corpus data/corpus/v1 \
  --out data/eval/v1/lexical_summary.json \
  --details data/eval/v1/lexical_details.jsonl \
  --no-keep-list

Run the deterministic vectorless RepoMap baseline:

arb eval-repomap \
  --derived data/benchmark/v1 \
  --corpus data/corpus/v1 \
  --out data/eval/v1/repomap_summary.json \
  --details data/eval/v1/repomap_details.jsonl \
  --candidate-filter all_files \
  --no-keep-list

Generate a leaderboard from available *_summary.json files:

arb report-models \
  --eval-dir data/eval/v1 \
  --out data/reports/v1/model_leaderboard.md \
  --json-out data/reports/v1/model_leaderboard.json

Project page: agent-retrieval-bench.github.io. Source code, evaluator commands, and implementation details are in the GitHub repository: eyuansu62/agent-retrieval-bench.

Current Leaderboard

Primary ranking metric: overall MRR. Candidate set: all_files.

Task Model Samples Recall@5 Recall@10 Recall@20 MRR Gold@8k
overall Qwen3-Embedding-4B 225 0.2883 0.4033 0.5828 0.2455 0.2542
overall aider-style-repomap 225 0.3089 0.4705 0.6299 0.2227 0.0704
overall jina-code-embeddings-0.5b 225 0.2230 0.3133 0.4492 0.1883 0.1556
overall lexical 225 0.1970 0.3267 0.4874 0.1450 0.0785
code2test Qwen3-Embedding-4B 106 0.4610 0.5777 0.7230 0.3225 0.3887
code2test jina-code-embeddings-0.5b 106 0.2610 0.3868 0.5305 0.2033 0.2060
code2test aider-style-repomap 106 0.2752 0.4107 0.5808 0.1975 0.0739
code2test lexical 106 0.0676 0.1399 0.2469 0.0663 0.0299
comment2context jina-code-embeddings-0.5b 51 0.3431 0.4020 0.5261 0.3282 0.2386
comment2context Qwen3-Embedding-4B 51 0.2451 0.3856 0.5621 0.3113 0.2451
comment2context aider-style-repomap 51 0.2353 0.3137 0.4967 0.2053 0.0588
comment2context lexical 51 0.1928 0.3595 0.5752 0.1739 0.0784
trace2code aider-style-repomap 68 0.4167 0.6814 0.8064 0.2750 0.0735
trace2code lexical 68 0.4020 0.5931 0.7966 0.2458 0.1544
trace2code Qwen3-Embedding-4B 68 0.0515 0.1446 0.3799 0.0760 0.0515
trace2code jina-code-embeddings-0.5b 68 0.0735 0.1324 0.2647 0.0598 0.0147

Key observation: Qwen is strongest overall and on code2test; Jina is strongest on comment2context; RepoMap is strongest on trace2code. Weak embedding scores on trace2code are an intended benchmark signal: that task rewards structured failure-log and repo-graph retrieval, not only semantic code similarity.

Evaluation Semantics

  • Every sample is evaluated against the repository at the recorded base commit; fixed code is not indexed.
  • comment2context treats the commented file as given context and scores only additional required context files.
  • trace2code uses audited root-cause source files as primary gold; related tests are not primary gold.
  • gold_coverage@8k measures whether gold files appear within an 8k-character retrieval budget.

Versioning

  • Primary benchmark: benchmark/v1
  • Earlier code-review-only track: benchmark/v1_code_review
  • Legacy smoke benchmark: benchmark/v0_2

Planned V1.1 work is targeted expansion of comment2context and trace2code; code2test is not expanded by default.

Citation

There is no paper yet. For now, cite the project page and dataset:

@misc{agent_retrieval_bench_v1,
  title        = {Agent Retrieval Bench V1},
  author       = {{Agent Retrieval Bench contributors}},
  year         = {2026},
  howpublished = {\url{https://agent-retrieval-bench.github.io/}},
  note         = {Dataset: \url{https://huggingface.co/datasets/eyuansu71/agent_retrieval_bench}}
}

Machine-readable citation metadata is available in the evaluator repository: CITATION.cff.

Downloads last month
41