<commit_before>(ns htt-schedule.core
  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]))

(enable-console-print!)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Data structure for our application state

(defonce app-state (atom {:text "ProgsCon Awesomenessness"
                          :schedule []}))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Om Components

(defn twitter-handle [cursor component]
  (reify
    om/IRender
    (render [this]
      (dom/a
       #js {:href (str "https://twitter.com/" cursor)}
       (str "@" cursor)))))

(defn twitter-profile-picture [cursor component]
  (reify
    om/IRender
    (render [this]
      (dom/div nil
        (dom/img
         #js {:src "https://pbs.twimg.com/profile_images/857274701391028224/Ocn-IuEC_400x400.jpg"
              :width  "50px"
              :height "50px"})))))


(defn talk-detail [cursor component]
  (reify
    om/IRender
    (render [this
]
      (dom/div
       #js {:className "panel panel-primary"}

       (dom/div
        #js {:className "panel-heading"} (:title cursor))

       (dom/div
        #js {:className "panel-body"}
        (dom/div nil (:description cursor))

        (om/build twitter-handle (:twitter-handle cursor))
        (om/build twitter-profile-picture (:twitter-handle cursor)))))))


;; Add a star button to each talk using bootstrap<commit_msg>def for twitter profile image<commit_after>(ns htt-schedule.core
  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]))

(enable-console-print!)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Data structure for our application state

(defonce app-state (atom {:text "ProgsCon Awesomenessness"
                          :schedule []}))


;; A very naughty hard coded twitter profile (should get from picture via twitter api)
;; Until then we are playing "Being <NAME>"
(def hard-coded-tiwtter-profile
  "https://pbs.twimg.com/profile_images/857274701391028224/Ocn-IuEC_400x400.jpg")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Om Components

(defn twitter-handle [cursor component]
  (reify
    om/IRender
    (render [this]
      (dom/a
       #js {:href (str "https://twitter.com/" cursor)}
       (str "@" cursor)))))

(defn twitter-profile-picture [cursor component]
  (reify
    om/IRender
    (render [this]
      (dom/div nil
        (dom/img
         #js {:src hard-coded-tiwtter-profile
              :width  "50px"
              :height "50px"})))))


(defn talk-detail [cursor component]
  (reify
    om/IRender
    (render [this
]
      (dom/div
       #js {:className "panel panel-primary"}

       (dom/div
        #js {:className "panel-heading"} (:title cursor))

       (dom/div
        #js {:className "panel-body"}
        (dom/div nil (:description cursor))

        (om/build twitter-handle (:twitter-handle cursor))
        (om/build twitter-profile-picture (:twitter-handle cursor)))))))


;; Add a star button to each talk using bootstrap
{'fraction_non_alphanumeric': 0.18658698539176627, 'fraction_numerical': 0.01859229747675963, 'mean_word_length': 2.738213399503722, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1662748', 'n_tokens_mistral': 1058, 'n_tokens_neox': 933, 'n_words': 241}