 (defn- bin-micro-number
   "Return really small bin number. Assumes positive inputs"
   [x]
-  (cond
-    (= 0 x) "0"
-    (= 1 x) "1"
-    (= 2 x) "2"
-    (> x 2) "3+"))
+  (case x
+    0 "0"
+    1 "1"
+    2 "2"
+    "3+"))
 
 
 (defn- bin-small-number


(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))))

            (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]
