Datasets:
sample_id stringlengths 40 40 | repo_id stringlengths 5 114 | revision_id stringlengths 40 40 | kind stringclasses 1
value | text large_stringlengths 145 83.6k | files listlengths 1 322 | token_count int32 18 8.19k | metadata_json large_stringclasses 372
values |
|---|---|---|---|---|---|---|---|
989fe4bfd69fe563efebecf724aa55a7c0672a30 | zetone/enemyFrames | 7a6591617b038e52153ee0eb5dba73c74978b887 | dependency | <|begin▁of▁repo▁name|>zetone/enemyFrames<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>UIElements/BindingsHandler.lua<|end▁of▁file▁name|>
<|begin▁of▁file|>
local enabled = false
-- Binding Variables
BINDING_HEADER_EFKHEADER = "Enemy Frames Keybinds"
BINDING_NAME_SETKT = "Assign Skull to Target"
BINDING_NAME_GET... | [
{
"path": "UIElements/BindingsHandler.lua",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "lua",
"bytes": 1166,
"part": 1,
"parts": 1
},
{
"path": "globals/class/paladin.lua",
"relation": "component",
"content_policy": "full",
"r... | 2,404 | {"component":0,"counter":"tokens"} |
9e114d4af0984f3ed5b523f39656d2dad49b5177 | pysnow530/wechat-payment | e5132269ca8cecd93e97b6a040400aea06bdb9af | dependency | <|begin▁of▁repo▁name|>pysnow530/wechat-payment<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>README.md<|end▁of▁file▁name|>
<|begin▁of▁file|>
# 微信支付类
> 该类主要提供php对微信支付的封装。
**IMPORT**:由于本人已很久没有做微信支付方面的开发,该支付类可能已经过时,所以不要在生产环境使用该支付类。大家可以把这份实现当作一个demo学习,有微信支付方面的问题欢迎讨论交流。谢谢支持!
## 编码依据
该类的编写主要参考《[微信公众号支付接口文档v3.3.6](api_v3.3.6.... | [
{
"path": "README.md",
"relation": "component",
"content_policy": "full",
"role": "documentation",
"language": "markdown",
"bytes": 1429,
"part": 1,
"parts": 1
},
{
"path": "WechatPayment.class.php",
"relation": "component",
"content_policy": "full",
"role": "sour... | 2,463 | {"component":0,"counter":"tokens"} |
b996414d6994f50cf531e5838e05c4b4430fb913 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/controllers.py<|end▁of▁file▁name|>
<|begin▁of▁file|>
"""Classes defining controllers for simulated aircraft."""
import pynput
import inputs
import copy
import numpy as np
import multiprocessing as mp
from abc import abstractmethod
fr... | [
{
"path": "pylot/controllers.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 19051,
"part": 1,
"parts": 1
}
] | 4,364 | {"component":0,"counter":"tokens"} |
288ffdeaf5260485e58075f30c48cfef36acf641 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/graphics.py (part 1/2)<|end▁of▁file▁name|>
<|begin▁of▁file|>
import numpy as np
import scipy.interpolate as intp
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import OpenGL.GL.shaders
from pyrr import matrix... | [
{
"path": "pylot/graphics.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 27765,
"part": 1,
"parts": 2
}
] | 8,180 | {"component":0,"counter":"tokens"} |
9d815592a307260905395f7e951fe200346cd6b7 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/graphics.py (part 2/2)<|end▁of▁file▁name|>
<|begin▁of▁file|>
graphics_aircraft_up = Body2Fixed([0.,0.,-1.], q)
self._clean_up_storage(camera_time)
return self.look_at(p, p+graphics_aircraft_forward, graphics_air... | [
{
"path": "pylot/graphics.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 1651,
"part": 2,
"parts": 2
},
{
"path": "pylot/helpers.py",
"relation": "component",
"content_policy": "full",
"role": "source",
... | 6,723 | {"component":0,"counter":"tokens"} |
1a5492c326a80ae46b380bf4445a0c862de23b60 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/airplanes.py (part 1/2)<|end▁of▁file▁name|>
<|begin▁of▁file|>
# Classes describing the aircraft used by the simulator
import os
import copy
import math as m
import numpy as np
import machupX as mx
import scipy.optimize as opt
from ab... | [
{
"path": "pylot/airplanes.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 28568,
"part": 1,
"parts": 2
}
] | 8,189 | {"component":0,"counter":"tokens"} |
89bb89c40e67cda3480a026d993a551a1abdd046 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/airplanes.py (part 2/2)<|end▁of▁file▁name|>
<|begin▁of▁file|>
for name in avail_controls:
header.append("{0:>20}".format(name.title()))
header.append("{0:>20}".format("Elevation [deg]"))
... | [
{
"path": "pylot/airplanes.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 18001,
"part": 2,
"parts": 2
},
{
"path": "pylot/integrators.py",
"relation": "component",
"content_policy": "full",
"role": "source... | 7,927 | {"component":0,"counter":"tokens"} |
65106a2c1f788f3f5f54b1ed945dfe659a3fea09 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>pylot/simulator.py<|end▁of▁file▁name|>
<|begin▁of▁file|>
# Class containing the simulator
import numpy as np
import multiprocessing as mp
import math as m
import json
import copy
import time
import pygame.display
import pygame.image
import o... | [
{
"path": "pylot/simulator.py",
"relation": "component",
"content_policy": "full",
"role": "source",
"language": "python",
"bytes": 21847,
"part": 1,
"parts": 1
},
{
"path": "pylot/__init__.py",
"relation": "component",
"content_policy": "full",
"role": "source",
... | 6,197 | {"component":0,"counter":"tokens"} |
397a2af7ec970558a359d2707b7e22cce10a8dc0 | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | <|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>
<|begin▁of▁file▁name|>README.md<|end▁of▁file▁name|>
<|begin▁of▁file|>
# Pylot
A fully-featured flight simulator, capable of real-time lifting-line aerodynamic modelling.
## Documentation
Documentation is available on [ReadTheDocs](https://aerolabpylot.readthedocs... | [
{
"path": "README.md",
"relation": "component",
"content_policy": "full",
"role": "documentation",
"language": "markdown",
"bytes": 535,
"part": 1,
"parts": 1
},
{
"path": "dev/landed_input.json",
"relation": "component",
"content_policy": "full",
"role": "source"... | 1,714 | {"component":1,"counter":"tokens"} |
30d2529b35a2f31c7f0a9a9fd24a684ceb8b263f | usuaero/Pylot | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | dependency | "<|begin▁of▁repo▁name|>usuaero/Pylot<|end▁of▁repo▁name|>\n<|begin▁of▁file(...TRUNCATED) | [{"path":"docs/source/creating_input_files.md","relation":"component","content_policy":"full","role"(...TRUNCATED) | 7,924 | {"component":1,"counter":"tokens"} |
the-stack-go-samples
Training samples generated from the s0duku/the-stack-go ge2 dataset, which is
a strict star_events_count > 1 export of The Stack v2.
Available datasets
8k
- Directory:
8k/ - Maximum context: 8,192 tokens
- Shards: 64 Parquet files
- Samples: 17,670,028
- Total tokens: 100,988,533,457
- Source repositories: 3,246,224
- Repositories represented in samples: 3,239,349
- Parquet size: approximately 58.9 GiB
- Tokenizer:
deepseek-ai/DeepSeek-V4-Flash-Base - Tokenizer revision:
8855555deef230a27a21a8d6f294b7b7497759b6
8k/manifest.json records the generation configuration and per-shard statistics.
Schema
Each row contains:
| Field | Type | Description |
|---|---|---|
sample_id |
string | Stable sample identifier |
repo_id |
string | Source repository name |
revision_id |
string | Source repository revision |
kind |
string | dependency or target_context |
text |
large_string | Rendered training text with repository/file boundaries |
files |
list | File provenance for the rendered content |
token_count |
int32 | Exact token count of text |
metadata_json |
large_string | JSON-encoded sample metadata |
The nested files fields are:
path, relation, content_policy, role, language, bytes, part, parts
token_count is an upper-bounded length, not a fixed length. The maximum is
8,192 tokens, while individual samples may be shorter.
Reading
Stream the dataset instead of loading all Parquet rows into memory:
from datasets import load_dataset
ds = load_dataset(
"s0duku/the-stack-go-samples",
"8k",
split="train",
streaming=True,
)
for row in ds.take(3):
print(row["repo_id"], row["kind"], row["token_count"])
Or read a single local shard with PyArrow:
import pyarrow.parquet as pq
table = pq.read_table("8k/train-00000-of-00064.parquet")
print(table.schema)
Source and licensing
The samples are derived from The Stack v2 and preserve repository/file provenance. Source licenses and removal requests remain governed by the original dataset and upstream content providers. There is no single license for all included source code.
Generation notes
Samples are dependency-aware and repository-scoped. Dependency samples present
files in dependency-first order. Sample text can contain structure markers such
as <|begin▁of▁repo▁name|> and <|begin▁of▁file|>; these are tokenizer
control markers, not part of the original source content.
- Downloads last month
- 167