<commit_before>(ns utils)

(defn zip [xss]
  (if (> (count xss) 1)
    (partition (count xss) (apply interleave xss))
    xss))

(defn replace-if-underscore [element val]
  (if (= element '_)
    val
    element))


(defn replace-underscores [form val]
  (map #(replace-if-underscore % val) form))


(defn convert-forms [val [next-form & other-forms]]
  (if (nil? next-form)
    val
    (let [next-val (gensym)]
          `(let [~next-val ~(replace-underscores next-form val)]
      ~(convert-forms next-val other-forms)))))


(defmacro ->>> [init & forms]<commit_msg>Fixed zip to operate on items as separate args<commit_after>(ns utils)

(defn zip [& xss]
  (if (> (count xss) 1)
    (partition (count xss) (apply interleave xss))
    xss))

(defn replace-if-underscore [element val]
  (if (= element '_)
    val
    element))


(defn replace-underscores [form val]
  (map #(replace-if-underscore % val) form))


(defn convert-forms [val [next-form & other-forms]]
  (if (nil? next-form)
    val
    (let [next-val (gensym)]
          `(let [~next-val ~(replace-underscores next-form val)]
      ~(convert-forms next-val other-forms)))))


(defmacro ->>> [init & forms]
{'fraction_non_alphanumeric': 0.16481639624252775, 'fraction_numerical': 0.0017079419299743809, 'mean_word_length': 3.2158273381294964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5849325', 'n_tokens_mistral': 449, 'n_tokens_neox': 422, 'n_words': 117}