<commit_before>express = require 'express'
namespace = require 'express-namespace'
config = require './config'

routes = require './routes'
about = require './routes/about'

http = require 'http'
path = require 'path'

app = express();
app.set 'port', process.env.PORT or 3000

app.use config.development;

app.enable 'view cache'
app.engine 'hjs', require('hogan-express')
app.set 'views', path.join(__dirname, 'views')
app.set 'view engine', 'hjs'
app.set 'layout', 'layout'
app.set 'partials', 
    header: 'header'
    footer: 'footer'

app.use express.favicon path.join(__dirname, 'public/favicon.ico')
app.use express.logger('dev')
app.use express.bodyParser()
app.use express.methodOverride()
app.use app.router
app.use express.static path.join(__dirname, 'public');
app.use express.errorHandler() if 'development' is app.get 'env'

app.get '/', routes.index;
app.namespace '/about', ->
    app.get '/enactus', about.enactus
    app.get '/us', about.lsesu
    app.get '/advisors', about.bab

http.createServer(app).listen app.get('port'), ->
  console.log "Express server listening on port #{app.get 'port'}"<commit_msg>Added project routes<commit_after>express = require 'express'
namespace = require 'express-namespace'
config = require './config'

routes = require './routes'
about = require './routes/about'
projects = require './routes/projects'

http = require 'http'
path = require 'path'

app = express();
app.set 'port', process.env.PORT or 3000

app.use config.development;

app.enable 'view cache'
app.engine 'hjs', require('hogan-express')
app.set 'views', path.join(__dirname, 'views')
app.set 'view engine', 'hjs'
app.set 'layout', 'layout'
app.set 'partials', 
    header: 'header'
    footer: 'footer'

app.use express.favicon path.join(__dirname, 'public/favicon.ico')
app.use express.logger('dev')
app.use express.bodyParser()
app.use express.methodOverride()
app.use app.router
app.use express.static path.join(__dirname, 'public');
app.use express.errorHandler() if 'development' is app.get 'env'

app.get '/', routes.index;

app.namespace '/about', ->
    app.get '/enactus', about.enactus
    app.get '/us', about.lsesu
    app.get '/advisors', about.bab

app.namespace '/projects', ->
    app.get '/social', projects.social
    app.get '/commercial', projects.commercial
    app.get '/new', projects.new

http.createServer(app).listen app.get('port'), ->
  console.log "Express server listening on port #{app.get 'port'}"
{'fraction_non_alphanumeric': 0.16442268461852305, 'fraction_numerical': 0.0032639738882088943, 'mean_word_length': 4.448888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2678590', 'n_tokens_mistral': 809, 'n_tokens_neox': 789, 'n_words': 213}