<commit_before><html>
  <head>
    <link href="/css/c3.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <div id="chart"></div>

    <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
    <script src="/js/c3.js"></script>
    <script>
      var chart = c3.generate({
        data: {
          columns: [
            [ 'data', 91.4 ]
          ],
          type: 'gauge'
        },
        gauge: {
          label: {
//            format: function(value, ratio) {
//              return value;
//            },
//          show: false // to turn off the min/max labels.
          },
//          min: 0, // 0 is default, //can handle negative min e.g. vacuum / voltage / current flow / rate of change
//          max: 100, // 100 is default
//          units: ' %',
//          width: 39 // for adjusting arc thickness
        },
        color: {
          pattern: ['#FF0000', '#F6C600', '#60B044'], // the three color levels for the percentage values.
          threshold: {
//            unit: 'value', // percentage is default
//            max: 200, // 100 is default
            values: [30, 60, 90] // alternate first value is 'value'
          }
        }
      });

      var cycleDemo = function () {

        setTimeout(function () {
            chart = chart.update(['gauge', 'color'], '');
        }, 1000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 10 ]]
            });
        }, 2000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 50 ]]
            });
        }, 3000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 91.4 ]]
            });
        }, 4000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'color'], '#e0e0e0');
//        }, 5000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 0 ]]
            });
        }, 6000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 50 ]]
            });
        }, 7000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 91.4 ]]
            });
        }, 8000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'width'], 10);
//        }, 9000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 0 ]]
            });
        }, 10000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 50 ]]
            });
        }, 11000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 91.4 ]]
            });
        }, 12000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'width'], 39);
//        }, 13000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 0 ]]
            });
        }, 14000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 50 ]]
            });
        }, 15000);

        setTimeout(function () {
            chart.load({
              columns: [[ '%', 91.4 ]]
            });
        }, 16000);

      }

      cycleDemo();<commit_msg>Fix sample - #254<commit_after><html>
  <head>
    <link href="/css/c3.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <div id="chart"></div>

    <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
    <script src="/js/c3.js"></script>
    <script>
      var chart = c3.generate({
        data: {
          columns: [
            [ 'data', 91.4 ]
          ],
          type: 'gauge'
        },
        gauge: {
          label: {
//            format: function(value, ratio) {
//              return value;
//            },
//          show: false // to turn off the min/max labels.
          },
//          min: 0, // 0 is default, //can handle negative min e.g. vacuum / voltage / current flow / rate of change
//          max: 100, // 100 is default
//          units: ' %',
//          width: 39 // for adjusting arc thickness
        },
        color: {
          pattern: ['#FF0000', '#F6C600', '#60B044'], // the three color levels for the percentage values.
          threshold: {
//            unit: 'value', // percentage is default
//            max: 200, // 100 is default
            values: [30, 60, 90] // alternate first value is 'value'
          }
        }
      });

      var cycleDemo = function () {

        setTimeout(function () {
            chart = chart.update(['gauge', 'color'], '');
        }, 1000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 10 ]]
            });
        }, 2000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 50 ]]
            });
        }, 3000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 91.4 ]]
            });
        }, 4000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'color'], '#e0e0e0');
//        }, 5000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 0 ]]
            });
        }, 6000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 50 ]]
            });
        }, 7000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 91.4 ]]
            });
        }, 8000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'width'], 10);
//        }, 9000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 0 ]]
            });
        }, 10000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 50 ]]
            });
        }, 11000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 91.4 ]]
            });
        }, 12000);

//        setTimeout(function () {
//            chart = chart.update(['gauge', 'width'], 39);
//        }, 13000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 0 ]]
            });
        }, 14000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 50 ]]
            });
        }, 15000);

        setTimeout(function () {
            chart.load({
              columns: [[ 'data', 91.4 ]]
            });
        }, 16000);

      }

      cycleDemo();
{'fraction_non_alphanumeric': 0.17657630672457691, 'fraction_numerical': 0.04478059008536768, 'mean_word_length': 1.1802154750244858, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2869490', 'n_tokens_mistral': 2090, 'n_tokens_neox': 1831, 'n_words': 392}