<commit_before>var helpers = require('./immutable-helpers')
var ReactorCore = require('./reactor-core')
var extend = require('./utils').extend
var Reactor = require('./reactor')

/**
 * @return {Reactor}
 */
exports.createReactor = function() {
  return new Reactor()
}

/**
 * @param {object} spec
 * @return {ReactorCore}
 */
exports.createCore = function(spec) {
  function Core() {
    ReactorCore.call(this)
  }
  Core.prototype = Object.create(ReactorCore.prototype)
  extend(Core.prototype, spec)
  return Core
}

exports.toJS = helpers.toJS
exports.toImmutable = helpers.toImmutable
exports.isImmutable = helpers.isImmutable<commit_msg>Expose Getter on the facade<commit_after>var helpers = require('./immutable-helpers')
var ReactorCore = require('./reactor-core')
var Getter = require('./getter')
var extend = require('./utils').extend
var Reactor = require('./reactor')

/**
 * @return {Reactor}
 */
exports.createReactor = function() {
  return new Reactor()
}

/**
 * @param {object} spec
 * @return {ReactorCore}
 */
exports.createCore = function(spec) {
  function Core() {
    ReactorCore.call(this)
  }
  Core.prototype = Object.create(ReactorCore.prototype)
  extend(Core.prototype, spec)
  return Core
}

exports.Getter = Getter

exports.toJS = helpers.toJS
exports.toImmutable = helpers.toImmutable
exports.isImmutable = helpers.isImmutable
{'fraction_non_alphanumeric': 0.14779411764705883, 'fraction_numerical': 0.0, 'mean_word_length': 4.532520325203252, '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': '6221902', 'n_tokens_mistral': 436, 'n_tokens_neox': 440, 'n_words': 90}