<commit_before>express = require 'express'
serveFavicon = require 'serve-favicon'
morgan = require 'morgan'
bodyParser = require 'body-parser'
mongoose = require 'mongoose'
moment = require 'moment'

app = express()

load = require "express-load"
server = require 'http'
	.createServer app

app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'

app.use express.static __dirname + '/public'
app.use '/vendor', express.static __dirname + '/bower_components'

##app.use serveFavicon 'path to favico'
app.use morgan 'dev'
app.use bodyParser.json()
app.use bodyParser.urlencoded extended: true

if app.get('env') == 'development'
    app.use (err, req, res, next) ->
        res.status err.status || 500
        res.render 'error', { message: err.message, error: err }

load './app/controllers', verbose: true<commit_msg>Tentando utilizar o logger no azure<commit_after>express = require 'express'
serveFavicon = require 'serve-favicon'
morgan = require 'morgan'
bodyParser = require 'body-parser'
mongoose = require 'mongoose'
moment = require 'moment'

app = express()

load = require "express-load"
server = require 'http'
	.createServer app

app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'

app.use express.static __dirname + '/public'
app.use '/vendor', express.static __dirname + '/bower_components'

##app.use serveFavicon 'path to favico'
app.use morgan 'dev'
app.use bodyParser.json()
app.use bodyParser.urlencoded extended: true

#if app.get('env') == 'development'
app.use (err, req, res, next) ->
    res.status err.status || 500
    res.render 'error', { message: err.message, error: err }

load './app/controllers', verbose: true
{'fraction_non_alphanumeric': 0.14046622833233713, 'fraction_numerical': 0.0035863717872086074, 'mean_word_length': 4.543046357615894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3339798', 'n_tokens_mistral': 552, 'n_tokens_neox': 543, 'n_words': 164}