<commit_before>/*!
 * @license MIT
 * @author <NAME>
 * @copyright (c) Maisons du Monde
 */
;(function ($, document)
{
    "use strict";

    $.MDMAnimationHeartbeat = function (steps, speed)
    {
        var max = steps - 1,
            current = 0,
            delay,
            interval,
            beat;

        // set default speed if none is passed as parameter
        delay = typeof speed !== 'undefined' ? speed : 40;

        $(document).bind('mdm-animation.stop', function ()
        {
            clearInterval(interval);
        });

        $(document).bind('mdm-animation.start', function ()
        {
            if (current > max)
            {
                $(document).trigger('mdm-animation.reset');
            }

            interval = setInterval(beat, delay);
        });

        $(document).bind('mdm-animation.reset', function ()
        {
            current = 0;
        });

        $(document).bind('mdm-animation.beat', function (event, animation)
        {
            console.log('mdm-animation.beat: img ' + animation.current + ', max ' + max);
            current = animation.current + 1;
        });

        beat = function ()
        {
            $(document).trigger('mdm-animation.beat', [
                {'current':current, 'max':max}
            ]);

            if (current > max)
            {
                $(document).trigger('mdm-animation.stop');
            }
        };<commit_msg>Remove console.log<commit_after>/*!
 * @license MIT
 * @author <NAME>
 * @copyright (c) Maisons du Monde
 */
;(function ($, document)
{
    "use strict";

    $.MDMAnimationHeartbeat = function (steps, speed)
    {
        var max = steps - 1,
            current = 0,
            delay,
            interval,
            beat;

        // set default speed if none is passed as parameter
        delay = typeof speed !== 'undefined' ? speed : 40;

        $(document).bind('mdm-animation.stop', function ()
        {
            clearInterval(interval);
        });

        $(document).bind('mdm-animation.start', function ()
        {
            if (current > max)
            {
                $(document).trigger('mdm-animation.reset');
            }

            interval = setInterval(beat, delay);
        });

        $(document).bind('mdm-animation.reset', function ()
        {
            current = 0;
        });

        $(document).bind('mdm-animation.beat', function (event, animation)
        {
            current = animation.current + 1;
        });

        beat = function ()
        {
            $(document).trigger('mdm-animation.beat', [
                {'current':current, 'max':max}
            ]);

            if (current > max)
            {
                $(document).trigger('mdm-animation.stop');
            }
        };
{'fraction_non_alphanumeric': 0.14479799785484448, 'fraction_numerical': 0.004290311047550947, 'mean_word_length': 1.4630281690140845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1980177', 'n_tokens_mistral': 764, 'n_tokens_neox': 723, 'n_words': 154}