<commit_before>process.env.GITHUB_CLIENT_ID = "stubs";
process.env.GITHUB_CLIENT_SECRET = "stubs";


var chai = require('chai');
var sinon = require('sinon');
var mongoose = require('mongoose');
var _ = require('lodash');
var stubbedModels = [];
module.exports = {
  mongoDB: 'mongodb://localhost/mib-test',
  mongoose: mongoose,
  sinon: sinon,
  expect: chai.expect,
  supertest: require('supertest'),
  /*
   * Create an express app and use the
   * specified file as its router
   */
  appWithRouter: function(routerFile) {
    var app = require('express')();
    app.use(require('body-parser').json());
    app.use(this.require(routerFile));
    return app;
  },
  /*
   * Stub a mongoose model with sinon
   */
  stubModel: function(modelName) {
    var stub = sinon.stub(mongoose, 'model');
    stubbedModels.push(stub);
    return stub.withArgs(modelName);
  },<commit_msg>use simple stacktrace<commit_after>process.env.GITHUB_CLIENT_ID = "stubs";
process.env.GITHUB_CLIENT_SECRET = "stubs";

require('simple-stacktrace')({
  root: require('path').resolve(__dirname, '..')
})

var chai = require('chai');
var sinon = require('sinon');
var mongoose = require('mongoose');
var _ = require('lodash');
var stubbedModels = [];
module.exports = {
  mongoDB: 'mongodb://localhost/mib-test',
  mongoose: mongoose,
  sinon: sinon,
  expect: chai.expect,
  supertest: require('supertest'),
  /*
   * Create an express app and use the
   * specified file as its router
   */
  appWithRouter: function(routerFile) {
    var app = require('express')();
    app.use(require('body-parser').json());
    app.use(this.require(routerFile));
    return app;
  },
  /*
   * Stub a mongoose model with sinon
   */
  stubModel: function(modelName) {
    var stub = sinon.stub(mongoose, 'model');
    stubbedModels.push(stub);
    return stub.withArgs(modelName);
  },
{'fraction_non_alphanumeric': 0.15758229897463572, 'fraction_numerical': 0.0, 'mean_word_length': 4.065573770491803, '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': '3784975', 'n_tokens_mistral': 632, 'n_tokens_neox': 651, 'n_words': 133}