Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
15 values
file_path
stringlengths
4
92
text
stringlengths
149
100k
flask
src/flask/logging.py
### Repository: flask ### File: src/flask/logging.py from __future__ import annotations import logging import sys import typing as t from werkzeug.local import LocalProxy from .globals import request if t.TYPE_CHECKING: # pragma: no cover from .sansio.app import App @LocalProxy def wsgi_errors_stream() -> t...
flask
src/flask/config.py
### Repository: flask ### File: src/flask/config.py from __future__ import annotations import errno import json import os import types import typing as t from werkzeug.utils import import_string if t.TYPE_CHECKING: import typing_extensions as te from .sansio.app import App T = t.TypeVar("T") class Conf...
flask
src/flask/cli.py
### Repository: flask ### File: src/flask/cli.py from __future__ import annotations import ast import collections.abc as cabc import importlib.metadata import inspect import os import platform import re import sys import traceback import typing as t from functools import update_wrapper from operator import itemgetter...
flask
src/flask/__init__.py
### Repository: flask ### File: src/flask/__init__.py from . import json as json from .app import Flask as Flask from .blueprints import Blueprint as Blueprint from .config import Config as Config from .ctx import after_this_request as after_this_request from .ctx import copy_current_request_context as copy_current_re...
flask
src/flask/app.py
### Repository: flask ### File: src/flask/app.py from __future__ import annotations import collections.abc as cabc import inspect import os import sys import typing as t import weakref from datetime import timedelta from functools import update_wrapper from inspect import iscoroutinefunction from itertools import cha...
flask
src/flask/testing.py
### Repository: flask ### File: src/flask/testing.py from __future__ import annotations import importlib.metadata import typing as t from contextlib import contextmanager from contextlib import ExitStack from copy import copy from types import TracebackType from urllib.parse import urlsplit import werkzeug.test from...
flask
src/flask/views.py
### Repository: flask ### File: src/flask/views.py from __future__ import annotations import typing as t from . import typing as ft from .globals import current_app from .globals import request F = t.TypeVar("F", bound=t.Callable[..., t.Any]) http_method_funcs = frozenset( ["get", "query", "post", "head", "opt...
flask
src/flask/wrappers.py
### Repository: flask ### File: src/flask/wrappers.py from __future__ import annotations import typing as t from werkzeug.exceptions import BadRequest from werkzeug.exceptions import HTTPException from werkzeug.wrappers import Request as RequestBase from werkzeug.wrappers import Response as ResponseBase from . impo...
flask
src/flask/typing.py
### Repository: flask ### File: src/flask/typing.py from __future__ import annotations import collections.abc as cabc import typing as t if t.TYPE_CHECKING: # pragma: no cover from _typeshed.wsgi import WSGIApplication # noqa: F401 from werkzeug.datastructures import Headers # noqa: F401 from werkzeug...
flask
src/flask/globals.py
### Repository: flask ### File: src/flask/globals.py from __future__ import annotations import typing as t from contextvars import ContextVar from werkzeug.local import LocalProxy if t.TYPE_CHECKING: # pragma: no cover from .app import Flask from .ctx import _AppCtxGlobals from .ctx import AppContext ...
flask
src/flask/ctx.py
### Repository: flask ### File: src/flask/ctx.py from __future__ import annotations import contextvars import typing as t from functools import update_wrapper from types import TracebackType from werkzeug.exceptions import HTTPException from werkzeug.routing import MapAdapter from . import typing as ft from .global...
End of preview. Expand in Data Studio

Multilingual Code Dataset

A JSONL corpus of source files collected from 15 public software repositories. Each row contains repository and path metadata alongside the source text. This is a raw code corpus, not an instruction, question-answer, or benchmark dataset.

At a Glance

Measure Value
Records 8,955
Source repositories 15
Programming-language file extensions 11
JSONL size 107.8 MiB
Text characters 107,940,634
Tokens 26,643,622 with Qwen/Qwen2.5-Coder-7B tokenizer, without special tokens

Token counts depend on the tokenizer and are provided as a reference, not as a tokenizer-independent property.

Load the Dataset

from datasets import load_dataset

dataset = load_dataset("TrueLLM/multilang-coding", split="train")
print(dataset[0])

To load the JSONL file directly:

from datasets import load_dataset

dataset = load_dataset(
    "json",
    data_files="https://huggingface.co/datasets/TrueLLM/multilang-coding/resolve/main/train.jsonl",
    split="train",
)

Data Format

train.jsonl contains one UTF-8 JSON object per line. Each object has this schema:

Field Type Description
repo string Short name of the source repository
file_path string File path relative to the source repository root
text string Source file prefixed with repository and file-path labels

Example:

{"repo":"flask","file_path":"src/flask/logging.py","text":"### Repository: flask\n### File: src/flask/logging.py\n\nfrom __future__ import annotations\n..."}

The text value has this layout:

### Repository: <repo>
### File: <file_path>

<source file contents>

Language Coverage

Extension Records
.rs 4,207
.h 1,674
.c 864
.py 716
.ts 611
.cpp 582
.java 150
.js 90
.go 54
.hpp 6
.lua 1

Source Repositories

Collection Notes

The collection contains source files that passed basic path and content filters. Documentation, tests, benchmarks, and vendored or dependency directories are excluded. The filters are heuristic and do not guarantee that every file is idiomatic, complete, or suitable for a particular training objective.

The source repositories have different licenses and retain their original copyright notices. other reflects that this combined corpus does not have one common license; it does not relicense the source code. Review the license and terms of each upstream repository before using or redistributing its contents.

References

Downloads last month
32