<commit_before>(ns nossal.web
  (:require [clojure.java.io :as io]
            [clojure.string :as s]
            [ring.util.response :as res]
            [clj-http.client :as client]
            [environ.core :refer [env]]
            [hiccup.core :as h]
            [hiccup.page :as page]
            [nossal.data :as dat]
            [nossal.core :as core]))


(defn base
  ([title css body req]
   (base title
         {:keywords ""
          :desciption ""
          :meta []
          :manifest "manifest"
          :icon "icon"}
         css body req))
  ([title options css body req]
   (page/html5 {:⚡ true :lang "en"}
     [:head
      [:meta {:charset "UTF-8"}]
      [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge,chrome=1"}]
      [:meta {:name "viewport" :content "width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0"}]
      [:meta {:name "keywords" :content (options :keywords)}]
      [:meta {:name "description" :content (options :desciption)}]
      (map (fn [o] [:meta o]) (options :meta))
      (map (fn [s]
             [:link {:rel "icon" :type "image/png" :href (s/join ["/" (options :icon) "-" s ".png"]) :sizes (s/join [s "x" s])}])
           [48 96 144 192])
      [:link {:rel "canonical" :href (core/cannonical-url req)}]
      [:link {:rel "manifest" :href (s/join ["/" (options :manifest) ".json"])}]
      [:script {:async true :src "https://cdn.ampproject.org/v0.js"}]<commit_msg>adsense code<commit_after>(ns nossal.web
  (:require [clojure.java.io :as io]
            [clojure.string :as s]
            [ring.util.response :as res]
            [clj-http.client :as client]
            [environ.core :refer [env]]
            [hiccup.core :as h]
            [hiccup.page :as page]
            [nossal.data :as dat]
            [nossal.core :as core]))


(defn base
  ([title css body req]
   (base title
         {:keywords ""
          :desciption ""
          :meta []
          :manifest "manifest"
          :icon "icon"}
         css body req))
  ([title options css body req]
   (page/html5 {:⚡ true :lang "en"}
     [:head
      [:meta {:charset "UTF-8"}]
      [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge,chrome=1"}]
      [:meta {:name "viewport" :content "width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0"}]
      [:meta {:name "keywords" :content (options :keywords)}]
      [:meta {:name "description" :content (options :desciption)}]
      (map (fn [o] [:meta o]) (options :meta))
      (map (fn [s]
             [:link {:rel "icon" :type "image/png" :href (s/join ["/" (options :icon) "-" s ".png"]) :sizes (s/join [s "x" s])}])
           [48 96 144 192])
      [:link {:rel "canonical" :href (core/cannonical-url req)}]
      [:link {:rel "manifest" :href (s/join ["/" (options :manifest) ".json"])}]
      [:script {:async true :scr "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"}]
      [:script "(adsbygoogle = window.adsbygoogle || []).push({google_ad_client: \"ca-pub-9207695243671092\",enable_page_level_ads: true});"]
      [:script {:async true :src "https://cdn.ampproject.org/v0.js"}]
{'fraction_non_alphanumeric': 0.18848, 'fraction_numerical': 0.0176, 'mean_word_length': 2.4015233949945594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1045627', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1079, 'n_words': 283}