<commit_before>var gulp = require('gulp');
var inquirer = require('inquirer');
var fs = require('fs');

module.exports = function() {
	
    var questions = [{
        type: 'input',
        name: 'restApiUrl',
        message: 'What is your wordpress rest api root url?'
    },{
		type: 'confirm',
        name: 'useDiqus',
        message: 'Do you want to use disqus on this blog?',
        default: false
    },{
        when: function (response) {
            return response.useDiqus;
        },
        name: 'disqusShortname',
        message: 'Nice! What is your disqus shortname?'        
    }];

    function processResponses(responses){    
        fs.writeFile('./frontpress.json', JSON.stringify(responses), { overwrite: true }, function (err) {
          if (err) throw err;
          console.log('Thanks for using frontpress!');
        });        
    }

    var task;

    if (fs.existsSync('./frontpress.json') === false) {
        console.log('Let\'s start by settings you blog information.');
        task = inquirer.prompt(questions).then(processResponses);
    }
    

	return task;

	


}<commit_msg>[#29] - Pequenas alteracoes no prompt do gulp init<commit_after>var gulp = require('gulp');
var inquirer = require('inquirer');
var fs = require('fs');

module.exports = function() {

    var questions = [{
        type: 'input',
        name: 'restApiUrl',
        message: 'Wordpress rest api url:',
        default: 'https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com'
    },{
		type: 'confirm',
        name: 'useDiqus',
        message: 'Do you want to use disqus on this blog?',
        default: true
    },{
        when: function (response) {
            return response.useDiqus;
        },
        name: 'disqusShortname',
        message: 'Nice! Your disqus shortname:'
    }];

    function processResponses(responses){
        fs.writeFile('./frontpress.json', JSON.stringify(responses), { overwrite: true }, function (err) {
          if (err) throw err;
          console.log('Thanks for using frontpress!');
        });
    }

    var task;

    if (fs.existsSync('./frontpress.json') === false) {
        console.log('Let\'s start by settings you blog information.');
        task = inquirer.prompt(questions).then(processResponses);
    }


	return task;




}
{'fraction_non_alphanumeric': 0.14045669969840585, 'fraction_numerical': 0.0017233950883239983, 'mean_word_length': 2.3506493506493507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2793817', 'n_tokens_mistral': 724, 'n_tokens_neox': 683, 'n_words': 179}