<commit_before>// eslint-disable-next-line no-underscore-dangle
export const _replace = {
  attribute: ['string'],

  argument: ['string[]'],

  check({ arg: opVal }) {
    // eslint-disable-next-line no-magic-numbers
    const isValid = opVal.length <= 3 && opVal.length >= 2

    if (!isValid) {
      return 'the argument must be an array with one regular expression, then a string, then an optional list of flags'
    }

    return validateRegExp({ opVal })
  },<commit_msg>Fix linting<commit_after>// eslint-disable-next-line no-underscore-dangle
export const _replace = {
  attribute: ['string'],

  argument: ['string[]'],

  check({ arg: opVal }) {
    const isValid = opVal.length <= 3 && opVal.length >= 2

    if (!isValid) {
      return 'the argument must be an array with one regular expression, then a string, then an optional list of flags'
    }

    return validateRegExp({ opVal })
  },
{'fraction_non_alphanumeric': 0.13149171270718232, 'fraction_numerical': 0.004419889502762431, 'mean_word_length': 3.2735849056603774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6934150', 'n_tokens_mistral': 284, 'n_tokens_neox': 269, 'n_words': 91}