<commit_before>var path = require('path');
var helpers = require('./helpers');
var log = require('./log');
var glob = require('glob');
var watchr = require('watchr');
var decache = require('decache');

function requireHook(hook, extraPath) {
  if (! extraPath) {
    extraPath = '';
  }

  if (typeof hook === 'object') {
    var hookPath = hook.path;
    delete hook.path;

    require(path.join(extraPath, hookPath))(hook);
  } else {<commit_msg>fix weird edge case causing watching to stop<commit_after>var path = require('path');
var helpers = require('./helpers');
var log = require('./log');
var glob = require('glob');
var watchr = require('watchr');
var decache = require('decache');

function requireHook(hook, extraPath) {
  if (! extraPath) {
    extraPath = '';
  }

  if (typeof hook === 'object') {
    var hookPath = hook.path;
    delete hook.path;

    require(path.join(extraPath, hookPath))(hook);
    hook.path = hookPath;
  } else {
{'fraction_non_alphanumeric': 0.17103882476390347, 'fraction_numerical': 0.0, 'mean_word_length': 4.074468085106383, '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': '6830036', 'n_tokens_mistral': 299, 'n_tokens_neox': 296, 'n_words': 81}