<commit_before>(ns dokkaa-builder.core
  (:require [clojure.browser.repl]
            [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]))

(enable-console-print!)

(defn widget [data owner]
  (reify
    om/IRender
    (render [this]
      (dom/h1 nil (:text data)))))

(om/root widget
         {:text "Hello world!"}
         {:target (.getElementById js/document "my-app")})<commit_msg>wip: client-side page by om<commit_after>(ns dokkaa-builder.core
  (:require-macros [cljs.core.async.macros :refer [go]])
  (:require [clojure.browser.repl]
            [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]
            [cljs.core.async :refer [put! chan <!]]
            [sablono.core :as html :refer-macros [html]]
            [clojure.data :as data]
            [clojure.string :as string]))

(enable-console-print!)

(def app-state
  (atom {}))

(defn side-menu-view [app owner]
  (reify
    om/IRender
    (render [_]
      (html [:div {:id "side-menu"}
             [:ul]]))))

(defn apps-view [app owner]
  (reify
    om/IRender
    (render [_]
      (html [:div {:id "main-view"}
             [:ul]]))))

(defn root-view [app-owner]
  (reify
    om/IRender
    (render [_]
      (html [:div
             (om/build side-menu-view nil)
             (om/build apps-view nil)]))))

(om/root root-view app-state
  {:target (. js/document (getElementById "app"))})
{'fraction_non_alphanumeric': 0.1673611111111111, 'fraction_numerical': 0.0006944444444444445, 'mean_word_length': 2.3202764976958523, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5879851', 'n_tokens_mistral': 524, 'n_tokens_neox': 514, 'n_words': 121}