<commit_before>(ns push-ups.utils
  (:use [clojure.string :only (join)]))

(defn domain
  "Get domain of app"
  ([]
   (or (System/getenv "URL")
       "http://localhost:3000"))
  ([& pathcomponents]
     (join "/" (cons (domain) pathcomponents))))<commit_msg>use HOST env vars<commit_after>(ns push-ups.utils
  (:use [clojure.string :only (join)]))

(defn domain
  "Get domain of app"
  ([]
   (or (System/getenv "HOST")
       "http://localhost:3000"))
  ([& pathcomponents]
     (join "/" (cons (domain) pathcomponents))))
{'fraction_non_alphanumeric': 0.19428571428571428, 'fraction_numerical': 0.015238095238095238, 'mean_word_length': 3.6964285714285716, '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': '6681967', 'n_tokens_mistral': 195, 'n_tokens_neox': 182, 'n_words': 44}