<commit_before>'use strict';

describe('Detective', function() {
  it('runs', function() {
    //console.log('elTextPos', elTextPos);
    expect(1).toBe(1);
  });
});<commit_msg>A real test !<commit_after>'use strict';

describe('detective', function() {
  var setup = function(html) {
    var container = document.createElement('div');

    container.innerHTML = html;

    return container.firstChild;
  };

  it('runs', function() {
    var el = setup('<div><p>Foo</p><p>Bar</p></div>')
      , child = el.querySelector('p:nth-child(2)');

    expect(elTextPosFoo(child, el)).toEqual({
      start: 15,
      end: 25,
      length: 10
    });
  });
});
{'fraction_non_alphanumeric': 0.20458015267175572, 'fraction_numerical': 0.013740458015267175, 'mean_word_length': 3.5555555555555554, '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': '5365730', 'n_tokens_mistral': 234, 'n_tokens_neox': 220, 'n_words': 41}