# CodeFIM-Data

- **ID:** 35
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/Etherll/CodeFIM-Data
- **Authors:** Etherll
- **Venue:** HuggingFace (Etherll)
- **Published:** 2025
- **Source:** huggingface
- **Language:** Rust, TypeScript, Python, Go (programming languages)
- **Access:** free
- **License:** HF card YAML has no license field. Treat as Unknown; per-file upstream OSS licenses still apply to the source text.
- **License family:** Other (auto-classified)
- **Topics:** Code
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/35

## Summary

CodeFIM-Data is a HuggingFace dataset of 238,000 rows formatted for fill-in-the-middle (FIM) code completion training. Each row contains a file name, a code prefix, a code suffix, the missing middle segment, and a FIM type label. The data is drawn from multiple programming languages (primarily Rust, but also TypeScript, Python, and Go) and is used to fine-tune code completion models such as Etherll's Qwen2.5-CodeFIM series for IDE-style autocomplete via Continue.

## Attributes

- **Purpose:** Training and evaluating code completion models using the fill-in-the-middle (FIM) paradigm, where the model predicts the missing middle portion of code given its prefix and suffix.
- **Scale:** 238k rows
- **Used for:** Training Etherll/Qwen2.5-CodeFIM-1.5B-v2 and related code completion models for use with Continue (IDE assistant)
- **Time period:** created 2025-04-11
- **Author type:** human

## From the source (fetched 2026-10-03)

- **Repository:** Etherll/CodeFIM-Data (Hugging Face)
- **Created:** Apr 11, 2025 (Hugging Face)
- **Last updated:** Apr 11, 2025 (Hugging Face)
- **Downloads (last month):** 27 (Hugging Face)
- **Likes:** 3 (Hugging Face)
- **Size:** 100K to 1M rows (Hugging Face)
- **Modalities:** code, text (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** HF: 237,681 train rows; size_categories 100K<n<1M. YAML dataset_size 1,195,185,254 bytes (~1.20 GB); download_size 335,796,156 (~335.8 MB); usedStorage 487,535,044 (~487.5 MB); 3 parquet shards (149.6 + 94.0 + 92.1 MB). Hub 724 downloads / 2 likes at check (API last-month downloads 25). Character stats on full split: prefix mean 2,686 / median 1,372 (max 38,973); suffix mean 2,381 / median 1,097 (max 36,070); middle mean 202 / median 50 (max 29,398); file_name mean 14 chars.
- **Format:** parquet (file_name, prefix, suffix, middle, fim_type)
- **Type:** Code FIM / infill training corpus (prefix, suffix, middle, fim_type, file_name)
- **License:** HF card YAML has no license field. Treat as Unknown; per-file upstream OSS licenses still apply to the source text.
- **Cost:** Free
- **Languages:** Programming languages (natural-language comments mixed in). 800-row offset sample of file_name (n=800): .py 40.6% (325); .rs 24.0% (192); .js 16.9% (135); .ts 10.8% (86); .go 6.5% (52); .tsx 1.3% (10). Full-corpus extension mix not tabulated on the card.
- **Modality:** Text + source code
- **Domain:** code fill-in-the-middle; infilling SFT; Rust/Python/JS/TS/Go source
- **Time period:** HF createdAt 2025-04-11T08:41:12Z; lastModified 2025-04-11T11:47:02Z. Source files older than the FIM packaging (unverified per-file dates).
- **Purpose:** Prefix–suffix–middle FIM examples (four span types) for training code infill models
- **Used for:** None listed on this repo (0 Hub models with dataset:Etherll/CodeFIM-Data). Sibling CodeFIM-Rust-Mellum (56,920 rows) trains Etherll/Mellum-4b-sft-rust. Earlier Etherll/code-fim-v2 (63,968) has Hub models.
- **Authors:** Etherll packaged FIM spans from existing source files (viewer includes OSS-style Rust crates and Python scripts). Per-file original authors unverified. No human annotation of spans.
- **Bias:** FIM-span types are not uniform. 800-row sample is Python+Rust heavy vs other languages. Multiple FIM views of the same file (e.g. repeated main.rs) over-weight long files. Source mix and license of upstream files not documented.
- **Text quality:** Real source files split into prefix/suffix/middle; comments and tests included. Residual local paths (e.g. /home/hom/alfred) and duplicated whole-file contexts across span types. No card quality filter.
- **Sample size:** Single default train split 237,681. Full-split fim_type: random_line_split 77,693 (32.7%); identifier_name 60,419 (25.4%); identifier_body 54,679 (23.0%); conditional_block 44,890 (18.9%). Companion CodeFIM-Data-trim and CodeFIM-Rust-Mellum are separate repos, not configs here.
- **Long context:** Mixed (median prefix+suffix ~2.5k chars; tails to ~39k prefix / ~36k suffix).
- **Intermediate steps:** Yes (span extraction into four fim_type classes). Pipeline code and source-repo list are not on the card.
- **Idea quality:** Medium
- **Novelty:** Medium (standard PSM FIM packaging; undocumented scrape)
- **Text conversion:** Ready parquet; load_dataset("Etherll/CodeFIM-Data")
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2025-04-11; one-shot upload)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/Etherll/CodeFIM-Data
- Related: https://huggingface.co/datasets/Etherll/CodeFIM-Data
- Related: https://huggingface.co/datasets/Etherll/CodeFIM-Data-trim
- Related: https://huggingface.co/datasets/Etherll/CodeFIM-Rust-Mellum
- Related: https://huggingface.co/Etherll/Mellum-4b-sft-rust
- Related: https://huggingface.co/datasets/Etherll/code-fim-v2

## Research notes

- No explicit license stated on the dataset card. The creator also published a larger multi-language variant (code-fim-v2, 64k rows) and a Rust-specific variant (CodeFIM-Rust-Mellum).
- Discord posted this HF pointer. Card README is YAML-only (no prose). Gated=false; public. Do not confuse with Etherll/code-fim-v2 or the Rust-only Mellum subset. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.

## Similar entries

- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [K2 Horizon data release — DATA_NAVIGATOR index and the post-training data-generation pipelines](https://papers.projxon.ai/entries/1443) (tool, #1443)
- [Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data](https://papers.projxon.ai/entries/834) (paper, #834)
- [BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?](https://papers.projxon.ai/entries/777) (paper, #777)
- [Absolute Zero: Reinforced Self-play Reasoning with Zero Data](https://papers.projxon.ai/entries/1069) (paper, #1069)
- [Cross-Benchmark Transfer from RL on Agentic Coding Tasks](https://papers.projxon.ai/entries/1245) (paper, #1245)
