Actually use the bug-fixing commits queue

This commit is contained in:
Marco Castelluccio 2019-11-12 22:39:12 +01:00
Родитель 858bd07bc6
Коммит ab22e7148c
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -438,9 +438,11 @@ class RegressorFinder(object):
# Analyze up to 500 commits at a time, to avoid the task running out of time. # Analyze up to 500 commits at a time, to avoid the task running out of time.
while len(bug_fixing_commits_queue) != 0 and num_analyzed != 500: while len(bug_fixing_commits_queue) != 0 and num_analyzed != 500:
bug_introducing_commit_futures = [] bug_introducing_commit_futures = []
for _ in range(min(500 - num_analyzed, len(bug_fixing_commits))): for _ in range(
min(500 - num_analyzed, len(bug_fixing_commits_queue))
):
bug_introducing_commit_futures.append( bug_introducing_commit_futures.append(
executor.submit(find_bic, bug_fixing_commits.pop()) executor.submit(find_bic, bug_fixing_commits_queue.pop())
) )
logger.info( logger.info(