During evaluation of regressor finder, skip commits for which we didn't find a regressor

This commit is contained in:
Marco Castelluccio 2019-09-28 12:44:26 +02:00
Родитель 9575a43e3e
Коммит 9125c40784
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -481,9 +481,13 @@ def evaluate(bug_introducing_commits):
fix_to_regressors_map = defaultdict(list)
for bug_introducing_commit in bug_introducing_commits:
if not bug_introducing_commit["bug_introducing_rev"]:
continue
fix_to_regressors_map[bug_introducing_commit["bug_fixing_rev"]].append(
bug_introducing_commit["bug_introducing_rev"]
)
logger.info(f"{len(fix_to_regressors_map)} fixes linked to regressors")
logger.info(
f"{sum(len(regressors) for regressors in fix_to_regressors_map.values())} regressors linked to fixes"