<commit_before>console.log 'we start'
{RecommenderMock} = require './helper/recommenderMock'
{Server} = require './../server'
http = require 'http'
PORT = process.env.PORT
completed = false
allData = null

console.log 'ir goes on'

isCompleted = -> completed == true

postOptions = ->
  options =
    host: '0.0.0.0',
    port: PORT,
    path: '/',
    method: 'POST'

makePostRequest = (sendData) ->
  options = postOptions()
  request = http.request options, (response) ->
    responseData = ''
    response.on 'data', (chunk) -><commit_msg>New arbitary port<commit_after>console.log 'we start'
{RecommenderMock} = require './helper/recommenderMock'
{Server} = require './../server'
http = require 'http'
PORT = 2055
completed = false
allData = null

console.log 'ir goes on'

isCompleted = -> completed == true

postOptions = ->
  options =
    host: '0.0.0.0',
    port: PORT,
    path: '/',
    method: 'POST'

makePostRequest = (sendData) ->
  options = postOptions()
  request = http.request options, (response) ->
    responseData = ''
    response.on 'data', (chunk) ->
{'fraction_non_alphanumeric': 0.15955473098330242, 'fraction_numerical': 0.011131725417439703, 'mean_word_length': 3.3684210526315788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7425736', 'n_tokens_mistral': 359, 'n_tokens_neox': 352, 'n_words': 94}