parameters: (self)
return_statement: return result
docstring: Commit recorded changes, turn off recording, return
          changes.
docstring_summary: Commit recorded changes, turn off recording, return
          changes.
docstring_tokens: Commit recorded changes turn off recording return changes .
function: def commit(self):
          """
          Commit recorded changes, turn off recording, return
          changes.
          """
          assert self.record
          result = self.files_written, self.dirs_created
          self._init_record()
          return result
function_tokens: def commit ( self ) : assert self . record result = self . files_written , self . dirs_created self . _init_record ( ) return result