<commit_before>/**
 * Module dependencies.
 */

var express = require('express')
  , passport = require('passport')
  , nowww = require('nowww')
  , log = require('debug')('app:config')
  , MongoStore = require('connect-mongo')(express)
  , path = require('path')
  , heroku = require('./heroku')
  , utils = require('lib/utils')
  , expressUrl = require('lib/express-url');

/**
 * Expose `Config`
 *
 * @api private
 */

module.exports = Config;

/**
 * Configs Express Application with
 * defaults configs
 */

function Config(app) {
  /**
   * Set `development` only settings
   */

  app.configure('development', function() {

    // Log config settigs load
    log( 'development settings' );

    /**
     * Load custom `config` settings from
     * file `config.json`
     */

    app.set( 'config', require('./config.dev.json') );

    /**
     * Set `mongoUrl` to `mongodb://localhost/pdr`
     * for MongoDB connection
     */

    app.set( 'mongoUrl', 'mongodb://localhost/pdr-app' );

    /**
     * Build
     */

    app.use(require('lib/build'));

  });

  /**
   * Set `production` only settings
   */

  app.configure('production', function() {

    // Log config settigs load
    log( 'development settings' );

    /**
     * Set `nowww` middleware helper
     */

    app.use( nowww() );
    
    /**
     * Set `native` express compression middleware
     */

    app.use( express.compress() );
    
    /**
     * Set custom `config` settings from
     * file `config.json`
     */
    <commit_msg>[config] - Typo<commit_after>/**
 * Module dependencies.
 */

var express = require('express')
  , passport = require('passport')
  , nowww = require('nowww')
  , log = require('debug')('app:config')
  , MongoStore = require('connect-mongo')(express)
  , path = require('path')
  , heroku = require('./heroku')
  , utils = require('lib/utils')
  , expressUrl = require('lib/express-url');

/**
 * Expose `Config`
 *
 * @api private
 */

module.exports = Config;

/**
 * Configs Express Application with
 * defaults configs
 */

function Config(app) {
  /**
   * Set `development` only settings
   */

  app.configure('development', function() {

    // Log config settigs load
    log( 'development settings' );

    /**
     * Load custom `config` settings from
     * file `config.json`
     */

    app.set( 'config', require('./config.dev.json') );

    /**
     * Set `mongoUrl` to `mongodb://localhost/pdr`
     * for MongoDB connection
     */

    app.set( 'mongoUrl', 'mongodb://localhost/pdr-app' );

    /**
     * Build
     */

    app.use(require('lib/build'));

  });

  /**
   * Set `production` only settings
   */

  app.configure('production', function() {

    // Log config settigs load
    log( 'production settings' );

    /**
     * Set `nowww` middleware helper
     */

    app.use( nowww() );
    
    /**
     * Set `native` express compression middleware
     */

    app.use( express.compress() );
    
    /**
     * Set custom `config` settings from
     * file `config.json`
     */
    
{'fraction_non_alphanumeric': 0.17329825715225256, 'fraction_numerical': 0.0, 'mean_word_length': 2.4103139013452917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '5278846', 'n_tokens_mistral': 989, 'n_tokens_neox': 942, 'n_words': 209}