<commit_before>(ns ohds.framework
  (:require-macros
   [cljs.core.async.macros :refer [go]])
  (:require
   [petrol.core :refer [process-message watch-channels wrap]]
   [reagent.core :as reagent]))

(declare mock-login)


(def isClient (not (nil? (try (.-document js/window)
                              (catch js/Object e nil)))))

(def rflush reagent/flush)

(defn add-test-div [name]
  (let [doc     js/document
        body    (.-body js/document)<commit_msg>adding common mocks to framework<commit_after>(ns ohds.framework
  (:require-macros
   [cljs.core.async.macros :refer [go]])
  (:require
   [petrol.core :refer [process-message watch-channels wrap]]
   [reagent.core :as reagent]))

(declare mock-login)

(defn mock-post [status body]
  (fn [_ _]
    {:status status
     :body body}))

(defn mock-wrap [m c]
  (m c))

(def isClient (not (nil? (try (.-document js/window)
                              (catch js/Object e nil)))))

(def rflush reagent/flush)

(defn add-test-div [name]
  (let [doc     js/document
        body    (.-body js/document)
{'fraction_non_alphanumeric': 0.14849624060150377, 'fraction_numerical': 0.0, 'mean_word_length': 2.6979166666666665, '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': '4913183', 'n_tokens_mistral': 375, 'n_tokens_neox': 367, 'n_words': 98}