<commit_before>(ns hphelper.frontend.core
  (:require [taoensso.timbre :as log]
            [reagent.core :as reagent :refer [atom]]
            [ajax.core :refer [GET POST] :as ajax]
            [hphelper.frontend.shared :refer [wrap-context add-button-size] :as shared]
            [hphelper.frontend.chargen]
            [hphelper.frontend.play]
            [hphelper.frontend.reference]
            ))

(enable-console-print!)

(log/info "Page Load Begin")

;; define your app data so that it doesn't get over-written on reload

;; TODO change back to defonce when required
(def app-state (atom
                 {}
                 )
  )
(defonce system-info
  (atom {}
        )
  )

(defn front
  "The first container"
  []
  (fn []
    (let [p (:page @system-info)]
      [:div {:class ""
             :style {:width "90%"}
             }
       ;; Page Selection
       [:div {:class "navbar navbar-default navbar-fixed-top"}
        [:div {:class "container"}
         [:div {:class "navbar-header"}
          (shared/switcher-toolbar system-info
                                   [:page]
                                   [[:character "Character Tools"] [:scenario "Scenario Tools"]<commit_msg>Default page selected is now the 'Play Paranoia' tab<commit_after>(ns hphelper.frontend.core
  (:require [taoensso.timbre :as log]
            [reagent.core :as reagent :refer [atom]]
            [ajax.core :refer [GET POST] :as ajax]
            [hphelper.frontend.shared :refer [wrap-context add-button-size] :as shared]
            [hphelper.frontend.chargen]
            [hphelper.frontend.play]
            [hphelper.frontend.reference]
            ))

(enable-console-print!)

(log/info "Page Load Begin")

;; define your app data so that it doesn't get over-written on reload

;; TODO change back to defonce when required
(def app-state (atom
                 {}
                 )
  )
(defonce system-info
  (atom {:page :play}
        )
  )

(defn front
  "The first container"
  []
  (fn []
    (let [p (:page @system-info)]
      [:div {:class ""
             :style {:width "90%"}
             }
       ;; Page Selection
       [:div {:class "navbar navbar-default navbar-fixed-top"}
        [:div {:class "container"}
         [:div {:class "navbar-header"}
          (shared/switcher-toolbar system-info
                                   [:page]
                                   [[:character "Character Tools"] [:scenario "Scenario Tools"]
{'fraction_non_alphanumeric': 0.12835093419983754, 'fraction_numerical': 0.0016246953696181965, 'mean_word_length': 1.8441108545034641, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3080476', 'n_tokens_mistral': 756, 'n_tokens_neox': 714, 'n_words': 195}