<commit_before>'use strict';

const expect = require('chai').expect,
  preProc = require('../lib/pre-proc');

describe('isTargetPath()', () => {
  // pathTest - `content` is converted to string when the test is passed.
  const CONVERTED = '1', NOT_CONVERTED = 1;

  it('should accept one that contains a path', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'path1')).to.equal(CONVERTED);
  });
  it('should not accept one that contains a path at not the start', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'path2')).to.equal(NOT_CONVERTED);
  });
  it('should not accept one that does not contain a path', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'pathx')).to.equal(NOT_CONVERTED);
  });
  it('should not accept one that contains a string at not the start', () => {<commit_msg>Adjust for ESLint<commit_after>'use strict';

const expect = require('chai').expect,
  preProc = require('../lib/pre-proc');

describe('isTargetPath()', () => {
  // pathTest - `content` is converted to string when the test is passed.
  const CONVERTED = '1',
    NOT_CONVERTED = 1;

  it('should accept one that contains a path', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'path1')).to.equal(CONVERTED);
  });
  it('should not accept one that contains a path at not the start', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'path2')).to.equal(NOT_CONVERTED);
  });
  it('should not accept one that does not contain a path', () => {
    expect(preProc.removeTag('', 1, 'path1/path2', 'pathx')).to.equal(NOT_CONVERTED);
  });
  it('should not accept one that contains a string at not the start', () => {
{'fraction_non_alphanumeric': 0.1837968561064087, 'fraction_numerical': 0.015719467956469165, 'mean_word_length': 4.155763239875389, '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': '5598623', 'n_tokens_mistral': 555, 'n_tokens_neox': 542, 'n_words': 156}