<commit_before>var di = require('@mindhive/di')

var init = require('./dist/init') 

module.exports = {
  inject: di.inject,
  initModules: init.initModules,
}

/*
 Import Meteor standard packages that we would want to use directly, rather than injecting

 So you shouldn't mind these being also tested as part of the unit in unit testing.
 Other Meteor objects and packages that should be injected as dependencies into your code
 go in the meteorCore/index.js module.
 */

if (Package && Package.check) {
  module.exports.check = Package.check.check
}

/*
 Expose Meteor.Error under a better name.
 This is the only exception type that a client will receive from a server method.
 Also to avoids importing of Meteor.
 */
if (global.Meteor) {
  module.exports.ClientError = global.Meteor.Error
}<commit_msg>Don't fail if Meteor packages not loaded<commit_after>var di = require('@mindhive/di')

var init = require('./dist/init') 

module.exports = {
  inject: di.inject,
  initModules: init.initModules,
}

/*
 Import Meteor standard packages that we would want to use directly, rather than injecting

 So you shouldn't mind these being also tested as part of the unit in unit testing.
 Other Meteor objects and packages that should be injected as dependencies into your code
 go in the meteorCore/index.js module.
 */
if (global.Package) {
  if (global.Package.check) {
    module.exports.check = global.Package.check.check
  }
}

/*
 Expose Meteor.Error under a better name.
 This is the only exception type that a client will receive from a server method.
 Also to avoids importing of Meteor.
 */
if (global.Meteor) {
  module.exports.ClientError = global.Meteor.Error
}
{'fraction_non_alphanumeric': 0.08487746563060371, 'fraction_numerical': 0.0, 'mean_word_length': 3.8521739130434782, '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': '6728438', 'n_tokens_mistral': 498, 'n_tokens_neox': 468, 'n_words': 199}