SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.11612 · 2024

Long Code Arena: a Set of Benchmarks for Long-Context Code Models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 7 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
jetbrains-research/lca-baselines canonical 6 of 7
FunctionStatusWhere it lives
extract_json_from_output Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/backbone/utils.py
code served (permissive licence) · get_code("ba5ac24a77be2ea0")
f1_score Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/metrics/quality_metrics.py
code served (permissive licence) · get_code("e1f0a26bc2cc3531")
precision Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/metrics/quality_metrics.py
code served (permissive licence) · get_code("2026474821ea5965")
recall Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/metrics/quality_metrics.py
code served (permissive licence) · get_code("55ad0889b7e67762")
sort_files_by_relevance Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/context_composers/utils.py
code served (permissive licence) · get_code("4f4cada568ab31f2")
tokenize_with_regex Ran jetbrains-research/lca-baselines/bug_localization/src/baselines/context_composers/utils.py
code served (permissive licence) · get_code("0af2c471041b8b65")
tokenize_with_tiktoken Not yet run jetbrains-research/lca-baselines/bug_localization/src/baselines/context_composers/utils.py
code served (permissive licence) · get_code("514143a5817b30e9")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Nowadays, the fields of code and natural language processing are evolving rapidly. In particular, models become better at processing long context windows - supported context sizes have increased by orders of magnitude over the last few years. However, there is a shortage of benchmarks for code processing that go beyond a single file of context, while the most popular ones are limited to a single method. With this work, we aim to close this gap by introducing Long Code Arena, a suite of six benchmarks for code processing tasks that require project-wide context. These tasks cover different aspects of code processing: library-based code generation, CI builds repair, project-level code completion, commit message generation, bug localization, and module summarization. For each task, we provide a manually verified dataset for testing, an evaluation suite, and open-source baseline solutions based on popular LLMs to showcase the usage of the dataset and to simplify adoption by other researchers. We publish the benchmark page on HuggingFace Spaces with the leaderboard, links to HuggingFace Hub for all the datasets, and link to the GitHub repository with baselines: https://huggingface.co/spaces/JetBrains-Research/long-code-arena.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.11612")
get_code_for_paper("2406.11612")
have("2406.11612")

Connect an agent — have() is free.