File size: 1,352 Bytes
ab769bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b674cf4
 
 
 
 
 
 
 
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
---
dataset_info:
  features:
  - name: source
    dtype: string
  - name: task_type
    dtype: string
  - name: in_source_id
    dtype: string
  - name: problem
    dtype: string
  - name: gold_standard_solution
    dtype: string
  - name: problem_id
    dtype: string
  - name: metadata
    struct:
    - name: difficulty
      dtype: string
    - name: memory_limit
      dtype: string
    - name: memory_limit_bytes
      dtype: int64
    - name: problem_url
      dtype: string
    - name: time_limit
      dtype: string
  - name: verification_info
    struct:
    - name: language
      dtype: string
    - name: test_cases
      list:
      - name: fn_name
        dtype: string
      - name: input
        dtype: string
      - name: output
        dtype: string
      - name: type
        dtype: string
  splits:
  - name: train
    num_bytes: 824199338.4992276
    num_examples: 9080
  download_size: 179438898
  dataset_size: 824199338.4992276
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---
```python
import datasets

ds = datasets.load_dataset("open-r1/verifiable-coding-problems-python_decontaminated", split="train")
ds_tc_6 = ds.filter(lambda x: len(x["verification_info"]["test_cases"]) <= 6)

ds_tc_6.push_to_hub("rasdani/verifiable-coding-problems-python_decontaminated_six_test_cases")
```