<commit_before>var util = require('util');

const errors = [
  {
    name: 'InternalServerError',
    statusCode: 500,
    message: 'Internal Server Error'
  },
  {
    name: 'UncaughtExceptionError',
    statusCode: 55,
    message: 'Internal Server Error'
  }
];

function customRestifyErrorConstructor(error) {
  return function (message, code) {
    this.constructor.super_.apply(this, arguments);

    this.name = error.name;
    this.message = message || error.message;
    this.statusCode = code || error.statusCode;
    this.body = {
      code: this.name,
      message: this.message
    };

  };<commit_msg>corrected internal server error status code<commit_after>var util = require('util');

const errors = [
  {
    name: 'InternalServerError',
    statusCode: 500,
    message: 'Internal Server Error'
  },
  {
    name: 'UncaughtExceptionError',
    statusCode: 500,
    message: 'Internal Server Error'
  }
];

function customRestifyErrorConstructor(error) {
  return function (message, code) {
    this.constructor.super_.apply(this, arguments);

    this.name = error.name;
    this.message = message || error.message;
    this.statusCode = code || error.statusCode;
    this.body = {
      code: this.name,
      message: this.message
    };

  };
{'fraction_non_alphanumeric': 0.1233201581027668, 'fraction_numerical': 0.008695652173913044, 'mean_word_length': 3.19205298013245, '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': '1819324', 'n_tokens_mistral': 397, 'n_tokens_neox': 379, 'n_words': 89}