<commit_before><%= render 'head' %>

<div id="container_source" style="min-width: 310px; height: 500px; margin: 0 auto"></div>

<p>Source: <%= link_to 'gov.gg', 'http://www.gov.gg/ghg' %></p>

<%= javascript_tag do %>
$(function() {
  initPage();
});
$(window).bind('page:change', function() {
  initPage();
});

function initPage() {
    $('#container_source').highcharts({
        chart: {
            type: 'line'
        },
        title: {
            text: '<%= @title %>'
        },
        xAxis: {
            allowDecimals: false,
            categories: <%= @labels.to_json.html_safe %>,
            title: {
                text: 'Quarter'
            }
        },
        yAxis: {
            allowDecimals: false,
            minPadding: 0,
            maxPadding: 0,
            title: {
                text: 'Value'
            }
        },
        series: <%= @data.to_json.html_safe -%>
    });
}
<% end %>
<commit_msg>Fixed axis label fail<commit_after><%= render 'head' %>

<div id="container_source" style="min-width: 310px; height: 500px; margin: 0 auto"></div>

<p>Source: <%= link_to 'gov.gg', 'http://www.gov.gg/ghg' %></p>

<%= javascript_tag do %>
$(function() {
  initPage();
});
$(window).bind('page:change', function() {
  initPage();
});

function initPage() {
    $('#container_source').highcharts({
        chart: {
            type: 'line'
        },
        title: {
            text: '<%= @title %>'
        },
        xAxis: {
            allowDecimals: false,
            categories: <%= @labels.to_json.html_safe %>,
            title: {
                text: 'Year'
            }
        },
        yAxis: {
            allowDecimals: false,
            minPadding: 0,
            maxPadding: 0,
            title: {
                text: 'Percent'
            }
        },
        series: <%= @data.to_json.html_safe -%>
    });
}
<% end %>

{'fraction_non_alphanumeric': 0.18268720127456187, 'fraction_numerical': 0.009559214020180564, 'mean_word_length': 1.6535211267605634, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4424201', 'n_tokens_mistral': 645, 'n_tokens_neox': 588, 'n_words': 111}