<commit_before>const Field = require('../../Field');

const { escapeRegExp: esc } = require('@keystone/utils');

/* TODO: need to re-think how query filters are built up. currently, the last
one will override any previous ones, and we can't pass a regexp to .ne so will
need to refactor to build the query using $or and $not */

module.exports = class Text extends Field {
  constructor(path, config) {
    super(path, config);
    this.graphQLType = 'String';
  }
  addToMongooseSchema(schema) {<commit_msg>Fixing import<commit_after>const Field = require('../../Field');

const { escapeRegExp: esc } = require('@keystonejs/utils');

/* TODO: need to re-think how query filters are built up. currently, the last
one will override any previous ones, and we can't pass a regexp to .ne so will
need to refactor to build the query using $or and $not */

module.exports = class Text extends Field {
  constructor(path, config) {
    super(path, config);
    this.graphQLType = 'String';
  }
  addToMongooseSchema(schema) {
{'fraction_non_alphanumeric': 0.11591355599214145, 'fraction_numerical': 0.0, 'mean_word_length': 3.9950980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6797145', 'n_tokens_mistral': 302, 'n_tokens_neox': 297, 'n_words': 119}