<commit_before>EventEmitter = require('events').EventEmitter
Sender       = require './sender'
Path         = require 'path'
Util         = require 'util'
Fs           = require 'fs'

class HoardD extends EventEmitter
  
  constructor: (@conf, @cli) ->
    @sPath = @conf.scriptPath
    @fqdn = @conf.fqdn.split('.').join('_')
    @namespace = @conf.namespace or 'hoard'
    @samplesRun = 0
    @util = Util

    # Containers
    @scripts  = []
    @pending  = []
    super

  load_scripts: ->
    for file in Fs.readdirSync @sPath
      ext = Path.extname file<commit_msg>fix for issue #10<commit_after>EventEmitter = require('events').EventEmitter
Sender       = require './sender'
Path         = require 'path'
Util         = require 'util'
Fs           = require 'fs'

class HoardD extends EventEmitter
  
  constructor: (@conf, @cli) ->
    @sPath = Path.resolve @conf.scriptPath
    @fqdn = @conf.fqdn.split('.').join('_')
    @namespace = @conf.namespace or 'hoard'
    @samplesRun = 0
    @util = Util

    # Containers
    @scripts  = []
    @pending  = []
    super

  load_scripts: ->
    for file in Fs.readdirSync @sPath
      ext = Path.extname file
{'fraction_non_alphanumeric': 0.13241616509028376, 'fraction_numerical': 0.0034393809114359416, 'mean_word_length': 2.4437869822485205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3553556', 'n_tokens_mistral': 383, 'n_tokens_neox': 379, 'n_words': 95}