<commit_before>(ns ^{:no-doc true} lib-onyx.render-server-api
  (:require [clostache.parser :refer [render-resource]]
            [lib-onyx.replica-query-server :as s]))

(def annotated-routes
  (sort-by :uri (map (fn [[k v]] (merge k v)) s/endpoints)))

(defn generate-docs []
  (spit
   "doc/server-api.md"
   (render-resource "replica_query_server_template.md"
                    {:endpoints annotated-routes})))

#_(generate-docs)<commit_msg>Main for template renderer.<commit_after>(ns ^{:no-doc true} lib-onyx.render-server-api
  (:require [clostache.parser :refer [render-resource]]
            [lib-onyx.replica-query-server :as s]))

(def annotated-routes
  (sort-by :uri (map (fn [[k v]] (merge k v)) s/endpoints)))

(defn generate-docs []
  (spit
   "doc/server-api.md"
   (render-resource "replica_query_server_template.md"
                    {:endpoints annotated-routes})))

(defn -main [& args]
  (generate-docs))
{'fraction_non_alphanumeric': 0.16774193548387098, 'fraction_numerical': 0.0, 'mean_word_length': 3.350467289719626, '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': '115316', 'n_tokens_mistral': 339, 'n_tokens_neox': 335, 'n_words': 69}