<commit_before>(ns cmr.metadata-db.system
  "Defines functions for creating, starting, and stopping the application. Applications are
  represented as a map of components. Design based on
  http://stuartsierra.com/2013/09/15/lifecycle-composition and related posts."
  (:require [cmr.common.lifecycle :as lifecycle]
            [clojure.string :as string]
            [cmr.common.log :as log :refer (debug info warn error)]
            [cmr.common.nrepl :as nrepl]
            [cmr.common.api.web-server :as web]
            [cmr.oracle.connection :as oracle]
            [cmr.metadata-db.api.routes :as routes]
            [cmr.metadata-db.services.jobs :as mdb-jobs]
            [cmr.common.jobs :as jobs]
            [cmr.oracle.config :as oracle-config]
            [cmr.metadata-db.config :as config]
            [cmr.transmit.config :as transmit-config]
            [cmr.acl.core :as acl]
            [cmr.common.config :as cfg]
            [cmr.message-queue.queue.rabbit-mq :as rmq]
            [cmr.common-app.system :as common-sys]))

;; Design based on http://stuartsierra.com/2013/09/15/lifecycle-composition and related posts

(def
  ^{:doc "Defines the order to start the components."
    :private true}
  component-order [:db :log :queue-broker :scheduler :web :nrepl])

(def system-holder<commit_msg>CMR-2335: Finishing addressing code review comments.<commit_after>(ns cmr.metadata-db.system
  "Defines functions for creating, starting, and stopping the application. Applications are
  represented as a map of components. Design based on
  http://stuartsierra.com/2013/09/15/lifecycle-composition and related posts."
  (:require [cmr.common.lifecycle :as lifecycle]
            [clojure.string :as string]
            [cmr.common.log :as log :refer (debug info warn error)]
            [cmr.common.nrepl :as nrepl]
            [cmr.common.api.web-server :as web]
            [cmr.oracle.connection :as oracle]
            [cmr.metadata-db.api.routes :as routes]
            [cmr.metadata-db.services.jobs :as mdb-jobs]
            [cmr.common.jobs :as jobs]
            [cmr.oracle.config :as oracle-config]
            [cmr.metadata-db.config :as config]
            [cmr.transmit.config :as transmit-config]
            [cmr.acl.core :as acl]
            [cmr.common.config :as cfg]
            [cmr.message-queue.queue.rabbit-mq :as rmq]
            [cmr.common-app.system :as common-sys]))

;; Design based on http://stuartsierra.com/2013/09/15/lifecycle-composition and related posts

(def ^:private component-order
  "Defines the order to start the components."
  [:db :log :queue-broker :scheduler :web :nrepl])

(def system-holder
{'fraction_non_alphanumeric': 0.11826741996233521, 'fraction_numerical': 0.013559322033898305, 'mean_word_length': 2.503957783641161, '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': '4144589', 'n_tokens_mistral': 878, 'n_tokens_neox': 834, 'n_words': 216}