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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- Cpp
|
| 10 |
+
size_categories:
|
| 11 |
+
- 1M<n<10M
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
**Cpp-Code-Large**
|
| 16 |
+
|
| 17 |
+
Cpp-Code-Large is a large-scale corpus of C++ source code comprising more than **5 million** lines of C++ code. The dataset is designed to support research in large language model (LLM) pretraining, code intelligence, software engineering automation, and static program analysis for the C++ ecosystem.
|
| 18 |
+
|
| 19 |
+
By providing a high-volume, language-specific corpus, Cpp-Code-Large enables systematic experimentation in C++-focused model training, domain adaptation, and downstream code understanding tasks.
|
| 20 |
+
|
| 21 |
+
Cpp-Code-Large addresses the need for a dedicated C++-only dataset at substantial scale, enabling focused research across systems programming, performance-critical applications, embedded systems, game engines, and large-scale native software projects.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
**1. Dataset Composition**
|
| 25 |
+
|
| 26 |
+
Programming Language: C++
|
| 27 |
+
|
| 28 |
+
Total Size: 5M+ lines of C++ code
|
| 29 |
+
|
| 30 |
+
File Format: .jsonl
|
| 31 |
+
|
| 32 |
+
Primary Content: C++ source and header files (.cpp, .cc, .cxx, .hpp, .h)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
Content Types
|
| 36 |
+
|
| 37 |
+
The dataset includes a wide variety of C++ constructs and paradigms, such as:
|
| 38 |
+
|
| 39 |
+
- Core Language Features
|
| 40 |
+
|
| 41 |
+
- Functions and function overloading
|
| 42 |
+
|
| 43 |
+
- Templates (function and class templates)
|
| 44 |
+
|
| 45 |
+
- Lambda expressions
|
| 46 |
+
|
| 47 |
+
- Namespaces
|
| 48 |
+
|
| 49 |
+
- Macros and preprocessor directives
|
| 50 |
+
|
| 51 |
+
- Inline functions
|
| 52 |
+
|
| 53 |
+
- Header/source separation patterns
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
Object-Oriented Programming
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
- Classes and structs
|
| 61 |
+
|
| 62 |
+
- Inheritance (single and multiple)
|
| 63 |
+
|
| 64 |
+
- Polymorphism and virtual functions
|
| 65 |
+
|
| 66 |
+
- Abstract base classes
|
| 67 |
+
|
| 68 |
+
- Encapsulation patterns
|
| 69 |
+
|
| 70 |
+
- Operator overloading
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Modern C++ (C++11/14/17/20) Features
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
- Smart pointers (unique_ptr, shared_ptr, weak_ptr)
|
| 78 |
+
|
| 79 |
+
- Move semantics and rvalue references
|
| 80 |
+
|
| 81 |
+
- Auto keyword and type inference
|
| 82 |
+
|
| 83 |
+
- constexpr and consteval usage
|
| 84 |
+
|
| 85 |
+
- Structured bindings
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
Memory and Resource Management
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
- RAII patterns
|
| 92 |
+
|
| 93 |
+
- Manual memory management (new / delete)
|
| 94 |
+
|
| 95 |
+
- Custom allocators
|
| 96 |
+
|
| 97 |
+
- Smart pointer ownership patterns
|
| 98 |
+
|
| 99 |
+
- Exception-safe resource handling
|
| 100 |
+
|
| 101 |
+
-
|
| 102 |
+
|
| 103 |
+
Standard Template Library (STL)
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
- Containers (vector, map, unordered_map, set, etc.)
|
| 107 |
+
|
| 108 |
+
- Iterators and algorithms
|
| 109 |
+
|
| 110 |
+
- Functional utilities
|
| 111 |
+
|
| 112 |
+
- Threading primitives (std::thread, mutex, condition_variable)
|
| 113 |
+
|
| 114 |
+
- Filesystem library
|
| 115 |
+
|
| 116 |
+
- Chrono utilities
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
Concurrency and Parallelism
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
- Multithreading patterns
|
| 124 |
+
|
| 125 |
+
- Synchronization primitives
|
| 126 |
+
|
| 127 |
+
- Lock-free patterns (where applicable)
|
| 128 |
+
|
| 129 |
+
- Async programming
|
| 130 |
+
|
| 131 |
+
- Thread pools
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
Systems and Low-Level Programming
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
- File I/O
|
| 139 |
+
|
| 140 |
+
- Socket programming
|
| 141 |
+
|
| 142 |
+
- OS-level interactions
|
| 143 |
+
|
| 144 |
+
- Embedded-style programming patterns
|
| 145 |
+
|
| 146 |
+
- Performance optimization techniques
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
Build and Project Structures
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
- CMake-based project structures
|
| 154 |
+
|
| 155 |
+
- Modular header organization
|
| 156 |
+
|
| 157 |
+
- Static and dynamic library patterns
|
| 158 |
+
|
| 159 |
+
- Cross-platform compatibility patterns
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
**2. Intended Research Applications**
|
| 163 |
+
|
| 164 |
+
2.1 Pretraining
|
| 165 |
+
|
| 166 |
+
- Training C++ code foundation models from scratch
|
| 167 |
+
|
| 168 |
+
- Continued pretraining of existing LLMs
|
| 169 |
+
|
| 170 |
+
- C++-specialized language modeling
|
| 171 |
+
|
| 172 |
+
- Tokenizer training for C++ ecosystems
|
| 173 |
+
|
| 174 |
+
- Domain adaptation for systems-level models
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
2.2 Fine-Tuning and Adaptation
|
| 178 |
+
|
| 179 |
+
- Code completion systems
|
| 180 |
+
|
| 181 |
+
- Intelligent IDE assistants
|
| 182 |
+
|
| 183 |
+
- Automated refactoring tools
|
| 184 |
+
|
| 185 |
+
- Conversational programming agents
|
| 186 |
+
|
| 187 |
+
- C++-specific copilots
|
| 188 |
+
|
| 189 |
+
- Static analyzer enhancement models
|
| 190 |
+
|
| 191 |
+
- Performance optimization assistants
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
2.3 Code Intelligence Tasks
|
| 195 |
+
|
| 196 |
+
- Code summarization
|
| 197 |
+
|
| 198 |
+
- Code-to-text generation
|
| 199 |
+
|
| 200 |
+
- Documentation generation
|
| 201 |
+
|
| 202 |
+
- Bug detection
|
| 203 |
+
|
| 204 |
+
- Security vulnerability detection
|
| 205 |
+
|
| 206 |
+
- Clone detection
|
| 207 |
+
|
| 208 |
+
- Code similarity modeling
|
| 209 |
+
|
| 210 |
+
- Dead code detection
|
| 211 |
+
|
| 212 |
+
- Complexity estimation
|
| 213 |
+
|
| 214 |
+
- Static and structural analysis
|
| 215 |
+
|
| 216 |
+
- Legacy-to-modern C++ migration modeling (e.g., raw pointers → smart pointers)
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
2.4 Software Engineering Research
|
| 220 |
+
|
| 221 |
+
- Empirical studies of C++ coding patterns
|
| 222 |
+
|
| 223 |
+
- Analysis of architectural styles in native applications
|
| 224 |
+
|
| 225 |
+
- STL and template usage studies
|
| 226 |
+
|
| 227 |
+
- Memory management strategy analysis
|
| 228 |
+
|
| 229 |
+
- Concurrency pattern modeling
|
| 230 |
+
|
| 231 |
+
- AST-based experimentation
|
| 232 |
+
|
| 233 |
+
- Cross-version C++ evolution analysis
|
| 234 |
+
|
| 235 |
+
- Security practice analysis in performance-critical systems
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
**3. Ecosystem Coverage**
|
| 239 |
+
|
| 240 |
+
C++-Code-Large spans a broad range of C++ application domains, including:
|
| 241 |
+
|
| 242 |
+
- Systems software
|
| 243 |
+
|
| 244 |
+
- Embedded systems
|
| 245 |
+
|
| 246 |
+
- Scientific and numerical computing
|
| 247 |
+
|
| 248 |
+
- Desktop applications
|
| 249 |
+
|
| 250 |
+
- Cross-platform libraries
|
| 251 |
+
|
| 252 |
+
- Networking applications
|
| 253 |
+
|
| 254 |
+
- CLI tools
|
| 255 |
+
|
| 256 |
+
- Microservices written in C++
|
| 257 |
+
|
| 258 |
+
The dataset captures both legacy C++ (pre-C++11 style) and modern C++ (C++11/14/17/20) development patterns, enabling cross-era research and modernization studies.
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
Thanks to open source community for all the guidance & support!!
|