<commit_before>(function () {
    'use strict';

    $.ajax({
            url: 'http://localhost:6969/statistics'
        })
        .then(function (statistics) {

            let colors = [
                "#99cc33", "#F7464A", "#46BFBD", "#FDB45C", "#9966ff", "#888BDC", "#DEF25C"
            ];

            let highlights = [
                "#99cc66", "#FF5A5E", "#5AD3D1", "#FFC870", "#9933cc", "#9FA1E3", "#BED435"
            ];

            let offerTypes = [];

            for (let property in statistics.offerTypes) {
                if (statistics.offerTypes.hasOwnProperty(property)) {
                    let random = Math.floor(Math.random() * colors.length);
                    offerTypes.push({
                        value: statistics.offerTypes[property],
                        color: colors[random],
                        highlight: highlights[random],
                        label: property
                    });
                }
            }


            let realEstateTypes = [];

            for (let property in statistics.realEstateTypes) {
                if (statistics.realEstateTypes.hasOwnProperty(property)) {
                    let random = Math.floor(Math.random() * colors.length);
                    realEstateTypes.push({
                        value: statistics.realEstateTypes[property],
                        color: colors[random],
                        highlight: highlights[random],
                        label: property
                    });
                }
            }

            let constructionTypes = [];

            for (let property in statistics.constructionTypes) {
                if (statistics.constructionTypes.hasOwnProperty(property)) {
                    let random = Math.floor(Math.random() * colors.length);
                    constructionTypes.push({
                        value: statistics.constructionTypes[property],
                        color: colors[random],
                        highlight: highlights[random],
                        label: property
                    });
                }
            }

            if (document.getElementById("chart-area-offer-types")) {

                let ctx = document.getElementById("chart-area-offer-types").getContext("2d");
                window.myPolarArea = new Chart(ctx).Pie(offerTypes, {
                    responsive: true
                });

            }

            if (document.getElementById("chart-area-real-estate-types")) {

                let ctx = document.getElementById("chart-area-real-estate-types").getContext("2d");
                window.myPolarArea = new Chart(ctx).Pie(realEstateTypes, {
                    responsive: true
                });

            }

            if (document.getElementById("chart-area-construction-types")) {

                let ctx = document.getElementById("chart-area-construction-types").getContext("2d");
                window.myPolarArea = new Chart(ctx).Pie(constructionTypes, {
                    responsive: true
                });

            }
        });
}());<commit_msg>Updated statistics<commit_after>(function () {
    'use strict';

    console.log(1);
    function startStatistics() {
        $.ajax({
                url: 'http://localhost:6969/statistics'
            })
            .then(function (statistics) {

                let colors = [
                    "#99cc33", "#F7464A", "#46BFBD", "#FDB45C", "#9966ff", "#888BDC", "#DEF25C"
                ];

                let highlights = [
                    "#99cc66", "#FF5A5E", "#5AD3D1", "#FFC870", "#9933cc", "#9FA1E3", "#BED435"
                ];

                let offerTypes = [];

                for (let property in statistics.offerTypes) {
                    if (statistics.offerTypes.hasOwnProperty(property)) {
                        let random = Math.floor(Math.random() * colors.length);
                        offerTypes.push({
                            value: statistics.offerTypes[property],
                            color: colors[random],
                            highlight: highlights[random],
                            label: property
                        });
                    }
                }


                let realEstateTypes = [];

                for (let property in statistics.realEstateTypes) {
                    if (statistics.realEstateTypes.hasOwnProperty(property)) {
                        let random = Math.floor(Math.random() * colors.length);
                        realEstateTypes.push({
                            value: statistics.realEstateTypes[property],
                            color: colors[random],
                            highlight: highlights[random],
                            label: property
                        });
                    }
                }

                let constructionTypes = [];

                for (let property in statistics.constructionTypes) {
                    if (statistics.constructionTypes.hasOwnProperty(property)) {
                        let random = Math.floor(Math.random() * colors.length);
                        constructionTypes.push({
                            value: statistics.constructionTypes[property],
                            color: colors[random],
                            highlight: highlights[random],
                            label: property
                        });
                    }
                }

                if (document.getElementById("chart-area-offer-types")) {

                    let ctx = document.getElementById("chart-area-offer-types").getContext("2d");
                    window.myPolarArea = new Chart(ctx).Pie(offerTypes, {
                        responsive: true
                    });

                }

                if (document.getElementById("chart-area-real-estate-types")) {

                    let ctx = document.getElementById("chart-area-real-estate-types").getContext("2d");
                    window.myPolarArea = new Chart(ctx).Pie(realEstateTypes, {
                        responsive: true
                    });

                }

                if (document.getElementById("chart-area-construction-types")) {

                    let ctx = document.getElementById("chart-area-construction-types").getContext("2d");
                    window.myPolarArea = new Chart(ctx).Pie(constructionTypes, {
                        responsive: true
                    });

                }
            });
    }


    startStatistics();

    setInterval(function () {
        startStatistics();
    }, 300000);

}());
{'fraction_non_alphanumeric': 0.11161387631975868, 'fraction_numerical': 0.01613876319758673, 'mean_word_length': 1.2274101444407122, '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': '342184', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1460, 'n_words': 252}