import csv


def get_language_metrics(report_file, reader=None):
    """Get the language metrics from the report file."""

    metrics = {}

    with open(report_file, "r", newline="\n", encoding="utf-8") as csv_file:
        csv_reader = reader or csv.DictReader(csv_file, delimiter=",")
        for row in csv_reader:
            metrics[row["Language"]] = row["Lines Of Code"]

    return metrics