Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
15
19
text
stringlengths
120
1.05M
domain
stringclasses
1 value
source
stringclasses
1 value
token_count
int64
32
275k
char_count
int64
120
1.05M
metadata_json
stringclasses
1 value
code_1_d6f7020c
'use strict'; var clear = require('es5-ext/array/#/clear') , eIndexOf = require('es5-ext/array/#/e-index-of') , setPrototypeOf = require('es5-ext/object/set-prototype-of') , callable = require('es5-ext/object/valid-callable') , d = require('d') , ee = require('ev...
code
GitHub-Code-Clean
718
2,730
{}
code_2_3e0fb26a
'use strict'; const TYPE = Symbol.for('type'); class Data { constructor(options) { // File details this.filepath = options.filepath; // Type this[TYPE] = 'data'; // Data Object.assign(this, options.data); } } module.exports = Data;
code
GitHub-Code-Clean
70
266
{}
code_3_0fba45cd
function collectWithWildcard(test) { test.expect(4); var api_server = new Test_ApiServer(function handler(request, callback) { var url = request.url; switch (url) { case '/accounts?username=chariz*': let account = new Model_Account({ username: 'charizard' }); return void callback(null, [ ...
code
GitHub-Code-Clean
233
886
{}
code_4_ac4717fb
/* * Read and write JSON. * * Copyright (c) 2014 Marko Kreen * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "A...
code
GitHub-Code-Clean
10,126
38,477
{}
code_5_0dbd5d19
angular.module('appTesting').service("LoginLocalStorage", function () { "use strict"; var STORE_NAME = "login"; var setUser = function setUser(user) { localStorage.setItem(STORE_NAME, JSON.stringify(user)); } var getUser = function getUser() { var storedTasks = localStorage.getIte...
code
GitHub-Code-Clean
136
515
{}
code_6_60d3ce0c
/* Copyright information is at end of file */ #include "xmlrpc_config.h" #include <stddef.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include "stdargx.h" #include "xmlrpc-c/base.h" #include "xmlrpc-c/base_int.h" #include "xmlrpc-c/string_int.h" static void getString(xmlrpc_env *const envP, ...
code
GitHub-Code-Clean
3,354
12,744
{}
code_7_2a66b571
/* ISC license. */ #include <bearssl.h> #include <s6-networking/sbearssl.h> int sbearssl_skey_to (sbearssl_skey const *l, br_skey *k, char *s) { switch (l->type) { case BR_KEYTYPE_RSA : sbearssl_rsa_skey_to(&l->data.rsa, &k->data.rsa, s) ; break ; case BR_KEYTYPE_EC : sbearssl_ec_skey_to...
code
GitHub-Code-Clean
115
438
{}
code_8_080e768e
/* * The MIT License * Copyright (c) 2012 Matias Meno <m@tias.me> */ @-webkit-keyframes passing-through { 0% { opacity: 0; -webkit-transform: translateY(40px); -moz-transform: translateY(40px); -ms-transform: translateY(40px); -o-transform: translateY(40px); trans...
code
GitHub-Code-Clean
3,362
12,777
{}
code_9_c098f986
/* eslint-disable no-console */ const buildData = require('./build_data'); const buildSrc = require('./build_src'); const buildCSS = require('./build_css'); let _currBuild = null; // if called directly, do the thing. buildAll(); function buildAll() { if (_currBuild) return _currBuild; return _currBuild = P...
code
GitHub-Code-Clean
156
591
{}
code_10_b448505b
// // RCWorkspaceCache.h // // Created by Mark Lilback on 12/12/11. // Copyright (c) 2011 . All rights reserved. // #import "_RCWorkspaceCache.h" @interface RCWorkspaceCache : _RCWorkspaceCache //if multiple values are to be set, it best to get properties, set them, and then call setProperties //each call to setPr...
code
GitHub-Code-Clean
168
639
{}
code_11_ab3072cc
function LetterProps(o, sw, sc, fc, m, p) { this.o = o; this.sw = sw; this.sc = sc; this.fc = fc; this.m = m; this.p = p; this._mdf = { o: true, sw: !!sw, sc: !!sc, fc: !!fc, m: true, p: true, }; } LetterProps.prototype.update = function (o, sw, sc, fc, m, p) { ...
code
GitHub-Code-Clean
319
1,212
{}
code_12_655e12b9
/*! * DASSL solver library description */ #include "libinfo.h" extern void _start() { _library_ident("DAE solver library"); _library_task("interfaces to generic IVP solver"); _library_task("operations on data for included solvers"); _library_task("DASSL solver backend"); _library_task("RADAU solver backend")...
code
GitHub-Code-Clean
100
379
{}
code_13_e82fcdcd
/* * WARNING: do not edit! * Generated by util/mkbuildinf.pl * * Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the s...
code
GitHub-Code-Clean
535
2,032
{}
code_14_9b91ba4c
System.register(["angular2/test_lib", "angular2/src/test_lib/test_bed", "angular2/src/core/annotations_impl/annotations", "angular2/src/core/annotations_impl/view", "angular2/src/core/compiler/dynamic_component_loader", "angular2/src/core/compiler/element_ref", "angular2/src/directives/if", "angular2/src/render/dom/dir...
code
GitHub-Code-Clean
3,621
13,760
{}
code_15_c78d4e34
/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. ...
code
GitHub-Code-Clean
4,418
16,790
{}
code_16_a2774c3a
// The following are instance methods and variables var Note = Class.create({ initialize: function(id, is_new, raw_body) { if (Note.debug) { console.debug("Note#initialize (id=%d)", id) } this.id = id this.is_new = is_new this.document_observers = []; // Cache the elements this.ele...
code
GitHub-Code-Clean
5,544
21,067
{}
code_17_d52604fc
enum asmop { ASNOP = 0, ASSTB, ASSTH, ASSTW, ASSTL, ASSTM, ASSTS, ASSTD, ASLDSB, ASLDUB, ASLDSH, ASLDUH, ASLDSW, ASLDUW, ASLDL, ASLDS, ASLDD, ASADDW, ASSUBW, ASMULW, ASMODW, ASUMODW, ASDIVW, ASUDIVW, ASSHLW, ASSHRW, ASUSHRW, ASLTW, ASULTW, ASGTW, ASUGTW, ASLEW, ASULEW, ASGEW, ASUGEW...
code
GitHub-Code-Clean
297
1,127
{}
code_18_81728abb
describe('dJSON', function () { 'use strict'; var chai = require('chai'); var expect = chai.expect; var dJSON = require('../lib/dJSON'); var path = 'x.y["q.{r}"].z'; var obj; beforeEach(function () { obj = { x: { y: { 'q.{r}': { z: 635 }, q: {...
code
GitHub-Code-Clean
892
3,391
{}
code_19_7870e58c
/* * 94 shifted lines of 72 ASCII characters. */ static const char *characters[] = { "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefgh", "\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghi", "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`...
code
GitHub-Code-Clean
2,041
7,754
{}
code_20_6957ee25
#include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/endian.h> #include <sysexits.h> #include <mpg123.h> #include "audio.h" #include "mp3.h" struct mp3 { mpg123_handle *h; int fd; int first; int rate; int chann...
code
GitHub-Code-Clean
682
2,590
{}
code_21_aac5e2cc
/* * Copyright 2005-2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
code
GitHub-Code-Clean
9,157
34,797
{}
code_22_6eff3ede
/** * The MIT License Copyright (c) 2015 Teal Cube Games * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modi...
code
GitHub-Code-Clean
744
2,828
{}
code_23_b63a6ed2
-- Section: Internal Functions -- Group: Low-level event handling \i functions/pgq.batch_event_sql.sql \i functions/pgq.batch_event_tables.sql \i functions/pgq.event_retry_raw.sql \i functions/pgq.find_tick_helper.sql -- \i functions/pgq.insert_event_raw.sql \i lowlevel/pgq_lowlevel.sql -- Group: Ticker \i functio...
code
GitHub-Code-Clean
176
668
{}
code_24_d6b26b81
/* Copyright (c) 2016, 2021 Dennis WΓΆlfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
code
GitHub-Code-Clean
274
1,042
{}
End of preview. Expand in Data Studio

πŸš€ Ultra High-Quality Tiny SLM Pre-Training Corpus (<100GB)

A state-of-the-art, balanced 7-domain pre-training dataset engineered specifically for Small Language Models (Tiny SLMs: 50M – 2B parameters) such as SmolLM2, SmolLM3, MobileLLM, Llama 3.2 1B, and custom architectures.

100% compatible with Unsloth Studio, Unsloth AI, Hugging Face datasets, and PyTorch DataLoaders.


πŸ“Š Dataset Statistics

  • Total Documents: 20,066,075
    • Train: 19,663,898
    • Validation: 402,177
  • Total Tokens: ~23.87 Billion tokens
    • Train Tokens: ~23.40B
    • Validation Tokens: ~0.47B
  • Format: Zstandard Compressed Parquet

πŸ”¬ 7-Domain Pre-Training Mixture

Domain Source Repository Description & Quality Filter Token Share
Synthetic Textbooks HuggingFaceTB/smollm-corpus cosmopedia-v2 textbooks and topic deep-dives 28.0%
Educational Web HuggingFaceFW/fineweb-edu Sample 10BT (score >= 2.8 filter) 23.5%
Step-by-Step Math HuggingFaceTB/finemath finemath-4plus & infiwebmath-4plus (score 4+) 19.5%
Clean Polyglot Code codeparrot/github-code-clean Python, Rust, C++, C, Go, JS, TS, Java, SQL, Shell 12.5%
General Knowledge wikimedia/wikipedia + mlfoundations/dclm-baseline-1.0-parquet English Wikipedia (dense factual) & DCLM web corpus 7.8%
Reasoning & Tool Traces HuggingFaceTB/smoltalk2 OpenThoughts3, Nemotron R1, and agentic tool traces 6.5%
Stories & Narrative roneneldan/TinyStories Synthetic coherent narrative, dialogue, & vocabulary 2.1%

πŸ¦₯ Quickstart: Unsloth Studio & Hugging Face

1. Load with Hugging Face Datasets

from datasets import load_dataset

# Load Train Split
train_dataset = load_dataset("JustACluelessKidAtSchool/tiny-slm-pretraining-corpus", split="train")

# Load Validation Split
val_dataset = load_dataset("JustACluelessKidAtSchool/tiny-slm-pretraining-corpus", split="validation")

2. Pre-Train with Unsloth in 1 Command

from unsloth import FastLanguageModel
from datasets import load_dataset
from transformers import TrainingArguments
from trl import SFTTrainer

# Load Tiny Model (e.g. SmolLM2-135M or Llama-3.2-1B)
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="HuggingFaceTB/SmolLM2-135M",
    max_seq_length=2048,
    load_in_4bit=False,
)

# Load Dataset from Hub
dataset = load_dataset("JustACluelessKidAtSchool/tiny-slm-pretraining-corpus", split="train")

# Train with Unsloth
trainer = SFTTrainer(
    model=model,
    tokenizer=tokenizer,
    train_dataset=dataset,
    dataset_text_field="text",
    max_seq_length=2048,
    args=TrainingArguments(
        output_dir="./tiny_slm_output",
        per_device_train_batch_size=4,
        gradient_accumulation_steps=8,
        max_steps=5000,
        learning_rate=5e-4,
        fp16=True,
        optim="adamw_8bit",
    ),
)
trainer.train()

3. In Unsloth Studio GUI

  1. Set Dataset to: JustACluelessKidAtSchool/tiny-slm-pretraining-corpus
  2. Text Column: text
Downloads last month
70