<commit_before>(ns {{project-ns}}.core
  (:require [om.core :as om :include-macros true]{{{core-cljs-requires}}}))

(enable-console-print!)

(defonce app-state (atom {:text "Hello Chestnut!"}))

(defn main []
  (om/root
    (fn [app owner]
      (reify
        om/IRender
        (render [_]
          (dom/h1 {{#not-om-tools?}}nil {{/not-om-tools?}}(:text app)))))
    app-state
    {:target (. js/document (getElementById "app"))}))<commit_msg>Make the om root component its own function<commit_after>(ns {{project-ns}}.core
  (:require [om.core :as om :include-macros true]{{{core-cljs-requires}}}))

(enable-console-print!)

(defonce app-state (atom {:text "Hello Chestnut!"}))

(defn root-component [app owner]
  (reify
    om/IRender
    (render [_]
      (dom/div nil (dom/h1 {{#not-om-tools?}}nil {{/not-om-tools?}}(:text app))))))

(om/root
 root-component
 app-state
 {:target (. js/document (getElementById "app"))})
{'fraction_non_alphanumeric': 0.20819848975188782, 'fraction_numerical': 0.002157497303128371, 'mean_word_length': 3.686868686868687, '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': '5321358', 'n_tokens_mistral': 342, 'n_tokens_neox': 328, 'n_words': 74}