CoolFace
Datasetpublic

nyuuzyou/notabug-code

NotaBug Code Dataset Dataset Description This dataset was compiled from code repositories hosted on NotaBug.org, a free code hosting platform that emphasizes software freedom and privacy. NotaBug is built on a fully free software stack and is popular among free software advocates and privacy-conscious developers. Dataset Summary Statistic Value Total Files 12,622,961 Total Repositories 11,660 Total Size 12 GB (compressed Parquet)… See the full description on the dataset page: https://huggingface.co/datasets/nyuuzyou/notabug-code.

sourceHugging Faceotherupdated 9mo agoView on Hugging Face
6likes107downloads
Dataset Card

NotaBug Code Dataset

Dataset Description

This dataset was compiled from code repositories hosted on NotaBug.org, a free code hosting platform that emphasizes software freedom and privacy. NotaBug is built on a fully free software stack and is popular among free software advocates and privacy-conscious developers.

Dataset Summary

StatisticValue
Total Files12,622,961
Total Repositories11,660
Total Size12 GB (compressed Parquet)
Programming Languages6,306 (by file extension)
File FormatParquet with Zstd compression (12 files)

Key Features

  • Free software focused corpus: Contains code from repositories on a platform dedicated to software freedom
  • Diverse language coverage: Spans thousands of file types identified by file extension
  • Rich metadata: Includes repository name, file path, detected language, license information, and file size

Languages

The dataset includes files from many programming languages and file types. Languages are detected by file extension. The top 30 languages by file count:

RankLanguageFile Count
1C++2,219,208
2po2,022,441
3none1,572,451
4PHP951,354
5patch637,317
6svg547,170
7XML502,139
8Python392,476
9Text296,953
10JavaScript233,368
11JSON198,981
12Scheme192,409
13Markdown182,342
14info155,078
15slackbuild154,859
16HTML149,824
17Shell133,325
18log127,393
19Makefile112,989
20INI110,537
21Lua84,303
22in75,138
23Assembly74,519
24list58,346
25Java48,781
26CSS48,112
27mk47,373
28dtsi43,825
29diff42,125
30el41,017

Licenses

The dataset includes files from repositories with various licenses:

LicenseFile Count
mit10,029,349
mpl-2.01,178,420
unknown888,840
gpl-2.0333,538
gpl-3.0158,975
unlicense11,805
cc-by-4.08,367
bsd-2-clause4,718
agpl-3.03,055
cc-by-sa-4.02,309
wtfpl1,314
cc0-1.01,188
bsd-3-clause601
cc-by-nc-4.0269
lgpl-3.0137
lgpl-2.176

Dataset Structure

Data Fields

FieldTypeDescription
codestringContent of the source file (UTF-8 encoded)
repo_namestringName of the NotaBug repository (format: username/repo)
pathstringPath of the file within the repository (relative to repo root)
languagestringProgramming language as inferred by file extension
licensestringLicense of the repository (SPDX identifier or "unknown")
sizeint64Size of the source file in bytes

Data Format

  • Format: Apache Parquet with Zstd compression
  • File Structure: 12 files (notabug_0000.parquet to notabug_0011.parquet)

Data Splits

All examples are in the train split. There is no validation or test split.

Example Data Point

{
    'code': '#!/usr/bin/env python2\n# -*- coding: utf-8 -*-\n# Copyright (C) 2014...',
    'repo_name': 'intermsofthewhole/libreboot',
    'path': 'resources/utilities/i945gpu/intel-regs.py',
    'language': 'Python',
    'license': 'mit',
    'size': 3733
}

Dataset Creation

Source Data

All data originates from public repositories hosted on NotaBug.org.

Language Detection

Programming languages are detected by file extension inference.

License Detection

Licenses are detected by scanning for license files in repositories and matching against known license patterns. Repositories without a detectable license are marked as "unknown".

File Filtering

  • Long Lines: Files with any line exceeding 1,000 characters were excluded
  • Deduplication: No deduplication was performed on the dataset

Considerations for Using the Data

Personal and Sensitive Information

The dataset may contain:

  • Email addresses in code comments or configuration files
  • API keys or credentials that were accidentally committed
  • Personal information in comments or documentation

Users should exercise caution and implement appropriate filtering when using this data.

Licensing Information

This dataset is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in this dataset must abide by the terms of the original licenses, including attribution clauses when relevant. The license field in each data point indicates the license of the source repository.