<commit_before>(ns user
  (:require [clojure.tools.namespace.repl :refer [refresh]]
            [taoensso.timbre :as timbre]
            [reloaded.repl :refer [system init start stop go reset]]
            [com.stuartsierra.component :as component]
            [tictag.config :refer [config]]
            [tictag.server :as server]
            [tictag.db :as db]
            [tictag.beeminder :as bm]
            [tictag.system]
            [clojure.test :refer :all]
            [tictag.server-test :as server-test]
            [tictag.ragtime :as ragtime]
            [tictag.tagtime :as tt]
            [ragtime.repl :refer [migrate rollback]]
            [honeysql.core :as sql]
            [honeysql.helpers :refer :all]
            [honeysql-postgres.format :refer :all]
            [honeysql-postgres.helpers :refer :all]
            [clojure.java.jdbc :as j]
            [tictag.crypto :as crypto]
            [environ.core :refer [env]]
            [figwheel-sidecar.repl-api]))

(defn cljs-lein-repl []
  (do (figwheel-sidecar.repl-api/start-figwheel!)
      (figwheel-sidecar.repl-api/cljs-repl)))

(defn migrate! [] (migrate ragtime/config))
(defn rollback! [] (rollback ragtime/config))

(clojure.tools.namespace.repl/set-refresh-dirs "dev" "src/clj" "test/clj")

(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)

(reloaded.repl/set-init! #(tictag.system/system config))

(defn dev-user [] (db/get-user (:db system) "TEST_USER"))

(def my-user-id (-> (select :id)
                    (from :users)
                    (where [:= :username "TEST_USER"])
                    (limit 1)))<commit_msg>stop figwheel before starting<commit_after>(ns user
  (:require [clojure.tools.namespace.repl :refer [refresh]]
            [taoensso.timbre :as timbre]
            [reloaded.repl :refer [system init start stop go reset]]
            [com.stuartsierra.component :as component]
            [tictag.config :refer [config]]
            [tictag.server :as server]
            [tictag.db :as db]
            [tictag.beeminder :as bm]
            [tictag.system]
            [clojure.test :refer :all]
            [tictag.server-test :as server-test]
            [tictag.ragtime :as ragtime]
            [tictag.tagtime :as tt]
            [ragtime.repl :refer [migrate rollback]]
            [honeysql.core :as sql]
            [honeysql.helpers :refer :all]
            [honeysql-postgres.format :refer :all]
            [honeysql-postgres.helpers :refer :all]
            [clojure.java.jdbc :as j]
            [tictag.crypto :as crypto]
            [environ.core :refer [env]]
            [figwheel-sidecar.repl-api]))

(defn cljs-repl []
  (do (figwheel-sidecar.repl-api/stop-figwheel!)
      (figwheel-sidecar.repl-api/start-figwheel!)
      (figwheel-sidecar.repl-api/cljs-repl)))

(defn migrate! [] (migrate ragtime/config))
(defn rollback! [] (rollback ragtime/config))

(clojure.tools.namespace.repl/set-refresh-dirs "dev" "src/clj" "test/clj")

(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)

(reloaded.repl/set-init! #(tictag.system/system config))

(defn dev-user [] (db/get-user (:db system) "TEST_USER"))

(def my-user-id (-> (select :id)
                    (from :users)
                    (where [:= :username "TEST_USER"])
                    (limit 1)))
{'fraction_non_alphanumeric': 0.14590854392298436, 'fraction_numerical': 0.0006016847172081829, 'mean_word_length': 2.163653663177926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4063253', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1183, 'n_words': 231}