<commit_before>express     = require 'express'
session     = require 'express-session'
body_parser = require 'body-parser'

app = express()

app.use express.static 'app/public'
app.use session secret: 'secret-TODO-change-me'
app.use body_parser.json()
app.use body_parser.urlencoded extended: true

app.get '/', (req, res) ->
  res.send 'hello, world'

server = app.listen 3000, ->
  port = server.address().port

  console.log 'Started jachi-koro %s', port<commit_msg>Use __dirname for script directory<commit_after>express     = require 'express'
session     = require 'express-session'
body_parser = require 'body-parser'

app = express()

app.use express.static __dirname + '/public'
app.use session secret: 'secret-TODO-change-me'
app.use body_parser.json()
app.use body_parser.urlencoded extended: true

app.get '/', (req, res) ->
  res.send 'hello, world'

server = app.listen 3000, ->
  port = server.address().port

  console.log 'Started jachi-koro %s', port
{'fraction_non_alphanumeric': 0.13739669421487602, 'fraction_numerical': 0.008264462809917356, 'mean_word_length': 4.181818181818182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4705925', 'n_tokens_mistral': 325, 'n_tokens_neox': 314, 'n_words': 84}