File size: 3,588 Bytes
b0008fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | ---
license: mit
task_categories:
- text-generation
language:
- en
tags:
- Python
- code
size_categories:
- 1M<n<10M
---
**Python-Code-Large**
Python-Code-Large is a large-scale corpus of Python source code comprising more than **2 million** rows of Python code. The dataset is designed to support research in large language model (LLM) pretraining, code intelligence, software engineering automation, and program analysis for the Python ecosystem.
By providing a high-volume, language-specific corpus, Python-Code-Large enables systematic experimentation in Python-focused model training, domain adaptation, and downstream code understanding tasks.
Python-Code-Large addresses the need for a dedicated Python-only dataset at substantial scale, enabling focused research across data science, backend systems, automation, scientific computing, and AI-driven Python environments.
**1. Dataset Composition**
Programming Language: Python
Size: 2M+ rows of Python code
File Format: .jsonl
Each record is stored as structured JSON Lines format for efficient streaming, large-scale training, and distributed processing.
Content Types
The dataset includes a wide variety of Python constructs and paradigms, such as:
- Function definitions and decorators
- Class-based and object-oriented programming
- Inheritance and multiple inheritance patterns
- Async programming (async / await)
- Generators and iterators
- Context managers
- Exception handling patterns
- Type hints and annotations
- Functional programming constructs (map, filter, lambda)
- List, dictionary, and set comprehensions
- Metaprogramming patterns
- Data processing pipelines
- Web framework logic
- REST API implementations
- Machine learning scripts
- Data science notebooks (converted to .py where applicable)
- CLI utilities
- Testing frameworks (unit tests, integration tests)
- Configuration and environment management code
- Docstrings and inline documentation
- Modern Python 3.x features
**2. Intended Research Applications**
2.1 Pretraining
- Training Python code foundation models from scratch
- Continued pretraining of existing LLMs
- Python-specialized language modeling
- Tokenizer training optimized for Python syntax
- AST-aware pretraining experiments
2.2 Fine-Tuning and Adaptation
- Code completion systems
- Intelligent IDE assistants
- Automated refactoring tools
- Conversational programming agents
- Python-specific copilots
- Docstring generation systems
- Type inference assistants
2.3 Code Intelligence Tasks
- Code summarization
- Code-to-text generation
- Documentation generation
- Bug detection
- Vulnerability detection
- Clone detection
- Code similarity modeling
- Readability enhancement
_ Static code analysis
- Structural and dependency modeling
2.4 Software Engineering Research
- Empirical studies of Python coding patterns
- Analysis of async architectures in Python
- Framework usage studies
- Dependency and import graph modeling
- AST-based experiments
- Cross-version Python evolution analysis
- Type adoption analysis (PEP-based transitions)
- Large-scale study of testing patterns
**3. Research Opportunities Enabled**
Python-Code-Large enables exploration of:
- Python-specific tokenizer efficiency
- Function-level representation learning
- Retrieval-augmented generation for code
- Secure code modeling
- Long-context modeling of large Python files
- Docstring-conditioned generation
- Python-specific benchmark creation
Thanks to open source community for all the guidance & support!! |