<commit_before>(ns cmr.metadata-db.api.routes
  (:require [compojure.handler :as handler]
            [compojure.route :as route]
            [compojure.core :refer :all]
            [clojure.string :as string]
            [ring.util.response :as r]
            [ring.util.codec :as codec]
            [ring.middleware.json :as ring-json]
            [clojure.stacktrace :refer [print-stack-trace]]
            [cheshire.core :as json]
            [taoensso.timbre :as timbre
             :refer (debug info warn error)]
            [cmr.common.services.errors :as errors]))

(defn- build-routes [system]
  (routes
    (context "/foo" []
             (GET "/" []
                  {:status 200
                   :headers {"Content-Type" "text/plain"}
                   :body "foo"}))<commit_msg>Added create concepts route.<commit_after>(ns cmr.metadata-db.api.routes
  (:require [compojure.handler :as handler]
            [compojure.route :as route]
            [compojure.core :refer :all]
            [clojure.string :as string]
            [ring.util.response :as r]
            [ring.util.codec :as codec]
            [ring.middleware.json :as ring-json]
            [clojure.stacktrace :refer [print-stack-trace]]
            [cheshire.core :as json]
            [taoensso.timbre :as timbre
             :refer (debug info warn error)]
            [cmr.common.services.errors :as errors]))

(defn- build-routes [system]
  (routes
    (context "/foo" []
             (GET "/" []
                  {:status 200
                   :headers {"Content-Type" "text/plain"}
                   :body "foo"}))
    (context "/concepts" []
             (POST "/" {body :body}
                   {:status 201
                    :body body}))
{'fraction_non_alphanumeric': 0.13225991949396204, 'fraction_numerical': 0.005175388154111558, 'mean_word_length': 1.6047904191616766, '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': '1538570', 'n_tokens_mistral': 536, 'n_tokens_neox': 519, 'n_words': 121}