<commit_before>express = require("express")
routes = require("./routes")
app = module.exports = express.createServer()
app.configure ->
  app.set "views", __dirname + "/views"
  app.set "view engine", "jade"
  app.use express.bodyParser()
  app.use express.methodOverride()
  app.use app.router
  app.use express.static(__dirname + "/assets")
  app.use require('connect-assets')()

app.configure "development", ->
  app.use express.errorHandler(
    dumpExceptions: true
    showStack: true
  )

app.configure "production", ->
  app.use express.errorHandler()

app.get "/", routes.index

models = require './models'
rest = require "./routes/rest"

rest.createRoutesFor "character", models.Character, app

app.listen process.env.port or 5000, ->
  console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env
<commit_msg>Always bind to env.port<commit_after>express = require("express")
routes = require("./routes")
app = module.exports = express.createServer()
app.configure ->
  app.set "views", __dirname + "/views"
  app.set "view engine", "jade"
  app.use express.bodyParser()
  app.use express.methodOverride()
  app.use app.router
  app.use express.static(__dirname + "/assets")
  app.use require('connect-assets')()

app.configure "development", ->
  app.use express.errorHandler(
    dumpExceptions: true
    showStack: true
  )

app.configure "production", ->
  app.use express.errorHandler()

app.get "/", routes.index

models = require './models'
rest = require "./routes/rest"

rest.createRoutesFor "character", models.Character, app

app.listen process.env.port, ->
  console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env

{'fraction_non_alphanumeric': 0.14959254947613504, 'fraction_numerical': 0.002328288707799767, 'mean_word_length': 4.193353474320242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4059341', 'n_tokens_mistral': 533, 'n_tokens_neox': 531, 'n_words': 135}