<commit_before>(ns puppetlabs.http.client.test-common
  (:require [ring.middleware.params :as ring-params]
            [puppetlabs.trapperkeeper.core :as tk]))

(defn query-params-test
  [req]
  {:status 200
   :body (str (:params req))})

(def app-wrapped
  (ring-params/wrap-params query-params-test))

(tk/defservice test-params-web-service
  [[:WebserverService add-ring-handler]]
  (init [this context]
        (add-ring-handler app-wrapped "/params")
        context))

(def queryparams {"yellow"  "submarine"
                  "eleanor" "rigby"})

(def query-options {:method :get
                    :url    "http://localhost:8080/params/"
                    :query-params queryparams
                    :as :text})<commit_msg>Reformat query-options variable<commit_after>(ns puppetlabs.http.client.test-common
  (:require [ring.middleware.params :as ring-params]
            [puppetlabs.trapperkeeper.core :as tk]))

(defn query-params-test
  [req]
  {:status 200
   :body (str (:params req))})

(def app-wrapped
  (ring-params/wrap-params query-params-test))

(tk/defservice test-params-web-service
  [[:WebserverService add-ring-handler]]
  (init [this context]
        (add-ring-handler app-wrapped "/params")
        context))

(def queryparams {"yellow"  "submarine"
                  "eleanor" "rigby"})

(def query-options {:method       :get
                    :url          "http://localhost:8080/params/"
                    :query-params queryparams
                    :as           :text})
{'fraction_non_alphanumeric': 0.13936591809775428, 'fraction_numerical': 0.009247027741083224, 'mean_word_length': 2.3816964285714284, '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': '6950098', 'n_tokens_mistral': 506, 'n_tokens_neox': 469, 'n_words': 99}