metadata
dataset_info:
features:
- name: identifier
dtype: string
- name: parameters
dtype: string
- name: return_statement
dtype: string
- name: docstring
dtype: string
- name: docstring_summary
dtype: string
- name: function
dtype: string
- name: function_tokens
sequence: string
- name: start_point
sequence: int64
- name: end_point
sequence: int64
- name: argument_list
dtype: 'null'
- name: language
dtype: string
- name: docstring_language
dtype: string
- name: docstring_language_predictions
dtype: string
- name: is_langid_reliable
dtype: string
- name: is_langid_extra_reliable
dtype: bool
- name: __index_level_0__
dtype: float64
- name: type
dtype: string
splits:
- name: test
num_bytes: 15805599
num_examples: 7743
download_size: 5542842
dataset_size: 15805599
license: other
task_categories:
- translation
- summarization
language:
- pt
- de
- fr
- es
tags:
- code
pretty_name: m
size_categories:
- 1K<n<10K
Dataset Card for M2CRB
How to get the data
from datasets import load_dataset
def get_dataset(prog_lang, nat_lang):
test_data = load_dataset("blindsubmissions/M2CRB")
test_data = test_data.filter(
lambda example: example["docstring_language"] == nat_lang
and example["language"] == prog_lang
)
test_data = test_data.map(
datasets_loader.DATASET_NAME_TO_PREPROCESSING_FUNCTION[
TEST_DATA_INFO[prog_lang]["path"]
],
)
test_data = datasets_loader.dataset(test_data)
return test_data
Licensing Information
M2CRB is a subset filtered and pre-processed from 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.