<commit_before>import * as _ from 'lodash';
import { IStore } from '..';
import Bluebird from 'bluebird';

const aclCollectionName = 'resources';

export class MongoDBStore implements IStore {
  private transaction;
  private readonly db;
  private readonly prefix;
  private readonly useSingle;
  private readonly useRawCollectionNames;

  constructor(db, prefix, useSingle?, useRawCollectionNames?) {
    this.db = db;
    this.prefix = typeof prefix !== 'undefined' ? prefix : '';
    this.useSingle = (typeof useSingle !== 'undefined') ? useSingle : false;
    this.useRawCollectionNames = useRawCollectionNames === false; // requires explicit boolean false value
  }<commit_msg>chore(stores/mongodb.ts) auto lint<commit_after>import Bluebird from 'bluebird';
import * as _ from 'lodash';
import { IStore } from '..';

const aclCollectionName = 'resources';

export class MongoDBStore implements IStore {
  private transaction;
  private readonly db;
  private readonly prefix;
  private readonly useSingle;
  private readonly useRawCollectionNames;

  constructor(db, prefix, useSingle?, useRawCollectionNames?) {
    this.db = db;
    this.prefix = typeof prefix !== 'undefined' ? prefix : '';
    this.useSingle = (typeof useSingle !== 'undefined') ? useSingle : false;
    this.useRawCollectionNames = useRawCollectionNames === false; // requires explicit boolean false value
  }
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0, 'mean_word_length': 4.66530612244898, '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': '6399345', 'n_tokens_mistral': 377, 'n_tokens_neox': 368, 'n_words': 118}