<commit_before>"use strict";



var debug = require('debug')('waigo-startup-models'),
  path = require('path'),
  Robe = require('Robe'),
  waigo = global.waigo,
  _ = waigo._,
  viewObjects = waigo.load('support/viewObjects');



/**
 * Load models.
 *
 * @param {Object} app The application.
 */
module.exports = function*(app) {
  debug('Loading');

  var modelModuleFiles = waigo.getFilesInFolder('models');

  app.models = {};

  for (let _i in modelModuleFiles) {
    let modulePath = modelModuleFiles[_i];

    debug('Loading ' + modulePath);

    var moduleFileName = path.basename(modulePath, path.extname(modulePath));

    var modelInfo = waigo.load(modulePath);

    var name = modelInfo.className || _.capitalize(moduleFileName),<commit_msg>fix robe require<commit_after>"use strict";



var debug = require('debug')('waigo-startup-models'),
  path = require('path'),
  Robe = require('robe'),
  waigo = global.waigo,
  _ = waigo._,
  viewObjects = waigo.load('support/viewObjects');



/**
 * Load models.
 *
 * @param {Object} app The application.
 */
module.exports = function*(app) {
  debug('Loading');

  var modelModuleFiles = waigo.getFilesInFolder('models');

  app.models = {};

  for (let _i in modelModuleFiles) {
    let modulePath = modelModuleFiles[_i];

    debug('Loading ' + modulePath);

    var moduleFileName = path.basename(modulePath, path.extname(modulePath));

    var modelInfo = waigo.load(modulePath);

    var name = modelInfo.className || _.capitalize(moduleFileName),
{'fraction_non_alphanumeric': 0.15221707478491064, 'fraction_numerical': 0.0, 'mean_word_length': 4.125423728813559, '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': '5805834', 'n_tokens_mistral': 489, 'n_tokens_neox': 463, 'n_words': 99}