<commit_before>(ns akvo.lumen.specs.visualisation.legend
  (:require [akvo.lumen.specs :as lumen.s]
            [clojure.spec.alpha :as s]
            [clojure.tools.logging :as log]))

(create-ns  'akvo.lumen.specs.visualisation.legend.order)
(alias 'order.s 'akvo.lumen.specs.visualisation.legend.order)

(s/def ::order.s/mode #{"auto" "custom"})

(s/def ::order.s/value string?)

(s/def ::order.s/list (s/coll-of ::order.s/value :distinct true))


(s/def ::title (s/nilable string?))

(s/def ::visible boolean?)

(s/def ::position #{"right" "top" "left" "bottom"})

(s/def ::order (s/keys :req-un [::order.s/mode ::order.s/list]))

(s/def ::legend (s/keys :req-un [::order]))<commit_msg>[#3027] Adapt legend value to null values<commit_after>(ns akvo.lumen.specs.visualisation.legend
  (:require [akvo.lumen.specs :as lumen.s]
            [clojure.spec.alpha :as s]
            [clojure.tools.logging :as log]))

(create-ns  'akvo.lumen.specs.visualisation.legend.order)
(alias 'order.s 'akvo.lumen.specs.visualisation.legend.order)

(s/def ::order.s/mode #{"auto" "custom"})

(s/def ::order.s/value (s/nilable string?))

(s/def ::order.s/list (s/coll-of ::order.s/value :distinct true))


(s/def ::title (s/nilable string?))

(s/def ::visible boolean?)

(s/def ::position #{"right" "top" "left" "bottom"})

(s/def ::order (s/keys :req-un [::order.s/mode ::order.s/list]))

(s/def ::legend (s/keys :req-un [::order]))
{'fraction_non_alphanumeric': 0.21549295774647886, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 3.916955017301038, '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': '3135436', 'n_tokens_mistral': 596, 'n_tokens_neox': 567, 'n_words': 114}