<commit_before>;; boot2docker tends to give me this IP
(def TARGET-HOST "192.168.59.103")

;; check ES
;; http://192.168.59.103:9200/users/_search?pretty=true&q=*:*

(defproject joplin-example "0.2.10-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.6.0"]]
  :plugins [[joplin.lein "0.2.10-SNAPSHOT"]]

  :source-paths ["src" "joplin"]

  :joplin {:migrators {:es-mig           "joplin/migrators/es"
                       :es-data-mig      "joplin/migrators/esdata"
                       :sql-mig          "joplin/migrators/sql"
                       :sql-mig-extra    "joplin/migrators/sql/extrapath"
                       :imported-sql-mig "resources/imported-migrators/sql"
                       :jdbc-mig         "joplin/migrators/jdbc"
                       :jdbc-mig-extra   "joplin/migrators/jdbc/extrapath"
                       :hive-mig         "joplin/migrators/hive"
                       :cass-mig         "joplin/migrators/cass"
                       :dt-mig           "joplin/migrators/datomic"}
           :seeds     {:es-seed           "seeds.es/run"
                       :sql-seed          "seeds.sql/run"
                       :imported-sql-seed "imported-seeds.sql/run"
                       :cass-seed         "seeds.cass/run"
                       :dt-seed           "seeds.dt/run"
                       :zk-seed           "seeds.zk/run"}}

  :profiles {:dev
             {:joplin
              {:databases    {:dt-dev        {:type :dt, :url ~(str "datomic:free://" TARGET-HOST ":4334/test")}
                              :sql-dev       {:type :sql, :url "jdbc:h2:file:dev"}
                              :sql-dev-extra {:type :sql, :migration-table "ragtime_migrations_extra", :url "jdbc:h2:file:dev"}}
               :environments {:dev [{:db :dt-dev, :migrator :dt-mig, :seed :dt-seed}
                                    {:db :sql-dev, :migrator :imported-sql-mig, :seed :imported-sql-seed}
                                    {:db :sql-dev-extra, :migrator :sql-mig-extra}]}}}

             :web-frontend
             {:dependencies [[postgresql/postgresql "9.3-1101.jdbc4"]]
              :joplin
              {:databases    {:es-dev      {:type :es, :host ~TARGET-HOST, :port 9200}<commit_msg>fixing dependencies for example project<commit_after>;; boot2docker tends to give me this IP
(def TARGET-HOST "192.168.59.103")

;; check ES
;; http://192.168.59.103:9200/users/_search?pretty=true&q=*:*

(defproject joplin-example "0.2.10-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.6.0"]]
  :plugins [[joplin.lein "0.2.10-SNAPSHOT"]]

  :source-paths ["src" "joplin"]

  :joplin {:migrators {:es-mig           "joplin/migrators/es"
                       :es-data-mig      "joplin/migrators/esdata"
                       :sql-mig          "joplin/migrators/sql"
                       :sql-mig-extra    "joplin/migrators/sql/extrapath"
                       :imported-sql-mig "resources/imported-migrators/sql"
                       :jdbc-mig         "joplin/migrators/jdbc"
                       :jdbc-mig-extra   "joplin/migrators/jdbc/extrapath"
                       :hive-mig         "joplin/migrators/hive"
                       :cass-mig         "joplin/migrators/cass"
                       :dt-mig           "joplin/migrators/datomic"}
           :seeds     {:es-seed           "seeds.es/run"
                       :sql-seed          "seeds.sql/run"
                       :imported-sql-seed "imported-seeds.sql/run"
                       :cass-seed         "seeds.cass/run"
                       :dt-seed           "seeds.dt/run"
                       :zk-seed           "seeds.zk/run"}}

  :profiles {:dev
             {:dependencies [[com.h2database/h2 "1.3.171"]]
              :joplin
              {:databases    {:dt-dev        {:type :dt, :url ~(str "datomic:free://" TARGET-HOST ":4334/test")}
                              :sql-dev       {:type :sql, :url "jdbc:h2:file:dev"}
                              :sql-dev-extra {:type :sql, :migration-table "ragtime_migrations_extra", :url "jdbc:h2:file:dev"}}
               :environments {:dev [{:db :dt-dev, :migrator :dt-mig, :seed :dt-seed}
                                    {:db :sql-dev, :migrator :imported-sql-mig, :seed :imported-sql-seed}
                                    {:db :sql-dev-extra, :migrator :sql-mig-extra}]}}}

             :web-frontend
             {:dependencies [[postgresql/postgresql "9.3-1101.jdbc4"]]
              :joplin
              {:databases    {:es-dev      {:type :es, :host ~TARGET-HOST, :port 9200}
{'fraction_non_alphanumeric': 0.14420131291028446, 'fraction_numerical': 0.025601750547045953, 'mean_word_length': 1.3957023060796645, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6157849', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1539, 'n_words': 238}