<commit_before>(ns pc.profile
  "Keeps track of env-specific settings")

(defn prod? []
  (= "true" (System/getenv "PRODUCTION")))

(defn compile-less? []
  (not (prod?)))

(defn prod-assets? []
  (prod?))

(defn log-to-console? []
  (not (prod?)))

(defn http-port []
  (if (System/getenv "HTTP_PORT")
    (Integer/parseInt (System/getenv "HTTP_PORT"))
    8080))

(defn https-port []
  (if (System/getenv "HTTPS_PORT")
    (Integer/parseInt (System/getenv "HTTPS_PORT"))
    (if (prod?) 443 8078)))

(defn force-ssl? []
  (prod?))

(defn prod-domain []
  "prcrsr.com")

(defn hostname []
  (if (prod?)
    (prod-domain)
    "localhost"))

;; TODO: move to secrets
(def dev-session-key "<KEY>")
(defn http-session-key []
  (or (System/getenv "HTTP_SESSION_KEY")<commit_msg>switch prod domain to precursorapp.com<commit_after>(ns pc.profile
  "Keeps track of env-specific settings")

(defn prod? []
  (= "true" (System/getenv "PRODUCTION")))

(defn compile-less? []
  (not (prod?)))

(defn prod-assets? []
  (prod?))

(defn log-to-console? []
  (not (prod?)))

(defn http-port []
  (if (System/getenv "HTTP_PORT")
    (Integer/parseInt (System/getenv "HTTP_PORT"))
    8080))

(defn https-port []
  (if (System/getenv "HTTPS_PORT")
    (Integer/parseInt (System/getenv "HTTPS_PORT"))
    (if (prod?) 443 8078)))

(defn force-ssl? []
  (prod?))

(defn prod-domain []
  "precursorapp.com")

(defn hostname []
  (if (prod?)
    (prod-domain)
    "localhost"))

;; TODO: move to secrets
(def dev-session-key "<KEY>")
(defn http-session-key []
  (or (System/getenv "HTTP_SESSION_KEY")
{'fraction_non_alphanumeric': 0.19569347688410385, 'fraction_numerical': 0.013932868904369854, 'mean_word_length': 3.876543209876543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2837058', 'n_tokens_mistral': 637, 'n_tokens_neox': 622, 'n_words': 139}