<commit_before>(ns appengine-magic.core)


(defn- in-appengine-dev-mode? []
  false)


(if (in-appengine-dev-mode?)
    (load "core_local")
    (load "core_google"))<commit_msg>Working installation dispatch for deployed and interactive application modes.<commit_after>(ns appengine-magic.core)


(defn- in-appengine-interactive-mode? []
  (try
    (let [stack-trace (.getStackTrace (Thread/currentThread))]
      (some #(.contains (.toString %) "swank.core") stack-trace))
    (catch java.security.AccessControlException ace
      false)))


(if (in-appengine-interactive-mode?)
    (load "core_local")
    (load "core_google"))
{'fraction_non_alphanumeric': 0.15286624203821655, 'fraction_numerical': 0.0, 'mean_word_length': 4.198347107438017, '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': '6060372', 'n_tokens_mistral': 212, 'n_tokens_neox': 200, 'n_words': 42}