<commit_before>// From:
// https://github.com/andrewoh531/dynogels-promisified
// https://github.com/andrewoh531/dynogels-promisified/blob/master/index.js

const Promise = require('bluebird')
const dynogels = require('dynogels')

Promise.promisifyAll(require('dynogels/lib/table').prototype)
Promise.promisifyAll(require('dynogels/lib/item').prototype)
Promise.promisifyAll(require('dynogels/lib/query').prototype)
Promise.promisifyAll(require('dynogels/lib/scan').prototype)
Promise.promisifyAll(require('dynogels/lib/parallelScan').prototype)

const dynogelsModel = dynogels.model
dynogels.model = function(name, model) {
  if (model) {
    Promise.promisifyAll(model)
  }
  return dynogelsModel.apply(dynogels, arguments)
}

Promise.promisifyAll(dynogels)

module.exports = dynogels<commit_msg>Lint fixes<commit_after>// From:
// https://github.com/andrewoh531/dynogels-promisified
// https://github.com/andrewoh531/dynogels-promisified/blob/master/index.js

const Promise = require('bluebird')
const dynogels = require('dynogels')

Promise.promisifyAll(require('dynogels/lib/table').prototype)
Promise.promisifyAll(require('dynogels/lib/item').prototype)
Promise.promisifyAll(require('dynogels/lib/query').prototype)
Promise.promisifyAll(require('dynogels/lib/scan').prototype)
Promise.promisifyAll(require('dynogels/lib/parallelScan').prototype)

const dynogelsModel = dynogels.model
dynogels.model = function modelFunc(name, model, ...args) {
  if (model) {
    Promise.promisifyAll(model)
  }
  return dynogelsModel.apply(dynogels, [name, model, ...args])
}

Promise.promisifyAll(dynogels)

module.exports = dynogels
{'fraction_non_alphanumeric': 0.14602587800369685, 'fraction_numerical': 0.0073937153419593345, 'mean_word_length': 6.4495412844036695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5517353', 'n_tokens_mistral': 565, 'n_tokens_neox': 563, 'n_words': 64}