<commit_before>(ns clojexcms.dev
  (:require [environ.core :refer [env]]
            [net.cgrand.enlive-html :refer [set-attr prepend append html]]
            [leiningen.core.main :as lein]))

(def is-dev? (env :is-dev))

(def inject-devmode-html
  (comp
   (set-attr :class "is-dev")
   (prepend (html [:script {:type "text/javascript" :src "/js/out/goog/base.js"}]))
   (prepend (html [:script {:type "text/javascript" :src "/react/react.js"}]))
   (prepend (html [:script {:type "text/javascript" :src "/js/react-bootstrap.min.js"}]))
   (append  (html [:script {:type "text/javascript"} "goog.require('clojexcms.dev')"]))))

(defn start-figwheel []
  (future
    (print "Starting figwheel.\n")
    (lein/-main ["figwheel"])))

(defn start-less []
  (future
    (println "Starting less.")
    (lein/-main ["less" "auto"])))<commit_msg>external browser connection<commit_after>(ns clojexcms.dev
  (:require [environ.core :refer [env]]
            [net.cgrand.enlive-html :refer [set-attr prepend append html]]
            [leiningen.core.main :as lein]))

(def is-dev? (env :is-dev))

(def inject-devmode-html
  (comp
   (set-attr :class "is-dev")
   (prepend (html [:script {:type "text/javascript" :src "/js/out/goog/base.js"}]))
   (prepend (html [:script {:type "text/javascript" :src "/react/react.js"}]))
   (prepend (html [:script {:type "text/javascript" :src "/js/react-bootstrap.min.js"}]))
   (append  (html [:script {:type "text/javascript"} "goog.require('clojexcms.dev')"]))
   (append  (html [:script {:type "text/javascript" :id "lt_ws"
                            :src "http://localhost:62439/socket.io/lighttable/ws.js"}]))))

(defn start-figwheel []
  (future
    (print "Starting figwheel.\n")
    (lein/-main ["figwheel"])))

(defn start-less []
  (future
    (println "Starting less.")
    (lein/-main ["less" "auto"])))
{'fraction_non_alphanumeric': 0.2048780487804878, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 3.4805825242718447, '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': '3840657', 'n_tokens_mistral': 685, 'n_tokens_neox': 654, 'n_words': 148}