<commit_before>var path = require( 'path' )
  , dbModules = [ 'orm', 'odm' ]
  , moduleLoader = require( 'utils' ).moduleLoader.getInstance()
  , models = {};

dbModules.forEach( function( type ) {
  if ( moduleLoader.moduleIsEnabled( type ) ) {
    models[ type ] = {};
    moduleLoader.modules.forEach( function( theModule ) {
        Object.keys( theModule.models[ type ] ).forEach( function( key ) {
            models[ type ][ key ] = theModule.models[ type ][ key ];
            models[ type ][ key ][ type.toUpperCase() ] = true;
        });
    });
  }
});

module.exports = models;<commit_msg>fix(models): model loader will now look in clever-orm and clever-odm.<commit_after>var path = require( 'path' )
  , dbModules = [ 'clever-orm', 'clever-odm' ]
  , moduleLoader = require( 'utils' ).moduleLoader.getInstance( )
  , models = {};

dbModules.forEach( function( type ) {
  if ( moduleLoader.moduleIsEnabled( type ) ) {
    models[ type ] = {};
    moduleLoader.modules.forEach( function( theModule ) {
        Object.keys( theModule.models[ type ] ).forEach( function( key ) {
            models[ type ][ key ] = theModule.models[ type ][ key ];
            models[ type ][ key ][ type.toUpperCase() ] = true;
        });
    });
  }
});

module.exports = models;
{'fraction_non_alphanumeric': 0.16470588235294117, 'fraction_numerical': 0.0, 'mean_word_length': 2.8902439024390243, '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': '6301300', 'n_tokens_mistral': 395, 'n_tokens_neox': 397, 'n_words': 92}