Update README.md
Browse files54 unmodified lines555657585960616263646566676869702 unmodified lines737475767778798081828384853 unmodified lines899091929394959697989910010110210310410510610710854 unmodified linespath: kaggle/train-*---# 📝 GitHub Issues & Notebooks## Description📝 GitHub Issues & Notebooks is a collection of code datasets intended for language models training, they are sourced from GitHub issues, Kaggle notebooks, and Jupyter notebooks. These datasets are part of the [StarCoder2](https://arxiv.org/abs/2402.19173) model training corpus and a modified subset of [bigcode/StarCoder2-Extras](https://huggingface.co/datasets/bigcode/starcoder2data-extras) dataset. We reformat the samples to remove StarCoder2's special tokens and use natural text to delimit comments in issues and display kaggle notebooks in markdown and code blocks.The dataset includes three subsets:- 🐛 GitHub Issues – 11B tokens of technical discussions and issue tracking from GitHub repositories.- 📊 Kaggle Notebooks – 2B tokens of data analysis notebooks curated from Kaggle.- 💻 Jupyter Notebooks – 16B tokens of Jupyter notebooks converted to Python scripts for better processing.These subsets have undergone filtering to remove low-quality content, duplicates, more details in StarCoder2 [paper](https://arxiv.org/abs/2402.19173)## How to load the dataset2 unmodified lines```pythonfrom datasets import load_datasetdata = load_dataset("HuggingFaceTB/github-issues-notebooks", "issues", split="train") # GitHub Issuesdata = load_dataset("HuggingFaceTB/github-issues-notebooks", "kaggle", split="train") # Kaggle Notebooksdata = load_dataset("HuggingFaceTB/github-issues-notebooks", "jupyter", split="train") # Jupyter Notebooks```## Dataset curationThese curation details are from the SterCoder2 pipeline. The original datasets can be found at: https://huggingface.co/datasets/bigcode/starcoder2data-extras### 🐛 GitHub IssuesThe GitHub Issues dataset consists of discussions from GitHub repositories, sourced from GHArchive. It contains issue reports, bug tracking, and technical Q&A discussions.3 unmodified lines- Removing bot-generated comments and auto-replies from email responses.- Filtering out short issues (<200 characters) and extremely long comments.- Keeping only discussions with multiple users (or highly detailed single-user reports).- Anonymizing usernames while preserving the conversation structure.- This cleaning process removed 38% of issues, ensuring a high-quality dataset with technical depth.- More details can be found in the StarCoder2 paper.## 💻 Jupyter NotebooksThe Jupyter Notebooks dataset consists of 4M deduplicatedstructured notebooks, converted to Python scripts using Jupytext.## 📊 Kaggle NotebooksThe Kaggle Notebooks are sourced from the [Meta Kaggle Code](https://www.kaggle.com/datasets/kaggle/meta-kaggle-code) dataset. They were cleaned using a multi-step filtering process, which included:- Removing notebooks with syntax errors or less than 100 characters.- Extracting metadata for notebooks that reference Kaggle datasets, when possible we retrieve the datasets and append information about the data to the beginning of the notebooks (description, `ds.info()`output and 4 examples)- Filtering out duplicates, which reduced the dataset volume by 78%## Citation```54 unmodified lines5556575859606162636465666768692 unmodified lines7273747576777879808182833 unmodified lines8788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717854 unmodified linespath: kaggle/train-*---# GitHub Issues & Kaggle Notebooks## DescriptionGitHub Issues & Kaggle Notebooks is a collection of two code datasets intended for language models training, they are sourced from GitHub issues and notebooks in Kaggle platform. These datasets are a modified part of the [StarCoder2](https://arxiv.org/abs/2402.19173) model training corpus, precisely the [bigcode/StarCoder2-Extras](https://huggingface.co/datasets/bigcode/starcoder2data-extras) dataset. We reformat the samples to remove StarCoder2's special tokens and use natural text to delimit comments in issues and display kaggle notebooks in markdown and code blocks.The dataset includes:- 🐛 GitHub Issues – 11B tokens of discussions from GitHub issues sourced from [GH Archive](https://www.gharchive.org/).- 📊 Kaggle Notebooks – 1.7B tokens of data analysis notebooks in markdonw format, curated from Kaggle's [Meta Kaggle Code](https://www.kaggle.com/datasets/kaggle/meta-kaggle-code) dataset.These datasets have undergone filtering to remove low-quality content, duplicates and PII. More details in StarCoder2 [paper](https://arxiv.org/abs/2402.19173)## How to load the dataset2 unmodified lines```pythonfrom datasets import load_datasetissues = load_dataset("HuggingFaceTB/github-issues-notebooks", "issues", split="train") # GitHub Issueskaggle_notebooks = load_dataset("HuggingFaceTB/github-issues-notebooks", "kaggle", split="train") # Kaggle Notebooks```## Dataset curationThese curation details are from the SterCoder2 pipeline. The original datasets can be found at: https://huggingface.co/datasets/bigcode/starcoder2data-extras and more details can be found in the StarCoder2 paper.### 🐛 GitHub IssuesThe GitHub Issues dataset consists of discussions from GitHub repositories, sourced from GHArchive. It contains issue reports, bug tracking, and technical Q&A discussions.3 unmodified lines- Removing bot-generated comments and auto-replies from email responses.- Filtering out short issues (<200 characters) and extremely long comments.- Keeping only discussions with multiple users (or highly detailed single-user reports).- Anonymizing usernames while preserving the conversation structure, names, emails, keys, passwords, IP addresses using [StarPII](https://huggingface.co/bigcode/starpii).We format the conversatiosn using this template:```Title: [Issue title]Question:username_0: [Issue content]Answers:username_1: [Answer from user 1]username_0: [Author reply]username_2: [Answer from user 2]...Status: Issue closed (optional)```## 📊 Kaggle NotebooksThe Kaggle Notebooks are sourced from the [Meta Kaggle Code](https://www.kaggle.com/datasets/kaggle/meta-kaggle-code) dataset. They were cleaned using a multi-step filtering process, which included:- Removing notebooks with syntax errors or less than 100 characters.- Extracting metadata for notebooks that reference Kaggle datasets. When possible, we retrieve the datasets references in the notebook and add information about them to the beginning of the notebook (description, `ds.info()` output and 4 examples)- Filtering out duplicates, which reduced the dataset volume by 78%, and redacting PII.Each notebook is formatted in Markdown format, where we start with the notebook title, dataset description when available and put the notebook (converted to a Python script) in a code block.Below is an example of a kaggle notebook:````# Iris Flower Dataset### ContextThe Iris flower data set is a multivariate data set introduced ... (truncated)```pythonimport pandas as pddf = pd.read_csv('iris-flower-dataset/IRIS.csv')df.info()``````<class 'pandas.core.frame.DataFrame'>RangeIndex: 150 entries, 0 to 149Data columns (total 5 columns):# Column Non-Null Count Dtype--- ------ -------------- -----0 sepal_length 150 non-null float641 sepal_width 150 non-null float642 petal_length 150 non-null float643 petal_width 150 non-null float644 species 150 non-null objectdtypes: float64(4), object(1)memory usage: 6.0+ KB```Examples from the dataset:```{"sepal_length": 5.1,"sepal_width": 3.5,"petal_length": 1.4,"petal_width": 0.2,"species": "Iris-setosa"}... (truncated)```Code:```pythonimport numpy as np # linear algebraimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)# Input data files are available in the read-only "../input/" directoryimport osfor dirname, _, filenames in os.walk("/kaggle/input"):for filename in filenames:print(os.path.join(dirname, filename))# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current sessionimport matplotlib.pyplot as pltdata = pd.read_csv("/kaggle/input/iris-flower-dataset/IRIS.csv")data.head()X = data.drop("species", axis=1)... (truncated)````## Citation```
README.md+88-18