<commit_before>(in-package :cepl.host)

;;============================================================
;; API 0
;;
;; This is the 'odd one out' amongst these api files because
;; it was written before I was thinking about versioning the
;; host api.
;;
;; It is the fallback. If no backend is found supporting a
;; more recent version of the host api then this will be used.
;;
;;============================================================
;;
;; Shim for the new system

(defclass api-0 (cepl-host-api) ())
(defmethod check-host ((host api-0)) host)
(defmethod %init ((host api-0) (args list)) args host)

(defvar *api-0-context-singleton*)
(defvar *api-0-window-singleton*)<commit_msg>Proper init for fallback api<commit_after>(in-package :cepl.host)

;;============================================================
;; API 0
;;
;; This is the 'odd one out' amongst these api files because
;; it was written before I was thinking about versioning the
;; host api.
;;
;; It is the fallback. If no backend is found supporting a
;; more recent version of the host api then this will be used.
;;
;;============================================================
;;
;; Shim for the new system

(defclass api-0 (cepl-host-api) ())
(defmethod check-host ((host api-0)) host)
(defmethod %init ((host api-0) (args list))
  (declare (ignore args host))
  (init))

(defvar *api-0-context-singleton*)
(defvar *api-0-window-singleton*)
{'fraction_non_alphanumeric': 0.2861169837914024, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 5.228070175438597, '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': '6017838', 'n_tokens_mistral': 409, 'n_tokens_neox': 395, 'n_words': 156}