<commit_before>(require '[cljs.build.api :as b]
         '[cljs.tagged-literals])

(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
                assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))

(println "Building ...")

(let [start (System/nanoTime)]
  (b/build
   (b/inputs "src")
   {:main 'uxbox.core
    :parallel-build false
    :warnings {:ns-var-clash false}
    :output-to "resources/public/js/main.js"
    :output-dir "resources/public/js"
    :closure-defines {"uxbox.repo.core.url"
                      "https://test.uxbox.io/api"}
    :optimizations :advanced
    :externs ["externs/main.js"]
    :source-map "resources/public/js/main.js.map"
    :static-fns true
    :language-in  :ecmascript5
    :language-out :ecmascript5
    :verbose true})
  (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))<commit_msg>Remporary disable advanced compilation on dist for more easy debugging.<commit_after>(require '[cljs.build.api :as b]
         '[cljs.tagged-literals])

(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
                assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))

(println "Building ...")

(let [start (System/nanoTime)]
  (b/build
   (b/inputs "src")
   {:main 'uxbox.core
    :parallel-build false
    :warnings {:ns-var-clash false}
    :output-to "resources/public/js/main.js"
    :output-dir "resources/public/js"
    :closure-defines {"uxbox.repo.core.url"
                      "https://test.uxbox.io/api"}
    :optimizations :simple
    :externs ["externs/main.js"]
    :source-map "resources/public/js/main.js.map"
    :static-fns true
    :pretty-print true
    :language-in  :ecmascript5
    :language-out :ecmascript5
    :verbose true})
  (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
{'fraction_non_alphanumeric': 0.1717620900500278, 'fraction_numerical': 0.0044469149527515284, 'mean_word_length': 2.8135593220338984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '758509', 'n_tokens_mistral': 674, 'n_tokens_neox': 647, 'n_words': 122}