<commit_before>module.exports =
(->
  "use strict"
  lib = require "./lib"

  {Client, Interface} = lib
  {stdin, stdout, argv} = process
  argv = argv.slice 2, process.argv.lenth

  Cluster = (params = {}) ->
    @params = params
    console.log @params

  if stdin.isTTY
    cluster = new Cluster(
      host: argv[0],
      port: argv[1]
    )
<commit_msg>Changed main object to a factory function<commit_after>module.exports =
(->
  "use strict"
  lib = require "./lib"

  {Client, Interface} = lib
  {stdin, stdout, argv} = process
  argv = argv.slice 2, process.argv.lenth

  Cluster = (params = {}) ->
    {host, port} = params
    return (
      host: host,
      port: port
    )

  if stdin.isTTY
    cluster = Cluster(
      host: argv[0],
      port: argv[1]
    )
    console.log cluster

{'fraction_non_alphanumeric': 0.1373283395755306, 'fraction_numerical': 0.00749063670411985, 'mean_word_length': 2.427350427350427, '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': '2519152', 'n_tokens_mistral': 288, 'n_tokens_neox': 275, 'n_words': 75}