Skip to content

Score Aggregation

Utilities for repeated-judge score aggregation.

This module provides pure helper functions used by repeated-judge score aggregation logic.

build_score_distribution(scores)

Build an ordered score distribution for repeated-judge outputs.

format_distribution_value(value)

Format a score value for score distribution output.

get_first_valid_result_index(valid_scores, valid_indices, target_score)

Return the original result index of the first matching valid score.

get_unique_scores_in_input_order(scores)

Return unique scores while preserving first-seen input order.

is_integral_numeric_value(value)

Return True when value is a non-bool integral numeric value.

is_numeric(scores)

Return True when all scores are numeric and not bool.

score_matches(left, right)

Compare two score values using numeric-aware equality.