<commit_before>fs = require 'fs'
express = require 'express'

port_number = 3000

app = express.createServer(
  key: fs.readFileSync("certs/node-im.key")
  cert: fs.readFileSync("certs/node-im.crt")
)

app.configure(() ->
  app.set "views", "#{__dirname}/views"
  app.set "view engine", "jade"

  app.use require("stylus").middleware(
    src: "#{__dirname}/public"
    compress: true
  )
  app.use express.static("#{__dirname}/public")
  app.use express.bodyParser()
  app.use app.router
)

app.get '/', (req, res) -> res.render 'index.jade', {layout: false}

exports.start = ->
  app.listen(port_number)
  console.log "Started web server on localhost:#{port_number}"
<commit_msg>fix upstart: use absolute path for SSL certs instead of relative<commit_after>fs = require 'fs'
express = require 'express'

port_number = 3000

app = express.createServer(
  key: fs.readFileSync("#{__dirname}/certs/node-im.key")
  cert: fs.readFileSync("#{__dirname}/certs/node-im.crt")
)

app.configure(() ->
  app.set "views", "#{__dirname}/views"
  app.set "view engine", "jade"

  app.use require("stylus").middleware(
    src: "#{__dirname}/public"
    compress: true
  )
  app.use express.static("#{__dirname}/public")
  app.use express.bodyParser()
  app.use app.router
)

app.get '/', (req, res) -> res.render 'index.jade', {layout: false}

exports.start = ->
  app.listen(port_number)
  console.log "Started web server on localhost:#{port_number}"

{'fraction_non_alphanumeric': 0.17164697706740792, 'fraction_numerical': 0.005559416261292564, 'mean_word_length': 4.274725274725275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2050230', 'n_tokens_mistral': 522, 'n_tokens_neox': 509, 'n_words': 108}