From 0a7ce5b763f02cac41a66e53efad1b6296decf5e Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 4 Jun 2019 00:57:07 +0200 Subject: [PATCH] No need to limit the overall number of bug IDs to consider, as long as we limit the number of duplicate bugs to consider --- bugbug/models/duplicate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bugbug/models/duplicate.py b/bugbug/models/duplicate.py index 16200fff..ea88fa03 100644 --- a/bugbug/models/duplicate.py +++ b/bugbug/models/duplicate.py @@ -3,8 +3,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. -from itertools import islice - from imblearn.over_sampling import BorderlineSMOTE from sklearn.calibration import CalibratedClassifierCV from sklearn.compose import ColumnTransformer @@ -64,7 +62,7 @@ class DuplicateModel(BugCoupleModel): def get_labels(self): bugs = [] - for bug_data in islice(bugzilla.get_bugs(), 0, NUM_DUPLICATES): + for bug_data in bugzilla.get_bugs(): if ( bug_data["creator"] in REPORTERS_TO_IGNORE or "dupeme" in bug_data["keywords"]