<commit_before><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title> {% stylesheets
'@bootstrap_css' %}
<link rel="stylesheet" type="text/css" media="screen"
	href="{{ asset_url }}" />
{% endstylesheets %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
	{% block body %}{% endblock %} {% javascripts '@jquery' '@bootstrap_js'
	%}
	<script type="text/javascript" src="{{ asset_url }}"></script>
	{% endjavascripts %}
	<script>
    $( document ).ready(function() {

        
        
        
        $('#view_users').click(function(){
        	$.post('{{path('user_bundle_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#view_lists').click(function(){
        	$.post('{{path('get_lists_routing')}}',{
                getLists:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });
        
        $('#add_user').click(function(){
        	$.post('{{path('new_user_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#add_list').click(function(){
        	$.post('{{path('new_lists_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#user_list').on("submit","#new_user", function(){

    	    var FN = $('#user_firstName').val();
    	    var LN = $('#user_lastName').val();
    	    var id = $('#user_id').val();
    	    
    	    $.post('{{path('new_user_save_routing')}}',{
    	    	user_firstname:FN,
    	    	user_lastname:LN,
    	    	user_id:id
            },function(data){
         	   $('#user_list').html(data); 
          	  $.post('{{path('get_user_count_routing')}}',{
        	    	getUser:1
                },function(data){
             	   $('#user_count').html(data);          
                });         
            });

    	    
            return false;
       });  


       $('#user_list').on("submit","#new_list", function(){

    	    var FN = $('#lists_name').val();
    	    var id = $('#lists_id').val();
    	    
    	    $.post('{{path('new_list_save_routing')}}',{
    	    	list_name:FN,
    	    	list_id:id
            },function(data){
         	   $('#user_list').html(data); 
          	  $.post('{{path('get_lists_count_routing')}}',{
        	    	getUser:1
                },function(data){
             	   $('#lists_count').html(data);          
                });         
            });

    	    
            return false;
       }); 

       $('#user_list').on("click",".user_id", function(){
   	            var id = $(this).attr("ref");

      	         $.post('{{path('delete_user_routing')}}',{
      	             id:id
   	   	        },function(data){
     	   	        
      	             $('#user_list').html(data); 
                	 $.post('{{path('get_user_count_routing')}}',{
              	    	getUser:1
                     },function(data){
                   	    $('#user_count').html(data);          
                     });   
   	   	   	   	 });
       });

       $('#user_list').on("click",".list_id", function(){
           var id = $(this).attr("ref");

         $.post('{{path('delete_list_routing')}}',{
             id:id
  	        },function(data){
  	        
             $('#user_list').html(data); 
      	 $.post('{{path('get_lists_count_routing')}}',{
    	    	getUser:1
           },function(data){
         	    $('#lists_count').html(data);          
           });   
  	   	   	 });
        });

       $('#user_list').on("click",".user_edit", function(){
           var id = $(this).attr("ref");

           $.post('{{path('new_user_routing')}}',{
               id:id
           },function(data){
                  $('#user-' + id).html(data);             
           });
        });

       $('#user_list').on("click",".list_edit", function(){
           var id = $(this).attr("ref");

           $.post('{{path('new_lists_routing')}}',{
               id:id
           },function(data){
                  $('#user-' + id).html(data);             
           });
        });
    }); 
    </script>
</body>
</html><commit_msg>fix JS<commit_after><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title> {% stylesheets
'@bootstrap_css' %}
<link rel="stylesheet" type="text/css" media="screen"
	href="{{ asset_url }}" />
{% endstylesheets %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
	{% block body %}{% endblock %} {% javascripts '@jquery' '@bootstrap_js'
	%}
	<script type="text/javascript" src="{{ asset_url }}"></script>
	{% endjavascripts %}
	<script>
    $( document ).ready(function() {

        
        
        
        $('#view_users').click(function(){
        	$.post('{{path('user_bundle_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#view_lists').click(function(){
        	$.post('{{path('get_lists_routing')}}',{
                getLists:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });
        
        $('#add_user').click(function(){
        	$.post('{{path('new_user_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#add_list').click(function(){
        	$.post('{{path('new_lists_routing')}}',{
                getUsers:1
            },function(data){
                   $('#user_list').html(data);             
            });
        });

        $('#user_list').on("submit","#new_user", function(){

    	    var FN = $('#user_firstName').val();
    	    var LN = $('#user_lastName').val();
    	    var id = $('#user_id').val();
    	    
    	    $.post('{{path('new_user_save_routing')}}',{
    	    	user_firstname:FN,
    	    	user_lastname:LN,
    	    	user_id:id
            },function(data){
         	   $('#user_list').html(data); 
          	  $.post('{{path('get_user_count_routing')}}',{
        	    	getUser:1
                },function(data){
             	   $('#user_count').html(data);          
                });         
            });

    	    
            return false;
       });  


       $('#user_list').on("submit","#new_list", function(){

    	    var FN = $('#lists_name').val();
    	    var id = $('#lists_id').val();
    	    
    	    $.post('{{path('new_list_save_routing')}}',{
    	    	list_name:FN,
    	    	list_id:id
            },function(data){
         	   $('#user_list').html(data); 
          	  $.post('{{path('get_lists_count_routing')}}',{
        	    	getUser:1
                },function(data){
             	   $('#lists_count').html(data);          
                });         
            });

    	    
            return false;
       }); 

       $('#user_list').on("click",".user_id", function(){
   	            var id = $(this).attr("ref");

      	         $.post('{{path('delete_user_routing')}}',{
      	             id:id
   	   	        },function(data){
     	   	        
      	             $('#user_list').html(data); 
                	 $.post('{{path('get_user_count_routing')}}',{
              	    	getUser:1
                     },function(data){
                   	    $('#user_count').html(data);          
                     });   
   	   	   	   	 });
       });

       $('#user_list').on("click",".list_id", function(){
           var id = $(this).attr("ref");

         $.post('{{path('delete_list_routing')}}',{
             id:id
  	        },function(data){
  	        
             $('#user_list').html(data); 
      	 $.post('{{path('get_lists_count_routing')}}',{
    	    	getUser:1
           },function(data){
         	    $('#lists_count').html(data);          
           });   
  	   	   	 });
        });

       $('#user_list').on("click",".user_edit", function(){
           var id = $(this).attr("ref");

           $.post('{{path('new_user_routing')}}',{
               id:id
           },function(data){
                  $('#user-' + id).html(data);             
           });
        });

       $('#user_list').on("click",".list_edit", function(){
           var id = $(this).attr("ref");

           $.post('{{path('new_lists_routing')}}',{
               id:id
           },function(data){
                  $('#lists-' + id).html(data);             
           });
        });
    }); 
    </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.20529504150774064, 'fraction_numerical': 0.002019295490240072, 'mean_word_length': 1.4186109603906674, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2535686', 'n_tokens_mistral': 2743, 'n_tokens_neox': 2682, 'n_words': 308}