<commit_before>// function addCommas(nStr) {
//   nStr += '';
//   x = nStr.split('.');
//   x1 = x[0];
//   x2 = x.length > 1 ? '.' + x[1] : '';
//   var rgx = /(\d+)(\d{3})/;
//   while (rgx.test(x1)) {
//     x1 = x1.replace(rgx, '$1' + ',' + '$2');
//   }
//   return x1 + x2;
// }


$(document).ready(function() {
    function initializeGraph($metrics) {
        var axes;
        var $metric = $($metrics[0]);
        var namespace = $metric.attr('data-namespace');
        var metric = $metric.attr('data-metric-name');
        var graph = new Rickshaw.Graph.Ajax({
            element: $metric.find(".metric--graph")[0],
            height: 140,
            min: 'auto',
            renderer: 'line',
            interpolation: 'line',
            dataURL: 'data?namespace=' + namespace + '&metric=' + metric,
            onComplete: function(transport) {
                var graph = transport.graph;
                if (!axes) {
                    axes = new Rickshaw.Graph.Axis.Time({
                        graph: graph,
                        fixedTimeUnit: 1
                    });
                    var hoverDetail = new Rickshaw.Graph.HoverDetail({
                        graph: graph,<commit_msg>Graph line should now clear the bottom of the chart<commit_after>// function addCommas(nStr) {
//   nStr += '';
//   x = nStr.split('.');
//   x1 = x[0];
//   x2 = x.length > 1 ? '.' + x[1] : '';
//   var rgx = /(\d+)(\d{3})/;
//   while (rgx.test(x1)) {
//     x1 = x1.replace(rgx, '$1' + ',' + '$2');
//   }
//   return x1 + x2;
// }


$(document).ready(function() {
    function initializeGraph($metrics) {
        var axes;
        var $metric = $($metrics[0]);
        var namespace = $metric.attr('data-namespace');
        var metric = $metric.attr('data-metric-name');
        var graph = new Rickshaw.Graph.Ajax({
            element: $metric.find(".metric--graph")[0],
            height: 140,
            min: 'auto',
            renderer: 'line',
            padding: {
                bottom: 0.15
            },
            interpolation: 'line',
            dataURL: 'data?namespace=' + namespace + '&metric=' + metric,
            onComplete: function(transport) {
                var graph = transport.graph;
                if (!axes) {
                    axes = new Rickshaw.Graph.Axis.Time({
                        graph: graph,
                        fixedTimeUnit: 1
                    });
                    var hoverDetail = new Rickshaw.Graph.HoverDetail({
                        graph: graph,
{'fraction_non_alphanumeric': 0.17145104207628786, 'fraction_numerical': 0.016122689736531654, 'mean_word_length': 1.4747081712062258, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3191911', 'n_tokens_mistral': 798, 'n_tokens_neox': 760, 'n_words': 165}