<commit_before>var ChartHelper = {};
ChartHelper.create = function(iteration, title, sourceTxt, yaxisLabel, dataArray, startDate, pointInterval) {
  //console.log("rendering to: #chart_" + iteration);
  // console.log("title: " + title);
  // console.log("sourceTxt: " + sourceTxt);
  // console.log("yaxisLabel: " + yaxisLabel);
  // console.log("dataArray: " + dataArray);
  // console.log("startDate: " + startDate);
  // console.log("pointInterval: " + pointInterval);
  
  var colorHash = ChartHelper.getColors(iteration);
  var seriesData;
  if (dataArray.length == 1) {
    seriesData = [{
          color: colorHash["#c30c30"],
          data: dataArray[0],
          showInLegend: false,
          name: "Raw numbers",
          lineWidth: 3
      }];
  }
  else {
    seriesData = [{
          color: "#cccccc",
          data: dataArray[0],
          name: "Raw numbers"
        }, {
          color: colorHash["trend"],
          data: dataArray[1],
          name: "Average trend",
          lineWidth: 3
        }
      ]

  }

  //$("#charts").append("<div class='chart' id='chart_grouping_" + iteration + "'></div>")
  return new Highcharts.Chart({
      chart: {
          renderTo: "chart_" + iteration,
          type: 'line',
          marginRight: 10,
          marginBottom: 25
      },
      legend: {
        backgroundColor: "#ffffff",
        borderColor: "#cccccc",
        floating: true,
        verticalAlign: "top",
        x: 20,
        y: 125
      },<commit_msg>changed chart title for trend<commit_after>var ChartHelper = {};
ChartHelper.create = function(iteration, title, sourceTxt, yaxisLabel, dataArray, startDate, pointInterval) {
  //console.log("rendering to: #chart_" + iteration);
  // console.log("title: " + title);
  // console.log("sourceTxt: " + sourceTxt);
  // console.log("yaxisLabel: " + yaxisLabel);
  // console.log("dataArray: " + dataArray);
  // console.log("startDate: " + startDate);
  // console.log("pointInterval: " + pointInterval);
  
  var colorHash = ChartHelper.getColors(iteration);
  var seriesData;
  if (dataArray.length == 1) {
    seriesData = [{
          color: colorHash["#c30c30"],
          data: dataArray[0],
          showInLegend: false,
          name: "Raw numbers",
          lineWidth: 3
      }];
  }
  else {
    seriesData = [{
          color: "#cccccc",
          data: dataArray[0],
          name: "Raw numbers"
        }, {
          color: colorHash["trend"],
          data: dataArray[1],
          name: "Trend",
          lineWidth: 3
        }
      ]

  }

  //$("#charts").append("<div class='chart' id='chart_grouping_" + iteration + "'></div>")
  return new Highcharts.Chart({
      chart: {
          renderTo: "chart_" + iteration,
          type: 'line',
          marginRight: 10,
          marginBottom: 25
      },
      legend: {
        backgroundColor: "#ffffff",
        borderColor: "#cccccc",
        floating: true,
        verticalAlign: "top",
        x: 20,
        y: 125
      },
{'fraction_non_alphanumeric': 0.1552298467688208, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 2.1744186046511627, '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': '2628774', 'n_tokens_mistral': 954, 'n_tokens_neox': 916, 'n_words': 193}