<reponame>exactpro/nostradamus
from sklearn.feature_extraction import text

WEEKDAYS_SW = [
    "monday",
    "mon",
    "tuesday",
    "tue",
    "wednesday",
    "wed",
    "thursday",
    "thu",
    "friday",
    "fri",
    "saturday",
    "sat",
    "sunday",
    "sun",
]

MONTHS_SW = [
    "january",
    "jan",
    "february",
    "feb",
    "march",
    "mar",
    "april",
    "apr",
    "may",
    "june",
    "jun",
    "july",
    "jul",
    "august",
    "aug",
    "september",
    "sep",
    "october",
    "oct",
    "november",
    "nov",
    "december",
    "dec",
]

STOP_WORDS = text.ENGLISH_STOP_WORDS.difference(
    ("see", "system", "call")
).union(WEEKDAYS_SW, MONTHS_SW, ["having", "couldn"])

DEFAULT_PREDICTIONS_TABLE_FIELDS = [
    "Issue Key",
    "Priority",
    "Area of Testing",
    "Time to Resolve",
    "Summary",
]

UNRESOLVED_BUGS_FILTER = {
    "name": "Resolution",
    "type": "drop-down",
    "current_value": "Unresolved",
    "exact_match": False,
}

MANDATORY_FIELDS = [
    "Description_tr",
    "Time to Resolve",
    "Resolution",
    "Attachments",
    "Comments",
    "Resolved",
    "Resolution",
    "Created",
    "Updated",
    "Assignee",
    "Reporter",
    "Key",
]

from sklearn.feature_extraction import text

WEEKDAYS_SW = [
    "monday",
    "mon",
    "tuesday",
    "tue",
    "wednesday",
    "wed",
    "thursday",
    "thu",
    "friday",
    "fri",
    "saturday",
    "sat",
    "sunday",
    "sun",
]

MONTHS_SW = [
    "january",
    "jan",
    "february",
    "feb",
    "march",
    "mar",
    "april",
    "apr",
    "may",
    "june",
    "jun",
    "july",
    "jul",
    "august",
    "aug",
    "september",
    "sep",
    "october",
    "oct",
    "november",
    "nov",
    "december",
    "dec",
]

STOP_WORDS = text.ENGLISH_STOP_WORDS.difference(
    ("see", "system", "call")
).union(WEEKDAYS_SW, MONTHS_SW, ["having", "couldn"])

DEFAULT_PREDICTIONS_TABLE_FIELDS = [
    "Issue Key",
    "Priority",
    "Area of Testing",
    "Time to Resolve",
    "Summary",
]

UNRESOLVED_BUGS_FILTER = {
    "name": "Resolution",
    "type": "drop-down",
    "current_value": "Unresolved",
    "exact_match": False,
}

MANDATORY_FIELDS = [
    "Description_tr",
    "Time to Resolve",
    "Resolution",
    "Attachments",
    "Comments",
    "Resolved",
    "Resolution",
    "Created",
    "Updated",
    "Assignee",
    "Reporter",
    "Key",
]