<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description"
          content="PCREck is a multi-dialect regular expression editor.">

    <title>PCREck - a multi-dialect regular expression editor</title>


    <% if settings.development? %>
      <link href="/css/PCREck.css" rel="stylesheet" type="text/css" />
    <% else %>
      <link href="/css/PCREck.min.css" rel="stylesheet" type="text/css" />
    <% end %>

  </head>

  <body>
    <%= erb :"_header" %>

    <nav>
      <span class="current_dialect"><%= @dialect %></span> -
      <% if @link && @link.mode == "simple" %>
        <span>simple mode</span>
        <a title="The advanced mode provides features useful for complex and large expressions" href="/<%= @dialect %>/advanced">advanced mode</a>
      <% else %>
        <a href="/<%= @dialect %>">simple mode</a>
        <span>advanced mode</span>
      <% end %>

      <div id="dialects">
        <a title="The dialect of the regular expression"
           data-placement="left"
           class="listlike" href="/dialects">Dialects</a>
        <ol class="listlike">
          <% @@dialects.each do |d| %>
            <li><a <%= 'class="disabled"' if @link.dialect == d %> href="/<%=d%><%=@mode == 'simple' ? '' : "/#{@mode}" %>"><%= d %></a></li>
          <% end %>
        </ol>
      </div>
    </nav>

    <div hidden="hidden" id="indicator">
      <img src="/images/ajax-loader.gif" width="31" height="31" alt="Loader" />
      <span>loading...</span>
    </div>

    <%= yield %>

    <%= erb :"_footer" %>

    <% if settings.development? %>
      <link href="/css/PCREck.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="/js/jquery-1.7.2.js"></script>
      <script type="text/javascript" src="/js/jquery.autosize.js"></script>
      <script type="text/javascript" src="/js/dynamism.js"></script>
      <script type="text/javascript" src="/js/PCREck.js"></script>
      <script type="text/javascript" src="/js/bootstrap/js/bootstrap.min.js"></script>
    <% else %>
      <link href="/css/PCREck.min.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="/js/PCREck.min.js"></script>
      <%= erb :"_google_analytics" %>
    <% end %>

    <script>
      $(function() {
        window.PCREck.dialect = "<%= @dialect %>";
      });
    </script>
    <%= yield_content :scripts %>
  </body>
</html><commit_msg>CSS was inlined in body<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description"
          content="PCREck is a multi-dialect regular expression editor.">

    <title>PCREck - a multi-dialect regular expression editor</title>


    <% if settings.development? %>
      <link href="/css/PCREck.css" rel="stylesheet" type="text/css" />
    <% else %>
      <link href="/css/PCREck.min.css" rel="stylesheet" type="text/css" />
    <% end %>

  </head>

  <body>
    <%= erb :"_header" %>

    <nav>
      <span class="current_dialect"><%= @dialect %></span> -
      <% if @link && @link.mode == "simple" %>
        <span>simple mode</span>
        <a title="The advanced mode provides features useful for complex and large expressions" href="/<%= @dialect %>/advanced">advanced mode</a>
      <% else %>
        <a href="/<%= @dialect %>">simple mode</a>
        <span>advanced mode</span>
      <% end %>

      <div id="dialects">
        <a title="The dialect of the regular expression"
           data-placement="left"
           class="listlike" href="/dialects">Dialects</a>
        <ol class="listlike">
          <% @@dialects.each do |d| %>
            <li><a <%= 'class="disabled"' if @link.dialect == d %> href="/<%=d%><%=@mode == 'simple' ? '' : "/#{@mode}" %>"><%= d %></a></li>
          <% end %>
        </ol>
      </div>
    </nav>

    <div hidden="hidden" id="indicator">
      <img src="/images/ajax-loader.gif" width="31" height="31" alt="Loader" />
      <span>loading...</span>
    </div>

    <%= yield %>

    <%= erb :"_footer" %>

    <% if settings.development? %>
      <script type="text/javascript" src="/js/jquery-1.7.2.js"></script>
      <script type="text/javascript" src="/js/jquery.autosize.js"></script>
      <script type="text/javascript" src="/js/dynamism.js"></script>
      <script type="text/javascript" src="/js/PCREck.js"></script>
      <script type="text/javascript" src="/js/bootstrap/js/bootstrap.min.js"></script>
    <% else %>
      <script type="text/javascript" src="/js/PCREck.min.js"></script>
      <%= erb :"_google_analytics" %>
    <% end %>

    <script>
      $(function() {
        window.PCREck.dialect = "<%= @dialect %>";
      });
    </script>
    <%= yield_content :scripts %>
  </body>
</html>
{'fraction_non_alphanumeric': 0.21393137660190162, 'fraction_numerical': 0.0033071517155849523, 'mean_word_length': 2.677051671732523, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, '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': '6491928', 'n_tokens_mistral': 1737, 'n_tokens_neox': 1574, 'n_words': 315}