<commit_before>(ns frontend.svg
  (:require [clojure.string :as str]
            [frontend.camera :as cameras]
            [frontend.layers :as layers]))

(defn points->path [points]
  (str "M" (str/join "L" (map (fn [p] (str (:rx p) " " (:ry p))) points))))

(defn layer->svg-rect [camera layer shape? cast!]
  (let [layer (layers/normalized-abs-coords layer)
        layer (if shape?
                  (cameras/camera-translated-rect camera
                                                  layer
                                                  (layers/rect-width layer)
                                                  (layers/rect-height layer)
                                                  (get-in layer [:offset :x])
                                                  (get-in layer [:offset :y]))
                  layer)]
    (merge<commit_msg>remove the unnecessary L's<commit_after>(ns frontend.svg
  (:require [clojure.string :as str]
            [frontend.camera :as cameras]
            [frontend.layers :as layers]))

(defn points->path [points]
  (str "M" (str/join " " (map (fn [p] (str (:rx p) " " (:ry p))) points))))

(defn layer->svg-rect [camera layer shape? cast!]
  (let [layer (layers/normalized-abs-coords layer)
        layer (if shape?
                  (cameras/camera-translated-rect camera
                                                  layer
                                                  (layers/rect-width layer)
                                                  (layers/rect-height layer)
                                                  (get-in layer [:offset :x])
                                                  (get-in layer [:offset :y]))
                  layer)]
    (merge
{'fraction_non_alphanumeric': 0.11522872032426172, 'fraction_numerical': 0.0, 'mean_word_length': 1.0996354799513974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6582388', 'n_tokens_mistral': 423, 'n_tokens_neox': 407, 'n_words': 117}