<commit_before>// Set up testing enviroment to run like a browser in the command line 


// Build 'renderComponent' helper that should render a given react class


// Build helper for simulating events


// Set up chai-jquery<commit_msg>Set up running like browser in command line, build renderComponent helper function<commit_after>import jsdom from 'jsdom';
import jquery from 'jquery';
import TestUtils from 'react-addons-test-utils';

// Set up testing enviroment to run like a browser in the command line 
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
global.window = global.document.defaultView;
const $ = _$(global.window);

// Build 'renderComponent' helper that should render a given react class
function renderComponent(ComponentClass) {
  const componentInstance = TestUtils.renderIntoDocument(<ComponentClass />);

  return $(ReactDOM.findDOMNode(componentInstance)); // produces HTML
}


// Build helper for simulating events


// Set up chai-jquery
{'fraction_non_alphanumeric': 0.09576612903225806, 'fraction_numerical': 0.0, 'mean_word_length': 4.841176470588235, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6428287', 'n_tokens_mistral': 265, 'n_tokens_neox': 257, 'n_words': 101}