From ab22e7148ca4895abecb3f4f25c434faa208744c Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 12 Nov 2019 22:39:12 +0100 Subject: [PATCH] Actually use the bug-fixing commits queue --- scripts/regressor_finder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/regressor_finder.py b/scripts/regressor_finder.py index 763f8a15..f9d23e06 100644 --- a/scripts/regressor_finder.py +++ b/scripts/regressor_finder.py @@ -438,9 +438,11 @@ class RegressorFinder(object): # 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: 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( - executor.submit(find_bic, bug_fixing_commits.pop()) + executor.submit(find_bic, bug_fixing_commits_queue.pop()) ) logger.info(