<commit_before><div id="http_post">
  <h1>POST tests</h1>

  <%# information of received POST -%>
  <% if @msg -%>
    <span id="post_info">
    Message from last POST:
      <span id="post_msg">
        <%= @msg -%>
      </span>
    </span>
  <% end -%>

	<% if @checkbox -%>
		<span id="post_info">
		Checkbox was checked
		</span>
	<% end -%>


  <div class="http_postform">
  <h2>Regular POST</h2>
    <%= form_tag :action => "post" %>
      <p>
        <span>Input text:</span>
        <%= text_field_tag "msg", "The Java language was created by <NAME> in June 1991", :size => 89 %>
      </p>

      <p>
        <span>Input checkbox:</span>
        <input type="checkbox" name="checkbox" value="yay" true />
      </p>

      <p class="submit_tags">
        <input type="submit" value="Submit" />
      </p>
    </form>
  </div>


  <h2>POST with accept-charset="UTF-8"</h2>
  <div class="http_postform">
    <% form_tag({ :action => "post" }, {:'accept-charset' => "UTF-8"} ) do %>
      <p>
        <%= text_field_tag "msg", "å ä ö ♥", :size => 12 %>
      </p>
      <p class="submit_tags">
        <%= submit_tag 'Submit' %>
      </p>
    <% end %>
  </div>


  <h2>POST with awkward field names</h2>
  <div class="http_postform">
    <% form_tag({ :action => "post" }, {:'accept-charset' => "UTF-8"} ) do %>
      <p>
			  <%= text_field_tag "postcode[#{@postcode}][]", "è"  %>
      </p>
      <p class="submit_tags">
        <%= submit_tag 'Submit' %>
      </p>
    <% end %>
  </div>



  <h2>Exit portlet w/ POST:</h2>
  <p>
	Sometimes it is useful to send an action outside the portlet.<commit_msg>test POST with ISO-8859-1 encoding<commit_after><div id="http_post">
  <h1>POST tests</h1>

  <%# information of received POST -%>
  <% if @msg -%>
    <span id="post_info">
    Message from last POST:
      <span id="post_msg">
        <%= @msg -%>
      </span>
    </span>
  <% end -%>

	<% if @checkbox -%>
		<span id="post_info">
		Checkbox was checked
		</span>
	<% end -%>


  <div class="http_postform">
  <h2>Regular POST</h2>
    <%= form_tag :action => "post" %>
      <p>
        <span>Input text:</span>
        <%= text_field_tag "msg", "The Java language was created by <NAME> in June 1991", :size => 89 %>
      </p>

      <p>
        <span>Input checkbox:</span>
        <input type="checkbox" name="checkbox" value="yay" true />
      </p>

      <p class="submit_tags">
        <input type="submit" value="Submit" />
      </p>
    </form>
  </div>


  <h2>POST with accept-charset="UTF-8"</h2>
  <div class="http_postform">
    <% form_tag({ :action => "post" }, {:'accept-charset' => "UTF-8"} ) do %>
      <p>
        <%= text_field_tag "msg", "å ä ö ♥", :size => 12 %>
      </p>
      <p class="submit_tags">
        <%= submit_tag 'Submit' %>
      </p>
    <% end %>
  </div>


  <h2>POST with awkward field names sent as ISO-8859-1</h2>
  <div class="http_postform">
    <% form_tag({ :action => "post" }, {:'accept-charset' => "ISO-8859-1"} ) do %>
      <p>
			  <%= text_field_tag "postcode[#{@postcode}][]", "è"  %>
      </p>
      <p class="submit_tags">
        <%= submit_tag 'Submit' %>
      </p>
    <% end %>
  </div>



  <h2>Exit portlet w/ POST:</h2>
  <p>
	Sometimes it is useful to send an action outside the portlet.
{'fraction_non_alphanumeric': 0.20768526989935956, 'fraction_numerical': 0.017078377554132357, 'mean_word_length': 2.336724313326551, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 141, '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': '2142206', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1206, 'n_words': 290}