<commit_before>!function ($) {

  "use strict"; // jshint ;_;

  $( function() {
    var modalId = "modal-form-" + parseInt(Math.random() * 1000, 10);
    var $cont = $('<div id="'+modalId+'"></div>');
    $('body').append( $cont );

    $.modalForm = function(options) {
      var fields = options.fields || [];
      var title  = options.title  || options.submit;
      var submit = options.submit || 'submit';
      var $modal, field, type, html = "";

      html += "<div class=\"modal hide fade\">";
      html += "  <form style=\"margin:0\">";
      if (title) {
        html += "    <div class=\"modal-header\">";
        html += "      <h3>";
        html += "      "+title;
        html += "        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>";
        html += "      </h3>";
        html += "    <\/div>";  
      }
      html += "    <div class=\"modal-body\">";
      while (field = fields.shift()) {
        type = /password/.test(field) ? 'password' : 'text';
        html += "      <input class=\"span3\" type=\""+type+"\" name=\""+field+"\" placeholder=\""+field.replace(/_/g, ' ')+"\"><br \/>";
      }
      html += "    <\/div>";
      html += "    <div class=\"modal-footer\">";
      html += "      <button type=\"submit\" class=\"btn btn-primary\">"+submit+"<\/button>";
      html += "    <\/div>";
      html += "  <\/form>";
      html += "<\/div>";

      // make sure that only one modal is visible
      $modal = $( html );
      $cont.html('').append( $modal );
<commit_msg>Integrated bootstrap 3 changes<commit_after>!function ($) {

  "use strict"; // jshint ;_;

  $( function() {
    var modalId = "modal-form-" + parseInt(Math.random() * 1000, 10);
    var $cont = $('<div id="'+modalId+'"></div>');
    $('body').append( $cont );

    $.modalForm = function(options) {
      var fields = options.fields || [];
      var title  = options.title  || options.submit;
      var submit = options.submit || 'submit';
      var $modal, field, type, html = "";

      html += "<div class=\"modal fade\">";
      html += "  <form style=\"margin:0\" role=\"form\">";
      html += "  <div class=\"modal-dialog\">";
      html += "  <div class=\"modal-content\">";
      if (title) {
        html += "    <div class=\"modal-header\">";
        html += "      <h3>";
        html += "      "+title;
        html += "        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>";
        html += "      </h3>";
        html += "    <\/div>";
      }
      html += "    <div class=\"modal-body\">";
      html += "    <div class=\"form-group\">";
      while (field = fields.shift()) {
        type = /password/.test(field) ? 'password' : 'text';
        html += "      <input class=\"col-sm-3 form-control\" type=\""+type+"\" name=\""+field+"\" placeholder=\""+field.replace(/_/g, ' ')+"\"><br \/>";
      }
      html += "    <\/div>";
      html += "    <\/div>";
      html += "    <div class=\"modal-footer\">";
      html += "      <button type=\"submit\" class=\"btn btn-primary\">"+submit+"<\/button>";
      html += "    <\/div>";
      html += "    <\/div>";
      html += "    <\/div>";
      html += "  <\/form>";
      html += "<\/div>";

      // make sure that only one modal is visible
      $modal = $( html );
      $cont.html('').append( $modal );

{'fraction_non_alphanumeric': 0.24792899408284025, 'fraction_numerical': 0.00621301775147929, 'mean_word_length': 1.997340425531915, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '3107421', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1066, 'n_words': 233}