<commit_before>;; Copyright © 2016-2017, JUXT LTD.

(ns tick.timeline
  (:require
   [clojure.spec.alpha :as s])
  (:import
   [java.time Duration ZonedDateTime]))

(defn periodic-seq
  "Given a start time, create a timeline with times at constant intervals of period length"
  ([^ZonedDateTime start ^Duration period]
   (iterate #(.addTo period %) start)))

(s/def :tick/date #(instance? ZonedDateTime %))

(defn timeline-xf<commit_msg>Use superclasses Temporal and TemporalAmount over ZonedDateTime and Duration in timeline/periodic-seq<commit_after>;; Copyright © 2016-2017, JUXT LTD.

(ns tick.timeline
  (:require
   [clojure.spec.alpha :as s])
  (:import
   [java.time ZonedDateTime]
   [java.time.temporal Temporal TemporalAmount]))

(defn periodic-seq
  "Given a start time, create a timeline with times at constant intervals of period length"
  ([^Temporal start ^TemporalAmount period]
   (iterate #(.addTo period %) start)))

(s/def :tick/date #(instance? ZonedDateTime %))

(defn timeline-xf
{'fraction_non_alphanumeric': 0.11952191235059761, 'fraction_numerical': 0.01593625498007968, 'mean_word_length': 4.583333333333333, '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': '5135135', 'n_tokens_mistral': 361, 'n_tokens_neox': 316, 'n_words': 105}