Datasets:

Modalities:
Text
Formats:
parquet
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
czlll commited on
Commit
f037af0
·
verified ·
1 Parent(s): 2056b4e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -40
README.md CHANGED
@@ -1,40 +1,75 @@
1
- ---
2
- license: apache-2.0
3
- configs:
4
- - config_name: default
5
- data_files:
6
- - split: test
7
- path: data/test-*
8
- dataset_info:
9
- features:
10
- - name: repo
11
- dtype: string
12
- - name: instance_id
13
- dtype: string
14
- - name: base_commit
15
- dtype: string
16
- - name: patch
17
- dtype: string
18
- - name: test_patch
19
- dtype: string
20
- - name: problem_statement
21
- dtype: string
22
- - name: hints_text
23
- dtype: string
24
- - name: created_at
25
- dtype: int64
26
- - name: labels
27
- sequence: string
28
- - name: category
29
- dtype: string
30
- - name: edit_functions
31
- sequence: string
32
- - name: added_functions
33
- sequence: string
34
- splits:
35
- - name: test
36
- num_bytes: 9540894
37
- num_examples: 660
38
- download_size: 3490581
39
- dataset_size: 9540894
40
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ configs:
4
+ - config_name: default
5
+ data_files:
6
+ - split: test
7
+ path: data/test-*
8
+ dataset_info:
9
+ features:
10
+ - name: repo
11
+ dtype: string
12
+ - name: instance_id
13
+ dtype: string
14
+ - name: base_commit
15
+ dtype: string
16
+ - name: patch
17
+ dtype: string
18
+ - name: test_patch
19
+ dtype: string
20
+ - name: problem_statement
21
+ dtype: string
22
+ - name: hints_text
23
+ dtype: string
24
+ - name: created_at
25
+ dtype: int64
26
+ - name: labels
27
+ sequence: string
28
+ - name: category
29
+ dtype: string
30
+ - name: edit_functions
31
+ sequence: string
32
+ - name: added_functions
33
+ sequence: string
34
+ splits:
35
+ - name: test
36
+ num_bytes: 9540894
37
+ num_examples: 660
38
+ download_size: 3490581
39
+ dataset_size: 9540894
40
+ ---
41
+
42
+
43
+ # LOC-BENCH: A Benchmark for Code Localization
44
+
45
+ <!-- Provide a quick summary of the dataset. -->
46
+
47
+ LOC-BENCH is a dataset specifically designed for evaluating code localization methods in software repositories.
48
+ LOC-BENCH provides a diverse set of issues, including bug reports, feature requests, security vulnerabilities, and performance optimizations.
49
+
50
+ Note:
51
+ This is the dataset that was used in [paper](https://arxiv.org/abs/2503.09089).
52
+
53
+ Actually, this dataset is the first version;
54
+ We later released a refined version, [`czlll/Loc-Bench_V2`](https://huggingface.co/datasets/czlll/Loc-Bench_V2), with improved data quality by filtering out examples that do not modify any functions.
55
+ We recommend using the V2 dataset to evaluate code localization performance.
56
+
57
+ <!-- Code: https://github.com/gersteinlab/LocAgent -->
58
+
59
+ ## 🔧 How to Use
60
+ You can easily load LOC-BENCH using Hugging Face's datasets library:
61
+ ```
62
+ from datasets import load_dataset
63
+
64
+ dataset = load_dataset("czlll/Loc-Bench", split='test')
65
+ ```
66
+ ## 📄 Citation
67
+ If you use LOC-BENCH in your research, please cite our paper:
68
+ ```
69
+ @article{chen2025locagent,
70
+ title={LocAgent: Graph-Guided LLM Agents for Code Localization},
71
+ 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},
72
+ journal={arXiv preprint arXiv:2503.09089},
73
+ year={2025}
74
+ }
75
+ ```