<commit_before>const router = require('./router')();
const i18n = require('../plugins/i18n');
const account = require('./account');
const user = require('./user');
const storage = require('./storage');
const performers = require('./performers');
const performances = require('./performances');
const password = require('./password');
const events = require('./events');
const crews = require('./crews');
const login = require('./login');
const logout = require('./logout');
const signup = require('./signup');
const search = require('./search');
const fourOhFour = require('./404');

const mongoose = require('mongoose');
const Event = mongoose.model('Event');
const User = mongoose.model('User');
const Performance = mongoose.model('Performance');

router.get('/', (req, res) => {
  Event.findOne({})
  .populate([{
    path: 'teaserImage',
    model: 'Asset'
  }])
  .exec((err, event) => {
    User.find({})
    .populate([{
      path: 'image',
      model: 'Asset'
    }])
    .limit(40)<commit_msg>regex<commit_after>const router = require('./router')();
const i18n = require('../plugins/i18n');
const account = require('./account');
const user = require('./user');
const storage = require('./storage');
const performers = require('./performers');
const performances = require('./performances');
const password = require('./password');
const events = require('./events');
const crews = require('./crews');
const login = require('./login');
const logout = require('./logout');
const signup = require('./signup');
const search = require('./search');
const fourOhFour = require('./404');

const mongoose = require('mongoose');
const Event = mongoose.model('Event');
const User = mongoose.model('User');
const Performance = mongoose.model('Performance');
// User.find({name: { $regex: '.*' + 'lex' + '.*' }})
router.get('/', (req, res) => {
  Event.findOne({})
  .populate([{
    path: 'teaserImage',
    model: 'Asset'
  }])
  .exec((err, event) => {
    User.find({})
    .populate([{
      path: 'image',
      model: 'Asset'
    }])
    .limit(40)
{'fraction_non_alphanumeric': 0.22113979542133463, 'fraction_numerical': 0.00876765708718948, 'mean_word_length': 4.253196930946292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '724744', 'n_tokens_mistral': 617, 'n_tokens_neox': 607, 'n_words': 152}