def METHOD_NAME(cls, project):
    """Method called to retrieve namespace and repo.
    :arg Project project: a :class:`anitya.db.models.Project` object whose backend
        corresponds to the current plugin.
    :return: string namespace and string repo
    :return type: two strings
    """
    namespace = repo = url = ""
    if project.version_url and project.version_url.startswith(cls.prefix):
        url = project.version_url[len(cls.prefix) :]
    elif project.homepage.startswith(cls.prefix):
        url = project.homepage[len(cls.prefix) :]
    if url:
        namespace, repo = url.split("/")[0:2]
    else:
        namespace = project.name if not namespace else namespace
    namespace = namespace.replace("+", r"\+")
    repo = "git" if repo in ["", "ci"] else repo
    return namespace, repo