<commit_before>$(function () {

    // Initialize popups.
    $('.popup').popup();

    // Initialize dropdown.
    $('.dropdown').dropdown({
        transition: 'drop'
    });

    // Initialize checkboxes.
    $('.checkbox').checkbox();

    // Initialize progress.
    $('.progress').progress();

    // Initialize tabs.
    $('.ui.attached.tabular.menu .item').tab();

    // Clear loading.
    $('.ui.active.dimmer').removeClass('active');

    // Loading buttons.
    $('.button[data-toggle="loading"]').click(function () {
        $(this).addClass('loading');
    });

    // Dimmer buttons.
    $('.button[data-toggle="dimmer"]').click(function () {
        $($(this).data('target')).dimmer('show');
    });

    // Toggle navigation.
    $('a.launch').click(function (e) {

        e.preventDefault();

        $('.sidebar.navigation').sidebar('toggle');
    });

    // Close sidebars on outside click.
    $('.pusher').click(function () {
        $('.sidebar').sidebar('hide');
    });

    // Toggle modals.
    $('[data-modal]').click(function (e) {

        e.preventDefault();

        $.ajax({
            url: $(e.target).attr('href'),
            success: function (html) {
                $('.ui.' + $(e.target).data('modal') + '.modal').html(html).modal('show');
            },
            error: function () {
                alert('There was an error loading the modal content [' + $(e.target).attr('href') + ']');
            }
        });
    });
});<commit_msg>Prompt and confirm<commit_after>$(function () {

    // Initialize popups.
    $('.popup').popup();

    // Initialize dropdown.
    $('.dropdown').dropdown({
        transition: 'drop'
    });

    // Initialize checkboxes.
    $('.checkbox').checkbox();

    // Initialize progress.
    $('.progress').progress();

    // Initialize tabs.
    $('.ui.attached.tabular.menu .item').tab();

    // Clear loading.
    $('.ui.active.dimmer').removeClass('active');

    // Loading buttons.
    $('.button[data-toggle="loading"]').click(function () {
        $(this).addClass('loading');
    });

    // Dimmer buttons.
    $('.button[data-toggle="dimmer"]').click(function () {
        $($(this).data('target')).dimmer('show');
    });

    // Toggle navigation.
    $('a.launch').click(function (e) {

        e.preventDefault();

        $('.sidebar.navigation').sidebar('toggle');
    });

    // Close sidebars on outside click.
    $('.pusher').click(function () {
        $('.sidebar').sidebar('hide');
    });

    // Toggle modals.
    $('[data-modal]').click(function (e) {

        e.preventDefault();

        $.ajax({
            url: $(e.target).attr('href'),
            success: function (html) {
                $('.ui.' + $(e.target).data('modal') + '.modal').html(html).modal('show');
            },
            error: function () {
                alert('There was an error loading the modal content [' + $(e.target).attr('href') + ']');
            }
        });
    });

    // Confirm
    $('[data-confirm]').click(function () {
        if (!confirm($(this).data('confirm'))) {
            return false;
        }
    });

    // Prompt
    $('[data-prompt]').click(function () {

        var input = prompt($(this).data('prompt'));

        if ($(this).data('match').toLowerCase() != input.toLowerCase()) {

            alert('Validation failed!');

            return false;
        }
    });
});
{'fraction_non_alphanumeric': 0.2259770790478989, 'fraction_numerical': 0.0, 'mean_word_length': 2.039285714285714, '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': '1057687', 'n_tokens_mistral': 1006, 'n_tokens_neox': 970, 'n_words': 156}