<commit_before>!!! 5
%html{lang: "en-US"}
  %head
    %meta{charset: "utf-8"}
    - if @session
      %title= title("WWDC #{@session.year} Session #{@session.number}", @session.title, "ASCIIwwdc")
    - elsif @query
      %title= title("Search Results for \"#{@query}\"", "ASCIIwwdc")
    - else
      %title= title("ASCIIwwdc", "Searchable full-text transcripts of WWDC sessions")

    - description = (@session.description rescue "Searchable full-text transcripts of WWDC sessions.")
    %meta{name: "author", content: "Mattt"}
    %meta{name: "description", content: description}
    %meta{name: "viewport", content: "width=device-width, initial-scale=1, viewport-fit=cover"}
    %link{rel: "stylesheet", type: 'text/css', href: "/css/screen.css", media: "screen", charset: "utf-8"}

    %link{href: "/apple-touch-icon.png", rel: "apple-touch-icon", sizes: "180x180"}
    %link{href: "/favicon-32x32.png", rel: "icon", sizes: "32x32", type: "image/png"}
    %link{href: "/favicon-16x16.png", rel: "icon", sizes: "16x16", type: "image/png"}
    %link{href: "/site.webmanifest", rel: "manifest"}
    %link{color: "#33005d", href: "/safari-pinned-tab.svg", rel: "mask-icon"}
    %meta{content: "#603cba", name: "msapplication-TileColor"}
    %meta{content: "#ffffff", name: "theme-color"}

    %meta{property: "og:site_name", content: "ASCIIwwdc"}
    %meta{property: "og:title", content: title("ASCIIwwdc", (@session.title rescue nil))}
    %meta{property: "og:url", content: "https://asciiwwdc.com"}
    %meta{property: "og:description", content: (@session.description rescue description)}
    %meta{property: "og:image", content: (image_url(@session) rescue nil)}

    - if @session
      %link{rel: "canonical", href: url(@session)}
      %link{rel: "alternate", hreflang: "en-us", href: url(@session)}
      %link{rel: "alternate", hreflang: "x-default", href: url(@session)}
      %link{rel: "alternate", type: 'application/json', href: url(@session), charset: "utf-8"}
      %link{rel: "alternate", type: 'text/vtt', href: url(@session), charset: "utf-8"}
    - elsif @query
      %meta{name: "robots", content: "noindex"}
    - else
      %link{rel: "canonical", href: "https://asciiwwdc.com"}
      %link{rel: "alternate", hreflang: "en-us", href: "https://asciiwwdc.com"}
      %link{rel: "alternate", hreflang: "x-default", href: "https://asciiwwdc.com"}

  %body
    %header{role: 'banner'}
      %div{role: 'container'}
        %span#logo
          %a{href: '/'} ASCIIwwdc

        - unless request.path == '/'<commit_msg>Set robots meta tag to noindex,nofollow<commit_after>!!! 5
%html{lang: "en-US"}
  %head
    %meta{charset: "utf-8"}
    - if @session
      %title= title("WWDC #{@session.year} Session #{@session.number}", @session.title, "ASCIIwwdc")
    - elsif @query
      %title= title("Search Results for \"#{@query}\"", "ASCIIwwdc")
    - else
      %title= title("ASCIIwwdc", "Searchable full-text transcripts of WWDC sessions")

    - description = (@session.description rescue "Searchable full-text transcripts of WWDC sessions.")
    %meta{name: "author", content: "Mattt"}
    %meta{name: "description", content: description}
    %meta{name: "viewport", content: "width=device-width, initial-scale=1, viewport-fit=cover"}
    %link{rel: "stylesheet", type: 'text/css', href: "/css/screen.css", media: "screen", charset: "utf-8"}

    %link{href: "/apple-touch-icon.png", rel: "apple-touch-icon", sizes: "180x180"}
    %link{href: "/favicon-32x32.png", rel: "icon", sizes: "32x32", type: "image/png"}
    %link{href: "/favicon-16x16.png", rel: "icon", sizes: "16x16", type: "image/png"}
    %link{href: "/site.webmanifest", rel: "manifest"}
    %link{color: "#33005d", href: "/safari-pinned-tab.svg", rel: "mask-icon"}
    %meta{content: "#603cba", name: "msapplication-TileColor"}
    %meta{content: "#ffffff", name: "theme-color"}

    %meta{property: "og:site_name", content: "ASCIIwwdc"}
    %meta{property: "og:title", content: title("ASCIIwwdc", (@session.title rescue nil))}
    %meta{property: "og:url", content: "https://asciiwwdc.com"}
    %meta{property: "og:description", content: (@session.description rescue description)}
    %meta{property: "og:image", content: (image_url(@session) rescue nil)}

    - if @session
      %link{rel: "canonical", href: url(@session)}
      %link{rel: "alternate", hreflang: "en-us", href: url(@session)}
      %link{rel: "alternate", hreflang: "x-default", href: url(@session)}
      %link{rel: "alternate", type: 'application/json', href: url(@session), charset: "utf-8"}
      %link{rel: "alternate", type: 'text/vtt', href: url(@session), charset: "utf-8"}
    - elsif @query
      %meta{name: "robots", content: "noindex,nofollow"}
    - else
      %link{rel: "canonical", href: "https://asciiwwdc.com"}
      %link{rel: "alternate", hreflang: "en-us", href: "https://asciiwwdc.com"}
      %link{rel: "alternate", hreflang: "x-default", href: "https://asciiwwdc.com"}

  %body
    %header{role: 'banner'}
      %div{role: 'container'}
        %span#logo
          %a{href: '/'} ASCIIwwdc

        - unless request.path == '/'
{'fraction_non_alphanumeric': 0.20411361410381978, 'fraction_numerical': 0.014103819784524976, 'mean_word_length': 4.075546719681909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '1257555', 'n_tokens_mistral': 1842, 'n_tokens_neox': 1752, 'n_words': 405}