

def appendIfInvalid(lineObjs):
    invalidLines = [line for line in lineObjs if (not line.isResolvable())]
    if (not invalidLines):
        return
    appendError(INVALID_FILE_WARNING)
    if len([line for line in invalidLines if line.isGitAbbreviatedPath()]):
        appendError(GIT_ABBREVIATION_WARNING)
    appendToFile(('read -p "%s" -r' % CONTINUE_WARNING))

dataset/ETHPy150Open facebook/PathPicker/src/output.py appendIfInvalid/original