File size: 4,384 Bytes
79f5c4c
 
6d9209d
 
 
 
 
 
 
 
6eda094
6d9209d
7f72c52
6eda094
7f72c52
7fb240b
6eda094
7fb240b
 
6eda094
1162e37
 
 
 
 
 
 
 
6eda094
1162e37
3413969
6eda094
3413969
4499e69
6eda094
4499e69
 
6eda094
fb0caa2
 
 
 
 
 
 
 
6eda094
fb0caa2
e691508
6eda094
e691508
7f2bd84
6eda094
7f2bd84
 
6eda094
cd441c9
 
 
 
 
 
 
 
6eda094
cd441c9
f21fe79
6eda094
f21fe79
9287576
6eda094
9287576
 
6eda094
c25895a
 
 
 
 
 
 
 
6eda094
c25895a
2c68e28
6eda094
2c68e28
d15b1ce
6eda094
d15b1ce
 
6eda094
a49fb49
 
 
 
 
 
 
 
6eda094
a49fb49
db1f4a6
6eda094
db1f4a6
ec7b177
6eda094
ec7b177
 
6eda094
6d9209d
79f5c4c
 
 
 
 
 
 
6eda094
79f5c4c
89b78f7
6eda094
89b78f7
0ca7d80
6eda094
0ca7d80
 
6eda094
79f5c4c
6d9209d
 
 
 
7f72c52
 
7fb240b
 
1162e37
 
 
 
3413969
 
4499e69
 
fb0caa2
 
 
 
e691508
 
7f2bd84
 
cd441c9
 
 
 
f21fe79
 
9287576
 
c25895a
 
 
 
2c68e28
 
d15b1ce
 
a49fb49
 
 
 
db1f4a6
 
ec7b177
 
79f5c4c
 
 
 
89b78f7
 
0ca7d80
 
6eda094
 
 
 
79f5c4c
6eda094
 
 
 
 
f34d829
6eda094
 
 
 
 
 
 
cdcb087
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
---
dataset_info:
- config_name: C
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 116010891
    num_examples: 138903
  - name: validation
    num_bytes: 23655147
    num_examples: 28739
  - name: test
    num_bytes: 15089573
    num_examples: 18108
  download_size: 84218245
  dataset_size: 154755611
- config_name: C++
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 283988203
    num_examples: 318858
  - name: validation
    num_bytes: 71347480
    num_examples: 81875
  - name: test
    num_bytes: 40434527
    num_examples: 45965
  download_size: 210054789
  dataset_size: 395770210
- config_name: Go
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 233348778
    num_examples: 266236
  - name: validation
    num_bytes: 50916905
    num_examples: 55959
  - name: test
    num_bytes: 49018314
    num_examples: 55278
  download_size: 177300040
  dataset_size: 333283997
- config_name: Java
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 341095989
    num_examples: 352118
  - name: validation
    num_bytes: 70142853
    num_examples: 75173
  - name: test
    num_bytes: 73746462
    num_examples: 75789
  download_size: 237710158
  dataset_size: 484985304
- config_name: Python
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 540249752
    num_examples: 627007
  - name: validation
    num_bytes: 83521636
    num_examples: 98147
  - name: test
    num_bytes: 92836805
    num_examples: 113517
  download_size: 390614385
  dataset_size: 716608193
- config_name: Rust
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 78635879
    num_examples: 88593
  - name: validation
    num_bytes: 20637229
    num_examples: 23356
  - name: test
    num_bytes: 15019809
    num_examples: 16851
  download_size: 61646506
  dataset_size: 114292917
- config_name: TypeScript
  features:
  - name: message
    dtype: string
  - name: diff
    dtype: string
  splits:
  - name: train
    num_bytes: 306561530
    num_examples: 378871
  - name: validation
    num_bytes: 56861379
    num_examples: 72008
  - name: test
    num_bytes: 62396070
    num_examples: 77097
  download_size: 224008717
  dataset_size: 425818979
configs:
- config_name: C
  data_files:
  - split: train
    path: C/train-*
  - split: validation
    path: C/validation-*
  - split: test
    path: C/test-*
- config_name: C++
  data_files:
  - split: train
    path: C++/train-*
  - split: validation
    path: C++/validation-*
  - split: test
    path: C++/test-*
- config_name: Go
  data_files:
  - split: train
    path: Go/train-*
  - split: validation
    path: Go/validation-*
  - split: test
    path: Go/test-*
- config_name: Java
  data_files:
  - split: train
    path: Java/train-*
  - split: validation
    path: Java/validation-*
  - split: test
    path: Java/test-*
- config_name: Python
  data_files:
  - split: train
    path: Python/train-*
  - split: validation
    path: Python/validation-*
  - split: test
    path: Python/test-*
- config_name: Rust
  data_files:
  - split: train
    path: Rust/train-*
  - split: validation
    path: Rust/validation-*
  - split: test
    path: Rust/test-*
- config_name: TypeScript
  data_files:
  - split: train
    path: TypeScript/train-*
  - split: validation
    path: TypeScript/validation-*
  - split: test
    path: TypeScript/test-*
tags:
- code
size_categories:
- 100K<n<1M
---

This is a filtered version of the [`JetBrains-Research/commit-chronicle`](https://huggingface.co/datasets/JetBrains-Research/commit-chronicle) dataset. It has been subsetted for the following languages:

```python
[
  "C", "C++", "Go", "Java", "Python", "Rust", "TypeScript"
]
```

Further filtering steps undertaken are:

1. Useless features have been removed and only the message and diff retained.
2. Only commits that modify a single file have been chosen.
3. Samples containing diffs longer than 1024 tokens (by the [`ObscuraCoder/Tokenizer`](https://huggingface.co/ObscuraCoder/Tokenizer) tokenizer estimate) have been discarded.