<commit_before>(function(global){
  "use strict";

  global.app = global.app || {};

  //---------------------------
  // Graph Render  module
  //---------------------------
  global.app.common = (function(/*global*/) {

    var escapeHtml = function(s) {

      s = s + '';

      return s.replace(/&/g, "&amp;")
        .replace(/</g, "&lt;")
        .replace(/>/g, "&gt;")
        .replace(/"/g, "&quot;" )
        .replace(/'/g, "&#39;" );

    };

    return {
      escapeHtml: escapeHtml
    };

  })(global);

  //---------------------------
  // Graph Render  module
  //---------------------------
  global.app.graphRenderer = (function(/*global*/) {

    /**
     *
     */
    var createData = function(arr) {

        var categories = [], // e.g. [ "A", "B" ]
            series = [{
              name: "得票率",
              data: []
            }];

        arr.forEach(function(obj) {
          // categories
          categories.push(obj.id);
          // series
          series[0].data.push(
            [ (Math.round(obj.min * 1000)/10), (Math.round(obj.max * 1000)/10) ]
          );
        });

        return {
          categories: categories,
          series: series
        };
    };

    /**
     *
     */
    var render = function(arr, reliability) {

      var commonModule = global.app.common,
          dataObj = createData(arr);

      $('#graph-container').highcharts({
        chart: {
            type: 'columnrange',
            inverted: true
        },
        title: {
            text: '予想 得票率の信頼区間'
        },
        subtitle: {
            text: '・各得票率は、' + commonModule.escapeHtml(reliability) + "% の確率で以下の信頼区間内に収まる。<br>"
                + '・信頼区間が重らない場合、その順位はほぼ覆らないと言える。'
        },
        xAxis: {
          categories: dataObj.categories
        },
        yAxis: {
          title: {
            text: '得票率 ( % )'
          }
        },
        tooltip: {
          valueSuffix: '%'
        },<commit_msg>Modify the sentence in subtitle of graph<commit_after>(function(global){
  "use strict";

  global.app = global.app || {};

  //---------------------------
  // Graph Render  module
  //---------------------------
  global.app.common = (function(/*global*/) {

    var escapeHtml = function(s) {

      s = s + '';

      return s.replace(/&/g, "&amp;")
        .replace(/</g, "&lt;")
        .replace(/>/g, "&gt;")
        .replace(/"/g, "&quot;" )
        .replace(/'/g, "&#39;" );

    };

    return {
      escapeHtml: escapeHtml
    };

  })(global);

  //---------------------------
  // Graph Render  module
  //---------------------------
  global.app.graphRenderer = (function(/*global*/) {

    /**
     *
     */
    var createData = function(arr) {

        var categories = [], // e.g. [ "A", "B" ]
            series = [{
              name: "得票率",
              data: []
            }];

        arr.forEach(function(obj) {
          // categories
          categories.push(obj.id);
          // series
          series[0].data.push(
            [ (Math.round(obj.min * 1000)/10), (Math.round(obj.max * 1000)/10) ]
          );
        });

        return {
          categories: categories,
          series: series
        };
    };

    /**
     *
     */
    var render = function(arr, reliability) {

      var commonModule = global.app.common,
          dataObj = createData(arr);

      $('#graph-container').highcharts({
        chart: {
            type: 'columnrange',
            inverted: true
        },
        title: {
            text: '予想 得票率の信頼区間'
        },
        subtitle: {
            text: '・各得票率は、' + commonModule.escapeHtml(reliability) + "% の確率で以下の信頼区間内に収まる。<br>"
                + '・信頼区間が重らない場合、その順位はほぼ決定となる。'
        },
        xAxis: {
          categories: dataObj.categories
        },
        yAxis: {
          title: {
            text: '得票率 ( % )'
          }
        },
        tooltip: {
          valueSuffix: '%'
        },
{'fraction_non_alphanumeric': 0.21544715447154472, 'fraction_numerical': 0.007621951219512195, 'mean_word_length': 1.1787493082457112, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '500346', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1272, 'n_words': 196}