<commit_before>/*!
 * vue-localforage v0.2.0
 * <EMAIL>
 * Released under the MIT License.
 */
'use strict'

var localForage = require('localforage')

function VueLocalForage(Vue) {
  var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]
  
  Vue.prototype.$getItem = function (key, callback) {
    localForage.getItem(key, callback)
  }
  
  Vue.prototype.$setItem = function (key, value, callback) {
    localForage.setItem(key, value, callback)
  }
  
  Vue.prototype.$removeItem = function (key, callback) {
    localForage.removeItem(key, callback)
  }
  
  Vue.prototype.$clearStorage = function () {
    localForage.clear()
  }
  
  Vue.prototype.$lengthOfStorage = function () {
    localForage.length()
  }
  
  Vue.prototype.$keyInStorage = function (keyIndex, callback) {
    localForage.key(keyIndex, callback)
  }
  
  Vue.prototype.$keysInStorage = function (callback) {
    localForage.keys(callback)
  }
  
  Vue.prototype.$iterateStorage = function (iteratorCallback, callback) {
    localForage.iterate(iteratorCallback, callback)
  }
  
  Vue.prototype.$setStorageDriver = function (driverName) {
    localForage.setDriver(driverName)
  }
  
  Vue.prototype.$storageConfig = function (options) {
    localForage.config(options)
  }
  
}

VueLocalForage.version = '0.2.0'

module.exports = VueLocalForage<commit_msg>Added return value to allow working with promises Also removed unused options variable<commit_after>/*!
 * vue-localforage v0.2.0
 * <EMAIL>
 * Released under the MIT License.
 */
'use strict'

var localForage = require('localforage')

function VueLocalForage (Vue) {

  Vue.prototype.$getItem = function (key, callback) {
    return localForage.getItem(key, callback)
  }

  Vue.prototype.$setItem = function (key, value, callback) {
    return localForage.setItem(key, value, callback)
  }

  Vue.prototype.$removeItem = function (key, callback) {
    return localForage.removeItem(key, callback)
  }

  Vue.prototype.$clearStorage = function () {
    localForage.clear()
  }

  Vue.prototype.$lengthOfStorage = function (callback) {
    return localForage.length(callback)
  }

  Vue.prototype.$keyInStorage = function (keyIndex, callback) {
    return localForage.key(keyIndex, callback)
  }

  Vue.prototype.$keysInStorage = function (callback) {
    return localForage.keys(callback)
  }

  Vue.prototype.$iterateStorage = function (iteratorCallback, callback) {
    return localForage.iterate(iteratorCallback, callback)
  }

  Vue.prototype.$setStorageDriver = function (driverName) {
    localForage.setDriver(driverName)
  }

  Vue.prototype.$storageConfig = function (options) {
    localForage.config(options)
  }
}

VueLocalForage.version = '0.2.0'

module.exports = VueLocalForage

{'fraction_non_alphanumeric': 0.1206084751901485, 'fraction_numerical': 0.005432814197754437, 'mean_word_length': 3.949820788530466, 'pattern_counts': {'":': 0, '<': 6, '<?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': '2597343', 'n_tokens_mistral': 904, 'n_tokens_neox': 892, 'n_words': 167}