<commit_before>express = require 'express'
favicon = require 'serve-favicon'
logger = require 'morgan'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
fs = require 'fs'
mongoose = require 'mongoose'

paths =
  views: 'views'
  controllers: 'controllers'
  assets: 'assets'

app = express()

# init DB
mongoose.connect 'mongodb://localhost/fw-radio'

# view engine setup
app.set 'views', "./#{paths.views}"
app.set 'view engine', 'jade'

# assets management
app.use require('connect-assets')
  paths: ['assets/js', 'assets/css', 'assets/font', 'assets/vendor', 'node_modules']
  fingerprinting: false

# uncomment after placing your favicon in /public
# app.use favicon "#{__dirname}/public/favicon.ico"
app.use logger 'dev'
app.use bodyParser.json()
app.use bodyParser.urlencoded
  extended: false
app.use cookieParser()

app.use express.static('assets')<commit_msg>DB layer disabled<commit_after>express = require 'express'
favicon = require 'serve-favicon'
logger = require 'morgan'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
fs = require 'fs'
mongoose = require 'mongoose'

paths =
  views: 'views'
  controllers: 'controllers'
  assets: 'assets'

app = express()

# init DB
#mongoose.connect 'mongodb://localhost/fw-radio'

# view engine setup
app.set 'views', "./#{paths.views}"
app.set 'view engine', 'jade'

# assets management
app.use require('connect-assets')
  paths: ['assets/js', 'assets/css', 'assets/font', 'assets/vendor', 'node_modules']
  fingerprinting: false

# uncomment after placing your favicon in /public
# app.use favicon "#{__dirname}/public/favicon.ico"
app.use logger 'dev'
app.use bodyParser.json()
app.use bodyParser.urlencoded
  extended: false
app.use cookieParser()

app.use express.static('assets')
{'fraction_non_alphanumeric': 0.1436556735606484, 'fraction_numerical': 0.0, 'mean_word_length': 5.193771626297578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6216087', 'n_tokens_mistral': 582, 'n_tokens_neox': 581, 'n_words': 159}