<commit_before>(ns cmr.indexer.data.concepts.platform
  "Contains functions for converting platform hierarchies into elastic documents"
  (:require [clojure.string :as str]
            [cmr.common.util :as util]
            [cmr.common-app.services.kms-fetcher :as kf]))

(def default-platform-values
  "Default values to use for any platform fields which are nil."
  (zipmap [:category :series-entity :long-name]
          (repeat kf/FIELD_NOT_PRESENT)))

(defn- normalize-ps-value
  "Trim leading and trailing whitespace Convert a platform short-name value."
  [value]
  (when value (str/trim value)))
<commit_msg>CMR-1227: Fixed typo<commit_after>(ns cmr.indexer.data.concepts.platform
  "Contains functions for converting platform hierarchies into elastic documents"
  (:require [clojure.string :as str]
            [cmr.common.util :as util]
            [cmr.common-app.services.kms-fetcher :as kf]))

(def default-platform-values
  "Default values to use for any platform fields which are nil."
  (zipmap [:category :series-entity :long-name]
          (repeat kf/FIELD_NOT_PRESENT)))

(defn- normalize-ps-value
  "Trim leading and trailing whitespace from a platform short-name value."
  [value]
  (when value (str/trim value)))

{'fraction_non_alphanumeric': 0.10841423948220065, 'fraction_numerical': 0.003236245954692557, 'mean_word_length': 3.6503759398496243, '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': '5896481', 'n_tokens_mistral': 396, 'n_tokens_neox': 376, 'n_words': 116}