<commit_before>#!/usr/bin/env node
import {Promise} from 'bluebird'
import Create from './cli/cms/Create'
import plugins from './cli/extend/plugins'
import {exec} from 'child_process'
import {spawn} from 'child_process'
import execPromise from 'child-process-promise'
import mkdirp from 'mkdirp'
import fse from 'fs-extra'
import path from 'path'
import program from 'commander'
import pkg from '../package'
import pm2 from 'pm2'
import clc from 'cli-color'

program
  .version(pkg.version)
  .option('-v, --version', 'version')
  .option('-p, --port <port>', 'Port on which to listen to (defaults to 8000)', parseInt)
  .option('-i, --interactive', 'open in browser')
  .option('-N, --pname <pname>', 'pm2 server name')
  .option('-f, --folder <folder>', '--folder draft|sites')
  .option('-t, --type <type>', '--type draft|other')
  .option('-d, --destination <destination>', '--destination folder')
  .option('generate-posts, --path=<folder> --destination=<folder> --status=<status>', 'save only <status> posts into <destination> from <path> folder')
  .parse(process.argv)

var userArgs = process.argv.slice(2)<commit_msg>Bug: abe generate-post --thrid param bug<commit_after>#!/usr/bin/env node
import {Promise} from 'bluebird'
import Create from './cli/cms/Create'
import plugins from './cli/extend/plugins'
import {exec} from 'child_process'
import {spawn} from 'child_process'
import execPromise from 'child-process-promise'
import mkdirp from 'mkdirp'
import fse from 'fs-extra'
import path from 'path'
import program from 'commander'
import pkg from '../package'
import pm2 from 'pm2'
import clc from 'cli-color'

program
  .version(pkg.version)
  .option('-v, --version', 'version')
  .option('-p, --port <port>', 'Port on which to listen to (defaults to 8000)', parseInt)
  .option('-i, --interactive', 'open in browser')
  .option('-N, --pname <pname>', 'pm2 server name')
  .option('-f, --folder <folder>', '--folder draft|sites')
  .option('-t, --type <type>', '--type draft|other')
  .option('-d, --destination <destination>', '--destination folder')
  .option('-p, --path <path>', '--path folder')
  .option('-s, --status <status>', '--status abe')
  .option('generate-posts, --path=<folder> --destination=<folder> --status=<status>', 'save only <status> posts into <destination> from <path> folder')
  .parse(process.argv)

var userArgs = process.argv.slice(2)
{'fraction_non_alphanumeric': 0.18671152228763668, 'fraction_numerical': 0.00672834314550042, 'mean_word_length': 4.394557823129252, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '5343038', 'n_tokens_mistral': 790, 'n_tokens_neox': 785, 'n_words': 244}