<commit_before>"use strict";

/*!
 * Module dependencies.
 */

var dummy
  , hotplate = require('hotplate')
;


exports.getAllStores = hotplate.cachable( function( done ){
  
  var res = {};

  hotplate.hotEvents.emitCollect( 'stores', function( err, results){

    results.forEach( function( element ) {

      Object.keys( element.result ).forEach( function( k ){

       var store = element.result[ k ];

       // Add the module to the store registry
       res[ store.storeName ] = store;

      });
      
    });
    done( null, res );
  });

});


<commit_msg>THe stores are now exported, so that other modules can use them if needed<commit_after>"use strict";

/*!
 * Module dependencies.
 */

var dummy
  , hotplate = require('hotplate')
;

var registry = exports.registry = {};

exports.getAllStores = hotplate.cachable( function( done ){
  
  hotplate.hotEvents.emitCollect( 'stores', function( err, results){

    results.forEach( function( element ) {

      Object.keys( element.result ).forEach( function( k ){

       var store = element.result[ k ];

       // Add the module to the store registry
       registry[ store.storeName ] = store;

      });
      
    });
    done( null, registry );
  });

});



{'fraction_non_alphanumeric': 0.13773431132844335, 'fraction_numerical': 0.0, 'mean_word_length': 2.6766467065868262, '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': '1790629', 'n_tokens_mistral': 387, 'n_tokens_neox': 360, 'n_words': 102}