Datasets:
char_count int64 200 992k | dataset stringclasses 5
values | domain stringclasses 2
values | id stringlengths 32 32 | text stringlengths 200 992k | timestamp stringdate 2026-04-01 17:36:18 2026-04-03 14:59:37 | tokens_count int64 31 663k |
|---|---|---|---|---|---|---|
2,540 | github-top-code | code | fdefaa0d9765e75b35e28587493d60ff | #include "settings.h" #include <esp_log.h> #include <nvs_flash.h> #define TAG "Settings" Settings::Settings(const std::string& ns, bool read_write) : ns_(ns), read_write_(read_write) { nvs_open(ns.c_str(), read_write_ ? NVS_READWRITE : NVS_READONLY, &nvs_handle_); } Settings::~Settings() { if (nvs_handle_ != 0) { if (r... | 2026-04-02 17:15:34 | 960 |
2,600 | github-top-code | code | a01937dfd3a5bbddebe93d2454c09180 | <# .SYNOPSIS Merges the latest changes from Library.Template into HEAD of this repo. .PARAMETER LocalBranch The name of the local branch to create at HEAD and use to merge into from Library.Template. #> [CmdletBinding(SupportsShouldProcess = $true)] Param( [string]$LocalBranch = "dev/$($env:USERNAME)/libtemplateUpdate"... | 2026-04-02 17:15:34 | 760 |
9,173 | github-top-code | code | 38a1d05f07f65f2277a7b0be282e4bd5 | //! Build script for PHPantomLSP. //! //! Parses `stubs/jetbrains/phpstorm-stubs/PhpStormStubsMap.php` and generates //! a Rust source file (`stub_map_generated.rs`) that: //! //! 1. Embeds every referenced PHP stub file via `include_str!`. //! 2. Provides static arrays mapping class names and function names to //! ind... | 2026-04-02 17:15:34 | 2,926 |
964 | github-top-code | code | 86e2536fa97b9690e7895fe6161494dd | from __future__ import annotations import numpy as np class my_float: def __radd__(self, other: np.float32) -> my_float: return my_float() a = np.float32() b = np.float32() reveal_type(a + b) # Revealed type is "numpy.floating[numpy.typing._32Bit]" class _FloatOp(Protocol[_NBit1]): @overload def __call__(self, __other:... | 2026-04-02 17:15:34 | 342 |
1,381 | github-top-code | code | ab27feb455f8d73200981dec3cbbb5c2 | from dataclasses import dataclass from typing import Any, Callable # here both `Parent` and `Child` are frozen dataclasses @dataclass(frozen=True) class Parent: __call__: Callable[..., None] def __call__(self, *args: Any, **kwargs: Any) -> None: # type: ignore raise NotImplementedError @dataclass(frozen=True) class Chi... | 2026-04-02 17:15:34 | 407 |
481 | github-top-code | code | 35550333b8261a33702587ee23ef4b4b | from typing import Any @dataclass class C: dict:object # This attribute name shadows `dict` type, but it should not shadow the name inside of the `class` lexical scope; that's not how python works. d:dict # This attribute is annotated as `dict`. The interpreter does not pick up the previous shadowed attribute, but mypy... | 2026-04-02 17:15:34 | 133 |
803 | github-top-code | code | 0e2d204b9acbff8d2781beafb391bd55 | // Copyright 2023 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "crash-reporter/crash_sender_paths.h" #include <gtest/gtest.h> namespace paths { namespace { // Chrome's crash report log file when not under the dry run mode. conste... | 2026-04-02 17:15:34 | 221 |
498 | github-top-code | code | 9eb45fd16679f5728bfffc8d028ecedd | // Copyright 2024 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Provides the help string for the crosh "help_advanced" command. // // The actual command is handled by `main.rs`. use crate::dispatcher::{Command, Dispatcher}; pub fn regis... | 2026-04-02 17:15:34 | 122 |
2,987 | github-top-code | code | b8579bba7f64834897fbf3260c5c2f4c | // Copyright 2014 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "debugd/src/dev_mode_no_owner_restriction.h" #include <gtest/gtest.h> namespace debugd { namespace { // Test class to fake different system state conditions. class Fa... | 2026-04-02 17:15:34 | 892 |
849 | github-top-code | code | 64f1830bea6bb4123e8f7b7267ff4ed0 | // Copyright 2021 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef HPS_DAEMON_FILTERS_THRESHOLD_FILTER_H_ #define HPS_DAEMON_FILTERS_THRESHOLD_FILTER_H_ #include <memory> #include "base/functional/callback.h" #include "hps/daemon/filt... | 2026-04-02 17:15:34 | 226 |
3,203 | github-top-code | code | f311d1305824f378e6d944c413544e84 | // Copyright 2024 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "init/startup/mount_var_home_encrypted_impl.h" #include <sys/mount.h> #include <memory> #include <optional> #include <stack> #include <string> #include <utility> #inc... | 2026-04-02 17:15:34 | 884 |
1,939 | github-top-code | code | 5304194e98dce4518e974a5945f00b1b | // Copyright 2024 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "odml/on_device_model/public/cpp/text_safety_assets.h" #include <cstdint> #include <string_view> #include <base/files/file.h> #include <base/files/file_util.h> #inclu... | 2026-04-02 17:15:35 | 569 |
4,432 | github-top-code | code | bdb7e95681f29be7ed161c874a838bb6 | // Copyright 2014 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef POWER_MANAGER_POWERD_POLICY_INPUT_DEVICE_CONTROLLER_H_ #define POWER_MANAGER_POWERD_POLICY_INPUT_DEVICE_CONTROLLER_H_ #include <string> #include "power_manager/common/... | 2026-04-02 17:15:35 | 1,140 |
2,054 | github-top-code | code | 5d620d1fe7280d984629f7adc62e580c | // Copyright 2022 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SECANOMALYD_SYSTEM_CONTEXT_H_ #define SECANOMALYD_SYSTEM_CONTEXT_H_ #include <set> #include <base/files/file_path.h> #include <session_manager/dbus-proxies.h> using Se... | 2026-04-02 17:15:35 | 524 |
1,944 | github-top-code | code | 31ee6248c3ded5f16d4c3241dd99da1e | // Copyright 2023 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VM_TOOLS_CONCIERGE_MM_BALLOON_METRICS_H_ #define VM_TOOLS_CONCIERGE_MM_BALLOON_METRICS_H_ #include <string> #include <base/functional/callback.h> #include <base/sequen... | 2026-04-02 17:15:35 | 565 |
2,321 | github-top-code | code | 48a09225a31fdfaa92a4cfbb856e3771 | // Copyright 2022 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VTPM_BACKENDS_REAL_TPM_HANDLE_MANAGER_H_ #define VTPM_BACKENDS_REAL_TPM_HANDLE_MANAGER_H_ #include "vtpm/backends/tpm_handle_manager.h" #include <map> #include <unorde... | 2026-04-02 17:15:35 | 710 |
3,032 | github-top-code | code | 8536568e9d61b4b3608510e79a2505c1 | // Copyright 2023 The Dawn & Tint Authors // // 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 copyright notice, this // list of conditions and the following d... | 2026-04-02 17:15:35 | 743 |
7,437 | github-top-code | code | fd85588807488acac4e7eef32ecf16db | // Copyright 2025 The Dawn & Tint Authors // // 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 copyright notice, this // list of conditions and the following d... | 2026-04-02 17:15:35 | 2,193 |
5,442 | github-top-code | code | 46cb020ba5ca8f5da5eb06f76d6ccf95 | // Copyright 2014 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. #include <algorithm> #include <set> #include "base/command_line.h" #include "base/strings/string_split.h" #include "gn/commands.h" #include "gn/metadata_wa... | 2026-04-02 17:15:35 | 1,548 |
1,815 | github-top-code | code | 6baacf606dd9f473dba4adfc0551e86c | import threading import queue import time import random class Channel: MAX_REQUEST = 100 def __init__(self, threads): self.request_queue = queue.Queue(maxsize=self.MAX_REQUEST) self.thread_pool = [] self.cv = threading.Condition() for i in range(threads): self.thread_pool.append(WorkerThread("Worker-" + str(i), self)) ... | 2026-04-02 17:15:35 | 540 |
10,171 | github-top-code | code | a8e4bde282fdba4d395751649d6bef59 | # Defines functions and macros useful for building Google Test and # Google Mock. # # Note: # # - This file will be run twice when building Google Mock (once via # Google Test's CMakeLists.txt, and once via Google Mock's). # Therefore it shouldn't have any side effects other than defining # the functions and macros. # ... | 2026-04-02 17:15:35 | 3,346 |
3,468 | github-top-code | code | d69cafdb1ed11641b468e33b7441baa1 | use std::io::Write; use crate::{ args::{self, Usage, positional}, round::TimeSpanBalance, span::TimeSpan, }; const USAGE: &'static str = r#" Balance spans to a specified largest unit. When a unit isn't given, it defaults to `years`, which is the largest unit supported by Biff. Balancing a span refers to either collapsi... | 2026-04-02 17:15:36 | 1,041 |
1,352 | github-top-code | code | 461f7fae46b34f6819ca2bd31870c714 | 'use strict'; /** * Created by:CaMnter */ /****************** * Promise.race() * ******************/ /** * Promise.race 方法也是用于将多个 Promise 实例 * 包装成一个新的 Promise 实例 * * 与 Promise.all 的区别在于:只要 Promise 数组中,有一个 Promise 最先改变状态 * 那么 Promise.race 返回的 Promise 实例 */ (function () { var arrayA = [true, false, false]; // 依然会走 then P... | 2026-04-02 17:15:36 | 555 |
449 | github-top-code | code | 6188865845b41992792ae68c22b0b89c | // Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <iostream> void calcSum(int* x, int length, int& sum) { for (int i = 0; i < length; ++i) { sum += x[i]; } } int main() { int sum = 0, n = 10; int x[10]; /* initialize x... | 2026-04-02 17:15:36 | 164 |
1,769 | github-top-code | code | 6f14ebfbf793a62e9bc265ba27128685 | // Copyright 2025 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as i18n from './i18n.js'; describe('fetchAndRegisterLocaleData', () => { let fetchStub: sinon.SinonStub; beforeEach(() => { fetchStub = sinon.stub(window, 'fetch'); fet... | 2026-04-02 17:15:36 | 600 |
1,853 | github-top-code | code | f5be4d52db5fc166cec11222a0e724f8 | /* * Copyright 2025 The Chromium Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @scope to (devtools-widget > *) { :scope { position: fixed; z-index: 9999; /* subtract var(--sys-size-5) * 2 so that there is equal space on the left and on the right in smal... | 2026-04-02 17:15:36 | 664 |
2,004 | github-top-code | code | 6c8e97dce989d9ad51d32a0ed1910b1a | # Copyright 2017 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l... | 2026-04-02 17:15:36 | 610 |
2,411 | github-top-code | code | 3080598df0229807e43452ee71f24353 | //------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime: 4.0.30319.42000 // // Los cambios de este archivo pueden provocar un comportamiento inesperado y se perderán si // el código se vuelve a generar. ... | 2026-04-02 17:15:36 | 624 |
935 | github-top-code | code | e168576a5d27e06b1a78fee657403290 | /* eslint-disable no-undef */ const path = require('path'); const webpack = require('webpack'); module.exports = { mode: 'development', devtool: 'cheap-module-source-map', entry: { 'polymer-demos': './src/index.js' }, output: { path: path.resolve(__dirname, '..', 'dist'), filename: '[name].js', publicPath: '/' }, resol... | 2026-04-02 17:15:36 | 313 |
360 | github-top-code | code | 0d2f234a796023f494c1e42e66a736b1 | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits * * @path ch07/7.2/S7.2_A5_T4.js * @description Use S... | 2026-04-02 17:15:36 | 106 |
576 | github-top-code | code | 883379339053804543818fa2ffa7db03 | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Multi line comment can contain CARRIAGE RETURN (U+000D) * * @path ch07/7.3/S7.3_A5.2_T1.js * @description Insert CARRIAGE RETURN (U+000D) into multi line comment */ // CHECK#1 eval("/... | 2026-04-02 17:15:36 | 230 |
298 | github-top-code | code | 6b29b75c533cfb3d3ac6368d5cb60579 | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * DecimalLiteral :: ExponentPart is incorrect * * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js * @description ExponentPart :: E DecimalDigits * @negative */ //CHECK#1 E1 | 2026-04-02 17:15:36 | 94 |
465 | github-top-code | code | bf275505a19623d64ffff79e63cead1b | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Check For Statement for automatic semicolon insertion. * If automatic insertion semicolon would become one of the two semicolons in the header of a For Statement. * Use one semicolon ... | 2026-04-02 17:15:36 | 129 |
369 | github-top-code | code | f8ad8657344a2dc6d4f37eadbab0ac82 | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Operator x || y uses GetValue * * @path ch11/11.11/11.11.2/S11.11.2_A2.1_T4.js * @description If ToBoolean(x) is true and GetBase(y) is null, return true */ //CHECK#1 if ((true || x) ... | 2026-04-02 17:15:36 | 133 |
561 | github-top-code | code | 101809dcdec479ae6bde1d58e5bdb57a | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Operator --x returns x = ToNumber(x) - 1 * * @path ch11/11.4/11.4.5/S11.4.5_A3_T5.js * @description Type(x) is Object object or Function object */ //CHECK#1 var x = {}; --x; if (isNaN... | 2026-04-02 17:15:36 | 205 |
942 | github-top-code | code | f58ae53ffc302367c305507d3d9a625a | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Operator x - y returns ToNumber(x) - ToNumber(y) * * @path ch11/11.6/11.6.2/S11.6.2_A3_T2.6.js * @description Type(x) is different from Type(y) and both types vary between String (pri... | 2026-04-02 17:15:36 | 310 |
584 | github-top-code | code | d9bc5a0e46ee830ba107d31748f8b3e9 | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * 1. Evaluate Expression * * @path ch12/12.13/S12.13_A3_T2.js * @description Evaluating string expression */ // CHECK#1 try{ throw "exception"+" #1"; } catch(e){ if (e!=="exception #1")... | 2026-04-02 17:15:37 | 192 |
956 | github-top-code | code | f94cfd4a14b57c4ce0708a0564139b04 | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 248 |
729 | github-top-code | code | bdc2b696a54cfb3424740ab57b6c4f41 | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 205 |
728 | github-top-code | code | b6f9b2a304cba40ba113e0ab918adfb4 | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 203 |
641 | github-top-code | code | 263df62f7ed5aa011d3bd756c8df0f61 | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 193 |
900 | github-top-code | code | dd7a9d602f87698f1009882e55505aaf | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 261 |
1,135 | github-top-code | code | 9484546049a894cc5941c82feb809e07 | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 327 |
804 | github-top-code | code | c80a51d4caee9188ec0dea8cde9925de | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 246 |
1,003 | github-top-code | code | c535cab2c4dbc792a305a3491ed5010f | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 311 |
545 | github-top-code | code | 46b812804ab7753ef0d8e5daa41916df | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Object.prototype.toLocaleString has not prototype property * * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js * @description Checking if obtaining the prototype property of Object.pr... | 2026-04-02 17:15:37 | 156 |
786 | github-top-code | code | 635b2555c305944d6f93646cc8c0f12e | /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this... | 2026-04-02 17:15:37 | 218 |
625 | github-top-code | code | 3c25a86712a54bcb8a34aa6becc2adea | // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * [[Get]] from not an inherited property * * @path ch15/15.4/15.4.4/15.4.4.3/S15.4.4.3_A3_T1.js * @description [[Prototype]] of Array instance is Array.prototype */ //CHECK#1 var n = 0;... | 2026-04-02 17:15:37 | 230 |
1,412 | github-top-code | code | e6ae5178fe793de3ac2db18916196d45 | // delete operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; var obj; var obj1 = { x: "", y: function () { } }; function foo() { var a; return a; } var A = (function () { function A() { } A.foo = function () { var a; return a; }; return A; })(); var M; (function (M) { M.n; })(M || (M = {})); var objA = new A(... | 2026-04-02 17:15:37 | 417 |
293 | github-top-code | code | d26f239b02180ca18427166c01de683c | // object types can define string indexers that are more specific than the default 'any' that would be returned // no errors expected below var o = {}; var r = o['']; var C = (function () { function C() { } return C; })(); var c; var r2 = c['']; var i; var r3 = i['']; var o2; var r4 = o2['']; | 2026-04-02 17:15:37 | 96 |
255 | github-top-code | code | 85c02c65620477473322513ca04c05f4 | var _Color = (function () { function _Color() { } return _Color; })(); var Color; (function (Color) { Color.namedColors; })(Color || (Color = {})); var a = Color.namedColors["azure"]; var a = Color.namedColors.blue; var a = Color.namedColors["pale blue"]; | 2026-04-02 17:15:37 | 78 |
2,205 | github-top-code | code | 198b1ffa1cba9ab6eff8f3492c88a730 | import { useState, useCallback } from 'react' import { AttachedImage } from './types' export function useImageHandler() { const [attachedImages, setAttachedImages] = useState<AttachedImage[]>([]) const [isDragging, setIsDragging] = useState(false) const processImageFiles = useCallback((files: FileList | File[]) => { co... | 2026-04-02 17:15:37 | 641 |
256 | github-top-code | code | e5ed16afbe0ca701690f661c9d10c30a | import { Component, ViewEncapsulation } from '@angular/core' @Component({ selector: 'ex-guide-main', templateUrl: './main.component.html', styleUrls: ['./main.component.scss'], encapsulation: ViewEncapsulation.None, }) export class ExGuideMainComponent { } | 2026-04-02 17:15:38 | 78 |
4,684 | github-top-code | code | 590d0cd00e8dbc47d6e6ae3d13730bcb | import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js"; export class ChatbotView { #config; #container = document.querySelector("#ewcb-widget"); #header = document.querySelector(".ewcb-chat-header"); #messages = document.querySelector("#ewcb-messages"); #input = document.querySelector("#ewcb-inp... | 2026-04-02 17:15:38 | 1,420 |
578 | github-top-code | code | 18f2139651021fa5cbb83a72e9cf7787 | % British Royal family (small subset of) male(philip). male(william). male(harry). male(charles). male(george). female(elizabeth). female(diana). parent(elizabeth, charles). parent(philip, charles). parent(diana, william). parent(charles, william). parent(diana, harry). parent(charles, harry). parent(william, george). ... | 2026-04-02 17:15:38 | 193 |
10,233 | github-top-code | code | 71688a6206d8a86d788a5ffddd8d95c7 | #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] //! Tests for the kex_done callback and shared secret access. //! //! This feature enables protocol bridging use cases where applications need to //! derive additional encryption keys from the SSH KEX shared secret. use std::borrow::Cow; use std::sync::... | 2026-04-02 17:15:38 | 3,297 |
1,245 | github-top-code | code | 08a63b34796726e707f01f870cdbe2c4 | /* * Copyright 2017 GcsSloop * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft... | 2026-04-02 17:15:38 | 336 |
4,810 | github-top-code | code | 9180e6a27056c3b7985e78b811e6ab7d | import json from pathlib import Path from typing import Any, Dict, Iterable, List from urllib.parse import urlparse import numpy as np import ray import typer from numpyencoder import NumpyEncoder from ray.air import Result from ray.train.torch.torch_checkpoint import TorchCheckpoint from typing_extensions import Annot... | 2026-04-02 17:15:38 | 1,349 |
6,920 | github-top-code | code | 4b9407fd289d42a8e92595dd16e54f0c | package schema import ( _ "embed" "encoding/json" "fmt" "strings" "github.com/kaptinlin/jsonschema" "github.com/samber/oops" "gopkg.in/yaml.v3" ) //go:embed ai-rules-v2.schema.json var schemaV2JSON []byte //go:embed ai-rules-v3.schema.json var schemaV3JSON []byte var compiler = jsonschema.NewCompiler() const properties... | 2026-04-02 17:15:38 | 1,918 |
18,255 | github-top-code | code | 214429866d3e6f20a5fa47b95d29fd48 | //! Tests for background fixtures //! Generated from: testing_data/background #[cfg(test)] mod background { use axum::body::Body; use axum::http::Request; use serde_json::Value; use spikard::testing::TestServer; #[tokio::test] async fn test_background_background_event_logging() { // Fixture: Background event logging //... | 2026-04-02 17:15:38 | 6,012 |
36,366 | github-top-code | code | 32bb822180f212d956ebc9286fd77e9f | //! Spikard Rust HTTP server for workload benchmarking. //! //! This server uses the actual Spikard Rust crate to test performance //! with Rust handlers (no FFI overhead). //! //! Provides both raw endpoints (no validation) and validated endpoints (with schema validation) //! at the /validated/ prefix. use axum::body:... | 2026-04-02 17:15:38 | 12,030 |
1,318 | github-top-code | code | 4417651c5900f78e3f0cc4db7ea016d8 | import org.gradle.api.initialization.resolve.RepositoriesMode pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } } rootProject.name = "android-browser-helper" dependencyResolutionManagement { repositories { repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS google() mavenCentral() /... | 2026-04-02 17:15:38 | 418 |
End of preview. Expand in Data Studio
Keural Pretraining Datasets (Stage 2)
Stage 2 final production corpus for training the Keural Korean LLM. Quality-filtered, deduplicated, and domain-balanced across 4 domains.
Summary
| Metric | Value |
|---|---|
| Total input documents | 836,302,981 |
| Filter removed | 137,495,801 |
| Dedup removed | 3,913 |
| Final documents | ~698,803,281 |
| Total tokens | ~507B |
| Domains | English, Korean, Code, Science |
| Source datasets | 41 |
| Format | Parquet (snappy compressed, sharded) |
| Upload runs | 7 (2026-04-06 through 2026-04-20) |
Token Progress by Domain
| Domain | Target | Achieved | Progress |
|---|---|---|---|
| English | 175B | 182.79B | 104.4% |
| Korean | 175B | 134.67B | 77.0% |
| Code | 100B | 116.10B | 116.1% |
| Science | 75B | 74.28B | 99.0% |
| Total | 525B | 507.84B | 96.7% |
Processing Pipeline
Raw Download (41 source datasets)
|
Normalization (unified JSONL schema)
|
Quality Filtering (repetition, entropy, vocabulary diversity)
|
Language Filtering
|
Toxicity Filtering
|
Exact Deduplication (SHA-256)
|
Near-Duplicate Removal (MinHash LSH, J >= 0.85)
|
Audit Validation
|
Token Quota Control (per-domain sharding)
|
Final Output (~699M docs, ~507B tokens, Parquet shards)
Document Schema
{
"id": "string",
"text": "string",
"dataset": "string",
"domain": "string",
"tokens_count": "int64",
"char_count": "int64",
"timestamp": "string"
}
Per-Dataset Statistics
| Dataset | Domain | Input | Filter Removed | Filter% | Dedup Removed | Final | Tokens |
|---|---|---|---|---|---|---|---|
| codeparrot_clean | code | 5,365,659 | 830,522 | 15.5% | 25 | 4,535,112 | 8.51B |
| github-top-code | code | 1,121,474 | 386,174 | 34.4% | 5 | 735,295 | 0.84B |
| starcoderdata | code | 42,191,832 | 10,358,759 | 24.6% | 197 | 31,832,876 | 29.23B |
| the_stack_c | code | 21,383,810 | 6,871,870 | 32.1% | 100 | 14,511,840 | 23.47B |
| the_stack_java | code | 31,222,087 | 4,228,499 | 13.5% | 146 | 26,993,442 | 25.60B |
| the_stack_python | code | 24,214,204 | 4,435,320 | 18.3% | 113 | 19,778,771 | 28.45B |
| ccnews | english | 71,629,440 | 4,116,717 | 5.8% | 335 | 67,512,388 | 14.05B |
| falcon-refinedweb | english | 59,839,870 | 9,119,548 | 15.2% | 279 | 50,720,043 | 38.04B |
| fineweb | english | 56,181,731 | 6,272,017 | 11.2% | 262 | 49,909,452 | 48.04B |
| fineweb_edu | english | 57,121,167 | 4,062,743 | 7.1% | 267 | 53,058,157 | 24.49B |
| gutenberg | english | 48,284 | 5,370 | 11.1% | 0 | 42,914 | 0.80B |
| hplt_english_1 | english | 24,520,357 | 3,511,691 | 14.3% | 114 | 21,008,552 | 18.75B |
| hplt_english_2 | english | 16,085,779 | 2,243,442 | 14.0% | 75 | 13,842,262 | 11.79B |
| hplt_english_3 | english | 22,951,515 | 3,827,558 | 16.7% | 107 | 19,123,850 | 14.99B |
| openwebtext | english | 8,013,769 | 453,330 | 5.7% | 37 | 7,560,402 | 7.79B |
| wikipedia | english | 6,407,814 | 919,350 | 14.3% | 29 | 5,488,435 | 4.05B |
| aihub_books | korean | 5,823 | 3,041 | 52.2% | 0 | 2,782 | 0.79B |
| aihub_korean_corpus_literature | korean | 908 | 857 | 94.4% | 0 | 51 | 0.01B |
| aihub_modu | korean | 58,997 | 4,714 | 8.0% | 0 | 54,283 | 1.88B |
| aihub_online_colloquial | korean | 22,859 | 3,084 | 13.5% | 0 | 19,775 | 0.07B |
| c4_korean | korean | 15,618,718 | 5,859,237 | 37.5% | 73 | 9,759,408 | 11.12B |
| cc100_documents_korean | korean | 35,678,358 | 20,628,184 | 57.8% | 166 | 15,050,008 | 8.20B |
| culturax_ko | korean | 17,072,188 | 3,483,474 | 20.4% | 79 | 13,588,635 | 16.00B |
| fineweb2_korean | korean | 59,423,122 | 10,075,521 | 17.0% | 278 | 49,347,323 | 32.56B |
| hplt_korean | korean | 38,866,835 | 7,089,724 | 18.2% | 181 | 31,776,930 | 25.92B |
| korean_webtext | korean | 1,284,878 | 130,224 | 10.1% | 6 | 1,154,648 | 1.13B |
| namuwiki | korean | 565,293 | 90,926 | 16.1% | 2 | 474,365 | 0.98B |
| oscar_ko_only | korean | 3,675,420 | 1,134,326 | 30.9% | 17 | 2,541,077 | 1.69B |
| wanjuan_korean | korean | 68,894,937 | 12,218,069 | 17.7% | 322 | 56,676,546 | 34.00B |
| wikipedia_ko | korean | 515,425 | 42,667 | 8.3% | 2 | 472,756 | 0.32B |
| algebraic_stack | science | 3,440,226 | 3,255,498 | 94.6% | 16 | 184,712 | 0.37B |
| arxiv | science | 1,089,469 | 660,324 | 60.6% | 5 | 429,140 | 5.25B |
| fiwebmath_4plus | science | 6,699,493 | 2,452,452 | 36.6% | 31 | 4,247,010 | 5.18B |
| open-web-math | science | 6,315,233 | 2,473,219 | 39.2% | 29 | 3,841,985 | 6.50B |
| open_med_text | science | 127,736 | 33,684 | 26.4% | 0 | 94,052 | 0.68B |
| peS2o | science | 69,950,435 | 3,892,991 | 5.6% | 327 | 66,057,117 | 50.47B |
| pubmed_abstracts | science | 15,517,555 | 606,713 | 3.9% | 72 | 14,910,770 | 4.26B |
| s2orc | science | 43,180,281 | 1,713,962 | 4.0% | 202 | 41,466,117 | 1.57B |
Quality Filters
| Filter | Threshold |
|---|---|
| Character repetition ratio | < 30% |
| Shannon entropy | >= 3.0 bits |
| Vocabulary diversity | >= 20% unique words |
Deduplication
| Stage | Method | Parameters |
|---|---|---|
| Exact | SHA-256 hash | O(1) lookup |
| Near-duplicate | MinHash LSH | 128 permutations, 3-gram shingles, J >= 0.85 |
Configuration
| Parameter | Value |
|---|---|
| Tokenizer | mkd-ai/keural-tokenizer (SentencePiece) |
| Shard size | ~200M tokens per file |
| Compression | snappy |
Upload Runs
| Run | Date |
|---|---|
| Run 1 | 2026-04-06 |
| Run 2 | 2026-04-09 |
| Run 3 | 2026-04-11 |
| Run 4 | 2026-04-13 |
| Run 5 | 2026-04-15 |
| Run 6 | 2026-04-17 |
| Run 7 | 2026-04-20 |
License Notes
This dataset inherits licensing restrictions from its source datasets. Users are responsible for reviewing the applicable license of each source before use. Commercial use may be restricted for certain datasets.
| Dataset | License | Commercial Use |
|---|---|---|
| falcon-refinedweb | ODC-By 1.0 | Caution (copyright unclear) |
| fineweb | ODC-By | Yes |
| fineweb_edu | ODC-By | Yes |
| fineweb2_korean | ODC-By | Yes |
| open-web-math | ODC-By 1.0 | Yes |
| peS2o | ODC-By | Yes |
| s2orc | ODC-By | Yes |
| openwebtext | MIT | Yes |
| arxiv | MIT | Caution (individual paper copyright) |
| github-top-code | MIT | Yes (permissive only repos) |
| codeparrot_clean | Permissive (filtered GitHub) | Yes |
| wikipedia | CC-BY-SA 3.0 | Yes (with attribution) |
| wikipedia_ko | Apache-2.0 | Yes |
| gutenberg | Public Domain | Yes |
| hplt_korean | CC0-1.0 | Yes |
| hplt_english_1/2/3 | CC0-1.0 | Yes |
| oscar_ko_only | Open (Common Crawl) | Yes |
| c4_korean | ODC-By | Yes |
| cc100_documents_korean | MIT | Yes |
| ccnews | Unknown | Caution |
| culturax_ko | Mixed (mC4 / OSCAR / CC) | Caution |
| wanjuan_korean | Apache-2.0 | Yes |
| algebraic_stack | MIT | Yes |
| fiwebmath_4plus | ODC-By | Yes |
| korean_webtext | Unspecified | Caution |
| namuwiki | CC BY-NC-SA 2.0 KR | No (non-commercial only) |
| starcoderdata | BigCode OpenRAIL-M | Restricted |
| the_stack_c | BigCode OpenRAIL-M | Restricted |
| the_stack_java | BigCode OpenRAIL-M | Restricted |
| the_stack_python | BigCode OpenRAIL-M | Restricted |
| pubmed_abstracts | CC0 (NLM/PubMed) | Yes |
| aihub_modu | AIHub Terms of Use | No (research only) |
| aihub_books | AIHub Terms of Use | No (research only) |
| aihub_online_colloquial | AIHub Terms of Use | No (research only) |
| aihub_korean_corpus_literature | AIHub Terms of Use | No (research only) |
Related Resources
Last Updated: 2026-04-27
- Downloads last month
- 583