<commit_before>'use strict';
const mongoose = require('mongoose');
const service = require('feathers-mongoose');
const venue = require('./venue-model');
const hooks = require('./hooks');

module.exports = function() {
  const app = this;

  const options = {
    Model: venue,
    paginate: {
      default: 5,
      max: 25
    },
    lean: true
  };

  // Initialize our service with any options it requires
  app.use('/venues', service(options));

  // Get our initialize service to that we can bind hooks
  const venueService = app.service('/venues');

  // Set up our before hooks
  venueService.before(hooks.before);

  // Set up our after hooks
  venueService.after(hooks.after);
};<commit_msg>Increased pagination limits on venues<commit_after>'use strict';
const mongoose = require('mongoose');
const service = require('feathers-mongoose');
const venue = require('./venue-model');
const hooks = require('./hooks');

module.exports = function() {
  const app = this;

  const options = {
    Model: venue,
    paginate: {
      default: 25,
      max: 250
    },
    lean: true
  };

  // Initialize our service with any options it requires
  app.use('/venues', service(options));

  // Get our initialize service to that we can bind hooks
  const venueService = app.service('/venues');

  // Set up our before hooks
  venueService.before(hooks.before);

  // Set up our after hooks
  venueService.after(hooks.after);
};
{'fraction_non_alphanumeric': 0.1330532212885154, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 3.3700305810397553, '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': '4710617', 'n_tokens_mistral': 421, 'n_tokens_neox': 416, 'n_words': 134}