<commit_before>(ns slack-invite.core
  (:require [bidi.bidi :as b]
            [bidi.ring :refer (make-handler)]
            [clj-slack.core :as slack]))

(defn showForm
  [request]
  {:status 200
   :headers {"Content-Type" "text/html"}
   :body "<h1>Hello world!</h1>"})

(defn handleForm
  [request]
)

(def routes
  ["/" {:get showForm
        :post handleForm}])

(def handler
  (make-handler routes))
<commit_msg>Add env hooking for slack connection.<commit_after>(ns slack-invite.core
  (:require [bidi.bidi :as b]
            [bidi.ring :refer (make-handler)]
            [environ.core :refer [env]]
            [clj-slack.core :as slack]))

(def slack-connection {:api-url (env :api-url) :token (env :api-token)})

(defn showForm
  [request]
  {:status 200
   :headers {"Content-Type" "text/html"}
   :body "<h1>Hello world!</h1>"})

(defn handleForm
  [request]
)

(def routes
  ["/" {:get showForm
        :post handleForm}])

(def handler
  (make-handler routes))

{'fraction_non_alphanumeric': 0.16905737704918034, 'fraction_numerical': 0.010245901639344262, 'mean_word_length': 3.0040983606557377, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6242741', 'n_tokens_mistral': 371, 'n_tokens_neox': 356, 'n_words': 88}