<commit_before>express = require 'express'
stylus = require 'stylus'
nib = require 'nib'
bootstrap = require 'bootstrap-styl'
mongoose = require 'mongoose'
bodyParser = require 'body-parser'
expressValidator = require 'express-validator'
config = require './config/config'
routes = require './routes'


app = express()

# Define Port & Environment.
app.port = process.env.PORT or process.env.VMC_APP_PORT or 3000
env = process.env.NODE_ENV or 'prod'
config.setEnvironment env

# Config mongo db.
mongoose.connect config.MONGODB_URI

# Config stylus.
compile = (str, path) ->
  stylus str
    .set 'filename', path
    .set 'compress', true
    .use bootstrap()
    .use nib()

app.use stylus.middleware
  src: process.cwd() + '/src'<commit_msg>nothing<commit_after>express = require 'express'
stylus = require 'stylus'
nib = require 'nib'
bootstrap = require 'bootstrap-styl'
mongoose = require 'mongoose'
bodyParser = require 'body-parser'
expressValidator = require 'express-validator'
config = require './config/config'
routes = require './routes'


app = express()

# Define Port & Environment.
app.port = process.env.PORT or process.env.VMC_APP_PORT or 3000
env = 'prod'
config.setEnvironment env

# Config mongo db.
mongoose.connect config.MONGODB_URI

# Config stylus.
compile = (str, path) ->
  stylus str
    .set 'filename', path
    .set 'compress', true
    .use bootstrap()
    .use nib()

app.use stylus.middleware
  src: process.cwd() + '/src'
{'fraction_non_alphanumeric': 0.12482853223593965, 'fraction_numerical': 0.0054869684499314125, 'mean_word_length': 4.083623693379791, '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': '4113979', 'n_tokens_mistral': 492, 'n_tokens_neox': 484, 'n_words': 139}