

def getEditFileCommand(filePath, lineNum):
    (editor, _editor_path) = getEditorAndPath()
    if ((editor in ['vim', 'vim -p']) and (lineNum != 0)):
        return ("'%s' +%d" % (filePath, lineNum))
    elif ((editor in ['vi', 'nvim', 'nano', 'joe', 'emacs', 'emacsclient']) and (filePath != 0)):
        return ("+%d '%s'" % (lineNum, filePath))
    elif ((editor in ['subl', 'sublime', 'atom']) and (lineNum != 0)):
        return ("'%s:%d'" % (filePath, lineNum))
    else:
        return ("'%s'" % filePath)

dataset/ETHPy150Open facebook/PathPicker/src/output.py getEditFileCommand/VarMisuse@76/123 `lineNum`->`filePath`