| --- |
| license: cc-by-4.0 |
| tags: |
| - code |
| - source-code |
| - software-engineering |
| - legacy-code |
| - code-generation |
| - code-completion |
| - code-understanding |
| - program-synthesis |
| - software-maintenance |
| - code-modernization |
| - automated-refactoring |
| - bug-detection |
| - technical-debt |
| - repository-mining |
| - data-structures |
| - algorithms |
| - competitive-programming |
| - computer-science |
| - llm |
| - reasoning |
| - problem-solving |
| - coding-interviews |
| - leetcode |
| - sft |
| - rlhf |
| - self-supervised-learning |
| - enterprise-software |
| - programming |
| task_categories: |
| - text-generation |
| pretty_name: "Legacy Codebase Dataset" |
| size_categories: |
| - 100M<n<1B |
| --- |
| |
| # Legacy Codebase Dataset |
|
|
| ## Dataset Description |
|
|
| The **Legacy Codebase Dataset** is a large-scale collection of enterprise software repositories designed for training next-generation **Large Language Models (LLMs)**, AI coding assistants, software engineering copilots, automated refactoring systems, repository understanding models, and intelligent program analysis pipelines. |
|
|
| The complete collection contains **252 real-world legacy codebases** spanning **14 major industries**, comprising over **490,908 source code files**, **96.12 million lines of code**, **279,215 commits**, and **64,357 pull requests**. |
|
|
| Unlike synthetic coding datasets, this corpus represents mature production software developed over many years, capturing real engineering workflows, architectural evolution, collaborative development, technical debt, software maintenance, and repository history. |
|
|
| The dataset includes diverse programming paradigms, software architectures, dependency structures, coding conventions, version history, and enterprise engineering practices, making it ideal for training AI systems capable of understanding large software projects. |
|
|
| This dataset supports development pipelines for: |
|
|
| - Large Language Model (LLM) Pretraining |
| - Code Generation |
| - Code Completion |
| - Repository Understanding |
| - Software Modernization |
| - Automated Refactoring |
| - Bug Detection |
| - Technical Debt Analysis |
| - Program Repair |
| - Supervised Fine-Tuning (SFT) |
| - Self-Supervised Learning (SSL) |
| - Reinforcement Learning from Human Feedback (RLHF) |
|
|
| --- |
|
|
| # Dataset Statistics |
|
|
| | Metric | Value | |
| |---------|------:| |
| | Industries | **14** | |
| | Legacy Codebases | **252** | |
| | Total Commits | **279,215** | |
| | Total Pull Requests | **64,357** | |
| | Total Files | **490,908** | |
| | Total Lines of Code | **96.12 Million** | |
|
|
| --- |
|
|
| # Industry-wise Distribution |
|
|
| | Industry | Codebases | Commits | Pull Requests | LOC (Millions) | Files | |
| |-----------|----------:|---------:|--------------:|---------------:|------:| |
| | Business Operations | 9 | 3,479 | 1,423 | 0.58 | 3,508 | |
| | Business Operations Platforms | 9 | 54,495 | 16,099 | 3.28 | 10,788 | |
| | CRM, Sales & Marketing Technology | 19 | 26,584 | 6,882 | 1.69 | 6,233 | |
| | Construction & Property Technology | 11 | 10,545 | 702 | 2.19 | 16,993 | |
| | ERP & Business Operations | 28 | 25,872 | 339 | 0.84 | 3,980 | |
| | ERP Systems | 21 | 24,322 | 2,402 | 1.92 | 14,135 | |
| | Education & EdTech | 16 | 28,147 | 17,042 | 2.22 | 9,313 | |
| | HR & Workforce Management | 17 | 16,491 | 4,500 | 6.73 | 27,266 | |
| | Healthcare & Wellness | 13 | 19,511 | 3,258 | 1.07 | 4,249 | |
| | Industrial, Manufacturing & Sustainability | 9 | 18,289 | 4,606 | 2.66 | 15,154 | |
| | Marketplaces, Commerce & Delivery | 17 | 11,270 | 3,718 | 1.04 | 6,235 | |
| | Media, Content & Specialized SaaS | 62 | 27,865 | 1,147 | 70.43 | 361,634 | |
| | Media, Content & Sports | 7 | 2,858 | 572 | 0.23 | 1,824 | |
| | Travel, Hospitality & Events | 14 | 9,487 | 1,667 | 1.23 | 9,596 | |
|
|
| --- |
|
|
| # Dataset Specification |
|
|
| ``` |
| Industries: |
| 14 |
| |
| Legacy Codebases: |
| 252 |
| |
| Total Files: |
| 490,908 |
| |
| Total Lines of Code: |
| 96.12 Million |
| |
| Total Commits: |
| 279,215 |
| |
| Total Pull Requests: |
| 64,357 |
| |
| Domain: |
| Enterprise Legacy Software |
| |
| Data Type: |
| Source Code |
| |
| Nature: |
| Real-world enterprise software repositories |
| ``` |
|
|
| --- |
|
|
| # Dataset Features |
|
|
| - Enterprise-scale repositories |
| - Production-ready legacy software |
| - Multi-industry coverage |
| - Complete repository structures |
| - Rich commit history |
| - Pull request metadata |
| - Software evolution patterns |
| - Long-lived codebases |
| - Real engineering practices |
| - Large-scale source code corpus |
|
|
| --- |
|
|
| # Key Use Cases |
|
|
| ``` |
| Large Language Model (LLM) Pretraining |
| |
| Code Generation |
| |
| Code Completion |
| |
| Repository Understanding |
| |
| Code Search |
| |
| Program Synthesis |
| |
| Software Modernization |
| |
| Automated Refactoring |
| |
| Bug Detection |
| |
| Program Repair |
| |
| Code Summarization |
| |
| Documentation Generation |
| |
| Technical Debt Analysis |
| |
| Repository Mining |
| |
| Software Engineering Research |
| |
| Developer Copilots |
| |
| AI Coding Assistants |
| |
| Static Code Analysis |
| |
| Long-context Code Reasoning |
| |
| Benchmark Creation |
| ``` |
|
|
| --- |
|
|
| # Value of This Dataset |
|
|
| The Legacy Codebase Dataset enables researchers and organizations to build production-ready AI systems capable of understanding complex enterprise software. |
|
|
| Applications include: |
|
|
| - AI Coding Copilots |
| - Enterprise Software Assistants |
| - Automated Code Migration |
| - Legacy Modernization |
| - Intelligent Refactoring Systems |
| - Repository Search Engines |
| - Bug Prediction Models |
| - Code Review Automation |
| - Software Maintenance Assistants |
| - Architecture Understanding |
| - Technical Debt Detection |
| - Large-scale Program Analysis |
|
|
| The combination of nearly **half a million source code files**, **96+ million lines of code**, extensive version history, and repositories from **14 industries** makes this dataset particularly valuable for training foundation models that require deep understanding of real-world software engineering. |
|
|
| --- |
|
|
| # Basic JSON Schema |
|
|
| ```json |
| { |
| "repository_name": "string", |
| "industry": "string", |
| "file_name": "string", |
| "file_path": "string", |
| "language": "string", |
| "commit_id": "string", |
| "pull_request_id": "string", |
| "code": "string" |
| } |
| ``` |
|
|
| --- |
|
|
| # Data Creation |
|
|
| The dataset has been procured through formal agreements and generated in the ordinary course of business. |
|
|
| Quality processing includes: |
|
|
| - Repository validation |
| - File integrity verification |
| - Metadata extraction |
| - Repository organization |
| - Source code normalization |
| - Industry categorization |
| - Version history preservation |
|
|
| --- |
|
|
| # Considerations |
|
|
| This repository contains **sample data** intended for research and educational purposes. |
|
|
| The complete enterprise collection consists of: |
|
|
| - **252 Legacy Codebases** |
| - **490,908 Source Code Files** |
| - **96.12 Million Lines of Code** |
| - **279,215 Commits** |
| - **64,357 Pull Requests** |
| - **14 Industry Domains** |
|
|
| Enterprise licensing and access to the complete dataset are available through **InfoBay.AI**. |
|
|
| Website: https://infobay.ai/ |
|
|
| Email: datareq@infobay.ai |
|
|
| Phone: (+91) 8303174762 |
|
|
| --- |
|
|
| # Citation |
|
|
| If you use this dataset in your research, publications, or commercial applications, please cite the corresponding dataset repository. |
|
|
| --- |
|
|
| # License |
|
|
| **CC BY 4.0** |