<commit_before>(ns rill.event-store.atom-store.event-test
  (:require [rill.event-store.atom-store.event :as event]
            [rill.message :as message :refer [defevent]]
            [rill.uuid :refer [new-id]]
            [schema.core :as s]
            [clojure.test :refer [deftest is]]))

(defevent MySerializableEvent
  :foo s/Uuid)

(def my-event (my-serializable-event (new-id)))

(deftest serializable-events?
  (is (string? (:edn (:data (event->entry my-event)))))
  (is (= (entry->event (event->entry my-event))
         my-event)))<commit_msg>Make test work with proper namespaces<commit_after>(ns rill.event-store.atom-store.event-test
  (:require [rill.event-store.atom-store.event :as event]
            [rill.temp-store :refer [message=]]
            [rill.message :as message :refer [defevent]]
            [rill.uuid :refer [new-id]]
            [schema.core :as s]
            [clojure.test :refer [deftest is]]))

(defevent MySerializableEvent
  :foo s/Uuid)

(def my-event (my-serializable-event (new-id)))

(deftest serializable-events?
  (is (string? (:edn (:data (event/event->entry my-event)))))
  (is (message= (event/entry->event (event/event->entry my-event))
         my-event)))
{'fraction_non_alphanumeric': 0.1662531017369727, 'fraction_numerical': 0.0, 'mean_word_length': 3.006622516556291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4035375', 'n_tokens_mistral': 423, 'n_tokens_neox': 419, 'n_words': 92}