<commit_before>(ns circle.init
  (:require circle.evil)
  (:require circle.env) ;; env needs to be loaded before any circle source files containing tests
  (:use [circle.util.core :only (defn-once)])
  (:require circle.swank)
  (:require circle.db)
  (:require circle.repl)
  (:require circle.resque)
  (:require circle.logging)
  (:require circle.api.server)
  (:require circle.http.server)
  (:require circle.backend.build.run)
  (:require circle.backend.build.config)
  (:use [clojure.tools.logging :only (error)])
  (:require fs))

(defn-once init
  (try
    (println "circle.init/init")
    (circle.logging/init)
    (try
      (circle.swank/init)
      (catch Exception e
        (error e "error starting swank")))
    (circle.repl/init)
    (circle.db/init)
    (circle.api.server/init)
    (circle.resque/init)
    (circle.http.server/init)

    (println (java.util.Date.))
    true
    (catch Exception e<commit_msg>Don't run two servers.<commit_after>(ns circle.init
  (:require circle.evil)
  (:require circle.env) ;; env needs to be loaded before any circle source files containing tests
  (:use [circle.util.core :only (defn-once)])
  (:require circle.swank)
  (:require circle.db)
  (:require circle.repl)
  (:require circle.resque)
  (:require circle.logging)
  (:require circle.api.server)
  (:require circle.http.server)
  (:require circle.backend.build.run)
  (:require circle.backend.build.config)
  (:use [clojure.tools.logging :only (error)])
  (:require fs))

(defn-once init
  (try
    (println "circle.init/init")
    (circle.logging/init)
    (try
      (circle.swank/init)
      (catch Exception e
        (error e "error starting swank")))
    (circle.repl/init)
    (circle.db/init)
    (circle.resque/init)
    (circle.http.server/init)

    (println (java.util.Date.))
    true
    (catch Exception e
{'fraction_non_alphanumeric': 0.14808743169398908, 'fraction_numerical': 0.0, 'mean_word_length': 3.308235294117647, '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': '6570298', 'n_tokens_mistral': 643, 'n_tokens_neox': 607, 'n_words': 147}