<commit_before>(ns engulf.core
  (:gen-class)
  (:require [engulf.benchmark :as benchmark]
            [noir.server :as nr-server])
  (:use aleph.http
        noir.core
        lamina.core))

(defn start-webserver [args]
  (nr-server/load-views "src/engulf/views")
   
  (let [mode (keyword (or (first args) :prod))
          port (Integer. (or (System/getenv "PORT") "3000"))
          noir-handler (nr-server/gen-handler {:mode mode})]
      (start-http-server
        (wrap-ring-handler noir-handler)
        {:port port :websocket true})))
 
(defn -main [& args]
  (start-webserver args)
  (println "Engulf Started!"))
<commit_msg>Use requires to include views for uberjar<commit_after>(ns engulf.core
  (:gen-class)
  (:require [engulf.benchmark :as benchmark]
            engulf.views.benchmarker
            engulf.views.common
            engulf.views.index
            [noir.server :as nr-server])
  (:use aleph.http
        noir.core
        lamina.core))

(defn start-webserver [args]
  (let [mode (keyword (or (first args) :prod))
          port (Integer. (or (System/getenv "PORT") "3000"))
          noir-handler (nr-server/gen-handler {:mode mode})]
      (start-http-server
        (wrap-ring-handler noir-handler)
        {:port port :websocket true})))
 
(defn -main [& args]
  (start-webserver args)
  (println "Engulf Started!"))

{'fraction_non_alphanumeric': 0.1474074074074074, 'fraction_numerical': 0.005925925925925926, 'mean_word_length': 2.5646437994722957, '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': '3784680', 'n_tokens_mistral': 476, 'n_tokens_neox': 451, 'n_words': 109}