<commit_before>#!/usr/bin/env node
'use strict'

const meow = require('meow')
const getCodeReviewers = require('./')
const Promise = require('bluebird')
const gitconfig = require('gitconfiglocal')
const pify = require('pify')
const ghauth = Promise.promisify(require('ghauth'))
const authOptions = {
  configName: 'ghPRCreators',
  note: 'Get GitHub PR creators',
  userAgent: 'ghPRCreators',
  scope: ['repo']
}

var cli = meow([`
  Usage
    $ get-code-reviewers [input]

  Options
    -r, --repo Only for a specific repo. [Default: false]
    -s, --since Only since a specific time. [Default: false]
    -u, --until Only to a specific time. [Default: false]

  Examples
    $ get-code-reviewiers
    RichardLitt
    $ get-code-reviewers ipfs --since=2016-01-15T00:20:24Z --until=2016-01-20T00:20:24Z
    RichardLitt
`, {
  alias: {
    s: 'since',
    u: 'until',
    r: 'repo'
  }
}])

Promise.try(() => {
  return pify(gitconfig)(process.cwd())
}).then((config) => {
  if (config && config.remote && config.remote.origin && config.remote.origin.url) {
    return config.remote.origin.url.split(':')[1].split('.git')[0].split('/')
  }<commit_msg>fix: make aliases work<commit_after>#!/usr/bin/env node
'use strict'

const meow = require('meow')
const getCodeReviewers = require('./')
const Promise = require('bluebird')
const gitconfig = require('gitconfiglocal')
const pify = require('pify')
const ghauth = Promise.promisify(require('ghauth'))
const authOptions = {
  configName: 'ghPRCreators',
  note: 'Get GitHub PR creators',
  userAgent: 'ghPRCreators',
  scope: ['repo']
}

var cli = meow([`
  Usage
    $ get-code-reviewers [input]

  Options
    -r, --repo Only for a specific repo. [Default: false]
    -s, --since Only since a specific time. [Default: false]
    -u, --until Only to a specific time. [Default: false]

  Examples
    $ get-code-reviewiers
    RichardLitt
    $ get-code-reviewers ipfs --since=2016-01-15T00:20:24Z --until=2016-01-20T00:20:24Z
    RichardLitt
`], {
  alias: {
    s: 'since',
    u: 'until',
    r: 'repo'
  }
})

Promise.try(() => {
  return pify(gitconfig)(process.cwd())
}).then((config) => {
  if (config && config.remote && config.remote.origin && config.remote.origin.url) {
    return config.remote.origin.url.split(':')[1].split('.git')[0].split('/')
  }
{'fraction_non_alphanumeric': 0.17540060632308357, 'fraction_numerical': 0.0259852750108272, 'mean_word_length': 3.63855421686747, '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': '541147', 'n_tokens_mistral': 854, 'n_tokens_neox': 806, 'n_words': 193}