def read_results()

in code/run_eval_prm_trl.py [0:0]


def read_results(path: Path) -> list[dict[str, bool | str | int]]:
    """Read the already generated results and prepare the data structure. """
    results = []
    with path.open() as file:
        for line in file:
            results.append(json.loads(line))
    return results