parameters: (file_content, file_path)
return_statement: return file_content
docstring: Adds one and only one LF at the end of the file.
docstring_summary: Adds one and only one LF at the end of the file.
docstring_tokens: Adds one and only one LF at the end of the file .
function: def EOFOneAndOnlyOneNewlineAdder(file_content, file_path):
    """Adds one and only one LF at the end of the file."""
    if file_content and (file_content[-1] != '\n' or file_content[-2:-1] == '\n'):
      file_content = file_content.rstrip()
      file_content += '\n'
      print 'Added exactly one newline to %s' % file_path
    return file_content
function_tokens: def EOFOneAndOnlyOneNewlineAdder ( file_content , file_path ) : if file_content and ( file_content [ - 1 ] != '\n' or file_content [ - 2 : - 1 ] == '\n' ) : file_content = file_content . rstrip ( ) file_content += '\n' print 'Added exactly one newline to %s' % file_path return file_content