Milo0007 commited on
Commit
6ec8295
·
verified ·
1 Parent(s): 73f06c7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -42
README.md CHANGED
@@ -1,42 +1,83 @@
1
- ---
2
- license: cc-by-nd-4.0
3
- dataset_info:
4
- features:
5
- - name: prob_zh
6
- dtype: string
7
- - name: prob_en
8
- dtype: string
9
- - name: prob_level
10
- dtype: string
11
- - name: algorithm_tag_zh
12
- dtype: string
13
- - name: algorithm_tag_en
14
- dtype: string
15
- - name: canonical_solution
16
- dtype: string
17
- - name: test_case
18
- list:
19
- - name: input
20
- dtype: string
21
- - name: output
22
- dtype: string
23
- - name: pseudo_code
24
- dtype: string
25
- - name: buggy_code
26
- dtype: string
27
- - name: corrupted_code
28
- dtype: string
29
- - name: id
30
- dtype: string
31
- splits:
32
- - name: test
33
- num_bytes: 2383665753
34
- num_examples: 100
35
- download_size: 1579799948
36
- dataset_size: 2383665753
37
- configs:
38
- - config_name: default
39
- data_files:
40
- - split: test
41
- path: data/test-*
42
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nd-4.0
3
+ dataset_info:
4
+ features:
5
+ - name: prob_zh
6
+ dtype: string
7
+ - name: prob_en
8
+ dtype: string
9
+ - name: prob_level
10
+ dtype: string
11
+ - name: algorithm_tag_zh
12
+ dtype: string
13
+ - name: algorithm_tag_en
14
+ dtype: string
15
+ - name: canonical_solution
16
+ dtype: string
17
+ - name: test_case
18
+ list:
19
+ - name: input
20
+ dtype: string
21
+ - name: output
22
+ dtype: string
23
+ - name: pseudo_code
24
+ dtype: string
25
+ - name: buggy_code
26
+ dtype: string
27
+ - name: corrupted_code
28
+ dtype: string
29
+ - name: id
30
+ dtype: string
31
+ splits:
32
+ - name: test
33
+ num_bytes: 2383665753
34
+ num_examples: 100
35
+ download_size: 1579799948
36
+ dataset_size: 2383665753
37
+ configs:
38
+ - config_name: default
39
+ data_files:
40
+ - split: test
41
+ path: data/test-*
42
+ ---
43
+
44
+
45
+ # OIBench Dataset
46
+
47
+ ## Dataset Overview
48
+ The **OIBench Dataset** contains algorithm problem statements, solutions, and associated metadata such as test cases, pseudo code, and difficulty levels. The dataset has been processed and stored in Parquet format for efficient access and analysis.
49
+
50
+ We provide complete information for the first 100 questions in the data (use `dataset = load_dataset("Milo0007/OIBench")` to access, as the test cases are large and the default Dataset Viewer on Hugging Face may not fully display the information). After the submission is accepted, we will provide the complete information for all 250 questions.
51
+
52
+ For the remaining 150 questions, currently we provide the problem descriptions in both Chinese and English in `problem.parquet`.
53
+
54
+ We provide the competition records of human participants in `human_participants_data.parquet`.
55
+
56
+ ## Dataset Structure
57
+ The dataset includes the following fields:
58
+
59
+ - **`id`**: Problem ID (e.g., `000`, `001`, ..., `249`)
60
+ - **`prob_zh`**: Problem description in Chinese
61
+ - **`prob_en`**: Problem description in English
62
+ - **`algorithm_tag_zh`**: Algorithm tags in Chinese
63
+ - **`algorithm_tag_en`**: Algorithm tags in English
64
+ - **`level`**: Problem difficulty
65
+ - **`canonical_solution`**: Official solution code in C++
66
+ - **`test_case`**: List of test cases, each containing `input` and `output`.
67
+ - Each test case is structured as a list of objects containing:
68
+ - `input`: The input for the test case
69
+ - `output`: The output for the test case
70
+ - **`pseudo_code`**: Pseudo code for the algorithm
71
+ - **`buggy_code`**: Buggy code for the problem
72
+ - **`corrupted_code`**: Incomplete code for the problem
73
+
74
+ ## Usage
75
+
76
+ You can load the dataset in your Python code using the following example:
77
+
78
+ ```python
79
+ from datasets import load_dataset
80
+
81
+ dataset = load_dataset("Milo0007/OIBench")
82
+ print(dataset)
83
+