<commit_before>'use strict';

const service = require('feathers-mongoose');
const filePermissionModel = require('./proxy-model');
const hooks = require('./hooks');

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

	const options = {
    Model: filePermissionModel,
    paginate: {
      default: 10000,
      max: 10000
    },
		lean: true
  };

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

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

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

  // Set up our after hooks
  filePermissionService.after(hooks.after);
};
<commit_msg>WIP: rename file model<commit_after>'use strict';

const service = require('feathers-mongoose');
const fileModel = require('./proxy-model');
const hooks = require('./hooks');

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

	const options = {
    Model: fileModel,
    paginate: {
      default: 10000,
      max: 10000
    },
		lean: true
  };

  // Initialize our service with any options it requires
	// todo: rename to fileModel or something
  app.use('/filePermissions', service(options));

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

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

  // Set up our after hooks
  filePermissionService.after(hooks.after);
};

{'fraction_non_alphanumeric': 0.12005277044854881, 'fraction_numerical': 0.013192612137203167, 'mean_word_length': 3.6533742331288344, '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': '3932113', 'n_tokens_mistral': 441, 'n_tokens_neox': 422, 'n_words': 133}