

def editFiles(lineObjs):
    partialCommands = []
    logger.addEvent('editing_num_files', len(lineObjs))
    for lineObj in lineObjs:
        (path, num) = (lineObj.getPath(), lineObj.getLineNum())
        partialCommands.append(getEditFileCommand(path, num))
    command = joinEditCommands(partialCommands)
    appendIfInvalid(path)
    appendToFile(command)
    appendExit()

dataset/ETHPy150Open facebook/PathPicker/src/output.py editFiles/VarMisuse@76/108 `lineObjs`->`path`