<commit_before>(ns chat.client.emoji
  (:require [om.dom :as dom]))

(declare unicode ascii)

(defn shortcode->html [shortcode]
  (let [ext :png]
    (case ext
      :png
      (dom/img #js {:className "emojione"
                    :alt shortcode
                    :title shortcode
                    :src (str "//cdn.jsdelivr.net/emojione/assets/png/" (last (unicode shortcode)) ".png")})
      :svg
      (dom/object #js {:className "emojione"
                       :data (str "//cdn.jsdelivr.net/emojione/assets/svg/" (last (unicode shortcode)) ".svg")
                       :type "image/svg+xml"
                       :title shortcode
                       :standby shortcode}))))


(def unicode {
":kiss_ww:" ["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"]
":couplekiss_ww:" ["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"]
":kiss_mm:" ["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"]
":couplekiss_mm:" ["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"]
":family_mmbb:" ["1f468-200d-1f468-200d-1f466-200d-1f466","1f468-1f468-1f466-1f466"]
":family_mmgb:" ["1f468-200d-1f468-200d-1f467-200d-1f466","1f468-1f468-1f467-1f466"]
":family_mmgg:" ["1f468-200d-1f468-200d-1f467-200d-1f467","1f468-1f468-1f467-1f467"]
":family_mwbb:" ["1f468-200d-1f469-200d-1f466-200d-1f466","1f468-1f469-1f466-1f466"]
":family_mwgb:" ["1f468-200d-1f469-200d-1f467-200d-1f466","1f468-1f469-1f467-1f466"]
":family_mwgg:" ["1f468-200d-1f469-200d-1f467-200d-1f467","1f468-1f469-1f467-1f467"]
":family_wwbb:" ["1f469-200d-1f469-200d-1f466-200d-1f466","1f469-1f469-1f466-1f466"]
":family_wwgb:" ["1f469-200d-1f469-200d-1f467-200d-1f466","1f469-1f469-1f467-1f466"]
":family_wwgg:" ["1f469-200d-1f469-200d-1f467-200d-1f467","1f469-1f469-1f467-1f467"]
":couple_ww:" ["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"]
":couple_with_heart_ww:" ["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"]
":couple_mm:" ["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"]
":couple_with_heart_mm:" ["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"]<commit_msg>remove om dependency in emoji<commit_after>(ns chat.client.emoji)

(declare unicode ascii)

(defn shortcode->html [shortcode]
  (let [ext :png]
    (case ext
      :png
      [:img {:class "emojione"
             :alt shortcode
             :title shortcode
             :src (str "//cdn.jsdelivr.net/emojione/assets/png/" (last (unicode shortcode)) ".png")}]
      :svg
      [:object {:class "emojione"
                :data (str "//cdn.jsdelivr.net/emojione/assets/svg/" (last (unicode shortcode)) ".svg")
                :type "image/svg+xml"
                :title shortcode
                :standby shortcode}])))

(def unicode {
":kiss_ww:" ["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"]
":couplekiss_ww:" ["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"]
":kiss_mm:" ["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"]
":couplekiss_mm:" ["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"]
":family_mmbb:" ["1f468-200d-1f468-200d-1f466-200d-1f466","1f468-1f468-1f466-1f466"]
":family_mmgb:" ["1f468-200d-1f468-200d-1f467-200d-1f466","1f468-1f468-1f467-1f466"]
":family_mmgg:" ["1f468-200d-1f468-200d-1f467-200d-1f467","1f468-1f468-1f467-1f467"]
":family_mwbb:" ["1f468-200d-1f469-200d-1f466-200d-1f466","1f468-1f469-1f466-1f466"]
":family_mwgb:" ["1f468-200d-1f469-200d-1f467-200d-1f466","1f468-1f469-1f467-1f466"]
":family_mwgg:" ["1f468-200d-1f469-200d-1f467-200d-1f467","1f468-1f469-1f467-1f467"]
":family_wwbb:" ["1f469-200d-1f469-200d-1f466-200d-1f466","1f469-1f469-1f466-1f466"]
":family_wwgb:" ["1f469-200d-1f469-200d-1f467-200d-1f466","1f469-1f469-1f467-1f466"]
":family_wwgg:" ["1f469-200d-1f469-200d-1f467-200d-1f467","1f469-1f469-1f467-1f467"]
":couple_ww:" ["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"]
":couple_with_heart_ww:" ["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"]
":couple_mm:" ["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"]
":couple_with_heart_mm:" ["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"]
{'fraction_non_alphanumeric': 0.20655816179990427, 'fraction_numerical': 0.3125897558640498, 'mean_word_length': 3.9631828978622328, 'pattern_counts': {'":': 34, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7218425', 'n_tokens_mistral': 2792, 'n_tokens_neox': 2069, 'n_words': 171}