3b7d663888731885d0bda196dc416705be8c4bed,polyaxon/libs/blacklist.py,,,#,3

Before Change

from django.core.exceptions import ValidationError

NAME_BLACKLIST = [
    "user",
    "users",
    "admin",
    "admins",
    "experiment",
    "experiments",
    "experiment_group",
    "experiment_groups",
    "project",
    "projects",
    "api",
    "polyaxon",
    "dashboard",
    "index",
    "log",
    "logs",
    "metric",
    "metrics",
    "perspectives",
    "portfolio",
    "public",
    "revision",
    "revisions",
    "version",
    "versions",
    "support",
    "tryout",
    "repo",
    "repos",
    "cluster",
    "event",
    "events",
]

After Change

from django.core.exceptions import ValidationError

NAME_BLACKLIST = {
    "user",
    "admin",
    "experiment",
    "experiment_group",
    "experimentgroup",
    "project",
    "api",
    "polyaxon",
    "dashboard",
    "index",
    "log",
    "metric",
    "portfolio",
    "public",
    "revision",
    "version",
    "support",
    "tryout",
    "repo",
    "cluster",
    "event",
    "manage",
    "login",
    "account",
    "register",
    "accept",
    "organization",
    "team",
    "help",
    "doc",
    "logout",
    "404",
    "500",
    "static",
    "_static",
    "out",
    "debug",
    "remote",
    "cli",
    "blog",
    "welcome",
    "feature",
    "customer",
    "integration",
    "signup",
    "pricing",
    "subscribe",
    "enterprise",
    "about",
    "job",
    "thank",
    "guide",
    "privacy",
    "security",
    "term",
    "from",
    "sponsorship",
    "for",
    "at",
    "platform",
    "branding",
    "vs",
    "answers",
    "_admin",
    "support",
    "contact",
    "ext",
    "extension",
    "plugin",
    "monitor",
    "setting",
    "legal",
    "avatar",
}
NAME_BLACKLIST |= {"{}s".format(b) for b in NAME_BLACKLIST}


def validate_blacklist_name(name):
    Validates slug name against a blacklist
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: polyaxon/polyaxon
Commit Name: 3b7d663888731885d0bda196dc416705be8c4bed
Time: 2018-05-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/libs/blacklist.py
Class Name:
Method Name:


Project Name: explosion/spacy-models
Commit Name: 6774c158c903b75b9ef19848626e74c71792dba6
Time: 2019-07-04
Author: b.boeing@online.de
File Name: tests/lang/de/test_tagger.py
Class Name:
Method Name: test_de_tagger_tagset


Project Name: nltk/nltk
Commit Name: 37eac0fbe208a5c659580101d55c62ef76b79123
Time: 2017-05-29
Author: pnlbagan@gmail.com
File Name: nltk/sentiment/vader.py
Class Name:
Method Name: