jenyag commited on
Commit
5e9734d
1 Parent(s): 8b7ca9a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -2
README.md CHANGED
@@ -57,6 +57,63 @@ configs:
57
  - split: test
58
  path: data/test-*
59
  ---
60
- # Dataset Card for "lca-codegen-large"
 
 
 
61
 
62
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  - split: test
58
  path: data/test-*
59
  ---
60
+ # LCA Project Level Code Completion
61
+ ## How to load the dataset
62
+ ```
63
+ from datasets import load_dataset
64
 
65
+ ds = load_dataset('JetBrains-Research/lca-codegen-large', split='test')
66
+ ```
67
+ ## Data Point Structure
68
+
69
+ * `repo` – repository name in format `{GitHub_user_name}__{repository_name}`
70
+ * `commit_hash` – commit hash
71
+ * `completion_file` – dictionary with the completion file content in the following format:
72
+ * `filename` – filepath to the completion file
73
+ * `content` – content of the completion file
74
+ * `completion_lines` – dictionary where keys are classes of lines and values are a list of integers (numbers of lines to complete). The classes are:
75
+ * `committed` – line contains at least one function or class that was declared in the committed files from `commit_hash`
76
+ * `inproject` – line contains at least one function or class that was declared in the project (excluding previous)
77
+ * `infile` – line contains at least one function or class that was declared in the completion file (excluding previous)
78
+ * `common` – line contains at least one function or class that was classified to be common, e.g., `main`, `get`, etc (excluding previous)
79
+ * `non_informative` – line that was classified to be non-informative, e.g. too short, contains comments, etc
80
+ * `random` – randomly sampled from the rest of the lines
81
+ * `repo_snapshot` – dictionary with a snapshot of the repository before the commit. Has the same structure as `completion_file`, but filenames and contents are orginized as lists.
82
+ * `completion_lines_raw` – the same as `completion_lines`, but before sampling.
83
+
84
+ ## How we collected the data
85
+
86
+ To collect the data, we cloned repositories from GitHub where the main language is Python.
87
+ The completion file for each data point is a `.py` file that was added to the repository in a commit.
88
+ The state of the repository before this commit is the repo snapshot.
89
+
90
+ Large dataset is defined by number of characters in `.py` files from the repository snapshot. This number is from 192K to 768K.
91
+
92
+ ## Dataset Stats
93
+
94
+ * Number of datapoints: 270
95
+ * Number of repositories: 75
96
+ * Number of commits: 219
97
+
98
+ ### Completion File
99
+ * Number of lines, median: 278
100
+ * Number of lines, min: 200
101
+ * Number of lines, max: 1694
102
+
103
+ ### Repository Snapshot
104
+ * `.py` files: <u>median 84</u>, from 3 to 255
105
+ * non `.py` files: <u>median 155</u>, from 8 to 2174
106
+ * `.py` lines: <u>median 15466.5</u>
107
+ * non `.py` lines: <u>median 18759</u>
108
+
109
+ ### Line Counts:
110
+ * infile: 2691
111
+ * inproject: 2595
112
+ * common: 693
113
+ * committed: 1322
114
+ * non-informative: 1019
115
+ * random: 1311
116
+ * **total**: 9631
117
+
118
+ ## Scores
119
+ [HF Space](https://huggingface.co/spaces/JetBrains-Research/long-code-arena)