<commit_before>'use strict'
var createData = require('../createdata')

module.exports = {
  direct (data, event, emitter, pattern, current, mapvalue) {
    console.log('direct:',JSON.stringify(mapvalue,false,2), event.fromParent)
    // check if removed
    if (data === null) {
      pattern.set(true)
      emitter.resub(data, event, this, mapvalue)
    }
    // emit
    data = createData(this, data)
    // uses the map to find the subscriber(s)
    emitter.findEmit(data, event, this, mapvalue)
  },

  reference (data, event, emitter, pattern, current, mapvalue, context) {
    if (data === null) {
      let patternContext = pattern._context
      patternContext = patternContext && patternContext._parent._parent
      let instances = patternContext && patternContext._instances
      if (instances) {
        let path = []<commit_msg> removed log<commit_after>'use strict'
var createData = require('../createdata')

module.exports = {
  direct (data, event, emitter, pattern, current, mapvalue) {
    // check if removed
    if (data === null) {
      pattern.set(true)
      emitter.resub(data, event, this, mapvalue)
    }
    // emit
    data = createData(this, data)
    // uses the map to find the subscriber(s)
    emitter.findEmit(data, event, this, mapvalue)
  },

  reference (data, event, emitter, pattern, current, mapvalue, context) {
    if (data === null) {
      let patternContext = pattern._context
      patternContext = patternContext && patternContext._parent._parent
      let instances = patternContext && patternContext._instances
      if (instances) {
        let path = []
{'fraction_non_alphanumeric': 0.12321095208462975, 'fraction_numerical': 0.0006222775357809583, 'mean_word_length': 3.1658031088082903, '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': '4880764', 'n_tokens_mistral': 469, 'n_tokens_neox': 458, 'n_words': 132}