Commit
·
b7655b4
1
Parent(s):
18ac7bb
Update README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,45 @@ dataset_info:
|
|
41 |
num_examples: 7743
|
42 |
download_size: 5542842
|
43 |
dataset_size: 15805599
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
---
|
45 |
-
# Dataset Card for
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
num_examples: 7743
|
42 |
download_size: 5542842
|
43 |
dataset_size: 15805599
|
44 |
+
license: other
|
45 |
+
task_categories:
|
46 |
+
- translation
|
47 |
+
- summarization
|
48 |
+
language:
|
49 |
+
- pt
|
50 |
+
- de
|
51 |
+
- fr
|
52 |
+
- es
|
53 |
+
tags:
|
54 |
+
- code
|
55 |
+
pretty_name: m
|
56 |
+
size_categories:
|
57 |
+
- 1K<n<10K
|
58 |
---
|
59 |
+
# Dataset Card for M2CRB
|
60 |
|
61 |
+
## How to get the data
|
62 |
+
|
63 |
+
```
|
64 |
+
from datasets import load_dataset
|
65 |
+
|
66 |
+
def get_dataset(prog_lang, nat_lang):
|
67 |
+
test_data = load_dataset("blindsubmissions/M2CRB")
|
68 |
+
|
69 |
+
test_data = test_data.filter(
|
70 |
+
lambda example: example["docstring_language"] == nat_lang
|
71 |
+
and example["language"] == prog_lang
|
72 |
+
)
|
73 |
+
|
74 |
+
test_data = test_data.map(
|
75 |
+
datasets_loader.DATASET_NAME_TO_PREPROCESSING_FUNCTION[
|
76 |
+
TEST_DATA_INFO[prog_lang]["path"]
|
77 |
+
],
|
78 |
+
)
|
79 |
+
test_data = datasets_loader.dataset(test_data)
|
80 |
+
|
81 |
+
return test_data
|
82 |
+
```
|
83 |
+
|
84 |
+
## Licensing Information
|
85 |
+
M2CRB is a subset filtered and pre-processed from [The Stack](https://huggingface.co/datasets/bigcode/the-stack), a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in M2CRB must abide by the terms of the original licenses.
|