<commit_before>(ns codestat.core
  (:gen-class))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (println "Hello, World!"))

(defn handler
   "ring handler"
   [& args]
 "Hello World.")<commit_msg>half work<commit_after>(ns codestat.core
  (:gen-class))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (println "Hello, World!"))

(defn get-body
	"get the body"
	[body]
	(binding [*in* body]
	(loop [input1 (read-line)]
		
		(if input (recur (read-line)) (str input)))))


(defn handler
   "ring handler"
   [req]
   (let [ret (str "uri:" (:uri req) 
     	"\nscheme:" (:scheme req)
	"\nrequest-method:" (:request-method req)
	)]
	(spit "/tmp/test" (get-body (:body req)) )
   {:status 200
    :headers {"Content-Type" "text/plain"}
    :body ret 
	}))
{'fraction_non_alphanumeric': 0.20025673940949937, 'fraction_numerical': 0.005134788189987163, 'mean_word_length': 3.0837696335078535, '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': '4785068', 'n_tokens_mistral': 325, 'n_tokens_neox': 304, 'n_words': 86}