<commit_before>(ns cljs-game.core)

(js/alert "Welcome! From Clojurescript")
<commit_msg>JS interop: try out onreadystate<commit_after>(ns cljs-game.core)

(set! (.-onreadystatechange js/document)
      (fn []
        (when (= (.-readyState js/document) "complete")
          (js/alert "Welcome!")
          (let [element (js/document.getElementById "front-buffer")
                context (.getContext element "2d")]
            (js/console.log context)
            (set! (.-fillStyle context) "green")
            (.fillRect context 10 10 100 100)
            ))))

{'fraction_non_alphanumeric': 0.14638447971781304, 'fraction_numerical': 0.019400352733686066, 'mean_word_length': 2.4011976047904193, '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': '333786', 'n_tokens_mistral': 188, 'n_tokens_neox': 169, 'n_words': 42}