<commit_before>
<table class="table table-striped">
  <thead>
    <tr>
      <th></th>
      <th>Request URL</th>
      <th>Route Type</th>
    </tr>
  </thead>
  <tbody>


    <% @stubs.each do |stub| %>
      <tr>
         <td>

              <%if @duplicate_id_list.include?(stub.id)%>
                 
                <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#<%=stub.id%>" data-whatever="@mdo">View</button>
              <%else%>
                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#<%=stub.id%>" data-whatever="@mdo">View</button>
             <%end%>

         </td>
          <div class="modal fade" id="<%=stub.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Route Information</h4>
              </div>
              <div class="modal-body">
                <form>
                  <div class="form-group">
                    <label for="recipient-name" class="control-label">Request URL:</label>
                    <textarea class="form-control" id="message-text" cols="30" rows="3" id="response_textarea"><%= stub.request_url %></textarea>
                  </div>
                  <div class="form-group">
                    <label for="response" class="control-label">Headers:</label>
                      <textarea class="form-control" id="response_<%= stub.id%>" cols="30" rows="5"><%= stub.headers%></textarea>
                  </div>
                  <div class="form-group">
                    <label for="recipient-name" class="control-label">Request Body:</label>
                     <textarea class="form-control" id="message-text" cols="30" rows="3" id="response_textarea"> <%= stub.request_body %></textarea>
                  </div>
                   <div class="form-group">
                      <label for="message-text" class="control-label">Route Type:</label>
                    <input type="text" class="form-control" id="recipient-name" value="<%= stub.route_type %>">
                  </div>
                  <div class="form-group">
                    <label for="response" class="control-label">Response:</label>
                    <a onclick="print_pretty(<%= stub.id%>);">Pretty Json</a> 
                      <textarea class="form-control" id="response_<%= stub.id%>" cols="30" rows="25"><%= stub.response%></textarea>
                  </div>
                </form>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button><commit_msg>aadhi: fixing pretty json issue<commit_after>
<table class="table table-striped">
  <thead>
    <tr>
      <th></th>
      <th>Request URL</th>
      <th>Route Type</th>
    </tr>
  </thead>
  <tbody>


    <% @stubs.each do |stub| %>
      <tr>
         <td>

              <%if @duplicate_id_list.include?(stub.id)%>
                 
                <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#<%=stub.id%>" data-whatever="@mdo">View</button>
              <%else%>
                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#<%=stub.id%>" data-whatever="@mdo">View</button>
             <%end%>

         </td>
          <div class="modal fade" id="<%=stub.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Route Information</h4>
              </div>
              <div class="modal-body">
                <form>
                  <div class="form-group">
                    <label for="recipient-name" class="control-label">Request URL:</label>
                    <textarea class="form-control" id="message-text" cols="30" rows="3" id="response_textarea"><%= stub.request_url %></textarea>
                  </div>
                  <div class="form-group">
                    <label for="response" class="control-label">Headers:</label>
                      <textarea class="form-control"  cols="30" rows="5"><%= stub.headers%></textarea>
                  </div>
                  <div class="form-group">
                    <label for="recipient-name" class="control-label">Request Body:</label>
                     <textarea class="form-control" id="message-text" cols="30" rows="3" id="response_textarea"> <%= stub.request_body %></textarea>
                  </div>
                   <div class="form-group">
                      <label for="message-text" class="control-label">Route Type:</label>
                    <input type="text" class="form-control" id="recipient-name" value="<%= stub.route_type %>">
                  </div>
                  <div class="form-group">
                    <label for="response" class="control-label">Response:</label>
                    <a onclick="print_pretty(<%= stub.id%>);">Pretty Json</a> 
                      <textarea class="form-control" id="response_<%= stub.id%>" cols="30" rows="25"><%= stub.response%></textarea>
                  </div>
                </form>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
{'fraction_non_alphanumeric': 0.17833531106967282, 'fraction_numerical': 0.005424648245465333, 'mean_word_length': 1.9722921914357683, 'pattern_counts': {'":': 0, '<': 168, '<?xml version=': 0, '>': 168, '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': '2469970', 'n_tokens_mistral': 1776, 'n_tokens_neox': 1623, 'n_words': 299}