<commit_before>(ns time-tracker.timers.db
  (:require [clojure.java.jdbc :as jdbc]
            [time-tracker.db :as db]
            [time-tracker.util :refer [statement-success?] :as util]
            [clojure.algo.generic.functor :refer [fmap]]
            [yesql.core :refer [defqueries]]
            ;; For protocol extensions
            [clj-time.jdbc]))

(defqueries "time_tracker/timers/sql/db.sql")

(def timer-keys [:id :project_id :started_time :duration :time_created :notes])

(defn- hyphenize
  [thing]
  (if (keyword? thing)
    (util/hyphenize thing)
    thing))

(defn epochize
  [thing]
  (if (instance? org.joda.time.DateTime thing)<commit_msg>Send task-id in ws responses<commit_after>(ns time-tracker.timers.db
  (:require [clojure.java.jdbc :as jdbc]
            [time-tracker.db :as db]
            [time-tracker.util :refer [statement-success?] :as util]
            [clojure.algo.generic.functor :refer [fmap]]
            [yesql.core :refer [defqueries]]
            ;; For protocol extensions
            [clj-time.jdbc]))

(defqueries "time_tracker/timers/sql/db.sql")

(def timer-keys [:id :task_id :started_time :duration :time_created :notes])

(defn- hyphenize
  [thing]
  (if (keyword? thing)
    (util/hyphenize thing)
    thing))

(defn epochize
  [thing]
  (if (instance? org.joda.time.DateTime thing)
{'fraction_non_alphanumeric': 0.13997005988023953, 'fraction_numerical': 0.0, 'mean_word_length': 2.8641618497109826, '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': '6863488', 'n_tokens_mistral': 486, 'n_tokens_neox': 477, 'n_words': 103}