<commit_before>{% extends 'BellesCosesFalsesMainBundle:Global:layout.html.twig' %}
{% block description %}
{% endblock %}
{% block recursos %}
    <script type="text/javascript">
        APP = [];

        jQuery(document).ready(function($) {
            var black = [0, 0, 0];
            var yellow = [250, 247, 67];
            var magenta = [231, 0, 138];
            var green = [139, 203, 71];
            var blue = [44, 65, 156];
            APP.colormatrix = [black, yellow, magenta, green];
            APP.hcd = $('#hack-colors-div');
            APP.randomIndexColor = getRandomInt(0, 3);
            APP.currentcolor = APP.colormatrix[APP.randomIndexColor];
            APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
            setGradientCSS3(APP.hcd, APP.currentcolor[0], APP.currentcolor[1], APP.currentcolor[2]);
            APP.fadeInInterval = setInterval(fireFadeInInterval, 25);
            //$(document).trigger('app/setFade', hcd, getRandomIntMatrix(3));
        });

        function fireFadeInInterval() {
            var color = APP.currentcolor;
            //console.log('hit ' + color);
            var red = color[0];
            var green = color[1];
            var blue = color[2];
            if (red < 255) red++;
            if (green < 255) green++;
            if (blue < 255) blue++;
            setGradientCSS3(APP.hcd, red, green, blue);
            APP.currentcolor = [red, green, blue];
            if (red == 255 && green == 255 && blue == 255) {
                window.clearInterval(APP.fadeInInterval);
                APP.randomIndexColor = getAnotherDifferentRandomInt(0, 3, APP.randomIndexColor);
                APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
                APP.fadeOutInterval = setInterval(fireFadeOutInterval, 25);
            }
        }

        function fireFadeOutInterval() {
            var color = APP.currentcolor;
            //console.log('hit ' + color);
            var red = color[0];
            var green = color[1];
            var blue = color[2];
            if (red > APP.nextcolor[0]) red--;
            if (green > APP.nextcolor[1]) green--;
            if (blue > APP.nextcolor[2]) blue--;
            setGradientCSS3(APP.hcd, red, green, blue);
            APP.currentcolor = [red, green, blue];
            if (red == APP.nextcolor[0] && green == APP.nextcolor[1] && blue == APP.nextcolor[2]) {
                window.clearInterval(APP.fadeOutInterval);
                APP.randomIndexColor = getAnotherDifferentRandomInt(0, 3, APP.randomIndexColor);
                APP.currentcolor = APP.nextcolor;
                APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
                APP.fadeInInterval = setInterval(fireFadeInInterval, 25);
            }
        }

        /**
         * Returns a random integer between min and max different from last parameter
         */
        function getAnotherDifferentRandomInt(min, max, notequal) {
            var found = false;
            var intSearch = getRandomInt(min, max);
            while (!found) {
                if (intSearch === notequal) {
                    intSearch = getRandomInt(min, max);<commit_msg>step 01.5 - layout enhacements<commit_after>{% extends 'BellesCosesFalsesMainBundle:Global:layout.html.twig' %}
{% block description %}
{% endblock %}
{% block recursos %}
    <script type="text/javascript">
        APP = [];

        jQuery(document).ready(function($) {
            var black = [0, 0, 0];
            var yellow = [250, 247, 67];
            var magenta = [231, 0, 138];
            var green = [139, 203, 71];
            var blue = [44, 65, 156];
            APP.colormatrix = [black, yellow, magenta, green];
            APP.hcd = $('#hack-colors-div');
            APP.randomIndexColor = getRandomInt(0, 3);
            APP.currentcolor = APP.colormatrix[APP.randomIndexColor];
            APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
            setGradientCSS3(APP.hcd, APP.currentcolor[0], APP.currentcolor[1], APP.currentcolor[2]);
            APP.fadeInInterval = setInterval(fireFadeInInterval, 25);
            //$(document).trigger('app/setFade', hcd, getRandomIntMatrix(3));
        });

        function fireFadeInInterval() {
            var color = APP.currentcolor;
            //console.log('hit ' + color);
            var red = color[0];
            var green = color[1];
            var blue = color[2];
            if (red < 255) red++;
            if (green < 255) green++;
            if (blue < 255) blue++;
            setGradientCSS3(APP.hcd, red, green, blue);
            APP.currentcolor = [red, green, blue];
            if (red == 255 && green == 255 && blue == 255) {
                window.clearInterval(APP.fadeInInterval);
                APP.randomIndexColor = getAnotherDifferentRandomInt(0, 3, APP.randomIndexColor);
                APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
                APP.fadeOutInterval = setInterval(fireFadeOutInterval, 25);
            }
        }

        function fireFadeOutInterval() {
            var color = APP.currentcolor;
            //console.log('hit ' + color);
            var red = color[0];
            var green = color[1];
            var blue = color[2];
            if (red > APP.nextcolor[0]) red--;
            if (green > APP.nextcolor[1]) green--;
            if (blue > APP.nextcolor[2]) blue--;
            setGradientCSS3(APP.hcd, red, green, blue);
            APP.currentcolor = [red, green, blue];
            if (red == APP.nextcolor[0] && green == APP.nextcolor[1] && blue == APP.nextcolor[2]) {
                window.clearInterval(APP.fadeOutInterval);
                APP.randomIndexColor = getAnotherDifferentRandomInt(0, 3, APP.randomIndexColor);
                APP.currentcolor = APP.nextcolor;
                APP.nextcolor = APP.colormatrix[APP.randomIndexColor];
                APP.fadeInInterval = setInterval(fireFadeInInterval, 25);
            }
        }

        /**
         * Returns a random integer between min and max different from last parameter
         */
        function getAnotherDifferentRandomInt(min, max, notequal) {
            var found = false;
            var intSearch = getRandomInt(min, max);
            while (!found) {
                if (intSearch == notequal) {
                    intSearch = getRandomInt(min, max);
{'fraction_non_alphanumeric': 0.12793611024115253, 'fraction_numerical': 0.026150955214531788, 'mean_word_length': 1.8887381275440978, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4155707', 'n_tokens_mistral': 2017, 'n_tokens_neox': 1753, 'n_words': 402}