<commit_before>/* eslint-disable */
import initHelpers from '~/src/helpers';
import { JSDOM } from 'jsdom';

let TARGET_EL = null;
let URL_INFO = null;

let helpers = null;

beforeAll(() => {
  const {
    window: { document },
  } = new JSDOM(`
  <div id="container"></div>
  `);

  helpers = initHelpers(document);
  TARGET_EL = document.querySelector('#container');
  URL_INFO = helpers.urlInfo('http://www.abc.com#asd=1?foo=3')();
});

describe('getSplitElement()', () => {
  test('empty string', () => {
    const url = '';
    expect(helpers.getSplitElement(url)).toBeUndefined();
  });

  test('url without query string', () => {
    const url = 'www.foo.url/home';
    expect(helpers.getSplitElement(url)).toBeUndefined();
  });<commit_msg>Ref: unify continer id<commit_after>/* eslint-disable */
import initHelpers from '~/src/helpers';
import { JSDOM } from 'jsdom';

let TARGET_EL = null;
let URL_INFO = null;

let helpers = null;

const containerId = `container`;

beforeAll(() => {
  const {
    window: { document },
  } = new JSDOM(`
  <div id="${containerId}"></div>
  `);

  helpers = initHelpers(document);
  TARGET_EL = document.querySelector(`#${containerId}`);
  URL_INFO = helpers.urlInfo('http://www.abc.com#asd=1?foo=3')();
});

describe('getSplitElement()', () => {
  test('empty string', () => {
    const url = '';
    expect(helpers.getSplitElement(url)).toBeUndefined();
  });

  test('url without query string', () => {
    const url = 'www.foo.url/home';
    expect(helpers.getSplitElement(url)).toBeUndefined();
  });
{'fraction_non_alphanumeric': 0.19819238218205293, 'fraction_numerical': 0.0025823111684958036, 'mean_word_length': 4.183946488294314, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5346579', 'n_tokens_mistral': 533, 'n_tokens_neox': 535, 'n_words': 100}