<commit_before>$(document).ready(function() {
    // To use it  : <a href="/url/to/a/victoire/page?layout=modal" data-toggle="viclink-modal">link</a>
    $(document).on('click', '[data-toggle="viclink-modal"]', function(e) {
        e.preventDefault();
        $('.modal').modal('hide').on('hidden.bs.modal', function(){$(this).remove()});

        var url = $(this).attr('href');
        $('#canvasloader-container').fadeIn();
        $.get(url, function(data) {
            $('body').append(data);
        }).success(function() {
            $('#canvasloader-container').fadeOut();
            $('input:text:visible:first').focus();
        });<commit_msg>Trigger events during modal script<commit_after>$(document).ready(function() {
    // To use it  : <a href="/url/to/a/victoire/page?layout=modal" data-toggle="viclink-modal">link</a>
    $(document).on('click', '[data-toggle="viclink-modal"]', function(e) {
        e.preventDefault();
        $('.modal').modal('hide').on('hidden.bs.modal', function(){$(this).remove()});

        $(document).trigger('vic.modal.request');
        var url = $(this).attr('href');
        $.get(url, function(data) {
            $('body').append(data);
            $(document).trigger('vic.modal.append');
        }).success(function() {
            $(document).trigger('vic.modal.success');
        });
{'fraction_non_alphanumeric': 0.23586309523809523, 'fraction_numerical': 0.0, 'mean_word_length': 3.039039039039039, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5757873', 'n_tokens_mistral': 409, 'n_tokens_neox': 399, 'n_words': 50}