<commit_before>(ns robot-name)

(def ^:private random (java.util.Random.))
(def ^:private letters (map char (range 65 91)))
(defn- generate-name []
  (str (apply str (take 2 (shuffle letters)))
       (+ 100 (.nextInt random 899))))

(defn robot []
  (atom {:name (generate-name)}))

(defn robot-name [robot]<commit_msg>Simplify generate-name function for robot-name<commit_after>(ns robot-name)

(def ^:private letters (map char (range 65 91)))
(defn- generate-name []
  (format "%s%03d" (apply str (repeatedly 2 #(first (shuffle letters))))
          (rand-int 1000)))

(defn robot []
  (atom {:name (generate-name)}))

(defn robot-name [robot]
{'fraction_non_alphanumeric': 0.1780185758513932, 'fraction_numerical': 0.034055727554179564, 'mean_word_length': 4.30327868852459, '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': '6184333', 'n_tokens_mistral': 246, 'n_tokens_neox': 220, 'n_words': 69}