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:
Returns:

Descriptions of the selected entries.

Return type:

Sequence[SingleRunDescription]

__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:
Returns:

Processed subset or transformation of the input runs.

Return type:

Sequence[SingleRun[DetectionTrace, LabeledData[TypeVar(DataT), TimeseriesAnnotation]]]

__init__(*args, **kwargs)