             (metabase [config :as config]
                       [db :as db])
             (metabase.models [field :as field]
+                             [humanization :as humanization]
                              [table :as table]
                              [setting :as setting])
             [metabase.public-settings :as settings]


(def ^:private ^:const ^String metabase-usage-url "https://kqatai1z3c.execute-api.us-east-1.amazonaws.com/prod/ServerStatsCollector")

(def ^:private ^Integer anonymous-id
  "Generate an anonymous id. Don't worry too much about hash collisions or localhost cases, etc.
   The goal is to be able to get a rough sense for how many different hosts are throwing a specific error/event."
  (hash (str (java.net.InetAddress/getLocalHost))))

   :check_for_updates     (setting/get :check-for-updates)
   :site_name             (not= settings/site-name "Metabase")
   :report_timezone       (setting/get :report-timezone)
   :friendly_names        (humanization/enable-advanced-humanization)
   :email_configured      ((resolve 'metabase.email/email-configured?))
   :slack_configured      ((resolve 'metabase.integrations.slack/slack-configured?))
   :sso_configured        (boolean (resolve 'metabase.api.session/google-auth-client-id))
