<commit_before>const Client = require('knex/lib/client');
const { makeEscape } = require('knex/lib/query/string');
const QueryCompiler = require('./query/compiler');
const QueryBuilder = require('./query/builder');
const Formatter = require('./query/formatter');

const Promise = require('bluebird');
const { Connection } = require('jsforce');
const { uniqueId, pick } = require('lodash');

class ClientSOQL extends Client {
  constructor(options = {}) {
    super();
    if (options.connection) {
      if (options.connection instanceof Connection) {
        this._connection = options.connection;
      } else {
        this._connection = new Connection(options.connection);
        this._credentials = pick(options.connection, ['login', 'password']);
      }
    }
  }

  get dialect() {
    return 'soql';
  }

  get canCancelQuery() {
    return false;
  }

  wrapIdentifier(value) {
    return value;
  }

  formatter() {
    return new Formatter(this);
  }

  queryCompiler(...args) {
    return new QueryCompiler(this, ...args);
  }

  queryBuilder() {
    return new QueryBuilder(this);
  }
<commit_msg>Change formatter function declaration<commit_after>const Client = require('knex/lib/client');
const { makeEscape } = require('knex/lib/query/string');
const QueryCompiler = require('./query/compiler');
const QueryBuilder = require('./query/builder');
const Formatter = require('./query/formatter');

const Promise = require('bluebird');
const { Connection } = require('jsforce');
const { uniqueId, pick } = require('lodash');

class ClientSOQL extends Client {
  constructor(options = {}) {
    super();
    if (options.connection) {
      if (options.connection instanceof Connection) {
        this._connection = options.connection;
      } else {
        this._connection = new Connection(options.connection);
        this._credentials = pick(options.connection, ['login', 'password']);
      }
    }
  }

  get dialect() {
    return 'soql';
  }

  get canCancelQuery() {
    return false;
  }

  wrapIdentifier(value) {
    return value;
  }

  formatter(builder) {
    return new Formatter(this, builder);
  }

  queryCompiler(...args) {
    return new QueryCompiler(this, ...args);
  }

  queryBuilder() {
    return new QueryBuilder(this);
  }

{'fraction_non_alphanumeric': 0.14531802120141343, 'fraction_numerical': 0.0, 'mean_word_length': 3.432485322896282, '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': '3568771', 'n_tokens_mistral': 651, 'n_tokens_neox': 634, 'n_words': 146}