<commit_before>(function($)
{
    // HTML5 placeholder polyfill

    function initPlaceHolders()
    {
        if ( ! ('placeholder' in document.createElement('input'))) {
            $('[type=password][placeholder]').attr('placeholder', $('[type=password][placeholder]').eq(0).attr('placeholder'));
            var items = '[placeholder]', $doc = $(document);

            $(items).each(function() {
                var $this = $(this);

                if (($this.val() == '') && ($this.attr('placeholder'))) {
                    $this.val($this.attr('placeholder')).addClass('placeholder');
                } else if ($this.val() == $this.attr('placeholder')) {
                    $this.addClass('placeholder');
                }
            });

            $doc.on('focus', items, function() {
                var $this = $(this);

                if ($this.val() == $this.attr('placeholder')) {
                    $this.val('').removeClass('placeholder');
                }
            });

            $doc.on('blur', items, function() {
                var $this = $(this);

                if (($this.val() == '') && ($this.attr('placeholder'))) {
                    $this.val($this.attr('placeholder')).addClass('placeholder');
                }
            });

            $('form').on('submit', function() {
                var $this = $(this);

                $this.find('[placeholder]').each(function()
                {
                    if ($this.val() == $this.attr('placeholder')) {
                        $this.val('').removeClass('placeholder');
                    }
                });
            });
        }
    }
    


    // DOM ready

    $(function() {
        $('form').attr('autocomplete', 'off');

        $('select').mouseleave(function(event) {
            event.stopPropagation();
        });

        if (typeof console === 'undefined') {
            console = { log: function() {} };
        }
        
        $('html').removeClass('nojs');
        initPlaceHolders();
    });
    


    // Loading complete

    $(window).on('load', function() {
        
    });
    
})(jQuery);
<commit_msg>corrected js indenting style<commit_after>(function($)
{
    function initPlaceHolders()
    {
        if (! ('placeholder' in document.createElement('input'))) {
            $('[type=password][placeholder]').attr('placeholder', $('[type=password][placeholder]').eq(0).attr('placeholder'));
            var items = '[placeholder]', $doc = $(document);

            $(items).each(function() {
                var $this = $(this);

                if (($this.val() == '') && ($this.attr('placeholder'))) {
                    $this.val($this.attr('placeholder')).addClass('placeholder');
                } else if ($this.val() == $this.attr('placeholder')) {
                    $this.addClass('placeholder');
                }
            });

            $doc.on('focus', items, function() {
                var $this = $(this);

                if ($this.val() == $this.attr('placeholder')) {
                    $this.val('').removeClass('placeholder');
                }
            });

            $doc.on('blur', items, function() {
                var $this = $(this);

                if (($this.val() == '') && ($this.attr('placeholder'))) {
                    $this.val($this.attr('placeholder')).addClass('placeholder');
                }
            });

            $('form').on('submit', function() {
                var $this = $(this);

                $this.find('[placeholder]').each(function() {
                    if ($this.val() == $this.attr('placeholder')) {
                        $this.val('').removeClass('placeholder');
                    }
                });
            });
        }
    }
    


    $('form').attr('autocomplete', 'off');

    $('select').mouseleave(function(event) {
        event.stopPropagation();
    });

    if (typeof console === 'undefined') {
        console = { log: function() {} };
    }
    
    $('html').removeClass('nojs');
    initPlaceHolders();
})
(jQuery);
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.0007371007371007371, 'mean_word_length': 1.5749525616698292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '743541', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1022, 'n_words': 155}