<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Protected map</title>
    <%= stylesheet_link_tag 'password_protected.css' %>
    <%= javascript_include_tag 'cdb.js' %>
    <%= stylesheet_link_tag 'public_editor3', 'deep_insights', media: 'all' %>
    <style type="text/css">
      html, body {
        position:relative;
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>
  </head>
  <body class='protected'>
    <%= javascript_include_tag 'vendor_editor3.js' %>
    <%= javascript_include_tag 'common_editor3.js' %>
    <%= javascript_include_tag 'public_editor3.js' %>
    <div class="bkg"></div>
    <div class="block modal creation">
      <div class="head">
        <h3>This map is protected by password</h3>
      </div>
      <div class="content">
        <%= form_tag 'embed_protected', method: :post do %>
          <input type="password" name="password" placeholder="<PASSWORD>"/>
          <span class="icon"></span>

          <% if (flash[:error]) %>
            <span class="icon error" original-title="The password is not ok"></span>
          <% end %>
        <% end %>
      </div>
      <div class="foot">Contact with the owner in case you want access to it.</div>
    </div>
  </body>
</html><commit_msg>Keep state when posting to protected map login<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Protected map</title>
    <%= stylesheet_link_tag 'password_protected.css' %>
    <%= javascript_include_tag 'cdb.js' %>
    <%= stylesheet_link_tag 'public_editor3', 'deep_insights', media: 'all' %>
    <style type="text/css">
      html, body {
        position:relative;
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>
  </head>
  <body class='protected'>
    <%= javascript_include_tag 'vendor_editor3.js' %>
    <%= javascript_include_tag 'common_editor3.js' %>
    <%= javascript_include_tag 'public_editor3.js' %>
    <div class="bkg"></div>
    <div class="block modal creation">
      <div class="head">
        <h3>This map is protected by password</h3>
      </div>
      <div class="content">
        <%= form_tag "embed_protected?#{request.query_string}", method: :post do %>
          <input type="password" name="password" placeholder="<PASSWORD>"/>
          <span class="icon"></span>

          <% if (flash[:error]) %>
            <span class="icon error" original-title="The password is not ok"></span>
          <% end %>
        <% end %>
      </div>
      <div class="foot">Contact with the owner in case you want access to it.</div>
    </div>
  </body>
</html>
{'fraction_non_alphanumeric': 0.16609912977676883, 'fraction_numerical': 0.009080590238365494, 'mean_word_length': 2.7397454031117396, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '2402502', 'n_tokens_mistral': 900, 'n_tokens_neox': 826, 'n_words': 194}