<commit_before>var request = require('request');

var baseUri = 'http://localhost:3000/api';
var commands = {
  'api': api,
  'register': register,
  'new-game': newGame,
  'guess': guess,
  'stats': stats
};
var command = commands[process.argv[2]];

if (command === undefined) {
  if (process.argv[2]) {
    console.log('Unknown command:' + process.argv[2]);
  }
  console.log();
  console.log('Usage:');
  console.log('  node play.js api                  - Call the base API.');
  console.log('  node play.js register <name>      - Register a new player.');
  console.log('  node play.js new-game <playerId>  - Create a new game.');
  console.log('  node play.js guess <guess>        - Make a guess in a current game.');
  console.log('  node play.js stats [playerId]     - Get stats for all players or a specific player.');<commit_msg>Fix usage for play.js<commit_after>var request = require('request');

var baseUri = 'http://localhost:3000/api';
var commands = {
  'api': api,
  'register': register,
  'new-game': newGame,
  'guess': guess,
  'stats': stats
};
var command = commands[process.argv[2]];

if (command === undefined) {
  if (process.argv[2]) {
    console.log('Unknown command:' + process.argv[2]);
  }
  console.log();
  console.log('Usage:');
  console.log('  node play.js api                       - Call the base API.');
  console.log('  node play.js register <name>           - Register a new player.');
  console.log('  node play.js new-game <playerId>       - Create a new game.');
  console.log('  node play.js guess <playerId> <guess>  - Make a guess in a current game.');
  console.log('  node play.js stats [playerId]          - Get stats for all players or a specific player.');
{'fraction_non_alphanumeric': 0.16325336454066705, 'fraction_numerical': 0.008191925102399064, 'mean_word_length': 3.0330188679245285, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3641005', 'n_tokens_mistral': 542, 'n_tokens_neox': 545, 'n_words': 169}