<commit_before>{% extends "base.html" %}

{% block head %}	
      {% load staticfiles %}
	  <script type="text/javascript">		
	  		$(document).ready(function () {
                addValidation();
	  		 });

            function addValidation() {
                var registrationElements = $('[data-toggle="popover"]');

                $.each(registrationElements, function(key, value) {
                    var elemID = $(registrationElements[key]).attr("id");
                    if($(registrationElements[key]).attr('data-content') !== "") {
                        $(registrationElements[key]).attr("data-template", "<div class='popover1' role='tooltip'><div class='arrow'></div><div class='popover-content'></div></div>");
                        $(registrationElements[key]).removeClass("noValidationAlert");
                        $(registrationElements[key]).addClass("validationAlert");
                        $(registrationElements[key]).click(function(){
                            $(this).css({'background-image' :'none'});
                        });
                    } else if (elemID === "recaptchaContainer") {
                        $(registrationElements[key]).attr("data-content", "This is how we know you are a real user");
                        displayRecaptchaNecessity();
                    }
                });

                $('[data-toggle="popover"]').popover({ trigger: 'hover', html: 'true'});
            }

	  		function recaptchaCallback() {
                $('#recaptchaContainer').removeClass('validationAlert');
                $('#recaptchaContainer').addClass('validatedElement');
            }

            function displayRecaptchaNecessity() {
                $("#recaptchaContainer").attr("data-template", "<div class='popover2' role='tooltip'><div class='arrow'></div><div class='popover-content'></div></div>");
            }
	  					
			
	  </script>
      <script src='https://www.google.com/recaptcha/api.js'></script>
{% endblock %}

{% block title %}Home page{% endblock %}

{% block content %}
<commit_msg>set recaptcha language to english<commit_after>{% extends "base.html" %}

{% block head %}	
      {% load staticfiles %}
	  <script type="text/javascript">		
	  		$(document).ready(function () {
                addValidation();
	  		 });

            function addValidation() {
                var registrationElements = $('[data-toggle="popover"]');

                $.each(registrationElements, function(key, value) {
                    var elemID = $(registrationElements[key]).attr("id");
                    if($(registrationElements[key]).attr('data-content') !== "") {
                        $(registrationElements[key]).attr("data-template", "<div class='popover1' role='tooltip'><div class='arrow'></div><div class='popover-content'></div></div>");
                        $(registrationElements[key]).removeClass("noValidationAlert");
                        $(registrationElements[key]).addClass("validationAlert");
                        $(registrationElements[key]).click(function(){
                            $(this).css({'background-image' :'none'});
                        });
                    } else if (elemID === "recaptchaContainer") {
                        $(registrationElements[key]).attr("data-content", "This is how we know you are a real user");
                        displayRecaptchaNecessity();
                    }
                });

                $('[data-toggle="popover"]').popover({ trigger: 'hover', html: 'true'});
            }

	  		function recaptchaCallback() {
                $('#recaptchaContainer').removeClass('validationAlert');
                $('#recaptchaContainer').addClass('validatedElement');
            }

            function displayRecaptchaNecessity() {
                $("#recaptchaContainer").attr("data-template", "<div class='popover2' role='tooltip'><div class='arrow'></div><div class='popover-content'></div></div>");
            }
	  					
			
	  </script>
      <script src='https://www.google.com/recaptcha/api.js?hl=en'></script>
{% endblock %}

{% block title %}Home page{% endblock %}

{% block content %}

{'fraction_non_alphanumeric': 0.17011052378664104, 'fraction_numerical': 0.0009610764055742432, 'mean_word_length': 2.085989621942179, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2119412', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1007, 'n_words': 160}