<commit_before>$(document).ready(function () {

    $('#primaryPostForm').validate()

    // Image preview in upload input
    $('.form__input--upload').on('change', function () {

        var label = $(this).data('label');
        var image = (window.URL ? URL : webkitURL).createObjectURL(this.files[0]);

        $(label).css('background-image', 'url(' + image + ')');

        $('.remover').css('display', 'block');
    })

    $('.remover').on('click', function () {
        var input = $(this).data('for');
        var label = $(input).data('label');

        $(input).wrap('<form>').closest('form').get(0).reset();
        $(input).unwrap();

        $(label).css('background-image', 'none');

        $('.remover').css('display', 'none');
    })

    $('.color-switcher-button').on('click', function() {
        $('link#stylesheet').attr('href', $(this).data('stylesheet'));
    })
});
<commit_msg>Comment js<commit_after>$(document).ready(function () {

    $('#primaryPostForm').validate()

    // Image preview in upload input
    $('.form__input--upload').on('change', function () {

        var label = $(this).data('label');
        var image = (window.URL ? URL : webkitURL).createObjectURL(this.files[0]);

        $(label).css('background-image', 'url(' + image + ')');

        $('.remover').css('display', 'block');
    })

    // Remove image from form
    $('.remover').on('click', function () {
        var input = $(this).data('for');
        var label = $(input).data('label');

        $(input).wrap('<form>').closest('form').get(0).reset();
        $(input).unwrap();

        $(label).css('background-image', 'none');

        $('.remover').css('display', 'none');
    })

    // Color switcher
    $('.color-switcher-button').on('click', function() {
        $('link#stylesheet').attr('href', $(this).data('stylesheet'));
    })
});

{'fraction_non_alphanumeric': 0.25147770016120363, 'fraction_numerical': 0.0021493820526598604, 'mean_word_length': 2.928270042194093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5030941', 'n_tokens_mistral': 563, 'n_tokens_neox': 548, 'n_words': 87}