<commit_before>(ns gigrig.components.boxes)

(defn boxed-text [{:keys [text x y width height]}]
  [:g
   [:rect {:x x :y y :width width :height height :fill (:background text)}]
   [:text {:x (:x text) :y (:y text) :font-family "monospace" :font-size (:size text)}
    (:value text)]])

(defn react-key
  "returns a unique key for react components"
  [{:keys [text x y]}]
  (str (:value text) "-" x ":" y))<commit_msg>Round corners of boxes<commit_after>(ns gigrig.components.boxes)

(defn boxed-text [{:keys [text x y width height]}]
  [:g
   [:rect {:x x :y y :width width :height height :rx 1 :ry 1 :fill (:background text)}]
   [:text {:x (:x text) :y (:y text) :font-family "monospace" :font-size (:size text)}
    (:value text)]])

(defn react-key
  "returns a unique key for react components"
  [{:keys [text x y]}]
  (str (:value text) "-" x ":" y))
{'fraction_non_alphanumeric': 0.19136522753792298, 'fraction_numerical': 0.002333722287047841, 'mean_word_length': 3.9310344827586206, 'pattern_counts': {'":': 2, '<': 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': '2865295', 'n_tokens_mistral': 332, 'n_tokens_neox': 303, 'n_words': 116}