<commit_before>#!/usr/bin/env node

'use strict';
var hn = require('node-hn'); // separate package containing the API requests (https://www.npmjs.com/package/node-hn)
var cmd = require('commander');
var pkg = require("./package.json");

var post_limit;
cmd
  .usage('<command> [option]')
  .version(pkg.version)

cmd
  .command('top')
  .description('List Top stories')
  .option("-n, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.topstories(post_limit);
  });

cmd
  .command('new')
  .description('List New stories')
  .option("-n, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.newstories(post_limit);
  });

cmd
  .command('show')
  .description('List Show HN stories')
  .option("-n, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.showstories(post_limit);
  });

cmd
  .command('ask')
  .description('List Ask HN stories')
  .option("-n, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.askstories(post_limit);
  });

cmd
  .command('jobs')
  .description('List Job stories')
  .option("-n, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.jobstories(post_limit);
  });


cmd.parse(process.argv);<commit_msg>options change<commit_after>#!/usr/bin/env node

'use strict';
var hn = require('node-hn');
var cmd = require('commander');
var pkg = require("./package.json");

var post_limit;
cmd
  .usage('<command> [option]')
  .version(pkg.version)

cmd
  .command('top')
  .description('List Top stories')
  .option("-l, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.topstories(post_limit);
  });

cmd
  .command('new')
  .description('List New stories')
  .option("-l, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.newstories(post_limit);
  });

cmd
  .command('show')
  .description('List Show HN stories')
  .option("-l, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.showstories(post_limit);
  });

cmd
  .command('ask')
  .description('List Ask HN stories')
  .option("-l, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.askstories(post_limit);
  });

cmd
  .command('jobs')
  .description('List Job stories')
  .option("-l, --limit [number]", "Limit query results", /^[0-9]+$/)
  .action(function (op) {
          post_limit = op.limit
          hn.jobstories(post_limit);
  });


cmd.parse(process.argv);
{'fraction_non_alphanumeric': 0.20116718159972538, 'fraction_numerical': 0.006865774116031583, 'mean_word_length': 2.953867028493894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4160981', 'n_tokens_mistral': 1026, 'n_tokens_neox': 1001, 'n_words': 221}