<commit_before>(ns chat.server.seed
  (:require [chat.server.db :as db]
            [environ.core :refer [env]]))

(defn drop! []
  (datomic.api/delete-database db/*uri*))

(defn init! []
  (db/init!))

(defn seed! []
  (db/with-conn
    (let [user-1 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :rafal-password "<PASSWORD>")
                                   :avatar "https://s3-us-west-2.amazonaws.com/slack-files2/avatars/2015-05-08/4801271456_41230ac0b881cdf85c28_72.jpg"})
          user-2 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :james-password "<PASSWORD>")
                                   :avatar "https://s3-us-west-2.amazonaws.com/slack-files2/avatars/2015-05-09/4805955000_07dc272f0a7f9de7719e_192.jpg"})
          user-3 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :tester-password "")
                                   :avatar "https://s3.amazonaws.com/chat.leanpixel.com/ycombinator-logo.png"})<commit_msg>seed avatars in leanpixel s3<commit_after>(ns chat.server.seed
  (:require [chat.server.db :as db]
            [environ.core :refer [env]]))

(defn drop! []
  (datomic.api/delete-database db/*uri*))

(defn init! []
  (db/init!))

(defn seed! []
  (db/with-conn
    (let [user-1 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :rafal-password "<PASSWORD>")
                                   :avatar "https://s3.amazonaws.com/chat.leanpixel.com/avatars/4801271456_41230ac0b881cdf85c28_72.jpg"})
          user-2 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :james-password "<PASSWORD>")
                                   :avatar "https://s3.amazonaws.com/chat.leanpixel.com/avatars/4805955000_07dc272f0a7f9de7719e_192.jpg"})
          user-3 (db/create-user! {:id (db/uuid)
                                   :email "<EMAIL>"
                                   :password (get env :tester-password "")
                                   :avatar "https://s3.amazonaws.com/chat.leanpixel.com/ycombinator-logo.png"})
{'fraction_non_alphanumeric': 0.14553014553014554, 'fraction_numerical': 0.055301455301455305, 'mean_word_length': 1.4676923076923076, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2232674', 'n_tokens_mistral': 849, 'n_tokens_neox': 764, 'n_words': 119}