<commit_before><div id="request">
  <%= form_for @request, :url => create_request_path, html: { :class => 'form-horizontal' }, :remote => true do %>

  <!-- URL -->
  <div class="form-group">
    <div class="col-md-2">
      <%= select_tag 'request_type', options_for_select(%w(GET POST PUT DELETE OPTIONS HEAD PATCH)), :class => 'request-type form-control' %>
    </div>
    <div class="col-md-10">
      <%= url_field_tag(:url, '', { :class => 'request-url form-control', :placeholder => 'Enter your URL...' }) %>
    </div>
  </div>

  <!-- Authentication -->
  <div class="form-group">
    <div class="col-md-2">
      <%= label_tag 'Authentication', nil, class: 'form-label' %>
    </div>
    <div class="col-md-10">
      <button type="button" class="btn btn-sm btn-default" id="js-add-request-basic-auth">
        <span class="glyphicon glyphicon-plus"></span> Add basic authentication
      </button>
      <div id="request-basic-auth">
        <%= text_field_tag 'username', nil, class: 'auth_username form-control', :placeholder => 'Username' %>
        <%= password_field_tag 'password', nil, class: 'auth_password form-control', :placeholder => 'Password' %>
        <a href="" id="js-hide-request-basic-auth">Remove authentication</a>
      </div>
    </div>
  </div>
<commit_msg>Swap out hardcoded HTTP verbs for helper method<commit_after><div id="request">
  <%= form_for @request, :url => create_request_path, html: { :class => 'form-horizontal' }, :remote => true do %>

  <!-- URL -->
  <div class="form-group">
    <div class="col-md-2">
      <%= select_tag 'request_type', options_for_select(request_method_options), :class => 'request-type form-control' %>
    </div>
    <div class="col-md-10">
      <%= url_field_tag(:url, '', { :class => 'request-url form-control', :placeholder => 'Enter your URL...' }) %>
    </div>
  </div>

  <!-- Authentication -->
  <div class="form-group">
    <div class="col-md-2">
      <%= label_tag 'Authentication', nil, class: 'form-label' %>
    </div>
    <div class="col-md-10">
      <button type="button" class="btn btn-sm btn-default" id="js-add-request-basic-auth">
        <span class="glyphicon glyphicon-plus"></span> Add basic authentication
      </button>
      <div id="request-basic-auth">
        <%= text_field_tag 'username', nil, class: 'auth_username form-control', :placeholder => 'Username' %>
        <%= password_field_tag 'password', nil, class: 'auth_password form-control', :placeholder => 'Password' %>
        <a href="" id="js-hide-request-basic-auth">Remove authentication</a>
      </div>
    </div>
  </div>

{'fraction_non_alphanumeric': 0.19884615384615384, 'fraction_numerical': 0.004615384615384616, 'mean_word_length': 3.378787878787879, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 77, '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': '5085250', 'n_tokens_mistral': 871, 'n_tokens_neox': 829, 'n_words': 187}