Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>adamvent/googlesitemapgenerator<filename>third_party/apr-1/64/apu_want.h /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
code_c
code
405
null
<gh_stars>10-100 #include <stdio.h> #include <inttypes.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "driver/gpio.h" #include "sdkconfig.h" //Definitions #define BLINK_GPIO 2 //constants const TickType_t xDelay250ms = pdMS_TO_TICKS(250); const TickType_t xDelay200...
code_c
code
654
null
<filename>components/language/ios/browser/ios_language_detection_tab_helper.h // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_LANUGUAGE_IOS_BROWSER_IOS_LANGUAGE_DETECTION_TAB_HELPER_H...
code_c
code
622
null
<gh_stars>1-10 /* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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 rest...
code_c
code
3,524
null
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under differ...
code_c
code
1,115
null
<gh_stars>0 // Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. /** * Money parsing/formatting utilities. */ #ifndef BITCOIN_UTILMONEYSTR_H #...
code_c
code
299
null
<filename>geomag70.h extern int get_declination(double latitude, double longitude, double alt, int *ret_dd, int *ret_dm, int *ret_id, int *ret_im); extern int init_declination(char *mdfile, int year, int month, int day);
code_c
code
64
null
<reponame>rajkubp020/helloword<gh_stars>0 #ifndef FE_INTERPOLATE_H #define FE_INTERPOLATE_H #include "MatrixLibrary.h" #include "ATC_TypeDefs.h" #include <vector> #include <map> namespace ATC { struct FE_Quadrature; class FE_Element; /** * @class FE_Interpolate * @brief Base class for computing sha...
code_c
code
2,468
null
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set expandtab shiftwidth=4 tabstop=4: */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "modp_b16.h" #include "minunit.h" static char* testEndian(void) { // this test that "0001" is "00000001" char buf[10...
code_c
code
2,344
null
<gh_stars>1-10 /* ipproto.c * Routines for converting IPv4 protocol/IPv6 nxthdr field into string * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <glib.h> #include <epan/packet.h> #include <ep...
code_c
code
6,620
null
<filename>ios/versioned-react-native/ABI28_0_0/Expo/Core/Api/AdMob/ABI28_0_0RNAdMobInterstitial.h #import <ReactABI28_0_0/ABI28_0_0RCTBridgeModule.h> #import <ReactABI28_0_0/ABI28_0_0RCTEventEmitter.h> #import <GoogleMobileAds/GoogleMobileAds.h> @interface ABI28_0_0RNAdMobInterstitial : ABI28_0_0RCTEventEmitter <ABI2...
code_c
code
106
null
<filename>hackathon/2010/li_yun/ITK-V3D-Plugins/Source/RegistrationIntegrated/FilterPlugin/CastOut.h #ifndef __CastOut_H__ #define __CastOut_H__ #include <QtGui> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <v3d_interface.h> class CastOutPlugin : public QObject, public V3DPlug...
code_c
code
208
null
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may no...
code_c
code
987
null
<reponame>bsf2dev/bsf //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsPhysXPrerequisites.h" #includ...
code_c
code
238
null
#ifndef __HERBST_FLOATING_H_ #define __HERBST_FLOATING_H_ #include "types.h" #include "x11-types.h" class Client; class HSTag; // utilities int char_to_direction(char ch); int find_rectangle_in_direction(RectangleIdxVec& rects, int idx, Direction dir); int find_rectangle_right_of(RectangleIdxVec rects, int idx); int...
code_c
code
210
null
//! VBaseRawDataReader contains common elements of VRawDataReader and VBFDataReader #ifndef VBASEDATAREADER_H #define VBASEDATAREADER_H #include <VDetectorGeometry.h> #include <VMonteCarloRunHeader.h> #include <VNoiseFileReader.h> #include <VRawEventParser.h> #include <VRawDataExceptions.h> #include <VVirtualDataRead...
code_c
code
3,014
null
<reponame>ExoticObjects/test_sibling_dependencies_pod_a // // Created by <NAME> on 3/3/16. // #import <Foundation/Foundation.h> @interface PodAHelper : NSObject - (void)helperMethod; @end
code_c
code
54
null
<reponame>ssgnat/misc /* * Copyright (C) 2012 <NAME> <<EMAIL>> * * 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...
code_c
code
536
null
<filename>pstock/main.c<gh_stars>0 // // strategyM_1.c // pstock // // Created by takayoshi on 2016/01/23. // Copyright © 2016年 pgostation. All rights reserved. // #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <libiomp/omp.h> #include "main.h" #include "strMdata.h" #incl...
code_c
code
1,775
null
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "bftree_map.h" #include "bftree_set.h" void bftmap_example() { struct bftree *tree; int i, len; char buf[100]; char *val; struct bftree_iterator *iter; int count; tree = bftmap_create(); for (i = 0; i < 1000; i++) { ...
code_c
code
460
null
<gh_stars>0 /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__return_freed_ptr_08.c Label Definition File: CWE416_Use_After_Free__return_freed_ptr.label.xml Template File: point-flaw-08.tmpl.c */ /* * @description * CWE: 416 Use After Free * Sinks: * GoodSink: Use a block of memory re...
code_c
code
1,723
null
// // FlyingCubes.c // GLESCompute // // Created by <NAME> on 06.12.13. // // #include "playgrounds/playground.h" #include "colorspace.h" #include "FreeType3D.h" #include "globaltime.h" #include "Math3D.h" #include "noise.h" #include "OpenGLES2Core.h" #include <assert.h> #include <iso646.h> #include <math.h> #inc...
code_c
code
1,575
null
<filename>sources/drivers/staging/lustre/lustre/lov/lov_ea.c /* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by th...
code_c
code
3,033
null
<filename>Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/local/remote_document_cache.h<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:2b116292015dce87b1e1e8ac40f7084088963b307261b85e8923e01a84f4dd51 size 3344
code_c
code
68
null
<gh_stars>10-100 #include <stdio.h> #include <stdlib.h> #define circle_size 256 #define m *(circle + (*current_position + i) % circle_size) #define n *(circle + (*current_position + length - 1 - i) % circle_size) void run_round(int* circle, const int* lengths, const int lengths_size, int* current_position, int* skip_...
code_c
code
454
null
/* * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef XLAT_TABLES_H #define XLAT_TABLES_H #include <lib/xlat_tables/xlat_tables_defs.h> #ifndef __ASSEMBLY__ #include <stddef.h> #include <stdint.h> #include <lib/xlat_tables/xlat_mmu_...
code_c
code
758
null
/* * eui64.c - EUI64 routines for IPv6CP. * * Copyright (c) 1999 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyr...
code_c
code
586
null
<reponame>ridoo/IlwisCore<filename>ilwisscript/ast/breaknode.h #ifndef BREAKNODE_H #define BREAKNODE_H namespace Ilwis { class BreakNode : public ASTNode { public: BreakNode(); QString nodeType() const; }; } #endif // BREAKNODE_H
code_c
code
68
null
<reponame>nipunbatra/os2018 #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <assert.h> #include <math.h> int sum = 0; int arr[1000000]; struct arguments{ int start; int stop; }; void *sum_thread(void *args){ struct arguments *arg; arg = (struct arguments *)args; int beg,end; beg = arg->st...
code_c
code
322
null
<gh_stars>1-10 #pragma once #include "jni.h" class HttpRequest { public: HttpRequest(XAsyncBlock* asyncBlock, JavaVM* javaVm, jobject applicationContext, jclass httpRequestClass, jclass httpResponseClass); virtual ~HttpRequest(); HRESULT Initialize(); XAsyncBlock* GetAsyncBlock() { return m_asyncBloc...
code_c
code
298
null
<filename>platforms/ios/Pods/Headers/Public/NatImage/MWCommon.h // // MWPreprocessor.h // MWPhotoBrowser // // Created by <NAME> on 01/10/2013. // #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) #define SYSTEM_VERSIO...
code_c
code
260
null
#pragma once #include <common/logger/Logger.h> #include <cstring> #include <functional> #include <optional> #include <variant> #include "icd/CLPlatformId.hpp" #include "CLObjectInfoParameterValue.hpp" #include "device/DeviceConfigurationParser.h" #include "icd/IcdDispatchTable.h" extern Logger kLogger; extern IcdDis...
code_c
code
551
null
<gh_stars>1-10 #ifndef CAFFE2_CORE_OPERATOR_SCHEMA_H_ #define CAFFE2_CORE_OPERATOR_SCHEMA_H_ #include <climits> #include <functional> #include <initializer_list> #include <ostream> #include <set> #include <vector> #include <unordered_map> #include "caffe2/core/common.h" #include "caffe2/core/logging.h" #include "caff...
code_c
code
4,577
null
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpiimpl.h" #if defined(HAVE_LIMITS_H) #include <limits.h> #endif #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif #if defined(HAVE_ERRNO_H) ...
code_c
code
2,686
null
<gh_stars>0 inherit "room/room"; reset(arg) { add_exit("north","/wizards/trooper/areas/rohelm/r26.c"); add_exit("east","/wizards/trooper/areas/rohelm/r15.c"); add_exit("south","/wizards/trooper/areas/rohelm/r2.c"); add_exit("west","/wizards/trooper/areas/rohelm/r13.c"); short_desc = "The main stre...
code_c
code
295
null
#ifndef UIELEMENT_H #define UIELEMENT_H #include "Headers.h" #include "Shader.h" struct UiVertex { glm::vec2 Position; }; struct UiTextureVertex { glm::vec2 Position; glm::vec2 TexCoords; }; class UiElement { public: UiElement(Shader* shader, const char* texture, glm::vec2 position, glm::vec2 size, bool center ...
code_c
code
261
null
// Copyright © 2019 650 Industries. All rights reserved. NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, ABI39_0_0EXUpdatesCheckAutomaticallyConfig) { ABI39_0_0EXUpdatesCheckAutomaticallyConfigAlways = 0, ABI39_0_0EXUpdatesCheckAutomaticallyConfigWifiOnly = 1, ABI39_0_0EXUpdatesCheckAutomaticallyConfigNever...
code_c
code
353
null
<reponame>limix/bgen-reader<filename>include/bgen/variant.h #ifndef BGEN_VARIANT_H #define BGEN_VARIANT_H #include <inttypes.h> /** Variant metadata. * @struct bgen_variant */ struct bgen_variant { uint64_t genotype_offset; /**< Genotype offset (bgen file). */ struct bgen_string const* id...
code_c
code
209
null
<filename>tests/kernel/workq/work_queue/src/main.c<gh_stars>1-10 /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdbool.h> #include <zephyr.h> #include <ztest.h> #include <tc_util.h> #include <sys/util.h> #define NUM_TEST_ITEMS 6 /* Each work item takes 10...
code_c
code
5,238
null
// -*- C++ -*- // -*- coding: utf-8 -*- // // <NAME> <<EMAIL>> // (c) 1998-2022 all rights reserved // code guard #if !defined(qed_nisar_api_h) #define qed_nisar_api_h #endif // end of file
code_c
code
55
null
<reponame>sunilkori/odp /* Copyright (c) 2015-2018, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * ODP pool */ #ifndef ODP_API_POOL_H_ #define ODP_API_POOL_H_ #ifdef __cplusplus extern "C" { #endif #include <odp/api/abi/pool.h> #include <odp/api/spec/...
code_c
code
104
null
#pragma once bool isLimitEntryOrder(IO2GOrderRow *order); class TableListener : public IO2GTableListener { public: TableListener(ResponseListener *responseListener); /** Increase reference counter. */ virtual long addRef(); /** Decrease reference counter. */ virtual long release(); /** ...
code_c
code
276
null
/********************************************************************** * Copyright (c) 2015 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www.opensource.org/licenses/mit-license.php.* ****************************************...
code_c
code
538
null
<gh_stars>1-10 /* * Copyright (c) 2000, 2001, 2002 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at ...
code_c
code
2,443
null
End of preview. Expand in Data Studio

mine-20B-Tokens, from MineAI Technology

mine-20B-Tokens

From MineAI Technology · MineAI contributions under Apache-2.0 (see License) · getmineai.net

Pretraining corpus for the MineAI 2B model by MineAI Technology: 19.34B training tokens (16.2M documents) plus 19M held-out validation tokens, pre-tokenized with the bundled 64k tokenizer. English, Urdu, Arabic, Hindi, code (9 languages) and math.

Layout

data/<slice>/<source>/NNNNN.parquet      cleaned text (columns: text, source, slice, est_tokens, score)
tokenized/<slice>/<source>/NNNNN.npy     uint16 token ids, documents separated by id 0 (<|endoftext|>)
tokenized/<slice>/<source>/NNNNN.val.npy held-out validation documents (~0.1%, chosen by text hash)
tokenized/counts.json                    exact docs/tokens per file
tokenizer/                               tokenizer.json + HF config (ChatML template, think/tool/FIM tokens)
benchmarks/                              dataset benchmark report, audit samples, proxy-model results
build_state/                             dedup hashes + build state (needed to extend the dataset)
manifest.json                            per-source build statistics
images/                                  figures used in this card

Slices

Dataset composition by slice

slice documents tokens (MineAI tokenizer) share
web 8,615,811 10.295B 53.2%
code 1,914,903 2.791B 14.4%
reference 964,157 1.823B 9.4%
math 1,030,291 1.665B 8.6%
synthetic 2,242,706 1.616B 8.4%
multilingual 1,442,428 1.150B 5.9%

Sources

source upstream upstream license (verify) slice tokens docs
code_c bigcode/starcoderdata (c) per-file permissive licenses + BigCode terms code 0.240B 119,706
code_cpp bigcode/starcoderdata (cpp) per-file permissive licenses + BigCode terms code 0.326B 146,732
code_go bigcode/starcoderdata (go) per-file permissive licenses + BigCode terms code 0.114B 89,962
code_java bigcode/starcoderdata (java) per-file permissive licenses + BigCode terms code 0.267B 254,041
code_js bigcode/starcoderdata (js) per-file permissive licenses + BigCode terms code 0.399B 422,978
code_python_cp codeparrot/codeparrot-clean MIXED GitHub licenses (not license-filtered) code 0.913B 344,061
code_rust bigcode/starcoderdata (rust) per-file permissive licenses + BigCode terms code 0.099B 59,465
code_sql bigcode/starcoderdata (sql) per-file permissive licenses + BigCode terms code 0.147B 69,113
code_ts bigcode/starcoderdata (ts) per-file permissive licenses + BigCode terms code 0.287B 408,845
finemath HuggingFaceTB/finemath (finemath-4plus) ODC-By 1.0 math 1.072B 744,926
openwebmath open-web-math/open-web-math ODC-By 1.0 math 0.593B 285,365
fw2_arabic HuggingFaceFW/fineweb-2 arb_Arab ODC-By 1.0 multilingual 0.414B 460,231
fw2_hindi HuggingFaceFW/fineweb-2 hin_Deva ODC-By 1.0 multilingual 0.246B 363,812
fw2_urdu HuggingFaceFW/fineweb-2 urd_Arab ODC-By 1.0 multilingual 0.490B 618,385
gutenberg manu/project_gutenberg (en) public domain (US), per upstream card reference 0.981B 10,398
wiki_ar wikimedia/wikipedia 20231101.ar CC-BY-SA 3.0 / GFDL reference 0.176B 193,160
wiki_en wikimedia/wikipedia 20231101.en CC-BY-SA 3.0 / GFDL reference 0.536B 518,508
wiki_hi wikimedia/wikipedia 20231101.hi CC-BY-SA 3.0 / GFDL reference 0.070B 97,008
wiki_ur wikimedia/wikipedia 20231101.ur CC-BY-SA 3.0 / GFDL reference 0.060B 145,083
cosmopedia HuggingFaceTB/smollm-corpus (cosmopedia-v2) Apache-2.0 synthetic 1.616B 2,242,706
dclm mlfoundations/dclm-baseline-1.0-parquet CC-BY-4.0 web 4.046B 3,101,027
fineweb_edu HuggingFaceFW/fineweb-edu ODC-By 1.0 web 6.249B 5,514,784

Processing

  • Quality filters (FineWeb-Edu score >= 3, language-ID >= 0.8 and script purity >= 60% for Urdu/Arabic/Hindi, length/symbol/repetition heuristics, code filters for autogenerated/minified files), email and IP scrubbing.
  • Exact deduplication across all sources together.
  • 13-gram decontamination against GSM8K, MMLU, HellaSwag, ARC (easy/challenge), WinoGrande, HumanEval, MBPP, OpenBookQA, MATH-500, TriviaQA. PIQA could not be loaded and is NOT decontaminated.

Tokenizer

64,000-token byte-level BPE trained on a language-balanced sample. <|endoftext|>=0, <|pad|>=1, <|im_start|>=2, <|im_end|>=3, <think>=4, </think>=5, <|tool_call|>=6, <|tool_result|>=7, FIM tokens 8-10, 48 reserved. Characters per token (higher is better):

Tokenizer efficiency vs GPT-2

sample MineAI 64k GPT-2
code_c 3.153 2.331
code_cpp 3.364 2.269
code_go 3.138 2.552
code_java 3.999 2.584
code_js 3.696 2.242
code_python_cp 3.834 2.357
code_rust 3.559 2.114
code_sql 3.02 2.421
code_ts 3.825 2.508
cosmopedia 5.219 5.172
dclm 4.267 4.291
finemath 3.381 3.313
fineweb_edu 4.439 4.599
fw2_arabic 3.683 1.006
fw2_hindi 3.665 0.676
fw2_urdu 3.75 0.779
gutenberg 3.925 2.837
openwebmath 3.6 3.5
wiki_ar 3.357 1.022
wiki_en 3.904 4.241
wiki_hi 3.437 0.663
wiki_ur 3.302 0.813

Dataset benchmark (proxy models)

Verdict: REVIEW. Two 51M-parameter models were trained on 150M tokens each (A = English backbone only, B = full mix) and scored on identical held-out documents (lower loss is better):

Proxy benchmark: B vs A held-out loss

slice A B B vs A
code 2.228 2.298 +3.16%
math 3.841 3.901 +1.57%
multilingual 2.743 2.367 -13.70%
reference 4.618 4.220 -8.61%
synthetic 3.906 3.987 +2.08%
web 4.560 4.598 +0.83%

Proxy model training curves

Proxy models use the GPT-2 tokenizer, so compare A vs B only. Full details in benchmarks/.

Known limitations

  • gutenberg: 36% of its raw documents were exact duplicates (repeated editions) and were removed during the build. Near-duplicate editions of the same book may remain, so train on it for one pass only.
  • Code is mostly Python (codeparrot, mixed licenses) plus 8 StarCoder languages; no C#, PHP, shell or Markdown code.
  • Mostly web text: weak coverage of papers, forums/Q&A and domain text (legal, medical, finance).
  • Token counts in manifest.json are estimates; tokenized/counts.json is exact.

Usage

from datasets import load_dataset
ds = load_dataset("MineAITechnology/mine-20B-Tokens", "web", split="train", streaming=True)

import numpy as np
from huggingface_hub import hf_hub_download
p = hf_hub_download("MineAITechnology/mine-20B-Tokens", "tokenized/web/dclm/00000.npy", repo_type="dataset")
ids = np.load(p, mmap_mode="r")   # uint16

Terms of use

Access is gated. By requesting access you agree to the following:

  1. This is a collection of third-party data. Any use must abide by the original licenses and attribution requirements of each source in the Sources table, including the source-code licenses of the code slices.
  2. The code slices from bigcode/starcoderdata are covered by BigCode's Terms of Use for The Stack. That includes updating your copy when BigCode enacts data-removal requests, and, if you host or share the code, including those terms and requiring your users to agree to them.
  3. Takedown: if you are a rights holder and want content removed, write to official.mineai@getmineai.net and we will remove it and publish an updated version.

License

MineAI Technology's own contributions (selection, filtering, deduplication, tokenizer, tokenized files, benchmarks and this documentation) are released under the Apache License 2.0.

The underlying text comes from third-party datasets that keep their original licenses and terms (see the Sources table). Several require attribution, Wikipedia text is share-alike (CC-BY-SA), the codeparrot code carries mixed GitHub licenses, and the StarCoder code is subject to BigCode's terms. Check them before redistribution or commercial use.

Copyright 2026 MineAI Technology. Contact: official.mineai@getmineai.net

Downloads last month
233