Team Ai
Datasetpublic

matlok/python-copilot-training-from-many-repos-large

Python Copilot Large Coding Dataset This dataset is a subset of the matlok python copilot datasets. Please refer to the Multimodal Python Copilot Training Overview for more details on how to use this dataset. Details Each row contains python code, either a class method or a global function, imported modules, base classes (if any), exceptions (ordered based off the code), returns (ordered based off the code), arguments (ordered based off the code), and more. Rows:… See the full description on the dataset page: https://huggingface.co/datasets/matlok/python-copilot-training-from-many-repos-large.

sourceHugging Faceotherupdated 3y agoView on Hugging Face
1likes681downloads
Dataset Card

Python Copilot Large Coding Dataset

This dataset is a subset of the matlok python copilot datasets. Please refer to the Multimodal Python Copilot Training Overview for more details on how to use this dataset.

Details

Each row contains python code, either a class method or a global function, imported modules, base classes (if any), exceptions (ordered based off the code), returns (ordered based off the code), arguments (ordered based off the code), and more.

  • —Rows: 2350782
  • —Size: 3.1 GB
  • —Data type: text
  • —Format: Extracted code using python AST

Schema

json
{
    "args": "string",
    "class_bases": "string",
    "class_docstr": "string",
    "class_docstr_tok": "string",
    "class_name": "string",
    "code": "string",
    "code_tok": "string",
    "docstr": "string",
    "docstr_tok": "string",
    "file_path": "string",
    "filename": "string",
    "imports": "string",
    "is_member": "bool",
    "label_desc": "string",
    "label_desc_len": "int64",
    "label_id": "string",
    "lend": "int64",
    "lstart": "int64",
    "name": "string",
    "num_all_bases": "float64",
    "num_bases": "float64",
    "num_classes": "float64",
    "num_functions": "int64",
    "num_imports": "int64",
    "num_methods": "float64",
    "raises": "string",
    "returns": "string",
    "total_objects": "int64"
}

How to use the dataset

python
from datasets import load_dataset

ds = load_dataset("matlok/python-copilot-training-from-many-repos-large", data_dir="files")