Update README.md
Browse files
README.md
CHANGED
@@ -41,3 +41,46 @@ configs:
|
|
41 |
- split: test
|
42 |
path: data/test-*
|
43 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
- split: test
|
42 |
path: data/test-*
|
43 |
---
|
44 |
+
|
45 |
+
# LOC-BENCH: A Benchmark for Code Localization
|
46 |
+
|
47 |
+
<!-- Provide a quick summary of the dataset. -->
|
48 |
+
LOC-BENCH is a dataset specifically designed for evaluating code localization methods in software repositories.
|
49 |
+
LOC-BENCH provides a diverse set of issues, including bug reports, feature requests, security vulnerabilities, and performance optimizations.
|
50 |
+
|
51 |
+
To reproduce the results reported in the [paper](https://arxiv.org/abs/2503.09089), please refer to [`czlll/Loc-Bench_V0`](https://huggingface.co/datasets/czlll/Loc-Bench_V0).
|
52 |
+
|
53 |
+
Loc-Bench is a refined benchmark for evaluating code localization methods.
|
54 |
+
Compared to the V0, it improves data quality by filtering out examples that do not involve any function-level code modifications.
|
55 |
+
We recommend using this dataset for a more accurate and reliable evaluation of code localization performance.
|
56 |
+
|
57 |
+
The table below shows the distribution of categories in the dataset.
|
58 |
+
|
59 |
+
| category | count |
|
60 |
+
|:---------|:---------|
|
61 |
+
| Bug Report | 242 |
|
62 |
+
| Feature Request | 150 |
|
63 |
+
| Performance Issue | 139 |
|
64 |
+
| Security Vulnerability | 29 |
|
65 |
+
|
66 |
+
|
67 |
+
Code: https://github.com/gersteinlab/LocAgent
|
68 |
+
|
69 |
+
## 🔧 How to Use
|
70 |
+
You can easily load LOC-BENCH using Hugging Face's datasets library:
|
71 |
+
```
|
72 |
+
from datasets import load_dataset
|
73 |
+
|
74 |
+
dataset = load_dataset("czlll/Loc-Bench_V1", split="test")
|
75 |
+
|
76 |
+
```
|
77 |
+
## 📄 Citation
|
78 |
+
If you use LOC-BENCH in your research, please cite our paper:
|
79 |
+
```
|
80 |
+
@article{chen2025locagent,
|
81 |
+
title={LocAgent: Graph-Guided LLM Agents for Code Localization},
|
82 |
+
author={Chen, Zhaoling and Tang,Xiangru and Deng,Gangda and Wu,Fang and Wu,Jialong and Jiang,Zhiwei and Prasanna,Viktor and Cohan,Arman and Wang,Xingyao},
|
83 |
+
journal={arXiv preprint arXiv:2503.09089},
|
84 |
+
year={2025}
|
85 |
+
}
|
86 |
+
```
|