def format_run_names()

in benchmarks/run_benchmarks.py [0:0]


def format_run_names(run_names, sparse_format, problem):
    """Selects and formats run names based on sparse format and problem"""
    formatted_run_names = ["|".join(r.split("|")[2:-1]).strip() for r in run_names]

    # remove sketch size and other properties from cg and direct
    for i, run_name in enumerate(run_names):
        if "direct" in run_name:
            formatted_run_names[i] = "direct"
        elif "cg" in run_name:
            formatted_run_names[i] = "cg"

    return formatted_run_names