<commit_before>import React      from 'react'
import ReactDOM   from 'react-dom'
import assert     from 'assert'

import a11y       from '../lib/index'
import  _after    from '../lib/after'
import assertions from '../lib/assertions'

var k = () => {};

var captureWarnings = (fn) => {
  var _warn = console.warn;
  var msgs = {};
  console.warn = (id, msg, srcNode) => {
    msgs[msg] = srcNode ? srcNode : true;
  };
  fn();
  console.warn = _warn;
  return msgs;
};

var expectWarning = (expected, fn) => {
  var msgs = captureWarnings(fn);
  assert(msgs[expected], `Did not get expected warning "${expected}"\ngot these warnings:\n${Object.keys(msgs).join('\n')}`);
};

var doNotExpectWarning = (notExpected, fn) => {
  var msgs = captureWarnings(fn);
  assert(msgs[notExpected] == null, `Did not expect a warning but got "${notExpected}"`);<commit_msg>update module path<commit_after>import React      from 'react'
import ReactDOM   from 'react-dom'
import assert     from 'assert'

import a11y       from '../src/index'
import  _after    from '../src/after'
import assertions from '../src/assertions'

var k = () => {};

var captureWarnings = (fn) => {
  var _warn = console.warn;
  var msgs = {};
  console.warn = (id, msg, srcNode) => {
    msgs[msg] = srcNode ? srcNode : true;
  };
  fn();
  console.warn = _warn;
  return msgs;
};

var expectWarning = (expected, fn) => {
  var msgs = captureWarnings(fn);
  assert(msgs[expected], `Did not get expected warning "${expected}"\ngot these warnings:\n${Object.keys(msgs).join('\n')}`);
};

var doNotExpectWarning = (notExpected, fn) => {
  var msgs = captureWarnings(fn);
  assert(msgs[notExpected] == null, `Did not expect a warning but got "${notExpected}"`);
{'fraction_non_alphanumeric': 0.16540477577169482, 'fraction_numerical': 0.0023296447291788003, 'mean_word_length': 3.706849315068493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1622288', 'n_tokens_mistral': 565, 'n_tokens_neox': 572, 'n_words': 161}