<commit_before>(ns compound.core
  (:require [clojure.set :as set]
            [compound.spec :as cs]
            [clojure.spec.alpha :as s]))

(defmulti secondary-index-def->behaviour :compound.secondary-index/type)

(def secondary-index-def->behaviour-memoized (memoize secondary-index-def->behaviour)
  )
(defn secondary-indexes-by-id [compound]
  (get compound :compound/secondary-indexes-by-id))

(defn secondary-index [compound id]
  (get-in compound [:compound/secondary-indexes-by-id id]))

(defn secondary-index-defs-by-id [compound]
  (get compound :compound/secondary-index-defs-by-id))
<commit_msg>Update core.cljc<commit_after>(ns compound.core
  (:require [clojure.set :as set]
            [compound.spec :as cs]
            [clojure.spec.alpha :as s]))

(defmulti secondary-index-def->behaviour :compound.secondary-index/type)

(def secondary-index-def->behaviour-memoized (memoize secondary-index-def->behaviour))

(defn secondary-indexes-by-id [compound]
  (get compound :compound/secondary-indexes-by-id))

(defn secondary-index [compound id]
  (get-in compound [:compound/secondary-indexes-by-id id]))

(defn secondary-index-defs-by-id [compound]
  (get compound :compound/secondary-index-defs-by-id))

{'fraction_non_alphanumeric': 0.14823914823914824, 'fraction_numerical': 0.0, 'mean_word_length': 4.156118143459915, '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': '200503', 'n_tokens_mistral': 442, 'n_tokens_neox': 432, 'n_words': 79}