<commit_before>/** @jsx React.DOM */

var expect = require('chai').expect;  

describe('LineChart', function() {
  it('renders linechart', function() {
    var React = require('react/addons');
    var LineChart = require('../src/linechart.js').LineChart;
    var Bar = require('../src/linechart.js').Bar;
    var generate = require('../utils/datagen').generateArrayOfPoints;
    var TestUtils = React.addons.TestUtils;

    // Render a linechart using array data
    var data = generate(5);
    var linechart = TestUtils.renderIntoDocument(
      <LineChart data={data} width={400} height={200} />
    );

    // Verify that it has the same number of bars as the array's length
    var path = TestUtils.findRenderedDOMComponentWithTag(
      linechart, 'path');
    expect(path).to.exist;<commit_msg>Fixing linechart test<commit_after>/** @jsx React.DOM */

var expect = require('chai').expect;

describe('LineChart', function() {
  it('renders linechart', function() {
    var React = require('react/addons');
    var LineChart = require('../src/linechart.js').LineChart;
    var Bar = require('../src/linechart.js').Bar;
    var generate = require('../utils/datagen').generateArrayOfPoints;
    var TestUtils = React.addons.TestUtils;

    // Render a linechart using array data
    var data = {
      series1: generate(5),
      series2: generate(5)
    };
    var linechart = TestUtils.renderIntoDocument(
      <LineChart data={data} width={400} height={200} />
    );

    // Verify that it has the same number of bars as the array's length
    var paths = TestUtils.scryRenderedDOMComponentsWithTag(
      linechart, 'path');
    expect(paths).to.have.length(2);
{'fraction_non_alphanumeric': 0.14499700419412823, 'fraction_numerical': 0.01078490113840623, 'mean_word_length': 3.429708222811671, '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': '324214', 'n_tokens_mistral': 513, 'n_tokens_neox': 499, 'n_words': 126}