Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
text: string
quality_meta: null
language: string
size: int64
trained_before: bool
source_query: string
url: string
split: string
repo: string
path: string
extension: string
content: string
content_hash: string
collected_at: string
to
{'repo': Value('string'), 'language': Value('string'), 'extension': Value('string'), 'path': Value('string'), 'url': Value('string'), 'content': Value('string'), 'content_hash': Value('string'), 'size': Value('int64'), 'collected_at': Value('string'), 'quality_meta': Json(decode=True), 'trained_before': Value('bool'), 'source_query': Value('string'), 'split': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              text: string
              quality_meta: null
              language: string
              size: int64
              trained_before: bool
              source_query: string
              url: string
              split: string
              repo: string
              path: string
              extension: string
              content: string
              content_hash: string
              collected_at: string
              to
              {'repo': Value('string'), 'language': Value('string'), 'extension': Value('string'), 'path': Value('string'), 'url': Value('string'), 'content': Value('string'), 'content_hash': Value('string'), 'size': Value('int64'), 'collected_at': Value('string'), 'quality_meta': Json(decode=True), 'trained_before': Value('bool'), 'source_query': Value('string'), 'split': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

repo
string
language
string
extension
string
path
string
url
string
content
string
content_hash
string
size
int64
collected_at
string
quality_meta
unknown
trained_before
bool
source_query
string
split
string
python/typeshed
python
py
scripts/stubsabot.py
https://github.com/python/typeshed/blob/050197c28b67d4337beee37842fb61f5e1b552d2/scripts/stubsabot.py
#!/usr/bin/env python3 from __future__ import annotations import argparse import asyncio import calendar import contextlib import datetime import enum import functools import io import os import re import shutil import subprocess import sys import tarfile import textwrap import urllib.parse import zipfile from collect...
57ed318c7bee97f57decaba8bfd68727c92028f0d780398cb4e3e579e771bebd
0
2026-08-28T13:55:24.011006
{ "original_length": 41765, "comment_ratio": 0.055, "ngram_diversity": 0.34600000000000003, "keyword_count": 14, "syntax_valid": true }
false
stars:>3000 language:python
train
python/typeshed
python
py
lib/ts_utils/mypy.py
https://github.com/python/typeshed/blob/050197c28b67d4337beee37842fb61f5e1b552d2/lib/ts_utils/mypy.py
from __future__ import annotations import sys from collections.abc import Generator, Iterable from contextlib import contextmanager from typing import Any, NamedTuple if sys.version_info >= (3, 11): import tomllib else: import tomli as tomllib from ts_utils.metadata import StubtestSettings, metadata_path fro...
e7072956ea1c61de2faac92203499183a3d7e486c6e0a3d8e3c036166a4851f3
0
2026-08-28T13:55:23.832091
{ "original_length": 3006, "comment_ratio": 0.129, "ngram_diversity": 0.509, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
usestrix/strix
python
py
strix/core/hooks.py
https://github.com/usestrix/strix/blob/717ffc8f4cbd52614b23cf9504bbfd96b94312b4/strix/core/hooks.py
"""SDK run hooks used by Strix orchestration.""" from __future__ import annotations import logging import math from typing import TYPE_CHECKING, Any from agents.lifecycle import RunHooks from strix.report.state import get_global_report_state if TYPE_CHECKING: from agents import RunContextWrapper from agen...
45f33624568379106381bfeb6d5b7441cb1fc43f8d2a95424950ea77f8dc961e
0
2026-08-28T13:54:23.067751
{ "original_length": 10685, "comment_ratio": 0, "ngram_diversity": 0.42, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
cactus-compute/needle
python
py
needle/__init__.py
https://github.com/cactus-compute/needle/blob/af6bed6f5942a7eab5513c13013d2b37416b314e/needle/__init__.py
from __future__ import annotations import ctypes import json import os import sys import warnings from .agent.tools import Field, build_schema, pydantic_schema, tool, _is_pydantic_model __version__ = "2.0.8" __all__ = ["Needle", "tool", "Field", "extract", "__version__"] def _library_path(): from .agent import...
992393aa5905869faab560ee80bdd6566b62ea57cbdc0337991874de1cb5c56d
0
2026-08-28T13:54:27.596264
{ "original_length": 7371, "comment_ratio": 0, "ngram_diversity": 0.52, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
usestrix/strix
python
py
strix/llm/warmup.py
https://github.com/usestrix/strix/blob/717ffc8f4cbd52614b23cf9504bbfd96b94312b4/strix/llm/warmup.py
"""Background pre-import of the heavy scan dependencies. The scan engine's import graph (the agents SDK, OpenAI client, LiteLLM, the Caido SDK, the Docker SDK) costs seconds to import cold, but none of it is needed until a scan actually starts. Importing it on a daemon thread at CLI entry overlaps that cost with the I...
f8dc924ea888920332ebd2fa7c93162d413e0112aed202b9db9b55565aa56b52
0
2026-08-28T13:54:23.208780
{ "original_length": 1825, "comment_ratio": 0, "ngram_diversity": 0.759, "keyword_count": 8, "syntax_valid": true }
false
stars:>3000 language:python
train
pipeshub-ai/pipeshub-ai
python
py
loadtest/aggregate.py
https://github.com/pipeshub-ai/pipeshub-ai/blob/b262a328a94f1d213919d868ca0ad47f39f4f81b/loadtest/aggregate.py
#!/usr/bin/env python3 """Roll every run's `summary.json` into one table and a CSV. ./aggregate.py [results_dir] Reports the MEDIAN of each group's trials, not the mean: one run whose drain tail stretched the window is an outlier of the measurement, not of the system, and a median ignores it. The spread column is...
2ec2c25ca5e197f13eef2a5a6b98197ba48f55fc1dd97aaf697c20ef564cdbfb
0
2026-08-28T13:55:26.575110
{ "original_length": 5161, "comment_ratio": 0.01, "ngram_diversity": 0.671, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
ultralytics/ultralytics
python
py
docs/model_data.py
https://github.com/ultralytics/ultralytics/blob/56d6f980a799220ab84291fbb309c796e7a1d049/docs/model_data.py
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """ Module for YOLO model metadata. This module stores detailed metadata for various YOLO models including authors, organizations, publication dates, arXiv links, GitHub repositories, documentation URLs, and performance metrics. When executed as a scr...
e0e9f4a8fa15a063903207722987ea33caa18295bd694b02c651b0fbbc7c5c4e
0
2026-08-28T13:55:28.849530
{ "original_length": 20347, "comment_ratio": 0.009000000000000001, "ngram_diversity": 0.279, "keyword_count": 4, "syntax_valid": true }
false
stars:>3000 language:python
train
langflow-ai/langflow
python
py
scripts/gp/upload.py
https://github.com/langflow-ai/langflow/blob/da3d5050e83e55f885e0627245676933a867d06b/scripts/gp/upload.py
"""Upload English source strings to GP. Usage: python upload.py --target frontend --source path/to/en.json python upload.py --target backend [--source path/to/en.json] """ from __future__ import annotations import argparse import json import os from pathlib import Path import requests from gp_client import ...
1d855c73a072b927d0b9f648538bfc8ee73146a5525a91fd7411c183bab425fe
0
2026-08-28T13:54:25.292559
{ "original_length": 4004, "comment_ratio": 0, "ngram_diversity": 0.497, "keyword_count": 6, "syntax_valid": true }
false
stars:>3000 language:python
train
dlt-hub/dlt
python
py
dlt/version.py
https://github.com/dlt-hub/dlt/blob/94112ae3a7039d5e05c9af81f68d744fa943ae0b/dlt/version.py
from importlib.metadata import version as pkg_version, distribution as pkg_distribution from typing import Optional from urllib.request import url2pathname from urllib.parse import urlparse from packaging.requirements import Requirement DLT_IMPORT_NAME = "dlt" PKG_NAME = DLT_PKG_NAME = "dlt" __version__ = pkg_version(...
906d9dcf898482f77de44f45b281b726e7558c3ed9b5bed0373dfdfded207cea
0
2026-08-28T13:55:21.862492
{ "original_length": 1763, "comment_ratio": 0.073, "ngram_diversity": 0.591, "keyword_count": 5, "syntax_valid": true }
false
stars:>3000 language:python
train
pipeshub-ai/pipeshub-ai
python
py
loadtest/seed_users.py
https://github.com/pipeshub-ai/pipeshub-ai/blob/b262a328a94f1d213919d868ca0ad47f39f4f81b/loadtest/seed_users.py
#!/usr/bin/env python3 """Provision load-test users on a local stack. The accessible-record cache is keyed per user, so a run driven by one identity measures a cache hit rate no real deployment would see. This creates N users that all share the org's knowledge bases, so the multi-user run exercises the real thing. Cr...
081727f2f6966f456a4e62fe1c816629de8112844f55f9f7399cdd7d1f38acd6
0
2026-08-28T13:55:26.702098
{ "original_length": 10324, "comment_ratio": 0.023, "ngram_diversity": 0.541, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
xingpingcn/enhanced-FaaS-in-China
python
py
db.py
https://github.com/xingpingcn/enhanced-FaaS-in-China/blob/2b331c7fbcbade5a7da8c87c984b3c9c9f0e10cf/db.py
import aiosqlite,asyncio,time from sqlite3 import IntegrityError from config import RECORD_HP,REVIVE,REVIVE_PERIOD __all__ = ('DB',) class DB(): def __init__(self, platform:str, db_object:aiosqlite.Connection) : self.db = db_object self.platform = platform async def _init(self): ...
d084b05ed7ce3fa6a6d57038627efd014a927fa9f3d4b8917dccdbb7ba265044
0
2026-08-28T13:55:19.444935
{ "original_length": 9206, "comment_ratio": 0.029, "ngram_diversity": 0.31, "keyword_count": 11, "syntax_valid": true }
false
stars:>3000 language:python
train
PostHog/posthog
python
py
ee/urls.py
https://github.com/PostHog/posthog/blob/9ea8a32c05d9bb6c7665875d97f4872449fecd7e/ee/urls.py
from typing import Any from django.conf import settings from django.contrib import admin from django.contrib.admin.exceptions import NotRegistered from django.urls import include, path, re_path from django.views.decorators.csrf import csrf_exempt from django.views.generic import RedirectView from django_otp.plugins.o...
72597225d4f5f796aa9f04afe9b54dc07979c14d15d36ece790216b87dbde44e
0
2026-08-28T13:54:18.738861
{ "original_length": 11296, "comment_ratio": 0.024, "ngram_diversity": 0.343, "keyword_count": 6, "syntax_valid": true }
false
stars:>3000 language:python
train
xingpingcn/enhanced-FaaS-in-China
python
py
main.py
https://github.com/xingpingcn/enhanced-FaaS-in-China/blob/2b331c7fbcbade5a7da8c87c984b3c9c9f0e10cf/main.py
import asyncio,aiosqlite,aiohttp from platforms_to_test import * from platforms_to_test import __all__ import set_DNS_record_to_HWcloud from config import CNAME_BASE_URL async def task(platform,db): async with globals()[f'{platform}'](db) as core: return await core.run() async def main(): ...
c0c7c747dfad504315054e845e3ca955ff2056538e34afbaa01d948e66674ee3
0
2026-08-28T13:55:19.617053
{ "original_length": 1062, "comment_ratio": 0.08700000000000001, "ngram_diversity": 0.639, "keyword_count": 8, "syntax_valid": true }
false
stars:>3000 language:python
train
odoo/odoo
python
py
setup.py
https://github.com/odoo/odoo/blob/5c105f5807d6c4146c307884cd926469df287550/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ruff: noqa: F821 # (ruff don't see read variables from release.py) from setuptools import find_namespace_packages, setup from os.path import join, dirname exec(open(join(dirname(__file__), 'odoo', 'release.py'), 'rb').read()) # Load release variables lib_name = 'odoo'...
ad26a2cba1d54c3f3d4f0425d0a33beae32219d4599a80e5ad31b37ee57154a8
0
2026-08-28T13:54:20.995923
{ "original_length": 1966, "comment_ratio": 0.055, "ngram_diversity": 0.776, "keyword_count": 3, "syntax_valid": true }
false
stars:>3000 language:python
train
ultralytics/ultralytics
python
py
docs/build_docs.py
https://github.com/ultralytics/ultralytics/blob/56d6f980a799220ab84291fbb309c796e7a1d049/docs/build_docs.py
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license """Prepare and validate the complete documentation tree with Zensical.""" from __future__ import annotations import os import shutil import subprocess import tempfile from pathlib import Path import yaml from build_reference import build_reference_d...
2deabdd4aa8d77c882738b815fcd6c402d4c80c12121a0a63c89a146ce2ac5d0
0
2026-08-28T13:55:28.978402
{ "original_length": 9139, "comment_ratio": 0.046, "ngram_diversity": 0.541, "keyword_count": 9, "syntax_valid": true }
false
stars:>3000 language:python
train
coding-kitties/investing-algorithm-framework
python
py
scripts/bench_487.py
https://github.com/coding-kitties/investing-algorithm-framework/blob/cecda8b429fe4eb931db754dcc63bdf210aa9d81/scripts/bench_487.py
"""Size + speed comparison for issue #487.""" import copy import os import tempfile import time from investing_algorithm_framework.domain import ( load_backtests_from_directory, save_backtests_to_directory, ) def dir_size(path): if os.path.isfile(path): return os.path.getsize(path) total = 0 ...
126896727de6bf3d5508c5a6790257314399cfcce7225ce3a7f35c5622e1d745
0
2026-08-28T13:56:29.279798
{ "original_length": 3946, "comment_ratio": 0, "ngram_diversity": 0.5, "keyword_count": 6, "syntax_valid": true }
false
stars:1000..3000 language:python
train
ascending-llc/jarvis-registry
python
py
scripts/vector_sync.py
https://github.com/ascending-llc/jarvis-registry/blob/aa7b74a8bd492497946665b42004c4ff71d24714/scripts/vector_sync.py
""" Vector DB Sync Script for MCP Gateway Registry Synchronizes MCP servers and/or A2A agents from MongoDB to the vector database for semantic search. Each entity is fully rebuilt (delete existing docs + reinsert), so the script is safe to re-run and will correct any stale or missing data. Reads connection settings f...
e2b3775fc9486a711d177a860c1851c2f96074ce23cf776714bfd5992c9fe410
0
2026-08-28T13:57:23.727295
{ "original_length": 13586, "comment_ratio": 0, "ngram_diversity": 0.401, "keyword_count": 11, "syntax_valid": true }
false
stars:1000..3000 language:python
train
dj-stripe/dj-stripe
python
py
manage.py
https://github.com/dj-stripe/dj-stripe/blob/4a011bbd1e0bf59594a7202c951c4d421bda0793/manage.py
#!/usr/bin/env python import os import sys try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Run `uv sync` to set up a virtual environment first." ) from exc def main(): os.environ.setdefault("DJANGO_SETTIN...
6fcff0aad0d28fe520c9d0d74791f6f19faec72ca182328a068d8a2e1991d11f
0
2026-08-28T13:56:26.943911
{ "original_length": 430, "comment_ratio": 0.07100000000000001, "ngram_diversity": 0.8300000000000001, "keyword_count": 5, "syntax_valid": true }
false
stars:1000..3000 language:python
train
dj-stripe/dj-stripe
python
py
djstripe/apps.py
https://github.com/dj-stripe/dj-stripe/blob/4a011bbd1e0bf59594a7202c951c4d421bda0793/djstripe/apps.py
""" dj-stripe - Django + Stripe Made Easy """ from importlib.metadata import version from django.apps import AppConfig __version__ = version("dj-stripe") class DjstripeAppConfig(AppConfig): """ An AppConfig for dj-stripe which loads system checks and event handlers once Django is ready. """ na...
44e2995856b6f48639cdced373ff7514c31b3e0de65251d04b357f7d5df0a32d
0
2026-08-28T13:56:27.103007
{ "original_length": 959, "comment_ratio": 0.138, "ngram_diversity": 0.753, "keyword_count": 5, "syntax_valid": true }
false
stars:1000..3000 language:python
train
Snowflake-Labs/pg_lake
python
py
tools/generate_duckdb_kwlist.py
https://github.com/Snowflake-Labs/pg_lake/blob/e4e17c8610f6531c9c25b812b313612acebdd41b/tools/generate_duckdb_kwlist.py
#!/usr/bin/env python3 """ Generate pg_lake_engine/src/pgduck/duckdb_kwlist.h from the vendored DuckDB keyword list. The DuckDB parser uses a fork of the PostgreSQL keyword list, extended with DuckDB-specific reserved words (PIVOT, LAMBDA, QUALIFY, etc.) that PostgreSQL does not know about. Without this list, quote_i...
f1b7ed505d712901b42117c7208b9baa7fd54a88300907d53f592b7e8dc2fa1f
0
2026-08-28T13:57:30.615310
{ "original_length": 6114, "comment_ratio": 0.038, "ngram_diversity": 0.613, "keyword_count": 9, "syntax_valid": true }
false
stars:1000..3000 language:python
train
End of preview.

No dataset card yet

Downloads last month
5,240