<commit_before>(ns onyx.peer.single-peer-test
  (:require [midje.sweet :refer :all]
            [onyx.peer.hornetq-util :as hq-util]
            [onyx.api]))

(def n-messages 150000)

(def batch-size 3000)

(def timeout 1000)

(def in-queue (str (java.util.UUID/randomUUID)))

(def out-queue (str (java.util.UUID/randomUUID)))

(hq-util/write-and-cap! in-queue (map (fn [x] {:n x}) (range n-messages)))

(defn my-inc [{:keys [n] :as segment}]
  (assoc segment :n n))

(def catalog
  [{:onyx/name :in<commit_msg>Turn down peer settings.<commit_after>(ns onyx.peer.single-peer-test
  (:require [midje.sweet :refer :all]
            [onyx.peer.hornetq-util :as hq-util]
            [onyx.api]))

(def n-messages 150)

(def batch-size 25)

(def timeout 500)

(def in-queue (str (java.util.UUID/randomUUID)))

(def out-queue (str (java.util.UUID/randomUUID)))

(hq-util/write-and-cap! in-queue (map (fn [x] {:n x}) (range n-messages)))

(defn my-inc [{:keys [n] :as segment}]
  (assoc segment :n n))

(def catalog
  [{:onyx/name :in
{'fraction_non_alphanumeric': 0.18597857838364168, 'fraction_numerical': 0.021421616358325218, 'mean_word_length': 3.374468085106383, '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': '4536337', 'n_tokens_mistral': 436, 'n_tokens_neox': 416, 'n_words': 102}