tooling
Shared tooling types for benchmark modules.
- class pysatl_cpd.benchmark.tooling.BenchmarkEntriesPicker(*args, **kwargs)[source]
Bases:
Protocol[P]Selects a subset of registry keys by an explicit list and options.
- pick(entries, *args, **kwargs)[source]
Select a subset of registry entries based on caller-provided arguments.
- Parameters:
entries (
Sequence[SingleRunDescription]) – Full list of available registry description keys.*args (
ParamSpecArgs) – Positional arguments driving the selection logic.**kwargs (
ParamSpecKwargs) – Keyword arguments driving the selection logic.
- Returns:
Descriptions of the selected entries.
- Return type:
- __init__(*args, **kwargs)
- class pysatl_cpd.benchmark.tooling.BenchmarkEntriesPreparator(*args, **kwargs)[source]
Bases:
Protocol[DataT,P]Transforms or filters runs (e.g. traces + providers) according to options.
- prepare(runs, *args, **kwargs)[source]
Transform or filter a collection of runs according to caller options.
- Parameters:
runs (
Sequence[SingleRun[DetectionTrace,LabeledData[TypeVar(DataT),TimeseriesAnnotation]]]) – Input runs (trace + provider pairs) to process.*args (
ParamSpecArgs) – Positional arguments controlling the transformation.**kwargs (
ParamSpecKwargs) – Keyword arguments controlling the transformation.
- Returns:
Processed subset or transformation of the input runs.
- Return type:
Sequence[SingleRun[DetectionTrace,LabeledData[TypeVar(DataT),TimeseriesAnnotation]]]
- __init__(*args, **kwargs)