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

'use strict';

var meow = require('meow');
var mysqldesc = require('mysqldesc');
var gencode = require('gencode');
var ansi = require('ansi-styles');
var ProgressBar = require('progress');
var Beautifier = require('node-js-beautify');
var b = new Beautifier();
var compiler = require('./compiler');

var cli = meow([
	'Examples',
	'  $ sails-inverse-model --help',
	'  ...',
	'',
	'  $ sails-inverse-model -u root -p root -d sys -f /home/julian/Documentos/sails/sails-inverse-model/test/api',
	'  User:	 root',
	'  Password: <PASSWORD>',
	'  Database: sys',
	'  Host:	 localhost',
	'  Output folder:	 /home/julian/Documentos/Node_Projects/sails-inverse-model/test/api',
 	'  tablas',
	'  ===============================================================================================',
	'  ',
	'  complete',
	'  ...',
	'',
	'Options',
	'  -u, --user  User of mysql',
	'  -p, --pass  Password of <PASSWORD>',
	'  -d, --database	Database of mysql',
	'  -h, --host	Host server mysql		Default: localhost',
	'  -f, --folder	Folder output	Default: Folder actual'
	//'  --type  Type of word: yes|no|all  Default: all',
	//'  --neez  Type of word: yes|no|all  Default: all',
]);

//var type = cli.flags.type || 'all';

var user, pass, db, host, port, folder;

//User mysql
if (cli.flags.u || cli.flags.user) {
	user = cli.flags.u || cli.flags.user;
}

//Password
if (cli.flags.p || cli.flags.pass) {
	pass = cli.flags.p || cli.flags.pass;
}

//Database
if (cli.flags.d || cli.flags.database) {
	db = cli.flags.d || cli.flags.database;
}

//Host of Mysql
if (cli.flags.h || cli.flags.host) {
	host = cli.flags.h || cli.flags.host;
} else {
	host = "localhost";
}

//Folder output
if (cli.flags.f || cli.flags.folder) {
	folder = cli.flags.f || cli.flags.folder;
} else {
	folder = process.cwd();
}

console.log("User:\t", ansi.green.open + user + ansi.green.close);
console.log("Password:", ansi.green.open + pass + ansi.green.close);
console.log("Database:", ansi.green.open + db + ansi.green.close);
console.log("Host:\t", ansi.green.open + host + ansi.green.close);<commit_msg>changed  the password input to string fixes #1<commit_after>#!/usr/bin/env node

'use strict';

var meow = require('meow');
var mysqldesc = require('mysqldesc');
var gencode = require('gencode');
var ansi = require('ansi-styles');
var ProgressBar = require('progress');
var Beautifier = require('node-js-beautify');
var b = new Beautifier();
var compiler = require('./compiler');

var cli = meow([
	'Examples',
	'  $ sails-inverse-model --help',
	'  ...',
	'',
	'  $ sails-inverse-model -u root -p root -d sys -f /home/julian/Documentos/sails/sails-inverse-model/test/api',
	'  User:	 root',
	'  Password: <PASSWORD>',
	'  Database: sys',
	'  Host:	 localhost',
	'  Output folder:	 /home/julian/Documentos/Node_Projects/sails-inverse-model/test/api',
 	'  tablas',
	'  ===============================================================================================',
	'  ',
	'  complete',
	'  ...',
	'',
	'Options',
	'  -u, --user  User of mysql',
	'  -p, --pass  Password of <PASSWORD>',
	'  -d, --database	Database of mysql',
	'  -h, --host	Host server mysql		Default: localhost',
	'  -f, --folder	Folder output	Default: Folder actual'
	//'  --type  Type of word: yes|no|all  Default: all',
	//'  --neez  Type of word: yes|no|all  Default: all',
]);

//var type = cli.flags.type || 'all';

var user, pass, db, host, port, folder;

//User mysql
if (cli.flags.u || cli.flags.user) {
	user = cli.flags.u || cli.flags.user;
}

//Password
if (cli.flags.p || cli.flags.pass) {
	pass = cli.flags.p || cli.flags.pass;
	pass = pass.toString();
}

//Database
if (cli.flags.d || cli.flags.database) {
	db = cli.flags.d || cli.flags.database;
}

//Host of Mysql
if (cli.flags.h || cli.flags.host) {
	host = cli.flags.h || cli.flags.host;
} else {
	host = "localhost";
}

//Folder output
if (cli.flags.f || cli.flags.folder) {
	folder = cli.flags.f || cli.flags.folder;
} else {
	folder = process.cwd();
}

console.log("User:\t", ansi.green.open + user + ansi.green.close);
console.log("Password:", ansi.green.open + pass + ansi.green.close);
console.log("Database:", ansi.green.open + db + ansi.green.close);
console.log("Host:\t", ansi.green.open + host + ansi.green.close);
{'fraction_non_alphanumeric': 0.23735955056179775, 'fraction_numerical': 0.00023408239700374532, 'mean_word_length': 3.516913319238901, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7066175', 'n_tokens_mistral': 1643, 'n_tokens_neox': 1607, 'n_words': 354}