<commit_before>/*
 * Polyjuice
 * Copyright(c) 2015 <NAME> <<EMAIL>>
 * MIT Licensed
 */

module.exports = function (dictionary, truth_fn, truth_tbl, current) {
  this.dictionary = dictionary
  this.truth_fn = truth_fn
  this.truth_tbl = truth_tbl
  this.current = current || {}

  var that = this

  this.target = function (key) {
    var read = that.dictionary[key]

    return read ? read.target : null
  }

  this.get = function (key, value) {
    var read = that.dictionary[key]

    if (!read) {
      return {}
    }

    if (typeof read === 'function' || typeof read.eval === 'function') {
      return (read.eval || read)(value)
    }

    if (typeof read === 'string') {
      read = [read]
    }

    var tmp = {}<commit_msg>Fix crashing in reader #61<commit_after>/*
 * Polyjuice
 * Copyright(c) 2015 <NAME> <<EMAIL>>
 * MIT Licensed
 */

module.exports = function (dictionary, truth_fn, truth_tbl, current) {
  this.dictionary = dictionary
  this.truth_fn = truth_fn
  this.truth_tbl = truth_tbl
  this.current = current || {}

  var that = this

  this.target = function (key) {
    var read = that.dictionary[key]

    return read ? read.target : null
  }

  this.get = function (key, value) {
    var read = that.dictionary[key]

    if (!read || value === null || value === 'undefined') {
      return {}
    }

    if (typeof read === 'function' || typeof read.eval === 'function') {
      return (read.eval || read)(value)
    }

    if (typeof read === 'string') {
      read = [read]
    }

    var tmp = {}
{'fraction_non_alphanumeric': 0.149869109947644, 'fraction_numerical': 0.006544502617801047, 'mean_word_length': 2.7021791767554477, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5250925', 'n_tokens_mistral': 521, 'n_tokens_neox': 482, 'n_words': 134}