<commit_before>import { min, max } from 'd3-array';
import { scaleTime, scaleLinear } from 'd3-scale';
import { axisBottom, axisLeft } from 'd3-axis';
import { select, selectAll } from 'd3-selection';
import { line, area } from 'd3-shape';
import { timeFormat } from 'd3-time-format';
import { transition } from 'd3-transition';

import moment from 'moment';
import utils from './../utils';
import styles from './styles.css';
import paths from './../svgpaths';
import drawFaces from './../common/drawFaces';
import drawLabels from './../common/drawGoalLabelsRight';
import drawCO2AxisLabel from './../common/drawCO2AxisLabel';
import calculateYAxisTicks from './calculateYAxisTicks';

const d3Chart = {};

d3Chart.create = (el, state, props, formatting) => {
  props.xAxisOffset = props.height + props.margin.top + 5;
  const svg = utils.drawSVG(el, props);

  utils.drawXAxisGroup(svg, props);
  utils.drawYAxisGroup(svg, props);
  utils.drawChartGroup(svg, props, styles.areas);
  utils.drawChartGroup(svg, props, styles.lines);
  utils.drawChartGroup(svg, props, styles.pointSeries);
  utils.drawChartGroup(svg, props, styles.labels);
  utils.drawChartGroup(svg, props, styles.faceGroup);
  utils.drawChartGroup(svg, props, styles.leaderLine);
  utils.drawChartGroup(svg, props, styles.leaderGroup);

  drawCO2AxisLabel(utils.drawChartGroup(svg, props, styles.co2AxisLabel));

  d3Chart.update(el, state, props, formatting, true);
};

d3Chart.update = (el, state, props, formatting, dontAnimateIn) => {

    const {
      data,
      memberOf,
      selectedId,
      milestones,
      startDate,
      endDate,
      noLeader,
      goal,<commit_msg>Removed co2 label from graph<commit_after>import { min, max } from 'd3-array';
import { scaleTime, scaleLinear } from 'd3-scale';
import { axisBottom, axisLeft } from 'd3-axis';
import { select, selectAll } from 'd3-selection';
import { line, area } from 'd3-shape';
import { timeFormat } from 'd3-time-format';
import { transition } from 'd3-transition';

import moment from 'moment';
import utils from './../utils';
import styles from './styles.css';
import paths from './../svgpaths';
import drawFaces from './../common/drawFaces';
import drawLabels from './../common/drawGoalLabelsRight';
import drawCO2AxisLabel from './../common/drawCO2AxisLabel';
import calculateYAxisTicks from './calculateYAxisTicks';

const d3Chart = {};

d3Chart.create = (el, state, props, formatting) => {
  props.xAxisOffset = props.height + props.margin.top + 5;
  const svg = utils.drawSVG(el, props);

  utils.drawXAxisGroup(svg, props);
  utils.drawYAxisGroup(svg, props);
  utils.drawChartGroup(svg, props, styles.areas);
  utils.drawChartGroup(svg, props, styles.lines);
  utils.drawChartGroup(svg, props, styles.pointSeries);
  utils.drawChartGroup(svg, props, styles.labels);
  utils.drawChartGroup(svg, props, styles.faceGroup);
  utils.drawChartGroup(svg, props, styles.leaderLine);
  utils.drawChartGroup(svg, props, styles.leaderGroup);

  // drawCO2AxisLabel(utils.drawChartGroup(svg, props, styles.co2AxisLabel));

  d3Chart.update(el, state, props, formatting, true);
};

d3Chart.update = (el, state, props, formatting, dontAnimateIn) => {

    const {
      data,
      memberOf,
      selectedId,
      milestones,
      startDate,
      endDate,
      noLeader,
      goal,
{'fraction_non_alphanumeric': 0.1413108839446783, 'fraction_numerical': 0.009921828021647625, 'mean_word_length': 4.331730769230769, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2858106', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1059, 'n_words': 259}