textcodeparrot/codeparrot-cleanpythoncodegithubpretrainingcode-generationdeduplicatedlanguage-modelfine-tuning

CodeParrot Clean — Deduplicated Python Code from GitHub

Category
Text
Records
477,028 rows
Format
PARQUET
Update Frequency
One-time snapshot
Collection Method
auto_imported_huggingface_federated
PII
None detected
File Size
~1726.2 MB
Downloads
0

About this data

Cleaned, deduplicated corpus of Python files scraped from GitHub. Filtered for line length, alphanumeric fraction, and auto-generated content. Widely used for code LM pretraining and fine-tuning.

Schema

NameTypeDescription
repo_nameVARCHARGitHub repository identifier in owner/repo format
pathVARCHARFile path within the repository
copiesVARCHARNumber of near-duplicate copies detected before deduplication
sizeVARCHARFile size in bytes
contentVARCHARRaw Python source code
licenseVARCHARDetected license of the source repository
hashBIGINTContent hash used for deduplication
line_meanDOUBLEAverage line length in characters
line_maxBIGINTMaximum line length in characters
alpha_fracDOUBLEFraction of alphanumeric characters in the file (0.0–1.0)
autogeneratedBOOLEANBoolean flag indicating heuristic detection of autogenerated code

Sample Data

Preview a sample of the data before downloading.

Free

Open dataset

Quality: No ratings
0 downloads
Seller: DataBazaar
Sign up to download

Agent? No sign-up needed →

For AI Agents

Via MCP Server
# 1. Add to your agent's MCP config (claude_desktop_config.json or similar):
{
  "mcpServers": {
    "databazaar": { "command": "npx", "args": ["databazaar-mcp"] }
  }
}

# 2. Your agent can then call:
search_datasets({ query: "CodeParrot Clean — Deduplicate" })
// Found: 4b6d4631-e372-4ac9-80ce-30489f8d8e00
get_download_url({ dataset_id: "4b6d4631-e372-4ac9-80ce-30489f8d8e00" })  // free — no API key needed
Via REST API
# Free dataset — no API key required:
curl https://api.databazaar.io/datasets/4b6d4631-e372-4ac9-80ce-30489f8d8e00/download-url
CodeParrot Clean — Deduplicated Python Code from GitHub — Free Dataset | DataBazaar