Dataset Viewer
Auto-converted to Parquet Duplicate
text
string
h
int64
repo_name
string
path
string
license
string
language
string
source_row
int64
content_sha256
string
'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;
8,422,609,197,892,898,000
mshick/velvet
core/classes/data.js
isc
JavaScript
1
4a0a58ca701ee374d8ebe0f9e3158dc8c4c0d2f1bd4d7389307c0dd5d94b6443
package sodium // #cgo pkg-config: libsodium // #include <stdlib.h> // #include <sodium.h> import "C" func RuntimeHasNeon() bool { return C.sodium_runtime_has_neon() != 0 } func RuntimeHasSse2() bool { return C.sodium_runtime_has_sse2() != 0 } func RuntimeHasSse3() bool { return C.sodium_runtime_has_sse3() != 0 ...
-2,677,594,075,165,304,300
GoKillers/libsodium-go
sodium/runtime.go
isc
Go
2
c8d914096046d7da65c962bb3194b6adb7bb779e640b1cdea5a4b817f44c7feb
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, [ ...
2,371,247,003,778,526,000
burninggarden/burninggarden
test/unit/resource/accounts.js
isc
JavaScript
3
d4abed26965ce820be4448a470a57c09d3ce1dc19e9a0b19bc7d78c63b7eba52
/* * 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...
-465,361,206,907,720,260
markokr/libusual
usual/json.c
isc
C
5
cead04aa72b48af97ada2eb5478e768253d307949b8d0740d36fcd1987eb6284
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...
3,793,857,272,451,349,000
pikachumetal/cursoangular05
app/loginModule/services/localstorage.js
isc
JavaScript
6
51bafeac167da634cfba32bad3596d2f6e1b5630a8a2cbc5124a15c97cd7313a
/* 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, ...
6,767,687,238,346,269,000
arssivka/naomech
xmlrpc-c/src/xmlrpc_build.c
isc
C
7
91e092c0afa7eb5db2557ceb2dab027810c684ddfd9a1918fe03c7b18bbdfb14
// flow-typed signature: d37503430b92ad584be6e2c6f8d1fc08 // flow-typed version: <<STUB>>/ua-parser-js_v1.0.2/flow_v0.171.0 /** * This is an autogenerated libdef stub for: * * 'ua-parser-js' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with ...
1,552,809,893,794,875,600
julien-noblet/cad-killer
flow-typed/npm/ua-parser-js_vx.x.x.js
isc
JavaScript
8
86085b0b5fb08c15ce5a6434eb86567ee6d2073801a064d24fe42dcea85c65dd
/* 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...
7,731,823,347,560,415,000
skarnet/s6-networking
src/sbearssl/sbearssl_skey_to.c
isc
C
9
b50169a15ef44c6b0bc42acb6a36d24653de723d7594e6044f9d52e08b576463
/* 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...
6,574,015,307,806,105,000
kartta-labs/iD
build.js
isc
JavaScript
11
6b5cc38117983b5b9d3835ef298055776c2cfe723d5b5aba1097dd5a48156c61
// // 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...
4,750,414,883,353,007,000
wvuRc2/rc2client
source/rc2/model/RCWorkspaceCache.h
isc
C/C++ header
12
2612fce92addec41c7d8d94e7fb406cc7911ffa233aeba384f80b6cdff047b1f
/*! * 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")...
-1,356,572,564,762,970,000
becm/mpt-solver
modules/daesolv/libinfo.c
isc
C
14
2c384395707c2ced660c9d040ccdcb52b12619d3c0fe2b5c10ad19b79ab0eb00
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...
-8,849,050,402,095,485,000
denzp/pacman
application/lib/angular2/test/core/compiler/dynamic_component_loader_spec.js
isc
JavaScript
16
723192278bdb31856bf418716c16771b0e4325271231f1b274acfdb076f8bdc2
/* * 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. ...
-7,442,049,876,933,981,000
DanielAeolusLaude/DPF-NTK
distrho/src/DistrhoPluginLV2export.cpp
isc
C++
18
c64b9c0c1187b898d8ed839b73d4f62e326de56fb5f8bc1f8d946c2da3da79b3
// 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...
4,496,408,622,747,516,000
rhaphazard/moebooru
lib/assets/javascripts/moe-legacy/notes.js
isc
JavaScript
19
3c7bdec3d173663e4c6bb5acc29fa44ffd2878804ea24a3edec53e998b243f27
// Copyright (c) 2021 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package indexers import ( "context" "fmt" "sync" "sync/atomic" "github.com/decred/dcrd/blockchain/v4/internal/progresslog" "github.com/decred/dcrd/database/v3" "github...
-3,939,681,229,014,612,000
decred/dcrd
blockchain/indexers/indexsubscriber.go
isc
Go
20
c0474fa8cb7053c9de4d0c9d05642e1fc7013bf7081cd448784876abb653ae3d
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...
-3,243,334,931,123,639,300
k0gaMSX/scc
cc2/target/qbe/arch.h
isc
C/C++ header
23
c16bc266105cfdd27e256d7a6d8edca26e12f786f4d0f0a085d73dc7c6d9431b
// Copyright (c) 2013-2015 The btcsuite developers // Copyright (c) 2015 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package wire_test import ( "bytes" "io" "reflect" "testing" "time" "github.com/davecgh/go-spew/spew" "github.com/de...
1,619,429,776,446,685,200
Dirbaio/btcd
wire/msgblock_test.go
isc
Go
24
0280cb33cd5e7916d0c44d0319f5956d84cad9867ac22a16f348cdad6c9379d1
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: {...
1,918,061,336,996,943,000
bsander/dJSON
test/dJSON.spec.js
isc
JavaScript
25
3e151da99f529e1a74e20ce488c2defa0d8e604fe5e8f9de2f7b56c79b3eb096
/* * 94 shifted lines of 72 ASCII characters. */ static const char *characters[] = { "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefgh", "\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghi", "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`...
3,926,096,998,047,731,000
ibara/chargend
chargend.h
isc
C/C++ header
26
55ce5c1a6b4c7c36e70b2ccc1c356137d1420597ea1f1c74b26239dfc4e18b30
#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...
-3,928,951,941,013,041,000
kdhp/play
mp3.c
isc
C
27
840f56b0068f79c949231ae621616bab909706941666643242cbaefd0b73875b
package main import ( "testing" ) func TestParseHdbSignatureRow(t *testing.T) { signature := new(signature) sample := "e11c2aff804ca144a3e49c42d6ac5783:1006:Exploit.CVE_2012_0779" sig := parseHdbSignatureRow(sample, signature) if sig.Size != 1006 { t.Fatal("Error parsing HDB or HSB signature length") } if ...
-8,760,607,212,686,542,000
sec51/clamav-yara
hdb_signatures_test.go
isc
Go
28
23fb17df27126c86004d1275113a2c4f79e0649c795bef1bcc400ebc56e91506
End of preview. Expand in Data Studio

korean-pretrain-code

한국어 · English · 简体中文 · 繁體中文 · 日本語 · Français · Deutsch · Español · Português (Brasil) · हिन्दी · العربية · עברית · Русский

한국어

개요

이 저장소는 아래에 표시한 한 소스의 정제·분리 자료를 제공합니다. 동일 소스의 전체 파일은 통합 corpus의 해당 폴더에서도 받을 수 있습니다. 데이터의 고정 버전과 문서의 갱신 버전은 구분합니다.

문서 번역 언어는 학습 데이터에 그 언어가 포함된다는 뜻이 아닙니다. 주 자연언어는 한국어·영어이며 웹·수학·코드에 다른 언어가 섞일 수 있습니다.

구성과 규모

소스 github_code_v1
문서 수 2,148,459
train 문서 2,125,938
eval 문서 22,521
텍스트 bytes 3,584,084,955
tokens 4,006,737,196
eval tokens 42,420,481
revision v1.0.0
upstream codeparrot/github-code
upstream license other
provenance_status repo_path_row_preserved_git_commit_unknown

처리와 분리

웹은 공백 정리, 길이·반복·언어 휴리스틱, 일부 개인정보 패턴 마스킹을 거칩니다. 초기 샤드 내부 hash와 최종 웹 NFC SHA256의 기준은 다릅니다. 코드 정제는 대소문자·들여쓰기·원문 Unicode를 보존하고 경로·라이선스 표기·생성 코드·일부 비밀정보 패턴을 검사합니다. 동일 본문·웹 NFC 동등 본문·코드 저장소의 연결 그룹을 train/eval로 분리합니다.

사용법

아래 명령은 저장소 루트에서 실행합니다. 새 출력/다운로드 디렉터리를 사용하고 다운로드 전에 범위·용량·고정 revision을 확인하세요. 합성 CPU 예제는 외부 데이터를 받지 않습니다. 실제 데이터는 별도 배포에서 필요한 파일만 선택하고 CHECKSUMS.json 또는 소스별 manifest의 크기·SHA256을 검증하세요.

python -m pip install "pyarrow>=19,<20" "huggingface_hub>=0.34,<1" "tokenizers>=0.21,<0.23" "transformers==4.55.2" "requests>=2,<3"
from huggingface_hub import snapshot_download
root = snapshot_download('pathcosmos/korean-pretrain-code', repo_type="dataset",
    revision='v1.0.0', allow_patterns=['text/*.parquet', 'source.json', 'manifest.json', 'release.json', 'LICENSE-SCOPE.md'],
    local_dir='korean-pretrain-code', token=False)
from pathlib import Path
import subprocess, sys
from huggingface_hub import snapshot_download
reader = snapshot_download("pathcosmos/korean-pretrain-corpus", repo_type="dataset", revision="v1.1.0",
    allow_patterns=["examples/*"], local_dir="corpus-reader", token=False)
subprocess.run([sys.executable, str(Path(reader) / "examples/stream_documents.py"),
    "--repo", "pathcosmos/korean-pretrain-corpus", "--revision", "v1.1.0", "--source", "github_code_v1",
    "--split", "train", "--limit", "10"], check=True)

examples/stream_documents.py · manifest.json

모델과 학습

모델은 RMSNorm·RoPE·GQA·SwiGLU를 사용하는 순수 PyTorch Dense decoder입니다. 실제 3B 경로는 FSDP2·8GPU·eager이며 문맥4096, micro batch4, global batch2,097,152 tokens, peak LR3e-4, 목표57,000step입니다. 예제의 CPU micro 모델과 실제 분산 학습 경로는 다릅니다. 체크포인트 재개에는 모델·optimizer·RNG·입력/설정 계약 검증이 필요합니다.

최적화·벤치마크

worker·thread·batch·SQLite 캐시·RAM·로컬/NFS와 eager/compile·정밀도·GPU 메모리를 비교했습니다. 총시간·처리량·peak 메모리·내용/수치 동등성을 함께 확인하고 채택·기각 이유를 기록합니다. 47개 캠페인·99개 결과 JSON을 제공하며 빠르더라도 수치 조건에 실패한 후보를 권장하지 않습니다. 짧은 표본의 최적값을 전체 최적값으로 주장하지 않습니다.

검증

GH 소스 공개판의 독립 CPU 검사는284통과/9건너뜀, 새 GitHub CPU 환경은258통과/35건너뜀입니다. 건너뜀은 원래 운영 기록 또는 별도 파일시스템이 필요한 검사입니다. 합성 quickstart는120문서·train100/eval20·vocab272·108,864parameter 모델로 저장/재개 후 model과optimizer 일치를 확인합니다. 데이터 배포의 내용 해시·분할/reader 검사와 전체3B 독립 재현은 구분합니다.

release.json · source.json

출처와 라이선스

프로젝트 원본 코드는 MIT, 원본 설명문은 CC BY4.0입니다. 이는 원문 데이터의 권리를 대신하지 않습니다. 소스별 라이선스·귀속·고지·알려진 미확정 항목은 source.json, LICENSE-SCOPE.md와 출처 문서를 확인하세요. 모든 원문에 대한 무조건적 상업 재배포 허가를 주장하지 않습니다.

codeparrot/github-code · source.json · LICENSE-SCOPE.md

한계

전역 유사중복 제거·개인정보/secret 완전 제거·공식 평가 오염 없음·최종 모델 품질을 보장하지 않습니다. 공개 시점의 본학습은 진행 중이며 SFT·모델 export·공식 언어능력 benchmark 완료를 뜻하지 않습니다. 과거 실험11개 코드 참조/고유9hash는 원본 snapshot을 회수하지 못했습니다. 일부 운영 도구는 별도 원래 실행 manifest가 필요합니다.

관련 저장소

GitHub · README GH / 사용법 · GH / 최적화·벤치마크 · GH / 검증

English

Overview

This repository provides the cleaned, split material for the single source identified below. The same source files are also available in its directory within the unified corpus. Pinned data versions and documentation revisions are distinct.

Translation languages do not imply training-data coverage in those languages. The principal natural languages are Korean and English; web, math and code may contain other languages.

Contents and scale

Source github_code_v1
Documents 2,148,459
Train documents 2,125,938
Evaluation documents 22,521
Text bytes 3,584,084,955
tokens 4,006,737,196
eval tokens 42,420,481
revision v1.0.0
upstream codeparrot/github-code
upstream license other
provenance_status repo_path_row_preserved_git_commit_unknown

Processing and splits

Web processing applies whitespace cleanup, length/repetition/language heuristics and selected PII-pattern masking. Initial within-shard hashes differ from final web NFC SHA256. Code filtering preserves case, indentation and original Unicode while checking paths, license labels, generated code and selected secret patterns. Connected groups of identical bodies, NFC-equivalent web bodies and code repositories are assigned to train/eval.

Usage

Run commands below from the repository root. Use new output/download directories and check scope, size and pinned revision first. The synthetic CPU example downloads no external data. Select only the needed files from the separate data releases and verify sizes/SHA256 against CHECKSUMS.json or the source manifests.

python -m pip install "pyarrow>=19,<20" "huggingface_hub>=0.34,<1" "tokenizers>=0.21,<0.23" "transformers==4.55.2" "requests>=2,<3"
from huggingface_hub import snapshot_download
root = snapshot_download('pathcosmos/korean-pretrain-code', repo_type="dataset",
    revision='v1.0.0', allow_patterns=['text/*.parquet', 'source.json', 'manifest.json', 'release.json', 'LICENSE-SCOPE.md'],
    local_dir='korean-pretrain-code', token=False)
from pathlib import Path
import subprocess, sys
from huggingface_hub import snapshot_download
reader = snapshot_download("pathcosmos/korean-pretrain-corpus", repo_type="dataset", revision="v1.1.0",
    allow_patterns=["examples/*"], local_dir="corpus-reader", token=False)
subprocess.run([sys.executable, str(Path(reader) / "examples/stream_documents.py"),
    "--repo", "pathcosmos/korean-pretrain-corpus", "--revision", "v1.1.0", "--source", "github_code_v1",
    "--split", "train", "--limit", "10"], check=True)

examples/stream_documents.py · manifest.json

Model and training

The model is a plain PyTorch dense decoder with RMSNorm, RoPE, GQA and SwiGLU. The actual3B path uses FSDP2,8GPUs and eager execution: context4096, micro batch4, global batch2,097,152tokens, peak LR3e-4 and target57,000steps. The CPU micro demonstration differs from distributed training. Exact resume requires model, optimizer, RNG and input/configuration contracts.

Optimization and benchmarks

Experiments compare workers, threads, batches, SQLite caches, RAM, local/NFS storage, eager/compile execution, precision and GPU memory. Total time, throughput, peak memory and content/numerical equivalence accompany adoption or rejection decisions.47 campaigns and99 result JSON files are included. Speed alone does not justify a numerically failing candidate, and a small sample does not establish a full-scale optimum.

Validation

The GH source release passed284 independent CPU tests with9 skips; fresh GitHub CPU CI passed258 with35 skips. Skips require original-run records or a second filesystem. The synthetic quickstart uses120documents, train100/eval20, vocab272 and a108,864parameter model, verifying exact model/optimizer resume. Dataset content-hash, split and reader checks are separate from full independent3B reproduction.

release.json · source.json

Sources and licensing

Original project code is MIT and original prose is CC BY4.0. These grants do not replace original-content rights. Consult source.json, LICENSE-SCOPE.md and provenance documents for source-specific conditions, attribution, notices and known unresolved items. Unrestricted commercial redistribution of every original text is not asserted.

codeparrot/github-code · source.json · LICENSE-SCOPE.md

Limitations

Global near-duplicate removal, complete PII/secret removal, contamination-free official evaluation and final model quality are not guaranteed. Main training was ongoing at the publication snapshot; SFT, model export and official language benchmarks are not completed features.11 historical code references/9unique hashes lack a recovered snapshot. Some operational tools require original-run manifests.

Related repositories

GitHub · README GH / Usage · GH / Optimization and benchmarks · GH / Validation

Downloads last month
183