<commit_before>
/*!
 * Express
 * Copyright(c) 2010 <NAME> <<EMAIL>>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var connect = require('connect')
  , proto = require('./proto')
  , Route = require('./router/route')
  , utils = connect.utils;

exports = module.exports = createServer;

function createServer() {
  var app = connect();
  utils.merge(app, proto);
  app.init();
  return app;
}

/**
 * Expose connect.middleware as express.*
 * for example `express.logger` etc. 
 */

for (var key in connect.middleware) {
  var desc = Object.getOwnPropertyDescriptor(connect.middleware, key);
  Object.defineProperty(exports, key, desc);
}

// /**
//  * Re-export connect auto-loaders.
//  * 
//  * This prevents the need to `require('connect')` in order
//  * to access core middleware, so for example `express.logger()` instead
//  * of `require('connect').logger()`.
//  */
// 
// exports = module.exports = connect.middleware;
// 
// /**
//  * Framework version.
//  */
// 
// exports.version = '3.0.0alpha1';
// 
// /**
//  * Shortcut for `new Server(...)`.
//  *
//  * @param {Function} ...
//  * @return {Server}
//  * @api public
//  */
// 
// exports.createServer = function(options){
//   if ('object' == typeof options) {
//     return new HTTPSServer(options, Array.prototype.slice.call(arguments, 1));
//   } else {
//     return new HTTPServer(Array.prototype.slice.call(arguments));
//   }
// };
// 
// /**
//  * Expose constructors.
//  */
// 
// exports.HTTPServer = HTTPServer;
// exports.HTTPSServer = HTTPSServer;
// exports.Route = Route;
// 
// /**
//  * Expose HTTP methods.
//  */
// 
// exports.methods = require('./router/methods');
// 
// /**
//  * View extensions.
//  */
// 
// exports.View =
// exports.view = require('./view');
// 
// /**
//  * Response extensions.
//  */
// 
// require('./response');
// 
// /**
//  * Request extensions.
//  */
// 
// require('./request');
// 
// // Error handler title
// 
// exports.errorHandler.title = 'Express';
<commit_msg>uncommented old code<commit_after>
/*!
 * Express
 * Copyright(c) 2010 <NAME> <<EMAIL>>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var connect = require('connect')
  , proto = require('./proto')
  , Route = require('./router/route')
  , utils = connect.utils;

/**
 * Expose `createApplication()`.
 */

exports = module.exports = createApplication;

/**
 * Framework version.
 */

exports.version = '3.0.0alpha1';

/**
 * Create an express application.
 *
 * @return {Function}
 * @api public
 */

function createApplication() {
  var app = connect();
  utils.merge(app, proto);
  app.init();
  return app;
}

/**
 * Expose connect.middleware as express.*
 * for example `express.logger` etc. 
 */

for (var key in connect.middleware) {
  var desc = Object.getOwnPropertyDescriptor(connect.middleware, key);
  Object.defineProperty(exports, key, desc);
}

/**
 * Expose constructors.
 */

exports.Route = Route;

/**
 * Expose HTTP methods.
 */

exports.methods = require('./router/methods');

/**
 * Response extensions.
 */

require('./response');

/**
 * Request extensions.
 */

require('./request');

// Error handler title

exports.errorHandler.title = 'Express';

{'fraction_non_alphanumeric': 0.20540201005025124, 'fraction_numerical': 0.005339195979899497, 'mean_word_length': 2.665132336018412, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6366440', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1033, 'n_words': 223}