<commit_before>(ns devsetup
  (:require [demo :as site]
            [runtests]
            [reagent.core :as r]
            [figwheel.client :as fw]))

(defn test-results []
  [runtests/test-output-mini])

(defn start! []
  (demo/start! {:test-results test-results})
  (runtests/run-tests))

(when r/is-client
  (fw/start
   {:websocket-url "ws://localhost:3449/figwheel-ws"
    :jsload-callback #(start!)
    :heads-up-display true
    :load-warninged-code false}))

(start!)<commit_msg>Make tests only run once when figwheel reloads<commit_after>(ns ^:figwheel-always devsetup
    (:require [demo :as site]
              [runtests]
              [reagent.core :as r]
              [figwheel.client :as fw]))

(when r/is-client
  (fw/start
   {:websocket-url "ws://localhost:3449/figwheel-ws"}))

(defn test-results []
  [runtests/test-output-mini])

(defn start! []
  (demo/start! {:test-results test-results})
  (runtests/run-tests))

(start!)
{'fraction_non_alphanumeric': 0.16596194503171247, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 2.897119341563786, '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': '1266467', 'n_tokens_mistral': 350, 'n_tokens_neox': 343, 'n_words': 69}