def get_metric_values(db, sha):
    results = db.execute(
        '\n'.join((
            'SELECT',
            '    metric_names.name,',
            '    running_value',
            'FROM metric_data',
            'INNER JOIN metric_names ON',
            '    metric_names.id = metric_data.metric_id',
            'WHERE sha = ?',
        )),
        [sha],
    )
    return dict(results)
Gets the metric values from a specific commit.
dataset/ETHPy150Open Yelp/git-code-debt/git_code_debt/logic.py/get_metric_values