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

'use strict';
/**
 * Furler v1.0.0
 * 
 * @author <NAME> <<EMAIL>>
 * @copyright 2017 <NAME> (and other contributors)
 * @license MIT License https://collingrimm.me/LICENSE.txt
 */

var furler = require('../src/Furler.js');
var figlet = require('figlet');
var chalk = require('chalk');
var argv = require('minimist')(process.argv.slice(2));

var parseArgument = function (arg) {
    var argument = arg.toString().split('-');
    return argument;
}

var usage = function () {
    console.log(
        chalk.bold.yellow(
            figlet.textSync('Furler', { horizontalLayout: 'full' })
        )
    );
    console.log(`
    ${chalk.bold.blue('Show lyrics of your favourite right in your CLI.')}
    ${chalk.bold.blue('Find lyrics of any song without knowing the song title or artist')}

    ${chalk.bold('Usage')}: furler [options] Song Name - Artist
    ${chalk.bold('Options')}:
        -v          print version number and exit
        -h          show this help message

    ${chalk.bold('Examples')}: 
        ${chalk.gray('Show lyrics of a particular song')}
            furler The Greatest - Sia
            furler Blank Space - Taylor Swift

        ${chalk.gray('Find a particular song by using a phase in the song')}
            furler I am holding on for dear life
            furler This world would never be what I expected

    ${chalk.white("furler can also be executed by using the word 'lyrics' Ex: lyrics The Greatest - Sia")};
    ${chalk.gray('(c) 2017 <NAME> <<EMAIL>> | MIT License')}
    `)
    process.exit();
}

var songMeta = parseArgument(argv._);
if (argv.h) usage();
if (argv.v) { console.log('1.0.4'); process.exit(); }

if (songMeta.toString().length === 0) { usage(); }<commit_msg>Version Update<commit_after>#!/usr/bin/env node

'use strict';
/**
 * Furler v1.0.0
 * 
 * @author <NAME> <<EMAIL>>
 * @copyright 2017 <NAME> (and other contributors)
 * @license MIT License https://collingrimm.me/LICENSE.txt
 */

var furler = require('../src/Furler.js');
var figlet = require('figlet');
var chalk = require('chalk');
var argv = require('minimist')(process.argv.slice(2));

var parseArgument = function (arg) {
    var argument = arg.toString().split('-');
    return argument;
}

var usage = function () {
    console.log(
        chalk.bold.yellow(
            figlet.textSync('Furler', { horizontalLayout: 'full' })
        )
    );
    console.log(`
    ${chalk.bold.blue('Show lyrics of your favourite right in your CLI.')}
    ${chalk.bold.blue('Find lyrics of any song without knowing the song title or artist')}

    ${chalk.bold('Usage')}: furler [options] Song Name - Artist
    ${chalk.bold('Options')}:
        -v          print version number and exit
        -h          show this help message

    ${chalk.bold('Examples')}: 
        ${chalk.gray('Show lyrics of a particular song')}
            furler The Greatest - Sia
            furler Blank Space - Taylor Swift

        ${chalk.gray('Find a particular song by using a phase in the song')}
            furler I am holding on for dear life
            furler This world would never be what I expected

    ${chalk.white("furler can also be executed by using the word 'lyrics' Ex: lyrics The Greatest - Sia")};
    ${chalk.gray('(c) 2017 <NAME> <<EMAIL>> | MIT License')}
    `)
    process.exit();
}

var songMeta = parseArgument(argv._);
if (argv.h) usage();
if (argv.v) { console.log('1.0.8'); process.exit(); }

if (songMeta.toString().length === 0) { usage(); }
{'fraction_non_alphanumeric': 0.153011704253497, 'fraction_numerical': 0.009135027119611762, 'mean_word_length': 2.8253275109170306, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '1298370', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1077, 'n_words': 337}