<commit_before>(ns mesh.utils
  (:require   [garden.core :refer [css]]
              [mesh.typography :as typography]
              [mesh.grid :as grid]))

#+cljs
(defn insert-stylesheet [styles]
  "Inserts Stylesheet into document head"
  (let [el (.createElement js/document "style")
        node (.createTextNode js/document styles)]
    (.appendChild el node)
    (.appendChild (.-head js/document) el)
    el))<commit_msg>expose math utils<commit_after>(ns mesh.utils
  (:require   [garden.core :refer [css]]))

#+cljs
(defn insert-stylesheet [styles]
  "Inserts Stylesheet into document head"
  (let [el (.createElement js/document "style")
        node (.createTextNode js/document styles)]
    (.appendChild el node)
    (.appendChild (.-head js/document) el)
    el))


 #+clj
(defn pow [base e]
  (.pow Math base e))

#+cljs
(defn pow [base e]
  (.pow js/Math base e))
{'fraction_non_alphanumeric': 0.14236902050113895, 'fraction_numerical': 0.0, 'mean_word_length': 3.1462264150943398, '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': '1040914', 'n_tokens_mistral': 298, 'n_tokens_neox': 286, 'n_words': 89}