<commit_before>(in-package :potato.core)

(declaim #.potato.common::*compile-decl*)

(defvar *current-auth-user* nil
  "Dynamic variable holding a reference to the current user")

(defvar *authenticator-function* nil)
(defvar *external-user-check-function* nil)

(defparameter *login-reference-prefix* "loginkey")

(defclass login-reference ()
  ((user    :type string
            :initarg :user
            :reader login-reference/user
            :persisted-p t)
   (key     :type string
            :initarg :key<commit_msg>Added some docstrings.<commit_after>(in-package :potato.core)

(declaim #.potato.common::*compile-decl*)

(defvar *current-auth-user* nil
  "Dynamic variable holding a reference to the current user")

(defvar *authenticator-function* nil)

(defvar *external-user-check-function* nil
  "If set, this variable should point to a function that is
responsible for handling authentication for a user. This function will
be called with two parameters: the username and the password. A true
result from this function indicates that the username and passwords
are correct.")

(defparameter *login-reference-prefix* "loginkey")

(defclass login-reference ()
  ((user    :type string
            :initarg :user
            :reader login-reference/user
            :persisted-p t)
   (key     :type string
            :initarg :key
{'fraction_non_alphanumeric': 0.1025260029717682, 'fraction_numerical': 0.0, 'mean_word_length': 3.416393442622951, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '621545', 'n_tokens_mistral': 387, 'n_tokens_neox': 382, 'n_words': 128}