Update README.md
Browse files12345678951 unmodified lines61626364656655 unmodified lines122123124125126127128129# GitHub Code Dataset## What is it?The GitHub Code dataest consists of 115M code files from GitHub in 32 programming languages with 60 extensions totalling in 1TB of text data. The dataset was created from the public GitHub dataset on Google BiqQuery.## How to use itThe GitHub Code dataset is a very large dataset so for most use cases it is recommended to make use of the streaming API of `datasets`. You can load and iterate through the dataset with the following two lines of code:51 unmodified linesds = load_dataset("lvwerra/github-code", split="train")```## LanguagesThe dataset contains 30 programming languages with over 60 extensions:55 unmodified lines]```## Dataset creationThe dataset was created in two steps:1. Files of with the extensions given in the list above were retrieved from the GitHub dataset on BigQuery (full query [here](https://huggingface.co/datasets/lvwerra/github-code/blob/main/query.sql)). The query was executed on _Feb 14, 2022, 12:03:16 PM UTC+1_.2. Files with lines longer than 1000 characters and duplicates (exact duplicates ignoring whitespaces) were dropped (full preprocessing script [here](https://huggingface.co/datasets/lvwerra/github-code/blob/main/github_preprocessing.py)).12345678951 unmodified lines61626364656667686970717273747576777879808182838485868788899091929394959655 unmodified lines152153154155156157158159160161162163# GitHub Code Dataset## Dataset DescriptionThe GitHub Code dataest consists of 115M code files from GitHub in 32 programming languages with 60 extensions totalling in 1TB of text data. The dataset was created from the public GitHub dataset on Google BiqQuery.### How to use itThe GitHub Code dataset is a very large dataset so for most use cases it is recommended to make use of the streaming API of `datasets`. You can load and iterate through the dataset with the following two lines of code:51 unmodified linesds = load_dataset("lvwerra/github-code", split="train")```## Data Structure### Data Instances```python{'code': "import mod189 from './mod189';\nvar value=mod189+1;\nexport default value;\n",'repo_name': 'MirekSz/webpack-es6-ts','path': 'app/mods/mod190.js','language': 'JavaScript','license': 'isc','size': 73}```### Data Fields|Field|Type|Description||---|---|---||code|string|content of source file||repo_name|string|name of the GitHub repository||path|string|path of file in GitHub repository||language|string|programming language as inferred by extension||license|string|license of GitHub repository||size|int|size of source file in bytes|### Data SplitsThe dataset only contains a train split.## LanguagesThe dataset contains 30 programming languages with over 60 extensions:55 unmodified lines]```## Dataset CreationThe dataset was created in two steps:1. Files of with the extensions given in the list above were retrieved from the GitHub dataset on BigQuery (full query [here](https://huggingface.co/datasets/lvwerra/github-code/blob/main/query.sql)). The query was executed on _Feb 14, 2022, 12:03:16 PM UTC+1_.2. Files with lines longer than 1000 characters and duplicates (exact duplicates ignoring whitespaces) were dropped (full preprocessing script [here](https://huggingface.co/datasets/lvwerra/github-code/blob/main/github_preprocessing.py)).## Considerations for Using the DataThe dataset consists of source code from a wide range of repositories. As such they can potentially include harmful or biased code as well as sensitive information like passwords or usernames.
README.md+38-4