original_docstring: 
      Create a new page commit entry in the log.
      The pending status indicates that one should refer to the pending commits for more information.
      :param db: The db session to use.
      :param commit: The page commit to try to commit.
      :return: The tid of the newly created transaction log entry.
      
docstring: Create a new page commit entry in the log.
  The pending status indicates that one should refer to the pending commits for more information.
docstring_tokens: Create a new page commit entry in the log . The pending status indicates that one should refer to the pending commits for more information .
code: def new_page_commit_to_log(db: Session, commit: RequestPageCommit):
      """
      Create a new page commit entry in the log.
      The pending status indicates that one should refer to the pending commits for more information.
      :param db: The db session to use.
      :param commit: The page commit to try to commit.
      :return: The tid of the newly created transaction log entry.
      """
      db_log = models.Log(type='page', status='pending', name=commit.page, content=commit.content, admin=False)
      db.add(db_log)
      db.commit()
      db.refresh(db_log)  # updates db_log to have the db assigned tid
      tid = db_log.tid
      return tid
code_tokens: def new_page_commit_to_log ( db : Session , commit : RequestPageCommit ) : db_log = models . Log ( type = 'page' , status = 'pending' , name = commit . page , content = commit . content , admin = False ) db . add ( db_log ) db . commit ( ) db . refresh ( db_log ) tid = db_log . tid return tid
short_docstring: Create a new page commit entry in the log.
short_docstring_tokens: Create a new page commit entry in the log .
comment: """
      Create a new page commit entry in the log.
      The pending status indicates that one should refer to the pending commits for more information.
      :param db: The db session to use.
      :param commit: The page commit to try to commit.
      :return: The tid of the newly created transaction log entry.
      """$SEP$# updates db_log to have the db assigned tid