<commit_before>assets = require 'connect-assets'
express = require 'express'
stylus = require 'stylus'
path = require 'path'

if !process.env.NODE_ENV?
  process.env.NODE_ENV = 'production'

public_dir = (filename) -> path.join __dirname, '../public', filename or ''

exports.apply = (server) ->
  server.assets_context = {}

  server.use express.static public_dir()
  server.use assets
    src: 'assets/'
    helperContext: server.assets_context

  server.assets_context.css.root = 'stylesheets/'
  server.assets_context.js.root = 'scripts/'

  server.set 'views', public_dir 'views'

  server.configure 'development', ->
    this.set 'listening-port', (process.env.NODE_PORT || process.env.PORT) || 8000

  server.configure 'production', ->
    this.set 'listening-port', (process.env.NODE_PORT || process.env.PORT) || 80
<commit_msg>Fixed a bug regarding a change in node assets.<commit_after>assets = require 'connect-assets'
express = require 'express'
stylus = require 'stylus'
path = require 'path'

if !process.env.NODE_ENV?
  process.env.NODE_ENV = 'production'

public_dir = (filename) -> path.join __dirname, '../public', filename or ''

exports.apply = (server) ->
  server.assets_context = {}

  server.use express.static public_dir()
  server.use assets
    src: 'assets/'
    helperContext: server.assets_context

  server.assets_context.css.root = 'stylesheets'
  server.assets_context.js.root = 'scripts'

  server.set 'views', public_dir 'views'

  server.configure 'development', ->
    this.set 'listening-port', (process.env.NODE_PORT || process.env.PORT) || 8000

  server.configure 'production', ->
    this.set 'listening-port', (process.env.NODE_PORT || process.env.PORT) || 80

{'fraction_non_alphanumeric': 0.14386376981796828, 'fraction_numerical': 0.007046388725778039, 'mean_word_length': 4.132530120481928, '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': '1040942', 'n_tokens_mistral': 559, 'n_tokens_neox': 532, 'n_words': 122}