<commit_before>$(document).ready(function () {
    initPeriodChart();
    initMonthChart();
});

function initPeriodChart() {
    var getUrl = '/person/grain-recycle-history-chart/ajax-grain-recycle-history-period';
    var getData = {
        "params": $('#formSearchDay').serializeObject()
    };
    var method = 'get';
    var successFunc = function (result) {
        if (typeof result.data != "undefined") {
            $('#grain_recycle_history_line_chart_all').highcharts({
                title: {
                    text: 'Grain recycle history(day)'
                },
                xAxis: {
                    categories: result.data.days
                },
                yAxis: {
                    title: {
                        text: 'Grain Recycle Count'
                    },
                    plotLines: [
                        {
                            value: 0,
                            width: 1,
                            color: '#808080'
                        }
                    ],
                    tickInterval: 1
                },
                tooltip: {
                    valueSuffix: ''
                },
                legend: {
                    layout: 'vertical',
                    align: 'right',
                    verticalAlign: 'middle',
                    borderWidth: 0
                },
                series: result.data.data
            });<commit_msg>+ update grain recycle line chart type to spline, for more fluent looking<commit_after>$(document).ready(function () {
    initPeriodChart();
    initMonthChart();
});

function initPeriodChart() {
    var getUrl = '/person/grain-recycle-history-chart/ajax-grain-recycle-history-period';
    var getData = {
        "params": $('#formSearchDay').serializeObject()
    };
    var method = 'get';
    var successFunc = function (result) {
        if (typeof result.data != "undefined") {
            $('#grain_recycle_history_line_chart_all').highcharts({
                chart: {
                    type: 'spline'
                },
                title: {
                    text: 'Grain recycle history(day)'
                },
                xAxis: {
                    categories: result.data.days
                },
                yAxis: {
                    title: {
                        text: 'Grain Recycle Count'
                    },
                    plotLines: [
                        {
                            value: 0,
                            width: 1,
                            color: '#808080'
                        }
                    ],
                    tickInterval: 1
                },
                tooltip: {
                    valueSuffix: ''
                },
                legend: {
                    layout: 'vertical',
                    align: 'right',
                    verticalAlign: 'middle',
                    borderWidth: 0
                },
                series: result.data.data
            });
{'fraction_non_alphanumeric': 0.10248756218905472, 'fraction_numerical': 0.006633499170812604, 'mean_word_length': 0.923469387755102, 'pattern_counts': {'":': 2, '<': 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': '2486905', 'n_tokens_mistral': 744, 'n_tokens_neox': 670, 'n_words': 135}