<commit_before><?php

$day = $data['day'];
$cost = $data['cost'];

$jsonDay = str_replace(":",",",json_encode($day));
$jsonDay = str_replace("{","[",$jsonDay);
$jsonDay = str_replace("}","]",$jsonDay);

$jsonCost = str_replace(":",",",json_encode($cost));
$jsonCost = str_replace("{","[",$jsonCost);
$jsonCost = str_replace("}","]",$jsonCost);
$jsonCost = str_replace('"','',$jsonCost);


?>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="width: 100%; height: 400px;"></div>
<script>
    $(function () {
        $('#container').highcharts({
            title: {
                text: 'Daily Report Income',
                x: -20 //center
            },
            subtitle: {
                text: 'Source: Kaffa.vn',
                x: -20
            },
            xAxis: {
                categories: <?php echo $jsonDay ?>
            },
            yAxis: {
                title: {
                    text: 'VND'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: ' VND'
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            },
            series: [{
                name: 'Kaffa',
                data: <?php echo $jsonCost ?>
            }]
        });
    });
</script><commit_msg>Utility and helper line  chart 2<commit_after><?php
$config = \Velacolib\Utility\Utility::getConfig();
$day = array_reverse($data['day']);
$cost = array_reverse($data['cost']);

$jsonDay = str_replace(":",",",json_encode($day));
$jsonDay = str_replace("{","[",$jsonDay);
$jsonDay = str_replace("}","]",$jsonDay);

$jsonCost = str_replace(":",",",json_encode($cost));
$jsonCost = str_replace("{","[",$jsonCost);
$jsonCost = str_replace("}","]",$jsonCost);
$jsonCost = str_replace('"','',$jsonCost);


?>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="width: 100%; height: 400px;"></div>
<script>
    $(function () {
        $('#container').highcharts({
            title: {
                text: 'Daily Report Income',
                x: -20 //center
            },
            subtitle: {
                text: 'Source: Kaffa.vn',
                x: -20
            },
            xAxis: {
                categories: <?php echo $jsonDay ?>
            },
            yAxis: {
                title: {
                    text: 'VND'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: '<?php echo $config['currency'] ?>'
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            },
            series: [{
                name: 'Income',
                data: <?php echo $jsonCost ?>
            }]
        });
    });
</script>
{'fraction_non_alphanumeric': 0.17991137370753324, 'fraction_numerical': 0.011521418020679469, 'mean_word_length': 1.4897058823529412, 'pattern_counts': {'":': 4, '<': 26, '<?xml version=': 0, '>': 26, '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': '258468', 'n_tokens_mistral': 1035, 'n_tokens_neox': 952, 'n_words': 172}