<commit_before>'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;

var async = require('async');
var restify = require('restify');

var onError = function(err, next) {
  if ('ValidationError' !== err.name) {
    return next(err);
  }

  return next(new restify.InvalidContentError('Validation failed' + err.errors));
};

var Resource = function (Model, options) {
  EventEmitter.call(this);
  this.Model = Model;
<commit_msg>Reorders and reformats require statements<commit_after>'use strict';
var async = require('async');
var restify = require('restify');
var util = require('util');
var EventEmitter = require('events').EventEmitter;

var onError = function(err, next) {
  if ('ValidationError' !== err.name) {
    return next(err);
  }

  return next(new restify.InvalidContentError('Validation failed' + err.errors));
};

var Resource = function (Model, options) {
  EventEmitter.call(this);
  this.Model = Model;

{'fraction_non_alphanumeric': 0.15192507804370448, 'fraction_numerical': 0.0, 'mean_word_length': 5.328947368421052, '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': '4948151', 'n_tokens_mistral': 286, 'n_tokens_neox': 289, 'n_words': 76}