<commit_before>(ns ephemeris.points
  (:import (swisseph SweConst)))

(def ^:private dat (atom {}))
(def ^:private rev (atom {}))

(defn- a
  ([id idn] (a id idn nil))
  ([id idn greek]
   (do (swap! dat conj {id {:id idn
                            :en (name id)
                            :gr greek}})
       (swap! rev conj {idn id}))))

(a :Sun (. SweConst SE_SUN) "Helios")
(a :Moon (. SweConst SE_MOON) "Selene")
(a :Mercury (. SweConst SE_MERCURY) "Hermes")
(a :Venus (. SweConst SE_VENUS) "Aphrodite")
(a :Mars (. SweConst SE_MARS) "Ares")
(a :Jupiter (. SweConst SE_JUPITER) "Zeus")
(a :Saturn (. SweConst SE_SATURN) "Kronos")
(a :Uranus (. SweConst SE_URANUS))
(a :Neptune (. SweConst SE_NEPTUNE))
(a :Pluto (. SweConst SE_PLUTO))

(defn- datv [id v] (v (id (deref dat))))

(defn known? [kwd]
  (if (keyword? kwd)
    (contains? dat kwd)
    false))

(defn lookup [what]
  (if (keyword? what)
    (datv what :id)
    (get (deref rev) what)))

(defn nameit
  ([key-id] (nameit key-id :gr))
  ([key-id lang] (let [res (datv key-id lang)]
                   (if (nil? res)
                     (datv key-id :en)
                     res))))<commit_msg>fix a bug - forgot to refresh the points ns<commit_after>(ns ephemeris.points
  (:import (swisseph SweConst)))

(def ^:private dat (atom {}))
(def ^:private rev (atom {}))

(defn- a
  ([id idn] (a id idn nil))
  ([id idn greek]
   (do (swap! dat conj {id {:id idn
                            :en (name id)
                            :gr greek}})
       (swap! rev conj {idn id}))))

(a :Sun (. SweConst SE_SUN) "Helios")
(a :Moon (. SweConst SE_MOON) "Selene")
(a :Mercury (. SweConst SE_MERCURY) "Hermes")
(a :Venus (. SweConst SE_VENUS) "Aphrodite")
(a :Mars (. SweConst SE_MARS) "Ares")
(a :Jupiter (. SweConst SE_JUPITER) "Zeus")
(a :Saturn (. SweConst SE_SATURN) "Kronos")
(a :Uranus (. SweConst SE_URANUS))
(a :Neptune (. SweConst SE_NEPTUNE))
(a :Pluto (. SweConst SE_PLUTO))

(defn- datv [id v] (v (id (deref dat))))

(defn known? [kwd]
  (if (keyword? kwd)
    (contains? (deref dat) kwd)
    false))

(defn lookup [what]
  (if (keyword? what)
    (datv what :id)
    (get (deref rev) what)))

(defn nameit
  ([key-id] (nameit key-id :gr))
  ([key-id lang] (let [res (datv key-id lang)]
                   (if (nil? res)
                     (datv key-id :en)
                     res))))
{'fraction_non_alphanumeric': 0.17514843087362172, 'fraction_numerical': 0.0, 'mean_word_length': 2.489644970414201, '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': '3075149', 'n_tokens_mistral': 1023, 'n_tokens_neox': 943, 'n_words': 286}