<commit_before>    $(function() {
        // show first tab
        var tab = $('.dashboard-tabs__item:nth-child(2) > div');

        function switchTab(id, url) {
            $('#data_overview').addClass('dashboard__content--loading');
            $('.dashboard-tabs__item').removeClass('dashboard-tabs__item--active');
            $('#tab'+id).addClass('dashboard-tabs__item--active');

            $.ajax({
                type: 'get',
                url: url,
                cache: false,
                success: function(data) {
                    if (data.overview.sessions === 0) {
                        $('#data_no_overview').css('display', 'block');
                        $('#data_overview').css('display', 'none');
                    } else {
                        $('#data_no_overview').css('display', 'none');
                        $('#data_overview').css('display', 'block');
                        $('#data_overview').removeClass('dashboard__content--loading');

                        $("#dashboard-chart--audience").html('');
                        // render the chart
                        var mainChart = new Morris.Area({
                            element: 'dashboard-chart--audience',
                            lineWidth: 1,
                            lineColors: [ '#8ac9e1','#ce77b6', '#ee9c27', '#d13f37'],
                            fillOpacity: '.9',
                            hideHover: 'auto',
                            pointSize: 0,
                            data: data.overview.chartData,
                            xkey: 'timestamp',
                            ykeys: ['pageviews', 'sessions', 'users','newusers'],
                            labels: ['Pageviews', 'Sessions', 'Users', 'New Sessions'],
                            behaveLikeLine: true,
                            gridTextColor: '#a7a7a7',
                            smooth: true,
                            ymax: Math.ceil(data.overview.chartDataMaxValue/100)*100
                        });
                        setMetrics(data);
                        setGoals(data);
                    }
                }
            });
        }

        switchTab(tab.attr('data-id'), tab.attr('data-path'));

        // Tab switcher
        $('.dashboard-tabs__item').on('click', function(){
            var id = $(this).find('.dashboard-tabs__controller').attr('data-id');
            var url = $(this).find('.dashboard-tabs__controller').attr('data-path');
            switchTab(id, url);
        });<commit_msg>fixed ymax in max < 100<commit_after>    $(function() {
        // show first tab
        var tab = $('.dashboard-tabs__item:nth-child(2) > div');

        function switchTab(id, url) {
            $('#data_overview').addClass('dashboard__content--loading');
            $('.dashboard-tabs__item').removeClass('dashboard-tabs__item--active');
            $('#tab'+id).addClass('dashboard-tabs__item--active');

            $.ajax({
                type: 'get',
                url: url,
                cache: false,
                success: function(data) {
                    if (data.overview.sessions === 0) {
                        $('#data_no_overview').css('display', 'block');
                        $('#data_overview').css('display', 'none');
                    } else {
                        $('#data_no_overview').css('display', 'none');
                        $('#data_overview').css('display', 'block');
                        $('#data_overview').removeClass('dashboard__content--loading');

                        $("#dashboard-chart--audience").html('');
                        // render the chart

                        var step = 100;
                        if (data.overview.chartDataMaxValue < 100) {
                            var step = 10;
                        }

                        var mainChart = new Morris.Area({
                            element: 'dashboard-chart--audience',
                            lineWidth: 1,
                            lineColors: [ '#8ac9e1','#ce77b6', '#ee9c27', '#d13f37'],
                            fillOpacity: '.9',
                            hideHover: 'auto',
                            pointSize: 0,
                            data: data.overview.chartData,
                            xkey: 'timestamp',
                            ykeys: ['pageviews', 'sessions', 'users','newusers'],
                            labels: ['Pageviews', 'Sessions', 'Users', 'New Sessions'],
                            behaveLikeLine: true,
                            gridTextColor: '#a7a7a7',
                            smooth: true,
                            ymax: Math.ceil(data.overview.chartDataMaxValue/step)*step
                        });
                        setMetrics(data);
                        setGoals(data);
                    }
                }
            });
        }

        switchTab(tab.attr('data-id'), tab.attr('data-path'));

        // Tab switcher
        $('.dashboard-tabs__item').on('click', function(){
            var id = $(this).find('.dashboard-tabs__controller').attr('data-id');
            var url = $(this).find('.dashboard-tabs__controller').attr('data-path');
            switchTab(id, url);
        });
{'fraction_non_alphanumeric': 0.1463229719484458, 'fraction_numerical': 0.011182714177407127, 'mean_word_length': 1.1841887417218544, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6961370', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1256, 'n_words': 207}