<commit_before>(ns user
  (:require [virt.core]
            [cljs.repl.browser]
            [cemerick.piggieback]
            [clojure.tools.namespace.repl :as ctnr]))

; Don't reload the user ns
(ctnr/disable-reload!)

(defn start-cljs-repl []
  (cemerick.piggieback/cljs-repl
    :repl-env (cljs.repl.browser/repl-env :port 9000)))

(def system
  {:server (atom nil)})

(defn start []
  (reset! (:server system) (virt.core/-main)))

(defn stop []
  (let [handle (:server system)]
    (when @handle
      (@handle)
      (reset! handle nil))))

(defn reset []
  (stop)
  (ctnr/refresh :after 'user/start))<commit_msg>Don't disable user ns reloading - broke virt.core reloading<commit_after>(ns user
  (:require [virt.core]
            [cljs.repl.browser]
            [cemerick.piggieback]
            [clojure.tools.namespace.repl :as ctnr]))

; Don't reload the user ns
;(ctnr/disable-reload!)

(defn start-cljs-repl []
  (cemerick.piggieback/cljs-repl
    :repl-env (cljs.repl.browser/repl-env :port 9000)))

(def system
  {:server (atom nil)})

(defn start []
  (reset! (:server system) (virt.core/-main)))

(defn stop []
  (let [handle (:server system)]
    (when @handle
      (@handle)
      (reset! handle nil))))

(defn reset []
  (stop)
  (ctnr/refresh :after 'user/start))
{'fraction_non_alphanumeric': 0.16679657053780203, 'fraction_numerical': 0.006235385814497272, 'mean_word_length': 3.0, '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': '3463947', 'n_tokens_mistral': 502, 'n_tokens_neox': 480, 'n_words': 108}