<commit_before>!!! 5
%html{ lang: I18n.locale, prefix: 'og: https://ogp.me/ns#' }
  %head
    %meta{ charset: 'utf-8' }
    %meta{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }
    %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover' }
    - if user_signed_in?
      %meta{ name: 'theme-color', content: theme_color, media: '(min-width: 993px)' }
      %meta{ name: 'theme-color', content: mobile_theme_color, media: '(max-width: 992px)' }
    - else
      %meta{ name: 'theme-color', content: theme_color }
    %link{ rel: 'manifest', href: '/manifest.json', crossorigin: 'use-credentials' }
    %link{ rel: 'apple-touch-icon', href: '/icons/maskable_icon_x192.png' }
    %link{ rel: 'mask-icon', href: '/icons/icon.svg', color: theme_color }
    %link{ rel: 'icon', href: '/images/favicon/favicon-16.png', sizes: '16x16' }
    %link{ rel: 'icon', href: '/icons/maskable_icon_x192.png', sizes: '192x192' }
    %link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
    %title= yield(:title)
    = stylesheet_pack_tag 'application', data: { 'turbo-track': 'reload' }
    = javascript_pack_tag 'application', data: { 'turbo-track': 'reload' }
    = javascript_pack_tag 'legacy', data: { 'turbo-track': 'reload' }
    = csrf_meta_tags
    = yield(:og)
    = yield(:meta)
  %body{ class: user_signed_in? ? '' : 'not-logged-in' }
    - if user_signed_in?
      = render 'navigation/main'
    - else
      = render 'navigation/guest'
    = render 'shared/announcements'
    = yield
    - if Rails.env.development?
      #debug
        %hr
        .container
          %p
            Current branch:
            %code= `git rev-parse --abbrev-ref HEAD`
            (commit
            = succeed ')' do
              = `git rev-parse --short HEAD`.strip
          %p.text-danger Debug params:
          = debug params
    = render_theme
<commit_msg>Set noindex robots tag on content of users that enable it<commit_after>!!! 5
%html{ lang: I18n.locale, prefix: 'og: https://ogp.me/ns#' }
  %head
    %meta{ charset: 'utf-8' }
    %meta{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }
    %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover' }
    - if user_signed_in?
      %meta{ name: 'theme-color', content: theme_color, media: '(min-width: 993px)' }
      %meta{ name: 'theme-color', content: mobile_theme_color, media: '(max-width: 992px)' }
    - else
      %meta{ name: 'theme-color', content: theme_color }
    - if @user&.privacy_noindex? || @answer&.user&.privacy_noindex? || @question&.user&.privacy_noindex?
      %meta{ name: 'robots', content: 'noindex' }
    %link{ rel: 'manifest', href: '/manifest.json', crossorigin: 'use-credentials' }
    %link{ rel: 'apple-touch-icon', href: '/icons/maskable_icon_x192.png' }
    %link{ rel: 'mask-icon', href: '/icons/icon.svg', color: theme_color }
    %link{ rel: 'icon', href: '/images/favicon/favicon-16.png', sizes: '16x16' }
    %link{ rel: 'icon', href: '/icons/maskable_icon_x192.png', sizes: '192x192' }
    %link{ rel: 'icon', href: '/images/favicon/favicon-32.png', sizes: '32x32' }
    %title= yield(:title)
    = stylesheet_pack_tag 'application', data: { 'turbo-track': 'reload' }
    = javascript_pack_tag 'application', data: { 'turbo-track': 'reload' }
    = javascript_pack_tag 'legacy', data: { 'turbo-track': 'reload' }
    = csrf_meta_tags
    = yield(:og)
    = yield(:meta)
  %body{ class: user_signed_in? ? '' : 'not-logged-in' }
    - if user_signed_in?
      = render 'navigation/main'
    - else
      = render 'navigation/guest'
    = render 'shared/announcements'
    = yield
    - if Rails.env.development?
      #debug
        %hr
        .container
          %p
            Current branch:
            %code= `git rev-parse --abbrev-ref HEAD`
            (commit
            = succeed ')' do
              = `git rev-parse --short HEAD`.strip
          %p.text-danger Debug params:
          = debug params
    = render_theme

{'fraction_non_alphanumeric': 0.1718018240078876, 'fraction_numerical': 0.01725412866650234, 'mean_word_length': 2.8647619047619046, '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': '6517543', 'n_tokens_mistral': 1503, 'n_tokens_neox': 1421, 'n_words': 317}