<commit_before><commit_msg>[api] mini server<commit_after>Redis    = require "redis"
Skeleton = require "nextorigin-express-skeleton"
Borracho = require "./express-bull"


class ElBorrachoServer extends Skeleton
  constructor: ->
    @redis = Redis.createClient()
    super address: "0.0.0.0"

  bindRoutes: ->
    @borracho = new Borracho redisClient: @redis
    @app.use "/jobs", @borracho.router
    @app.get "/", (req, res, next) -> res.sendFile path.join __dirname, "../", "public", "index.html"


ebs = new ElBorrachoServer
ebs.listen()

{'fraction_non_alphanumeric': 0.15101289134438306, 'fraction_numerical': 0.007366482504604052, 'mean_word_length': 3.900900900900901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3663192', 'n_tokens_mistral': 203, 'n_tokens_neox': 188, 'n_words': 43}