lintangsutawika commited on
Commit
116fbca
·
1 Parent(s): 1206cbb

all 9 languages

Browse files
README.md CHANGED
@@ -8,20 +8,23 @@ task_categories:
8
 
9
  # LeetCode multilingual benchmark dataset
10
 
11
- Post-interface problem rows for the msl-multilingual-self-learning benchmark. Each
12
- JSON line is one LeetCode problem with the 9-language callable `interfaces`
13
- (python, cpp, go, java, rust, javascript, typescript, php, ruby), `canonical_tests`
14
- (a Python check(candidate) oracle), `problem_description`, and `metadata`.
 
 
15
 
16
  ## Splits
17
 
18
- - `train`: 2878 problems (all-9-language universe minus the newfacade test split).
19
- - `test`: 201 problems (held-out eval).
20
 
21
  ## Load
22
 
23
  ```python
24
  from datasets import load_dataset
25
- train = load_dataset("neulab/leetcode", split="train")
26
- test = load_dataset("neulab/leetcode", split="test")
 
27
  ```
 
8
 
9
  # LeetCode multilingual benchmark dataset
10
 
11
+ Post-interface rows for the msl-multilingual-self-learning benchmark, flattened to
12
+ one row per (problem, language). Each row has the single `interface` for its
13
+ `language` (python, cpp, go, java, rust, javascript, typescript, php, ruby), plus
14
+ the shared `canonical_tests` (a Python check(candidate) oracle), `problem_description`,
15
+ and `metadata`. Stored as `data/<split>/<lang>.jsonl` (one JSONL per language, so
16
+ each file stays well under HF's 10 MiB limit); HF globs them all into a single split.
17
 
18
  ## Splits
19
 
20
+ - `train`: 2878 problems x 9 languages.
21
+ - `test`: 201 problems x 9 languages = 1809 rows (held-out eval).
22
 
23
  ## Load
24
 
25
  ```python
26
  from datasets import load_dataset
27
+ train = load_dataset("neulab/leetcode", split="train") # one Dataset, all rows
28
+ test = load_dataset("neulab/leetcode", split="test") # one Dataset, 1809 rows
29
+ python_rows = test.filter(lambda r: r["language"] == "python")
30
  ```
data/{test.jsonl → test/cpp.jsonl} RENAMED
The diff for this file is too large to render. See raw diff
 
data/test/go.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/java.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/javascript.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/php.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/python.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/ruby.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/rust.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test/typescript.jsonl ADDED
The diff for this file is too large to render. See raw diff