Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
csv
Languages:
English
Size:
1K - 10K
ArXiv:
Tags:
code generation
License:
Update README.md
Browse files
README.md
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
task_categories:
|
4 |
-
- text-generation
|
5 |
-
language:
|
6 |
-
- en
|
7 |
-
tags:
|
8 |
-
- code generation
|
9 |
-
size_categories:
|
10 |
-
- 1K<n<10K
|
11 |
-
---
|
12 |
-
|
13 |
# Codev-Bench
|
14 |
|
15 |
## Introduction
|
@@ -25,23 +13,13 @@ In detail, first, We extract unit test classes and functions from real GitHub re
|
|
25 |
|
26 |
We split the completion sub-scenes or capabilities that users may encounter while developing in an IDE into the following parts:
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
- **Scene1.1**. ✅ The context of the code block to be completed is fully complete.
|
31 |
-
|
32 |
-
- **Scene1.2**. ✅ The context of the code block to be completed has an empty body, but the external context of the function is complete.
|
33 |
-
|
34 |
-
- **Scene1.3**. ✅ The context following the code block to be completed is completely empty.
|
35 |
-
|
36 |
-
**Scene2**. ✅ Completing a portion of code within a specific code block.
|
37 |
|
38 |
-
|
39 |
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
**Scene4**. 🔄 Completing code based on related and similar code within the project.
|
45 |
|
46 |
|
47 |
## How To Use
|
@@ -105,19 +83,13 @@ If almost all the unit tests run successfully, reseachers and developers can pro
|
|
105 |
|
106 |
We split the completion sub-scenes or capabilities as follows:
|
107 |
|
108 |
-
**
|
109 |
-
|
110 |
-
**Scene1.2**: `./prompts/prefix_full_suffix_func_empty_complete_current_block_no_evidence.jsonl` and `./prompts/prefix_full_suffix_func_empty_complete_current_block_with_evidence.jsonl`
|
111 |
-
|
112 |
-
**Scene1.3**: `./prompts/prefix_full_suffix_empty_complete_current_block_no_evidence.jsonl` and `./prompts/prefix_full_suffix_empty_complete_current_block_with_evidence.jsonl`
|
113 |
-
|
114 |
-
**Scene2.1**: `./prompts/complete_current_header_inner_block_completion.jsonl`
|
115 |
|
116 |
-
**
|
117 |
|
118 |
-
**
|
119 |
|
120 |
-
**
|
121 |
|
122 |
The structure of the prompts is as follows:
|
123 |
```
|
@@ -185,15 +157,36 @@ myenv/bin/python src/evaluate.py --method evaluate_prediction --model codegemma_
|
|
185 |
```
|
186 |
|
187 |
Thus, the result file `./predicts/prefix_suffix_full_complete_current_block_no_evidence/results/codegemma_7b.jsonl.x` will be generated. Then, users can use the following command to summarize the results:
|
188 |
-
```
|
189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
```
|
191 |
|
192 |
|
193 |
## Experimental Results
|
194 |
|
195 |
-
###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
-
|
198 |
|
199 |
-

|
177 |
+
|
178 |
+
### The Results of Scenario 1
|
179 |
+
|
180 |
+

|
181 |
+
|
182 |
+
### The Results of Scenario 2
|
183 |
+
|
184 |
+

|
185 |
+
|
186 |
+
### The Results of Scenario 3
|
187 |
+
|
188 |
+

|
189 |
|
190 |
+
### The Results of Scenario 4
|
191 |
|
192 |
+

|