corpus_inputs.ts

The corpus inputs of a results file, arranged for the inputs table of the docs: by source, with a home input under the library whose samples it is.

view source

Declarations
#

4 declarations

format_provenance
#

corpus_inputs.ts view source

(provenance: Pick<{ repo: string; commit: string; path: string; sha256: string; license: string; note: string | null; }, "commit" | "repo">): string import {format_provenance} from '@ryanatkn/syntax-highlighter-bench/corpus_inputs.js';

An upstream file as owner/repo@commit, the commit shortened.

provenance

type Pick<BenchProvenance, "commit" | "repo">

returns

string

group_inputs
#

corpus_inputs.ts view source

(inputs: readonly { file: string; source: "neutral" | "shiki" | "home" | "harness" | "stress"; home: string | null; lang: string; size: "micro" | "small" | "medium" | "large"; bytes: number; lines: number; sha256: string; synthetic: boolean; provenance: { ...; }[]; derivation: string | null; }[]): InputGroup[] import {group_inputs} from '@ryanatkn/syntax-highlighter-bench/corpus_inputs.js';

The inputs in groups of one source, in source order, each ordered by file.

inputs

type readonly BenchInput[]

returns

InputGroup[]

InputGroup
#

corpus_inputs.ts view source

InputGroup import type {InputGroup} from '@ryanatkn/syntax-highlighter-bench/corpus_inputs.js';

The inputs of one source.

source_key

type string

label

type string

note

type string

inputs

type BenchInput[]

to_provenance_url
#

corpus_inputs.ts view source

(provenance: Pick<{ repo: string; commit: string; path: string; sha256: string; license: string; note: string | null; }, "commit" | "path" | "repo">): string import {to_provenance_url} from '@ryanatkn/syntax-highlighter-bench/corpus_inputs.js';

The page of an upstream file at its pinned commit.

provenance

type Pick<BenchProvenance, "commit" | "path" | "repo">

returns

string

Depends on
#

Imported by
#