<commit_before>
var dummy
, async = require('async')
, EventEmitterCollector = require("eventemittercollector")
, DeepObject = require("deepobject")
, logger = require('tracer').console()
;

var hotplate = exports;

hotplate.require = function( m ){ return require( m ); }
hotplate.cachable = async.memoize;
hotplate.hotEvents = new EventEmitterCollector();
hotplate.config = new DeepObject();

// Sane hotplate-wide defaults
// You can (and should) over-ride them in your server.js file
hotplate.config.set( 'hotplate.staticUrlPath', '/hotplate' ); // REMEMBER '/' at the beginning
hotplate.config.set( 'hotplate.logToScreen', 'true' );

// Db settings
hotplate.config.set( 'hotplate.db', null );
hotplate.config.set( 'hotplate.DriverMixin', function(){ } );
hotplate.config.set( 'hotplate.SchemaMixin', function(){ } );

hotplate.log = function(){
  if( hotplate.config.get('logToScreen') ){
    logger.log.apply( this, arguments );
  }
}

var origEmit = hotplate.hotEvents.emit;
hotplate.hotEvents.emit = function(){
  hotplate.log("Emitted event: " + arguments[0] );
  origEmit.apply( this, arguments );
}
<commit_msg>Fixed default setting in hotplate<commit_after>
var dummy
, async = require('async')
, EventEmitterCollector = require("eventemittercollector")
, DeepObject = require("deepobject")
, logger = require('tracer').console()
;

var hotplate = exports;

hotplate.require = function( m ){ return require( m ); }
hotplate.cachable = async.memoize;
hotplate.hotEvents = new EventEmitterCollector();
hotplate.config = new DeepObject();

// Sane hotplate-wide defaults
// You can (and should) over-ride them in your server.js file
hotplate.config.set( 'hotplate.staticUrlPath', '/hotplate' ); // REMEMBER '/' at the beginning
hotplate.config.set( 'hotplate.logToScreen', 'true' );

// Db settings
hotplate.config.set( 'hotplate.db', null );
hotplate.config.set( 'hotplate.DbLayerMixin', function(){ } );
hotplate.config.set( 'hotplate.SchemaMixin', function(){ } );

hotplate.log = function(){
  if( hotplate.config.get('logToScreen') ){
    logger.log.apply( this, arguments );
  }
}

var origEmit = hotplate.hotEvents.emit;
hotplate.hotEvents.emit = function(){
  hotplate.log("Emitted event: " + arguments[0] );
  origEmit.apply( this, arguments );
}

{'fraction_non_alphanumeric': 0.15717439293598234, 'fraction_numerical': 0.0008830022075055188, 'mean_word_length': 5.075067024128686, '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': '1293608', 'n_tokens_mistral': 768, 'n_tokens_neox': 726, 'n_words': 164}