<commit_before>var nowjs               = require('now')
  , async               = require('async')
  , lingo               = require('lingo')
  ;

var asyncFs             = require('./util/async_fs')
  
  , config              = require('./config')
  
  , EXPORTS_NAME_REGEXP = config.EXPORTS_NAME_REGEXP
  ;

/******************************************************************************
 * Returns a object identical to the passed module, with the exception that 
 * each exported function of the module are scoped so that their `this` element
 * is the one passed by the caller.
 * 
 * @param module {Object} The module to wrap.
 * @returns The wrapped module object.
 */
function wrapModule(everyone, module) {
  
  var export  = {}
    , member
    ;
  
  for (var key in module) {
    
    member = module[key];
    
    if (typeof member === 'function') {
      
      export[key] = (function(fun) {
        
        return function() {
          
          this.user.disconnected = function(callback) {
           
            var user = this
              ;
            
            everyone.on('disconnect', function() {
              <commit_msg>added support for excluding members from being exported through nowJS<commit_after>var nowjs               = require('now')
  , async               = require('async')
  , lingo               = require('lingo')
  ;

var asyncFs             = require('./util/async_fs')
  
  , config              = require('./config')
  
  , EXPORTS_NAME_REGEXP = config.EXPORTS_NAME_REGEXP
  ;

/******************************************************************************
 * Returns a object identical to the passed module, with the exception that 
 * each exported function of the module are scoped so that their `this` element
 * is the one passed by the caller.
 * 
 * @param module {Object} The module to wrap.
 * @returns The wrapped module object.
 */
function wrapModule(everyone, module) {
  
  var export  = {}
    , member
    ;
  
  for (var key in module) {
    
    member = module[key];
    
    //do not export any members which names begin with an underscore
    if ( key.substr(0,1) === '_' ) {
      continue;
    }
    
    if (typeof member === 'function') {
      
      export[key] = (function(fun) {
        
        return function() {
          
          this.user.disconnected = function(callback) {
           
            var user = this
              ;
            
            everyone.on('disconnect', function() {
              
{'fraction_non_alphanumeric': 0.1564870259481038, 'fraction_numerical': 0.0007984031936127744, 'mean_word_length': 1.9413145539906103, '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': '2301766', 'n_tokens_mistral': 662, 'n_tokens_neox': 649, 'n_words': 195}