зеркало из https://github.com/mozilla/bugbug.git
Move Python modules to a 'bugbug' subdirectory
This commit is contained in:
Родитель
4c2747b56c
Коммит
d1db546fb0
|
@ -9,7 +9,7 @@ import os
|
|||
import requests
|
||||
from libmozdata import bugzilla
|
||||
|
||||
import db
|
||||
from bugbug import db
|
||||
|
||||
BUGS_DB = 'data/bugs.json'
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import csv
|
||||
|
||||
import bugzilla
|
||||
from bugbug import bugzilla
|
||||
|
||||
|
||||
def get_tracking_labels():
|
|
@ -8,7 +8,7 @@ import re
|
|||
|
||||
import hglib
|
||||
|
||||
import db
|
||||
from bugbug import db
|
||||
|
||||
COMMITS_DB = 'data/commits.json'
|
||||
|
|
@ -3,11 +3,11 @@
|
|||
# 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/.
|
||||
|
||||
import bugbug
|
||||
import bugzilla
|
||||
from labels import get_labels
|
||||
from bugbug import bug_rules
|
||||
from bugbug import bugzilla
|
||||
from bugbug import labels
|
||||
|
||||
classes = get_labels()
|
||||
classes = labels.get_labels()
|
||||
|
||||
true_positives = 0
|
||||
true_negatives = 0
|
||||
|
@ -22,7 +22,7 @@ for bug in bugzilla.get_bugs():
|
|||
|
||||
is_bug = classes[bug_id]
|
||||
|
||||
is_bug_pred = bugbug.is_bug(bug)
|
||||
is_bug_pred = bug_rules.is_bug(bug)
|
||||
|
||||
if is_bug_pred and is_bug:
|
||||
true_positives += 1
|
||||
|
|
10
run.py
10
run.py
|
@ -18,11 +18,11 @@ from sklearn.model_selection import train_test_split
|
|||
from sklearn.pipeline import FeatureUnion
|
||||
from sklearn.pipeline import Pipeline
|
||||
|
||||
import bug_features
|
||||
import bugzilla
|
||||
import repository
|
||||
from labels import get_labels
|
||||
from utils import ItemSelector
|
||||
from bugbug import bug_features
|
||||
from bugbug import bugzilla
|
||||
from bugbug import repository
|
||||
from bugbug.labels import get_labels
|
||||
from bugbug.utils import ItemSelector
|
||||
|
||||
nlp = spacy.load('en')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче