<commit_before>(ns pc.init
  (:require pc.assets
            pc.billing
            pc.cache
            pc.datomic
            pc.datomic.admin-db
            pc.datomic.migrations
            pc.datomic.schema
            pc.email
            pc.http.admin
            pc.http.webhooks
            pc.less
            pc.logging
            pc.models.chat-bot
            pc.models.plan
            pc.nrepl
            pc.nts
            pc.repl
            pc.server
            pc.statsd
            pc.stripe.dev
            pc.utils)
  (:gen-class))

(defn init-fns []
  [#'pc.logging/init
   #'pc.nrepl/init
   #'pc.statsd/init
   #'pc.less/init
   #'pc.datomic/init
   #'pc.datomic.schema/init
   #'pc.datomic.migrations/init
   #'pc.models.chat-bot/init
   #'pc.models.plan/init
   #'pc.nts/init
   #'pc.assets/init
   #'pc.email/init
   #'pc.cache/init
   #'pc.server/init
   #'pc.http.webhooks/init
   #'pc.datomic.admin-db/init
   #'pc.http.admin/init
   #'pc.billing/init
   #'pc.stripe.dev/init])

(defn pretty-now []
  (.toLocaleString (java.util.Date.)))

(defn init []
  (doseq [f (init-fns)]
    (println (pretty-now) f)
    (f)))

(defn -main []
  (init)
  (println (pretty-now) "done"))

(defn shutdown []
  (pc.utils/shutdown-safe-scheduled-jobs)
  (pc.server/shutdown)
  (pc.datomic/shutdown)
  (pc.http.webhooks/shutdown)
  (pc.http.admin/shutdown))<commit_msg>make sure stripe init runs<commit_after>(ns pc.init
  (:require pc.assets
            pc.billing
            pc.cache
            pc.datomic
            pc.datomic.admin-db
            pc.datomic.migrations
            pc.datomic.schema
            pc.email
            pc.http.admin
            pc.http.webhooks
            pc.less
            pc.logging
            pc.models.chat-bot
            pc.models.plan
            pc.nrepl
            pc.nts
            pc.repl
            pc.server
            pc.statsd
            pc.stripe
            pc.stripe.dev
            pc.utils)
  (:gen-class))

(defn init-fns []
  [#'pc.logging/init
   #'pc.nrepl/init
   #'pc.statsd/init
   #'pc.less/init
   #'pc.datomic/init
   #'pc.datomic.schema/init
   #'pc.datomic.migrations/init
   #'pc.models.chat-bot/init
   #'pc.models.plan/init
   #'pc.nts/init
   #'pc.assets/init
   #'pc.email/init
   #'pc.cache/init
   #'pc.stripe/init
   #'pc.server/init
   #'pc.http.webhooks/init
   #'pc.datomic.admin-db/init
   #'pc.http.admin/init
   #'pc.billing/init
   #'pc.stripe.dev/init])

(defn pretty-now []
  (.toLocaleString (java.util.Date.)))

(defn init []
  (doseq [f (init-fns)]
    (println (pretty-now) f)
    (f)))

(defn -main []
  (init)
  (println (pretty-now) "done"))

(defn shutdown []
  (pc.utils/shutdown-safe-scheduled-jobs)
  (pc.server/shutdown)
  (pc.datomic/shutdown)
  (pc.http.webhooks/shutdown)
  (pc.http.admin/shutdown))
{'fraction_non_alphanumeric': 0.1511504424778761, 'fraction_numerical': 0.0, 'mean_word_length': 1.6888677450047573, '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': '865752', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1049, 'n_words': 149}