def getProjectNameFromPath(path):
    name = os.path.basename(path)

    # Remove folder SHA1 postfix when cloned via git etc.
    clone = repositoryFolder.match(name)
    if clone is not None:
        name = clone.group(1)

    # Slashes are often used as a separator to optional data
    if name in "-":
        name = name[:name.rindex("-")]

    return name
dataset/ETHPy150Open zynga/jasy/jasy/core/Project.py/getProjectNameFromPath/swapped operands of `in`