parquet-converter
commited on
Commit
•
478b2b4
1
Parent(s):
6de5f4f
Update parquet files
Browse files- README.md +0 -10
- valid.csv → default/java-8m-methods-v2-test.parquet +2 -2
- test.csv → default/java-8m-methods-v2-train-00000-of-00007.parquet +2 -2
- train.csv → default/java-8m-methods-v2-train-00001-of-00007.parquet +2 -2
- default/java-8m-methods-v2-train-00002-of-00007.parquet +3 -0
- default/java-8m-methods-v2-train-00003-of-00007.parquet +3 -0
- default/java-8m-methods-v2-train-00004-of-00007.parquet +3 -0
- default/java-8m-methods-v2-train-00005-of-00007.parquet +3 -0
- default/java-8m-methods-v2-train-00006-of-00007.parquet +3 -0
- default/java-8m-methods-v2-validation.parquet +3 -0
- java-8m-methods-v2.py +0 -61
README.md
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- java
|
4 |
-
license:
|
5 |
-
- mit
|
6 |
-
multilinguality:
|
7 |
-
- monolingual
|
8 |
-
pretty_name:
|
9 |
-
- java-8m-methods-v2
|
10 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
valid.csv → default/java-8m-methods-v2-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0fb3ed36cb5e66f7e34aa10203caa3addeb53b41a3f7b9fe8bbc813ca28de9b
|
3 |
+
size 37910336
|
test.csv → default/java-8m-methods-v2-train-00000-of-00007.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:afeb181c004d8768c2e37ae45b789e3a972e93203075c4eb48af827050bfe209
|
3 |
+
size 195018041
|
train.csv → default/java-8m-methods-v2-train-00001-of-00007.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5020dc7b3db387ad4d3f8e068104c6d1054ba64115dfe17f11357e845964c6aa
|
3 |
+
size 177274549
|
default/java-8m-methods-v2-train-00002-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c53edc394da5e18dfac96f76db86c1e004dcb868287778a42f2f32375d31638e
|
3 |
+
size 173359451
|
default/java-8m-methods-v2-train-00003-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ce75ac6fe2e9f4d4f3d80d204ccb2cdf2ff577a0a44fef9ed8fab65b191ee7c
|
3 |
+
size 168855135
|
default/java-8m-methods-v2-train-00004-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1deb279ad77f29472935e44345ffb67e90e2fa7a651db3892320380cc3ec29b
|
3 |
+
size 181072483
|
default/java-8m-methods-v2-train-00005-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73f785ab944a762ce887be7332754948a46af9084a27caca1236a5258c1a170e
|
3 |
+
size 157817535
|
default/java-8m-methods-v2-train-00006-of-00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80a81a505f956c8ea3b6505320b72b3c7d223aa6b83ec9108b820b1a24eb7f0a
|
3 |
+
size 86617152
|
default/java-8m-methods-v2-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e00d1cce90931b240ed5c8322945b32fad76aebfdc588ad987709d96331e556
|
3 |
+
size 37988952
|
java-8m-methods-v2.py
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import sys
|
3 |
-
import csv
|
4 |
-
import datasets
|
5 |
-
csv.field_size_limit(sys.maxsize)
|
6 |
-
|
7 |
-
_DESCRIPTION = "Java 8M Methods :: A collection 8 million java methods (Version 2) [PROBE COMPATIBLE]"
|
8 |
-
_CITATION = "NOT AVAILABLE"
|
9 |
-
_HOMEPAGE = "NOT AVAILABLE"
|
10 |
-
_LICENSE = "MIT"
|
11 |
-
|
12 |
-
|
13 |
-
_BASE_TRAIN_FILE_URL = "https://huggingface.co/datasets/anjandash/java-8m-methods-v2/resolve/main/train.csv"
|
14 |
-
_BASE_VALID_FILE_URL = "https://huggingface.co/datasets/anjandash/java-8m-methods-v2/resolve/main/valid.csv"
|
15 |
-
_BASE_TEST_FILE_URL = "https://huggingface.co/datasets/anjandash/java-8m-methods-v2/resolve/main/test.csv"
|
16 |
-
|
17 |
-
_URLS = {
|
18 |
-
"train": _BASE_TRAIN_FILE_URL,
|
19 |
-
"valid": _BASE_VALID_FILE_URL,
|
20 |
-
"test": _BASE_TEST_FILE_URL
|
21 |
-
}
|
22 |
-
|
23 |
-
class Java8mMethodsV2(datasets.GeneratorBasedBuilder): # or datasets.DatasetBuilder
|
24 |
-
"""Java 8M Methods (Version 2) [PROBE COMPATIBLE]"""
|
25 |
-
|
26 |
-
def _info(self):
|
27 |
-
"""Returns Info"""
|
28 |
-
return datasets.DatasetInfo(
|
29 |
-
description=_DESCRIPTION,
|
30 |
-
features=datasets.Features(
|
31 |
-
{
|
32 |
-
"id": datasets.Value("string"),
|
33 |
-
"text": datasets.Value("string"),
|
34 |
-
}
|
35 |
-
),
|
36 |
-
homepage=_HOMEPAGE,
|
37 |
-
license=_LICENSE,
|
38 |
-
citation=_CITATION,
|
39 |
-
)
|
40 |
-
|
41 |
-
def _split_generators(self, dl_manager):
|
42 |
-
"""Returns SplitGenerators"""
|
43 |
-
data_file = dl_manager.download(_URLS)
|
44 |
-
return [
|
45 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_file["train"]}),
|
46 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": data_file["valid"]}),
|
47 |
-
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": data_file["test"] }),
|
48 |
-
]
|
49 |
-
|
50 |
-
|
51 |
-
def _generate_examples(self, filepath):
|
52 |
-
"""Yields Examples"""
|
53 |
-
with open(filepath, encoding="utf-8") as f:
|
54 |
-
reader = csv.reader(f)
|
55 |
-
for id_, row in enumerate(reader):
|
56 |
-
if id_ == 0:
|
57 |
-
continue
|
58 |
-
yield id_, {
|
59 |
-
"id": row[0],
|
60 |
-
"text": row[1],
|
61 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|