<commit_before>(ns appengine-magic.core)


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


(defn appengine-environment-type []
  (let [env-property (System/getProperty "com.google.appengine.runtime.environment")]
    (cond
     (nil? env-property) :interactive
     (= env-property "Development") :dev-appserver
     (= env-property "Production") :production)))


(if (in-appengine-interactive-mode?)
    (load "core_local")<commit_msg>Classify vimclojure as interactive environment.<commit_after>(ns appengine-magic.core)


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


(defn appengine-environment-type []
  (let [env-property (System/getProperty "com.google.appengine.runtime.environment")]
    (cond
     (nil? env-property) :interactive
     (= env-property "Development") :dev-appserver
     (= env-property "Production") :production)))


(if (in-appengine-interactive-mode?)
    (load "core_local")
{'fraction_non_alphanumeric': 0.15435356200527706, 'fraction_numerical': 0.0, 'mean_word_length': 3.321937321937322, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2107361', 'n_tokens_mistral': 487, 'n_tokens_neox': 454, 'n_words': 90}