<commit_before>import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import expect from 'expect';

import TestElement from '../TestElement.jsx';

describe('Test Component', () => {
  it('renders without problems', () => {
    const testElementComponent = TestUtils.renderIntoDocument(<TestElement />);
    expect(testElementComponent).toExist();
  });
});<commit_msg>use shallow renderer for stateless components<commit_after>import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import expect from 'expect';

import TestElement from '../TestElement.jsx';

describe('Test Component', () => {
  const shallowRenderer = TestUtils.createRenderer();
  shallowRenderer.render(<TestElement />);
  const renderResult = shallowRenderer.getRenderOutput();

  it('renders without problems', () => {
    expect(renderResult).toExist();
    expect(renderResult.type).toBe('h1');
  });
});
{'fraction_non_alphanumeric': 0.1475054229934924, 'fraction_numerical': 0.0010845986984815619, 'mean_word_length': 5.737226277372263, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4901085', 'n_tokens_mistral': 254, 'n_tokens_neox': 251, 'n_words': 60}