<commit_before>#!/usr/bin/env node
'use strict';
var cbc = require('./');
var yargs = require('yargs')
  .alias('p', 'password')
  .describe('p', 'your password')
  .alias('u', 'username')
  .describe('u', 'your username')
  .alias('h', 'help')
  .describe('h', 'this help')
  .version(require('./package.json').version, 'v')
  .alias('v', 'version')
  .usage('\nUsage:\n  $0 [url] [options]')
  .example('$0', 'update couch at http://127.0.0.1:5984')
  .example('$0 http://me.iriscouch.com -u me -p pw', 'update with auth');
var argv = yargs.argv;
if (argv.h) {
  yargs.showHelp();
  return process.exit(0);
}

var auth;
if (argv.p && argv.U) {
  auth = pargv.U + ':' + argv.p;
}
var url = argv[0] || 'http://127.0.0.1:5984';
cbc(url, auth, function (err) {
  if (err) {
    console.log(err);
    process.exit(1);
  }
  console.log('success');
  process.exit(0);
});<commit_msg>Fix url arg parsing<commit_after>#!/usr/bin/env node
'use strict';
var cbc = require('./');
var yargs = require('yargs')
  .alias('p', 'password')
  .describe('p', 'your password')
  .alias('u', 'username')
  .describe('u', 'your username')
  .alias('h', 'help')
  .describe('h', 'this help')
  .version(require('./package.json').version, 'v')
  .alias('v', 'version')
  .usage('\nUsage:\n  $0 [url] [options]')
  .example('$0', 'update couch at http://127.0.0.1:5984')
  .example('$0 http://me.iriscouch.com -u me -p pw', 'update with auth');
var argv = yargs.argv;
if (argv.h) {
  yargs.showHelp();
  return process.exit(0);
}

var auth;
if (argv.p && argv.U) {
  auth = pargv.U + ':' + argv.p;
}
var url = argv._[0] || 'http://127.0.0.1:5984';
cbc(url, auth, function (err) {
  if (err) {
    console.log(err);
    process.exit(1);
  }
  console.log('success');
  process.exit(0);
});
{'fraction_non_alphanumeric': 0.24971687429218573, 'fraction_numerical': 0.030577576443941108, 'mean_word_length': 3.5896103896103897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6446700', 'n_tokens_mistral': 734, 'n_tokens_neox': 712, 'n_words': 157}