<commit_before><!DOCTYPE html>
<html>
<head lang="en">
  <title>Request Basket</title>
  <!-- Bootstrap -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
  <!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css"-->

  <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

  <style>
    body { padding-top: 70px; }
    h1 { margin-top: 2px; }
    #more { margin-left: 40px; }
  </style>

  <script >
  (function($) {
    function getBasketName() {
      return new RegExp("[\\?&]name=([^&#]*)").exec(location.search)[1];
    }

    var name = getBasketName();
    var requestsCount = 0;

    function onAjaxError(jqXHR) {
      if (jqXHR.status == 401) {
        $("#token_message").modal({ keyboard : false });
      } else {
        $("#error_message_label").html("HTTP " + jqXHR.status + " - " + jqXHR.statusText);
        $("#error_message_text").html(jqXHR.responseText);
        $("#error_message").modal();
      }
    }

    function renderRequest(id, request) {
      var reqPath = request.path;
      if (request.query) {
        reqPath += "?" + request.query;
      }

      var headers = [];
      Object.keys(request.headers).map(function(header) {
        headers.push(header + ": " + request.headers[header].join(','));
      });

      var headerClass = "panel-default";
      switch(request.method) {
        case "GET":
          headerClass = "panel-success";
          break;
        case "PUT":
          headerClass = "panel-info";
          break;
        case "POST":
          headerClass = "panel-primary";
          break;
        case "DELETE":
          headerClass = "panel-danger";
          break;
      }

      var html = '<div class="row"><div class="col-md-1"><h4>[' + request.method + ']</h4></div><div class="col-md-11">' +
        '<div class="panel-group" id="' + id + '">' +
        '<div class="panel ' + headerClass + '"><div class="panel-heading" role="tab" id="' + id + '_path"><h4 class="panel-title">' +
        reqPath + '</h4></div></div><div class="panel panel-default">' +
        '<div class="panel-heading" role="tab" id="' + id + '_headers"><h4 class="panel-title">' +
        '<a class="collapsed" role="button" data-toggle="collapse" data-parent="#' + id + '" href="#' + id + '_headers_cont"' +
        'aria-expanded="false" aria-controls="' + id + '_headers_cont">Headers</a></h4></div>' +
        '<div id="' + id + '_headers_cont" class="panel-collapse collapse" role="tabpanel" aria-labelledby="' + id + '_headers">' +
        '<div class="panel-body"><pre>' + headers.join('\n') + '</pre></div></div></div><div class="panel panel-default">' +
        '<div class="panel-heading" role="tab" id="' + id + '_body"><h4 class="panel-title">' +
        '<a class="collapsed" role="button" data-toggle="collapse" data-parent="#' + id + '" href="#' + id + '_body_cont"' +
        'aria-expanded="false" aria-controls="' + id + '_body_cont">Body</a></h4></div>' +
        '<div id="' + id + '_body_cont" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="' + id + '_body">' +
        '<div class="panel-body"><pre>' + request.body + '</pre></div></div></div></div></div></div><hr/>';<commit_msg>color for HTTP method itself<commit_after><!DOCTYPE html>
<html>
<head lang="en">
  <title>Request Basket</title>
  <!-- Bootstrap -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
  <!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css"-->

  <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

  <style>
    body { padding-top: 70px; }
    h1 { margin-top: 2px; }
    #more { margin-left: 40px; }
  </style>

  <script >
  (function($) {
    function getBasketName() {
      return new RegExp("[\\?&]name=([^&#]*)").exec(location.search)[1];
    }

    var name = getBasketName();
    var requestsCount = 0;

    function onAjaxError(jqXHR) {
      if (jqXHR.status == 401) {
        $("#token_message").modal({ keyboard : false });
      } else {
        $("#error_message_label").html("HTTP " + jqXHR.status + " - " + jqXHR.statusText);
        $("#error_message_text").html(jqXHR.responseText);
        $("#error_message").modal();
      }
    }

    function renderRequest(id, request) {
      var reqPath = request.path;
      if (request.query) {
        reqPath += "?" + request.query;
      }

      var headers = [];
      Object.keys(request.headers).map(function(header) {
        headers.push(header + ": " + request.headers[header].join(','));
      });

      var headerClass = "default";
      switch(request.method) {
        case "GET":
          headerClass = "success";
          break;
        case "PUT":
          headerClass = "info";
          break;
        case "POST":
          headerClass = "primary";
          break;
        case "DELETE":
          headerClass = "danger";
          break;
      }

      var html = '<div class="row"><div class="col-md-1"><h4 class="text-' + headerClass + '">[' + request.method + 
        ']</h4></div><div class="col-md-11"><div class="panel-group" id="' + id + '">' +
        '<div class="panel panel-' + headerClass + '"><div class="panel-heading" role="tab" id="' + id + '_path"><h4 class="panel-title">' +
        reqPath + '</h4></div></div><div class="panel panel-default">' +
        '<div class="panel-heading" role="tab" id="' + id + '_headers"><h4 class="panel-title">' +
        '<a class="collapsed" role="button" data-toggle="collapse" data-parent="#' + id + '" href="#' + id + '_headers_cont"' +
        'aria-expanded="false" aria-controls="' + id + '_headers_cont">Headers</a></h4></div>' +
        '<div id="' + id + '_headers_cont" class="panel-collapse collapse" role="tabpanel" aria-labelledby="' + id + '_headers">' +
        '<div class="panel-body"><pre>' + headers.join('\n') + '</pre></div></div></div><div class="panel panel-default">' +
        '<div class="panel-heading" role="tab" id="' + id + '_body"><h4 class="panel-title">' +
        '<a class="collapsed" role="button" data-toggle="collapse" data-parent="#' + id + '" href="#' + id + '_body_cont"' +
        'aria-expanded="false" aria-controls="' + id + '_body_cont">Body</a></h4></div>' +
        '<div id="' + id + '_body_cont" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="' + id + '_body">' +
        '<div class="panel-body"><pre>' + request.body + '</pre></div></div></div></div></div></div><hr/>';
{'fraction_non_alphanumeric': 0.21922307912025135, 'fraction_numerical': 0.010568409025992574, 'mean_word_length': 2.9835039817974973, 'pattern_counts': {'":': 10, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 10, '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': '605212', 'n_tokens_mistral': 2361, 'n_tokens_neox': 2291, 'n_words': 395}