<commit_before>(ns clojurewerkz.cassaforte.iterate-world-test
  (:require [clojurewerkz.cassaforte.test-helper :as th])
  (:use clojurewerkz.cassaforte.cql
        clojure.test
        clojurewerkz.cassaforte.query))

(use-fixtures :each th/initialize!)

(deftest iterate-world-test
  (th/test-combinations
   (dotimes [i 100]
     (insert :users {:name (str "name_" i) :city (str "city" i) :age (int i)})))

  (let [res (group-by :name
                      (take 100 (iterate-world :users :name 10)))]
    (dotimes [i 100]
      (let [item (first (get res (str "name_" i)))]
        (is (= {:name (str "name_" i) :city (str "city" i) :age (int i)}<commit_msg>Ditto<commit_after>(ns clojurewerkz.cassaforte.iterate-world-test
  (:require [clojurewerkz.cassaforte.test-helper :as th]
            [clojurewerkz.cassaforte.cql :refer :all]
            [clojure.test :refer :all]
            [clojurewerkz.cassaforte.query :refer :all]))

(use-fixtures :each th/initialize!)

(deftest iterate-world-test
  (th/test-combinations
   (dotimes [i 100]
     (insert :users {:name (str "name_" i) :city (str "city" i) :age (int i)})))

  (let [res (group-by :name
                      (take 100 (iterate-world :users :name 10)))]
    (dotimes [i 100]
      (let [item (first (get res (str "name_" i)))]
        (is (= {:name (str "name_" i) :city (str "city" i) :age (int i)}
{'fraction_non_alphanumeric': 0.16313094367227504, 'fraction_numerical': 0.016093635698610095, 'mean_word_length': 2.9767441860465116, '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': '5211750', 'n_tokens_mistral': 556, 'n_tokens_neox': 517, 'n_words': 134}