<commit_before>(ns gratefulplace.controllers.topics
  (:require [gratefulplace.db.query :as db]
            [gratefulplace.db.serializers :as ss]
            [gratefulplace.db.serialize :as s])
  (:use gratefulplace.controllers.shared))

(defn query
  [params]
  (map #(s/serialize % ss/ent->topic {:include {:first-post {}
                                                :author {:exclude [:email]}}})
       (db/all :topic/title)))

(defn show
  [params]
  (let [id (id)]
    {:body (s/serialize (db/ent id) ss/ent->topic {:include
                                                   {:posts {:include
                                                            {:author {:exclude [:email]}}}}})}))<commit_msg>whitespace<commit_after>(ns gratefulplace.controllers.topics
  (:require [gratefulplace.db.query :as db]
            [gratefulplace.db.serializers :as ss]
            [gratefulplace.db.serialize :as s])
  (:use gratefulplace.controllers.shared))

(defn query
  [params]
  (map #(s/serialize
         %
         ss/ent->topic
         {:include {:first-post {}
                    :author {:exclude [:email]}}})
       (db/all :topic/title)))

(defn show
  [params]
  (let [id (id)]
    {:body (s/serialize
            (db/ent id)
            ss/ent->topic
            {:include
             {:posts {:include
                      {:author {:exclude [:email]}}}}})}))

{'fraction_non_alphanumeric': 0.15228426395939088, 'fraction_numerical': 0.0, 'mean_word_length': 1.7218934911242603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1880295', 'n_tokens_mistral': 423, 'n_tokens_neox': 402, 'n_words': 87}