<commit_before>// $(document).ready
$(function(){
    
    var i=1;
     
    $("#delete_row").click(function(){
    	 if(i>1){
		    $("#addr"+(i-1)).html('');
		    i--;
		  }
	  });

    // Adds the user to the below table
    $("#add_user").click(function(){

      var contents = $("#skinput").val();
      var name = $("#nameinput").val();


      $('#addr'+i).html("<td>"+ i +"</td><td><input id='skcontainer"+i+"' name='serialkey"+i+"' type='text' placeholder='Serial Key' class='form-control input-md' disabled/> </td><td><input id='namecontainer"+i+"' name='name"+i+"' type='text' placeholder='Name'  class='form-control input-md' disabled></td> <td style='vertical-align:middle' align='center'><a class='btn btn-default'>Invalidate User</a><a class='btn btn-default'>Refresh Token</a><a class='btn btn-default'>View Gallery</a></td>");

      $("#skcontainer"+i).val(contents);

      $("#namecontainer"+i).val(name);

      $('#tab_logic').append('<tr id="addr'+(i+1)+'"></tr>');
      
      $("#skinput").val('');
      $("#nameinput").val('');
      i++; 
    });


}); <commit_msg>Have to have values to submit<commit_after>// $(document).ready
$(function(){
    
    var i=1;
     
    $("#delete_row").click(function(){
    	 if(i>1){
		    $("#addr"+(i-1)).html('');
		    i--;
		  }
	  });

    // Adds the user to the below table
    $("#add_user").click(function(){

      var contents = $("#skinput").val();
      var name = $("#nameinput").val();

      if (contents && name) { 
        $('#addr'+i).html("<td>"+ i +"</td><td><input id='skcontainer"+i+"' name='serialkey"+i+"' type='text' placeholder='Serial Key' class='form-control input-md' disabled/> </td><td><input id='namecontainer"+i+"' name='name"+i+"' type='text' placeholder='Name'  class='form-control input-md' disabled></td> <td style='vertical-align:middle' align='center'><a class='btn btn-default'>Invalidate User</a><a class='btn btn-default'>Refresh Token</a><a class='btn btn-default'>View Gallery</a></td>");

        $("#skcontainer"+i).val(contents);

        $("#namecontainer"+i).val(name);

        $('#tab_logic').append('<tr id="addr'+(i+1)+'"></tr>');
        
        $("#skinput").val('');
        $("#nameinput").val('');
        i++;
      } 
    });


}); 
{'fraction_non_alphanumeric': 0.2659010600706714, 'fraction_numerical': 0.0035335689045936395, 'mean_word_length': 3.494047619047619, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '210289', 'n_tokens_mistral': 755, 'n_tokens_neox': 736, 'n_words': 130}