No need to limit the overall number of bug IDs to consider, as long as we limit the number of duplicate bugs to consider

This commit is contained in:
Marco Castelluccio 2019-06-04 00:57:07 +02:00
Родитель 967a038018
Коммит 0a7ce5b763
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -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"]