<commit_before><meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<% desc = "#{SiteSetting['SiteName']} on Codidact - open, community-run Q&A knowledge sharing" %>
<meta name="description" content="<%= content_for?(:description) ? content_for(:description) : desc %>" />

<% page_title = (Rails.env.development? ? '[DEV] ' : '') +
                SiteSetting['SiteName'].to_s +
                (content_for?(:title) ? ' - ' + CGI.unescapeHTML(content_for(:title)) : '') %>
<title>
  <%= page_title %>
</title>

<link rel="icon" href="<%= SiteSetting['IconPath'] || '/assets/favicon.ico' %>" />

<%= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono&display=swap" %>
<%= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" %>
<%= stylesheet_link_tag "https://unpkg.com/@codidact/co-design@0.10.0/dist/codidact.css" %>
<%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/css/select2.min.css" %>
<%= stylesheet_link_tag "/assets/community/#{@community.host.split('.')[0]}.css" %>
<%= stylesheet_link_tag 'application', media: 'all' %>

<%= javascript_include_tag "https://code.jquery.com/jquery-2.2.2.min.js" %>
<%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js" %>
<%= javascript_include_tag "https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/js/select2.min.js" %>
<%= javascript_include_tag "https://unpkg.com/@codidact/co-design@0.10.0/js/co-design.js" %>
<%= javascript_include_tag 'application' %>

<% if SiteSetting['MathJaxEnabled'] %>
  <script>
    MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      }
    };
  </script>
  <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<% end %>

<%= csrf_meta_tags %>

<%= yield(:head) %>

<% if content_for? :twitter_card_meta %>
  <%= yield :twitter_card_meta %>
<% else %>
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:creator" content="@CodidactQA" />
  <meta property="og:url" content="<%= request.original_url %>" />
  <meta property="og:title" content="<%= page_title %>" />
  <meta property="og:description" content="<%= content_for?(:description) ? content_for(:description) : desc %>" />
  <meta property="og:image" content="<%= "https://#{RequestContext.community.host}#{SiteSetting['SiteLogoPath']}" %>" />
<% end %>
<commit_msg>Community-specific JS<commit_after><meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<% desc = "#{SiteSetting['SiteName']} on Codidact - open, community-run Q&A knowledge sharing" %>
<meta name="description" content="<%= content_for?(:description) ? content_for(:description) : desc %>" />

<% page_title = (Rails.env.development? ? '[DEV] ' : '') +
                SiteSetting['SiteName'].to_s +
                (content_for?(:title) ? ' - ' + CGI.unescapeHTML(content_for(:title)) : '') %>
<title>
  <%= page_title %>
</title>

<link rel="icon" href="<%= SiteSetting['IconPath'] || '/assets/favicon.ico' %>" />

<%= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono&display=swap" %>
<%= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" %>
<%= stylesheet_link_tag "https://unpkg.com/@codidact/co-design@0.10.0/dist/codidact.css" %>
<%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/css/select2.min.css" %>
<%= stylesheet_link_tag "/assets/community/#{@community.host.split('.')[0]}.css" %>
<%= stylesheet_link_tag 'application', media: 'all' %>

<%= javascript_include_tag "https://code.jquery.com/jquery-2.2.2.min.js" %>
<%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js" %>
<%= javascript_include_tag "https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/js/select2.min.js" %>
<%= javascript_include_tag "https://unpkg.com/@codidact/co-design@0.10.0/js/co-design.js" %>
<%= javascript_include_tag "/assets/community/#{@community.host.split('.')[0]}.js" %>
<%= javascript_include_tag 'application' %>

<% if SiteSetting['MathJaxEnabled'] %>
  <script>
    MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      }
    };
  </script>
  <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<% end %>

<%= csrf_meta_tags %>

<%= yield(:head) %>

<% if content_for? :twitter_card_meta %>
  <%= yield :twitter_card_meta %>
<% else %>
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:creator" content="@CodidactQA" />
  <meta property="og:url" content="<%= request.original_url %>" />
  <meta property="og:title" content="<%= page_title %>" />
  <meta property="og:description" content="<%= content_for?(:description) ? content_for(:description) : desc %>" />
  <meta property="og:image" content="<%= "https://#{RequestContext.community.host}#{SiteSetting['SiteLogoPath']}" %>" />
<% end %>

{'fraction_non_alphanumeric': 0.23015281401416324, 'fraction_numerical': 0.014722325754752142, 'mean_word_length': 4.833695652173913, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, 'https://': 22, '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': '3845364', 'n_tokens_mistral': 2148, 'n_tokens_neox': 1960, 'n_words': 223}