Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
11
23
source
stringclasses
3 values
chunk_index
int64
0
107k
content
stringlengths
667
1.32M
text_chunk_77274
text.txt
77,274
structures and access macros */ typedef struct _XkbStateRec { unsigned char group; unsigned char locked_group; unsigned short base_group; unsigned short latched_group; unsigned char mods; unsigned char base_mods; unsigned char latched_mods; unsigned char locked_mods; unsigned char compat_state; unsigned char grab_mods;...
Cpp_chunk_10586
Cpp.txt
10,586
0; virtual bool obs_frontend_preview_program_mode_active(void) = 0; virtual void obs_frontend_set_preview_program_mode(bool enable) = 0; virtual void obs_frontend_preview_program_trigger_transition(void) = 0; virtual bool obs_frontend_preview_enabled(void) = 0; virtual void obs_frontend_set_preview_enabled(bool enable)...
text_chunk_12452
text.txt
12,452
) ) ); } #else // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html template <typename Dispatch, typename std::enable_if<detail::isDispatchLoader<Dispatch>::value, bool>::type> VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Res...
C_data_chunk_40220
C_data.txt
40,220
indices.size(); ++j) { indices_to_id_[indices(j)] = j; } } // Check if a feature index exists. bool IndexValid(const int64_t index) const { return indices_to_id_.find(index) != indices_to_id_.end(); } // Nominal value at a particular feature index and class label. float nominals(const int class_id, const int64_t index)...
text_chunk_106357
text.txt
106,357
Limited Alixx Skevington alixx.skevington&tgw-group.com 39474 Kaleva Oy Juho Rankinen juho.rankinen&kaleva.fi 39475 TUIR WARTA S.A. Paweł Jankowski pawel.jankowski&warta.pl 39476 Antinea Software Sébastien Delmée contact&antineasoftware.eu 39477 American Bureau of Shipping (ABS) Cory Leonardi cleonardi&eagle.org 39478 ...
C_data_chunk_59532
C_data.txt
59,532
* If the specified language tag contains any ill-formed subtags, * the first such subtag and all following subtags are ignored. * <p> * This implements the 'Language-Tag' production of BCP 47, and so * supports legacy language tags (marked as “Type: grandfathered” in BCP 47) * (regular and irregular) as well as private...
C_data_chunk_40330
C_data.txt
40,330
{ builder.Attr(config.input_attribute, DataTypeToEnum<T>::v()); } if (config.add_tout) { builder.Attr(config.output_attribute, DataTypeToEnum<OutT>::v()); } TF_ASSERT_OK(builder.Finalize(node_def())); TF_ASSERT_OK(InitOp()); AddInputFromArray<T>(shape, input); } template <typename T, typename OutT> void RunAndExpectRes...
C_data_chunk_75861
C_data.txt
75,861
ma_handle ma_semaphore; #endif #else /* MA_NO_THREADING is set which means threading is disabled. Threading is required by some API families. If any of these are enabled we need to throw an error. */ #ifndef MA_NO_DEVICE_IO #error "MA_NO_THREADING cannot be used without MA_NO_DEVICE_IO"; #endif #endif /* MA_NO_THREADIN...
text_chunk_97601
text.txt
97,601
/* * EXIF-GPS tags (Version 2.31, July 2016) */ #define GPSTAG_VERSIONID 0 /* Indicates the version of GPSInfoIFD. */ #define GPSTAG_LATITUDEREF 1 /* Indicates whether the latitude is north or south latitude. */ #define GPSTAG_LATITUDE 2 /* Indicates the latitude. */ #define GPSTAG_LONGITUDEREF 3 /* Indicates whether t...
C_data_chunk_12181
C_data.txt
12,181
are incompatible with cluster mode */ long long stat_total_prefetch_entries; /* Total number of prefetched dict entries */ long long stat_total_prefetch_batches; /* Total number of prefetched batches */ redisAtomic long long stat_avg_pipeline_length_sum; /* Sum of pipeline lengths for computing average */ redisAtomic l...
C_data_chunk_29819
C_data.txt
29,819
0x2A, 0x90, 0x00, 0x27, 0xFE, 0xDF, 0x90, 0x29, 0x0A, 0x72, 0x00, 0x29, 0xDE, 0xC1, 0x90, 0x2A, 0xEA, 0x54, 0x00, 0x2B, 0xBE, 0xA3, 0x90, 0x2C, 0xD3, 0x70, 0x80, 0x2D, 0x9E, 0x85, 0x90, 0x2E, 0xB3, 0x52, 0x80, 0x2F, 0x7E, 0x67, 0x90, 0x30, 0x93, 0x34, 0x80, 0x31, 0x67, 0x84, 0x10, 0x32, 0x73, 0x16, 0x80, 0x33, 0x47, 0x...
C_data_chunk_78315
C_data.txt
78,315
pointer to the remaining input. * @param len The remaining length, modulo 32. * @param align Whether @p ptr is aligned. * @return The finalized hash * @see XXH32_finalize(). */ static XXH_PUREF xxh_u64 XXH64_finalize(xxh_u64 hash, const xxh_u8* ptr, size_t len, XXH_alignment align) { if (ptr==NULL) XXH_ASSERT(len == 0)...
C_data_chunk_2978
C_data.txt
2,978
using TransactionSignatureChecker = GenericTransactionSignatureChecker<CTransaction>; using MutableTransactionSignatureChecker = GenericTransactionSignatureChecker<CMutableTransaction>; class DeferringSignatureChecker : public BaseSignatureChecker { protected: const BaseSignatureChecker& m_checker; public: DeferringSig...
text_chunk_103610
text.txt
103,610
FTS table. The tokenizer is being invoked to ** determine the set of tokens to add to (or delete from) the ** FTS index. ** ** <li> <b>FTS5_TOKENIZE_QUERY</b> - A MATCH query is being executed ** against the FTS index. The tokenizer is being called to tokenize ** a bareword or quoted string specified as part of the que...
C_data_chunk_66561
C_data.txt
66,561
above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTI...
C_data_chunk_34131
C_data.txt
34,131
defined in `rust_alloc_for_cpp_api.rs`. extern "C" void* proto2_rust_alloc(size_t size, size_t align); #endif // GOOGLE_PROTOBUF_RUST_CPP_KERNEL_RUST_ALLOC_FOR_CPP_API_H__ // Protocol Buffers - Google's data interchange format // Copyright 2024 Google LLC. All rights reserved. // // Use of this source code is governed ...
C_data_chunk_41267
C_data.txt
41,267
GpuAtomicMin template <typename T, typename U> __device__ detail::ToTypeIfConvertible<U, T> GpuAtomicMin(T* ptr, U value) { return atomicMin(detail::ToCudaSupportedPtr(detail::AddressSpaceHint<1>(ptr)), value); } #if TENSORFLOW_USE_ROCM /* * CUDA runtime headers have the following defined * __device__ int min(int, int)...
Cpp_chunk_3195
Cpp.txt
3,195
r.scalar = number_node(x, std::integral_constant<int, first_true<std::is_floating_point<T>::value, std::is_signed<T>::value>::value> {}); return r; } template<typename T> encoded encode_impl(const T& s, encode_tag<5> /*string*/) { const string_view_t sv(s); check_utf8(sv.data(), sv.size()); encoded r; r.scalar = string...
text_chunk_47350
text.txt
47,350
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef URI_IP4_BASE_H # define URI_IP4_BASE_H 1 typedef struct UriIp4ParserStruct { unsigned char stackCount; unsigned char stackOne; unsigned char stackTwo; unsigned char stackThree; } UriIp4Parser; void uriPus...
text_chunk_85096
text.txt
85,096
the new clone * @deprecated ICU 69 Use ubrk_clone() instead. */ U_DEPRECATED UBreakIterator * U_EXPORT2 ubrk_safeClone( const UBreakIterator *bi, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status); #endif /* U_HIDE_DEPRECATED_API */ /** * Thread safe cloning operation. * @param bi iterator to be cloned * @par...
text_chunk_23014
text.txt
23,014
4f55a6c4ac54c6cfbd94535c6a91d420882532687b09d178977ccf13add81422 # Bit flipped Input FIPSversion = >=3.5.0 Kem = ML-KEM-768 EncodedPrivateKey = 52e172d7a2ac8195b0fb0401f4b351ca3bbf277b6f8bc051f191b94b1cb25d0a807f81051172a2eca18295b0145464413680b1493185662c26ecb77bee37a32617003f2b551a6c601e702626f04a166b637558709abc3932...
text_chunk_38845
text.txt
38,845
constexpr ShadowNodeTraits BaseTraits() { auto traits = BaseShadowNode::BaseTraits(); traits.set(ShadowNodeTraits::Trait::LeafYogaNode); traits.set(ShadowNodeTraits::Trait::MeasurableYogaNode); traits.set(ShadowNodeTraits::Trait::BaselineYogaNode); return traits; } /* * Associates a shared `TextLayoutManager` with the ...
C_data_chunk_19917
C_data.txt
19,917
not when restoring it, otherwise the size may be too small. LLAMA_API size_t llama_state_get_size(struct llama_context * ctx); LLAMA_API DEPRECATED(size_t llama_get_state_size(struct llama_context * ctx), "use llama_state_get_size instead"); // Copies the state to the specified destination address. // Destination needs...
Cpp_chunk_10227
Cpp.txt
10,227
PlatformUtilsGetEnvSet(const char* name) { return detail::ImplGetEnv(name) != nullptr; } #elif defined(XR_OS_APPLE) static inline std::string PlatformUtilsGetEnv(const char* name) { auto str = detail::ImplGetEnv(name); if (str == nullptr) { return {}; } return str; } static inline std::string PlatformUtilsGetSecureEnv(...
C_data_chunk_77500
C_data.txt
77,500
HVX_Vector * restrict v_act1 = (const HVX_Vector *) (y1_q + act_tile * HTP_MM_ACT_TILE_SIZE_Q8_0); HVX_VectorPair v_sums = accum_q1_0_32x2(vptr[quarter], v_act0, v_act1, v_neg_one, v_pos_one); HVX_Vector v_sum_sf_c0 = Q6_Vsf_equals_Vw(Q6_V_lo_W(v_sums)); HVX_Vector v_sum_sf_c1 = Q6_Vsf_equals_Vw(Q6_V_hi_W(v_sums)); HVX...
text_chunk_18954
text.txt
18,954
0 }, { 1, 194, 38, 155, 12 }, { 0, 101, 217, 68, 7 }, { 61, 150, 68, 56, 0 }, }, { { 225, 64, 224, 141, 6 }, { 40, 180, 96, 198, 6 }, { 107, 16, 112, 40, 7 }, { 102, 48, 98, 209, 4 }, }, { { 225, 154, 144, 165, 2 }, { 72, 144, 58, 214, 10 }, { 74, 80, 149, 152, 7 }, { 86, 181, 192, 145, 2 }, }, { { 231, 242, 192, 250, ...
C_data_chunk_31634
C_data.txt
31,634
eurealloc # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar)) #endif #define USIZE(data) sizeof((data))/sizeof(UChar) #define UCHARS(len) ((len) / sizeof(UChar)) #define INTL_ZSTR_VAL(str) (UChar*) ZSTR_VAL(str) #define INTL_ZSTR_LEN(str) UCHARS(ZSTR_LEN(str)) BEGIN_EXTERN_C() extern zend_class_...
C_data_chunk_55369
C_data.txt
55,369
dist2 += d * d; if (dist2 > early_out) break; } return dist2; } inline T distance(const vec& rhs) const { T dist2 = 0; for (uint32_t i = 0; i < N; i++) { T d = m_s[i] - rhs.m_s[i]; dist2 += d * d; } return sqrt(dist2); } inline vec inverse() const { vec result; for (uint32_t i = 0; i < N; i++) result[i] = m_s[i] ? (1.0...
End of preview. Expand in Data Studio

C, C++, and Docs Training Dataset

A massive, multi-format code and documentation corpus built from 30+ major open-source C/C++ repositories (including the Linux kernel, FFmpeg, SQLite, Git, Redis, and Vulkan/FreeType headers).

Dataset Structure

The dataset is processed using a sliding-window text chunking method (350-word chunks with a 50-word overlap) to preserve function boundaries, variable scopes, and multi-line logic blocks while maximizing long-range structural context.

Each record in the JSONL and Parquet shards contains:

  • id: Unique identifier for the chunk.
  • source: Originating source file path (C_data.txt, Cpp.txt, or text.txt).
  • category: Content classification tag (c, cpp, or docs).
  • chunk_index: Sequential index within the source file.
  • content: Raw text block of source code or documentation.

Corpus Breakdown

  • C Source Code (C_data.txt): ~5.5M lines of low-level systems code, headers, and core utilities.
  • C++ Source Code (Cpp.txt): ~1.3M lines of modern C++ templates, wrappers, and library implementations.
  • Documentation & Text (text.txt): ~8M lines of markdown files, specs, and configuration manuals.

License

Distributed under the Apache-2.0 open-source license.

Downloads last month
-