<commit_before>(ns yeller.ring-example-app
  (:require [ring.adapter.jetty9 :as jetty]
            [yeller-clojure-client.ring :as yeller]))

(defn -main [& args]
  (jetty/run-jetty
    (yeller/wrap-ring
      (fn [& args] (assert false "error"))
      {:token "YOUR API KEY HERE"})
    {:port 4001}))
<commit_msg>wrap the sample app in session/params<commit_after>(ns yeller.ring-example-app
  (:require [ring.adapter.jetty9 :as jetty]
            [ring.middleware.params :as params]
            [ring.middleware.session :as session]
            [yeller-clojure-client.ring :as yeller]))

(defn -main [& args]
  (jetty/run-jetty
    (params/wrap-params
      (session/wrap-session
        (yeller/wrap-ring
          (fn [& args] (assert false "error"))
          {:token "YOUR API KEY GOES HERE"})))
    {:port 4001}))

{'fraction_non_alphanumeric': 0.15225334957369063, 'fraction_numerical': 0.012180267965895249, 'mean_word_length': 2.6371681415929205, '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': '4134987', 'n_tokens_mistral': 300, 'n_tokens_neox': 286, 'n_words': 66}