def stack_scores(multiple_xs, multiple_ys):
    longest_xs = sorted(multiple_xs, key=(lambda x: len(x)))[(- 1)]
    multiple_padded_ys = []
    for (xs, ys) in zip(multiple_xs, multiple_ys):
        assert (longest_xs[:len(xs)] == xs).all(), (list(xs), list(longest_xs))
        padding = ([np.inf] * (len(longest_xs) - len(xs)))
        padded_ys = np.concatenate([ys, padding])
        multiple_padded_ys.append(padded_ys)
    stacked_ys = np.stack(multiple_padded_ys, (- 1))
    return (longest_xs, stacked_ys)
def stack_scores(multiple_xs, multiple_ys):
    longest_xs = sorted(multiple_xs, key=(lambda x: len(x)))[(- 1)]
    multiple_padded_ys = []
    for (xs, ys) in zip(multiple_xs, multiple_ys):
        assert (longest_xs[:len(xs)] == xs).all(), (list(xs), list(longest_xs))
        padding = ([np.inf] * (len(longest_xs) - len(xs)))
        padded_ys = np.concatenate([ys, padding])
        multiple_padded_ys.append(padded_ys)
    stacked_ys = np.stack(multiple_padded_ys, (- 1))
    return (longest_xs, stacked_ys)