Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ size_categories:
|
|
6 |
- 10K<n<100K
|
7 |
task_categories:
|
8 |
- text-classification
|
9 |
-
pretty_name: Java Code Readability
|
10 |
tags:
|
11 |
- readability
|
12 |
- code
|
@@ -39,7 +39,7 @@ configs:
|
|
39 |
path: data/train-*
|
40 |
---
|
41 |
|
42 |
-
# Java Code Readability
|
43 |
|
44 |
This dataset contains **69276 Java code snippets** along with a **readability score**, mined from [Github](https://github.com/) and automatically processed and labelled.
|
45 |
|
@@ -95,7 +95,7 @@ The score is based on a five point Likert scale, with 1 being very unreadable an
|
|
95 |
To advance code readability classification, the creation of datasets in this research field is of high importance.
|
96 |
We provide a new dataset generated with a new approach.
|
97 |
Previous datasets for code readability classification are mostly generated by humans manually annotating the readability of code.
|
98 |
-
Those datasets are relatively small, with combined only 421 samples.
|
99 |
As our approach allows automation, we can provide a different scale of code snippets.
|
100 |
We share this dataset on Hugging Face to share access and make the ease of usage easy.
|
101 |
|
@@ -106,8 +106,8 @@ The initial source of code snippets are from 100 public GitHub which can be foun
|
|
106 |
#### Data Collection and Processing
|
107 |
|
108 |
The Data Collection and Preprocessing for this Hugging Face dataset involved two main steps.
|
109 |
-
First, GitHub repositories known for high code quality were
|
110 |
-
Second, the code was intentionally
|
111 |
This resulted in an automatically generated training dataset for source code readability classification.
|
112 |
|
113 |
#### Who are the source data producers?
|
@@ -120,11 +120,13 @@ The ratings of the code snippets are automatically assigned. Thus, no personal o
|
|
120 |
|
121 |
## Bias, Risks, and Limitations
|
122 |
|
123 |
-
The assigned labels are not accurate
|
|
|
|
|
124 |
|
125 |
### Recommendations
|
126 |
|
127 |
-
The dataset should be used to train Java code readability classifiers. We recommend fine-tuning and evaluation on manually
|
128 |
|
129 |
## Dataset Card Authors
|
130 |
Lukas Krodinger, [Chair of Software Engineering II](https://www.fim.uni-passau.de/en/chair-for-software-engineering-ii), [University of Passau](https://www.uni-passau.de/en/).
|
|
|
6 |
- 10K<n<100K
|
7 |
task_categories:
|
8 |
- text-classification
|
9 |
+
pretty_name: Java Code Readability Mined & Modified
|
10 |
tags:
|
11 |
- readability
|
12 |
- code
|
|
|
39 |
path: data/train-*
|
40 |
---
|
41 |
|
42 |
+
# Java Code Readability Merged & Modified
|
43 |
|
44 |
This dataset contains **69276 Java code snippets** along with a **readability score**, mined from [Github](https://github.com/) and automatically processed and labelled.
|
45 |
|
|
|
95 |
To advance code readability classification, the creation of datasets in this research field is of high importance.
|
96 |
We provide a new dataset generated with a new approach.
|
97 |
Previous datasets for code readability classification are mostly generated by humans manually annotating the readability of code.
|
98 |
+
[Those datasets](https://huggingface.co/datasets/se2p/code-readability-merged) are relatively small, with combined size of only 421 samples.
|
99 |
As our approach allows automation, we can provide a different scale of code snippets.
|
100 |
We share this dataset on Hugging Face to share access and make the ease of usage easy.
|
101 |
|
|
|
106 |
#### Data Collection and Processing
|
107 |
|
108 |
The Data Collection and Preprocessing for this Hugging Face dataset involved two main steps.
|
109 |
+
First, GitHub repositories known for high code quality were **mined** and labeled as highly readable. The extracted methods are labeled with a score of 3.68.
|
110 |
+
Second, the code was intentionally **modified** to reduce readability. The resulting code was labelled with a score of 3.26.
|
111 |
This resulted in an automatically generated training dataset for source code readability classification.
|
112 |
|
113 |
#### Who are the source data producers?
|
|
|
120 |
|
121 |
## Bias, Risks, and Limitations
|
122 |
|
123 |
+
The assigned labels are not accurate as they are only an average estimate based on a survey.
|
124 |
+
The average score for the mined code snippets of the survey was 3.68.
|
125 |
+
The average score for the modified code snippets of the survey was 3.26.
|
126 |
|
127 |
### Recommendations
|
128 |
|
129 |
+
The dataset should be used to train Java code readability classifiers. We recommend fine-tuning and evaluation on [manually labeled data](https://huggingface.co/datasets/se2p/code-readability-merged).
|
130 |
|
131 |
## Dataset Card Authors
|
132 |
Lukas Krodinger, [Chair of Software Engineering II](https://www.fim.uni-passau.de/en/chair-for-software-engineering-ii), [University of Passau](https://www.uni-passau.de/en/).
|