<commit_before>var express = require('express')
var requireAll = require('./lib/require-all')

controllers = requireAll({
  dirname: __dirname + '/app/controllers',
  filter: /(.+)\.js(on)?$/
})

var app = express()
app.use(express.static(__dirname + '/public'))

require('./config/initializers/middleware.js').configure(app)
require('./config/routes').configure(app, controllers)

address = process.env.ADDRESS || '127.0.0.1'
port = process.env.PORT || 4000
app.listen(port, address)
console.log('Listening on port ', port)
console.log('Listening on IP address ', address)
<commit_msg>[FEATURE] Only listen with host if provided by ENV<commit_after>var express = require('express')
var requireAll = require('./lib/require-all')

controllers = requireAll({
  dirname: __dirname + '/app/controllers',
  filter: /(.+)\.js(on)?$/
})

var app = express()
app.use(express.static(__dirname + '/public'))

require('./config/initializers/middleware.js').configure(app)
require('./config/routes').configure(app, controllers)

address = process.env.ADDRESS
port = process.env.PORT || 4000

if (address){
  app.listen(port, address)
  console.log('Listening on IP address ', address)
} else {
  app.listen(port)
}
console.log('Listening on port ', port)

{'fraction_non_alphanumeric': 0.17860016090104586, 'fraction_numerical': 0.011263073209975865, 'mean_word_length': 5.068292682926829, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3451142', 'n_tokens_mistral': 404, 'n_tokens_neox': 387, 'n_words': 87}