<commit_before>(ns braid.notices.core
  (:require
    [braid.core.api :as core]
    #?@(:cljs
         [[clojure.spec.alpha :as s]
          [garden.units :refer [rem em]]
          [re-frame.core :refer [subscribe dispatch]]
          [braid.core.client.ui.styles.mixins :as mixins]])))

#?(:cljs
   (do
     (def ErrorSpec
       {:key keyword?
        :message string?
        :class (s/spec #{:error :info})})))

(defn init! []
  #?(:cljs
     (do


       (core/register-state!
         {::state {}}
         {::state {keyword? ErrorSpec}})

       (core/register-subs!
         {::sub
          (fn [state _]
            (vals (state ::state)))})
<commit_msg>Fix whitespace<commit_after>(ns braid.notices.core
  (:require
    [braid.core.api :as core]
    #?@(:cljs
         [[clojure.spec.alpha :as s]
          [garden.units :refer [rem em]]
          [re-frame.core :refer [subscribe dispatch]]
          [braid.core.client.ui.styles.mixins :as mixins]])))

#?(:cljs
   (do
     (def ErrorSpec
       {:key keyword?
        :message string?
        :class (s/spec #{:error :info})})))

(defn init! []
  #?(:cljs
     (do
       (core/register-state!
         {::state {}}
         {::state {keyword? ErrorSpec}})

       (core/register-subs!
         {::sub
          (fn [state _]
            (vals (state ::state)))})

{'fraction_non_alphanumeric': 0.17908201655379985, 'fraction_numerical': 0.0, 'mean_word_length': 1.9424778761061947, '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': '6510962', 'n_tokens_mistral': 467, 'n_tokens_neox': 464, 'n_words': 99}