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

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

  //---------------------------
  // Parameters module
  //---------------------------
  global.app.parameters = (function (global) {

    var default_value_averate = 70,
        default_value_deviation = 15;

    /**
     * @param event
     * @param ui
     */
    var handlerOfAverate = function(event, ui) {

      $( "#amount-average" ).val( ui.value );

      global.app.graph.render();

    };

    /**
     * @param event
     * @param ui
     */
    var handlerOfDeviation = function(event, ui) {

      $( "#amount-deviation" ).val( ui.value );

      global.app.graph.render();

    };

    /**
     *
     */
    var setEventHandlers = function() {

      $( "#slider-average" ).slider({
        orientation: "horizontal",
        range: "min",
        max: 100, // from 0
        value: default_value_averate, // default
        slide: handlerOfAverate,
        change: handlerOfAverate
      });
      $( "#slider-deviation" ).slider({
        orientation: "horizontal",
        range: "min",
        max: 30, // from 0
        value: default_value_deviation, // default
        slide: handlerOfDeviation,
        change: handlerOfDeviation
      });
      $( "#amount-average" ).val( default_value_averate );
      $( "#amount-deviation" ).val( default_value_deviation );

    };

    /**
     *
     */
    var init = function() {

      setEventHandlers();

    };

    return {
     init: init
    };

  })(global);

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

    /**
     *
     * @param average
     * @param deviation
     * @returns {{plotBands: Array, plotLines: Array, categories: Array, series: Array}}
     */
    var createData = function(average, deviation) {

      var plotBands, plotLines, categories = [], series,
        point, value1, value2, objTmp;

      // +++++ plotBands +++++
      plotBands =  [{ // visualize the σ
        from: (average - deviation) / 5,
        to: (average + deviation) / 5,
        color: 'rgba(68, 170, 213, .2)'
      }, { // visualize the 2σ
        from: (average - 2 * deviation) / 5,
        to: (average - deviation) / 5,
        color: 'rgba(213, 68, 169, .2)'
      }, { // visualize the 2σ
        from: (average + deviation) / 5,
        to: (average + 2 * deviation) / 5,
        color: 'rgba(213, 68, 169, .2)'
      }];

      // +++++ plotLines +++++
      objTmp = {
        color: '#000',
        dashStyle: 'ShortDash',
        width: 1,
        zIndex: 10
      };
      plotLines = [
        _.assign({
          value: average / 5,
          label: { text: '平均点'}
        }, objTmp),
        _.assign({
          value: (average - deviation) / 5,
          label: { text: '-σ'}
        }, objTmp),
        _.assign({
          value: (average + deviation) / 5,
          label: { text: 'σ'}
        }, objTmp),
        _.assign({
          value: (average - 2 * deviation) / 5,
          label: { text: '-2σ'}
        }, objTmp),
        _.assign({
          value: (average + 2 * deviation) / 5,
          label: { text: '2σ'}
        }, objTmp)
      ];

      // +++++ series +++++
      series = [
        {
          name: '偏差値',
          yAxis: 0,<commit_msg>Add "+" in graph<commit_after>(function(global) {
  "use strict";

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

  //---------------------------
  // Parameters module
  //---------------------------
  global.app.parameters = (function (global) {

    var default_value_averate = 70,
        default_value_deviation = 15;

    /**
     * @param event
     * @param ui
     */
    var handlerOfAverate = function(event, ui) {

      $( "#amount-average" ).val( ui.value );

      global.app.graph.render();

    };

    /**
     * @param event
     * @param ui
     */
    var handlerOfDeviation = function(event, ui) {

      $( "#amount-deviation" ).val( ui.value );

      global.app.graph.render();

    };

    /**
     *
     */
    var setEventHandlers = function() {

      $( "#slider-average" ).slider({
        orientation: "horizontal",
        range: "min",
        max: 100, // from 0
        value: default_value_averate, // default
        slide: handlerOfAverate,
        change: handlerOfAverate
      });
      $( "#slider-deviation" ).slider({
        orientation: "horizontal",
        range: "min",
        max: 30, // from 0
        value: default_value_deviation, // default
        slide: handlerOfDeviation,
        change: handlerOfDeviation
      });
      $( "#amount-average" ).val( default_value_averate );
      $( "#amount-deviation" ).val( default_value_deviation );

    };

    /**
     *
     */
    var init = function() {

      setEventHandlers();

    };

    return {
     init: init
    };

  })(global);

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

    /**
     *
     * @param average
     * @param deviation
     * @returns {{plotBands: Array, plotLines: Array, categories: Array, series: Array}}
     */
    var createData = function(average, deviation) {

      var plotBands, plotLines, categories = [], series,
        point, value1, value2, objTmp;

      // +++++ plotBands +++++
      plotBands =  [{ // visualize the σ
        from: (average - deviation) / 5,
        to: (average + deviation) / 5,
        color: 'rgba(68, 170, 213, .2)'
      }, { // visualize the 2σ
        from: (average - 2 * deviation) / 5,
        to: (average - deviation) / 5,
        color: 'rgba(213, 68, 169, .2)'
      }, { // visualize the 2σ
        from: (average + deviation) / 5,
        to: (average + 2 * deviation) / 5,
        color: 'rgba(213, 68, 169, .2)'
      }];

      // +++++ plotLines +++++
      objTmp = {
        color: '#000',
        dashStyle: 'ShortDash',
        width: 1,
        zIndex: 10
      };
      plotLines = [
        _.assign({
          value: average / 5,
          label: { text: '平均点'}
        }, objTmp),
        _.assign({
          value: (average - deviation) / 5,
          label: { text: '-σ'}
        }, objTmp),
        _.assign({
          value: (average + deviation) / 5,
          label: { text: '+σ'}
        }, objTmp),
        _.assign({
          value: (average - 2 * deviation) / 5,
          label: { text: '-2σ'}
        }, objTmp),
        _.assign({
          value: (average + 2 * deviation) / 5,
          label: { text: '+2σ'}
        }, objTmp)
      ];

      // +++++ series +++++
      series = [
        {
          name: '偏差値',
          yAxis: 0,
{'fraction_non_alphanumeric': 0.19039759939984996, 'fraction_numerical': 0.019804951237809454, 'mean_word_length': 1.4891710231516058, 'pattern_counts': {'":': 0, '<': 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': '4775918', 'n_tokens_mistral': 2223, 'n_tokens_neox': 2008, 'n_words': 475}