<commit_before>EventEmitter = require('events').EventEmitter
emitter = new EventEmitter

jade = require 'jade'
uglifyjs = require("uglify-js@0.0.3")
self = {}

class exports.Packer

  assets:      []
  public_path: './public/assets'
  system_path: __dirname + '/client'

  watch_dirs: [
    ['./app/views', 'html', 'index', -> self.watch()],
    ['./lib/client', 'js', 'lib'],
    ['./lib/css', 'css', 'lib'],
    ["#{__dirname}/client/js", 'js', 'system'],
  ]

  constructor: (@options = {}) ->
    console.log uglifyjs
    self = @
    @files = {js: {}, css: {}}
    @_findAssets()
  
  developerMode: ->
    self.output.html.index ->
      self.watch()
      emitter.on 'regenerate_html', ->
        self.output.html.index ->
          self.watch()
    self._monitorSassFiles()
  
  watch: ->
    self.timestamp = Date.now()
    sys.log 'Watching client files for changes...'<commit_msg>always nicer without debug lines<commit_after>EventEmitter = require('events').EventEmitter
emitter = new EventEmitter

jade = require 'jade'
uglifyjs = require("uglify-js@0.0.3")
self = {}

class exports.Packer

  assets:      []
  public_path: './public/assets'
  system_path: __dirname + '/client'

  watch_dirs: [
    ['./app/views', 'html', 'index', -> self.watch()],
    ['./lib/client', 'js', 'lib'],
    ['./lib/css', 'css', 'lib'],
    ["#{__dirname}/client/js", 'js', 'system'],
  ]

  constructor: (@options = {}) ->
    self = @
    @files = {js: {}, css: {}}
    @_findAssets()
  
  developerMode: ->
    self.output.html.index ->
      self.watch()
      emitter.on 'regenerate_html', ->
        self.output.html.index ->
          self.watch()
    self._monitorSassFiles()
  
  watch: ->
    self.timestamp = Date.now()
    sys.log 'Watching client files for changes...'
{'fraction_non_alphanumeric': 0.196509009009009, 'fraction_numerical': 0.0033783783783783786, 'mean_word_length': 2.7489451476793247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2310069', 'n_tokens_mistral': 617, 'n_tokens_neox': 613, 'n_words': 119}