<commit_before>#!/usr/bin/env node
var program = require('commander');
program
  .version(require('../package.json').version)
  .usage('[options]')
  .option('-l, --live', 'Shows the live weather')
  .option('-h, --host [host]', 'The HOST, default to "localhost"')
  .option('-p, --port [port]', 'The PORT, default to "4223"', parseInt)
  .option('-w, --wait [time]', 'The Callback time in milliseconds, default to "1000" ms', parseInt)
  .parse(process.argv);
/* istanbul ignore next */
if (!program.args.length) {
  if (!program.host) {
    program.host = 'localhost';
  }
  if (!program.port) {
    program.port = 4223;
  }
  if (program.live) {
    if (!program.wait) {
      program.wait = 1000;
    }
    require('../weather.js').get(program.host, program.port, program.wait, live = true);
  } else {
    require('../weather.js').get(program.host, program.port, live = false);
  }
} else {
  program.help();
}<commit_msg>improve calling of weather.js<commit_after>#!/usr/bin/env node
var program = require('commander');
program
  .version(require('../package.json').version)
  .usage('[options]')
  .option('-l, --live', 'Shows the live weather')
  .option('-h, --host [host]', 'The HOST, default to "localhost"')
  .option('-p, --port [port]', 'The PORT, default to "4223"', parseInt)
  .option('-w, --wait [time]', 'The Callback time in milliseconds, default to "1000" ms', parseInt)
  .parse(process.argv);
/* istanbul ignore next */
if (!program.args.length) {
  if (!program.host) {
    program.host = 'localhost';
  }
  if (!program.port) {
    program.port = 4223;
  }
  if (program.live) {
    if (!program.wait) {
      program.wait = 1000;
    }
    require('../weather.js').get(program.host, program.port, program.wait, true);
  } else {
    require('../weather.js').get(program.host, program.port);
  }
} else {
  program.help();
}
{'fraction_non_alphanumeric': 0.206598161168199, 'fraction_numerical': 0.017306652244456464, 'mean_word_length': 3.3632075471698113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6459837', 'n_tokens_mistral': 672, 'n_tokens_neox': 640, 'n_words': 152}