<commit_before>const React = require('react')
const { string, array } = React.PropTypes

const TimeSeriesChart = React.createClass({

  propTypes: {
    containerId: string.isRequired,
    xAxisCategories: array.isRequired,
    series: array.isRequired,
    title: string.isRequired,
    currencyName: string.isRequired,
    subtitle: string
  },

  // When the DOM is ready, create the chart.
  componentDidMount: function () {
    const Highcharts = require('js/highcharts')
    const {
      containerId,
      title,
      subtitle,
      xAxisCategories,
      series,
      currencyName
    } = this.props

    // Set container which the chart should render to.
    const options = {
      chart: {
        type: 'column'
      },
      title: {
        text: title
      },
      subtitle: {
        text: subtitle
      },
      legend: {
        enabled: true
      },
      tooltip: {
        shared: true,
        valueSuffix: ` ${currencyName}`
      },
      xAxis: {
        categories: xAxisCategories,
        crosshair: true
      },
      yAxis: {
        title: {
          text: title
        }
      },
      series: series
    }

    this.chart = new Highcharts.Chart(
      containerId,
      options
    )
  },

  // Destroy chart before unmount.
  componentWillUnmount: function () {
    this.chart.destroy()
  },

  // Create the div which the chart will be rendered to.
  render: function () {
    return <div id={this.props.containerId} />
  }
})

module.exports = TimeSeriesChart
<commit_msg>Fixed path to highcharts config.<commit_after>const React = require('react')
const { string, array } = React.PropTypes

const TimeSeriesChart = React.createClass({

  propTypes: {
    containerId: string.isRequired,
    xAxisCategories: array.isRequired,
    series: array.isRequired,
    title: string.isRequired,
    currencyName: string.isRequired,
    subtitle: string
  },

  // When the DOM is ready, create the chart.
  componentDidMount: function () {
    const Highcharts = require('src/highcharts')
    const {
      containerId,
      title,
      subtitle,
      xAxisCategories,
      series,
      currencyName
    } = this.props

    // Set container which the chart should render to.
    const options = {
      chart: {
        type: 'column'
      },
      title: {
        text: title
      },
      subtitle: {
        text: subtitle
      },
      legend: {
        enabled: true
      },
      tooltip: {
        shared: true,
        valueSuffix: ` ${currencyName}`
      },
      xAxis: {
        categories: xAxisCategories,
        crosshair: true
      },
      yAxis: {
        title: {
          text: title
        }
      },
      series: series
    }

    this.chart = new Highcharts.Chart(
      containerId,
      options
    )
  },

  // Destroy chart before unmount.
  componentWillUnmount: function () {
    this.chart.destroy()
  },

  // Create the div which the chart will be rendered to.
  render: function () {
    return <div id={this.props.containerId} />
  }
})

module.exports = TimeSeriesChart

{'fraction_non_alphanumeric': 0.10287393860222077, 'fraction_numerical': 0.0, 'mean_word_length': 1.9795719844357977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4447038', 'n_tokens_mistral': 911, 'n_tokens_neox': 881, 'n_words': 226}