<commit_before>(ns todo.core (:gen-class) (:use compojure.core
                    [compojure.handler :as handler]
                    [ring.middleware.session.memory :as memory]
                    hiccup.core
                    hiccup.form
                    hiccup.page
                    ring.adapter.jetty
                    ring.middleware.file-info
                    ring.middleware.file
                    ring.middleware.session
                    ring.middleware.params))

(defn include-all []
  (html
    [:html
     [:head
      (include-js "/jquery-1.11.2.js")
      (include-js "/todo.js")
      (include-css "/style.css")
      ]]))

(defn delete-icon [css-class]
  (html [:div {:class :cell}
         [:input {:class css-class
                  :type :image
                  :src "/ic_delete.png"}]]))

(defn render-task [task]
  (html
    [:div {:class :row}
     [:div {:class :cell}
      [:input {:class :checkbox :type :checkbox}]
      [:span {:class :task} task]]
     [:div {:class "cell right"}
      (delete-icon :delete-btn)]]))

(defn render-project [proj tasks]
  (html
     [:div {:class :row}
      [:div {:class :proj-title} proj]
      (delete-icon :delete-btn-proj)]<commit_msg>compojure html formatter<commit_after>(ns todo.core (:gen-class) (:use compojure.core
                    [compojure.handler :as handler]
                    [ring.middleware.session.memory :as memory]
                    hiccup.core
                    hiccup.form
                    hiccup.page
                    ring.adapter.jetty
                    ring.middleware.file-info
                    ring.middleware.file
                    ring.middleware.session
                    ring.middleware.params))

(defn include-all []
  (html
    [:html
     [:head
      (include-js "/jquery-1.11.2.js")
      (include-js "/todo.js")
      (include-css "/style.css")
      ]]))

(defn delete-icon [css-class]
  (html [:div {:class :cell}
         [:input {:class css-class
                  :type :image
                  :src "/ic_delete.png"}]]))

(defn render-task [task]
  (html
    [:div {:class :row}
     [:div {:class :cell}
      [:input {:class :checkbox :type :checkbox}]
      [:span {:class :task} task]]
     [:div {:class [:cell :right]}
      (delete-icon :delete-btn)]]))

(defn render-project [proj tasks]
  (html
     [:div {:class :row}
      [:div {:class :proj-title} proj]
      (delete-icon :delete-btn-proj)]
{'fraction_non_alphanumeric': 0.1474541751527495, 'fraction_numerical': 0.003258655804480652, 'mean_word_length': 1.6044538706256628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1309126', 'n_tokens_mistral': 813, 'n_tokens_neox': 735, 'n_words': 167}