<commit_before>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


var TaskmasterGenerator = module.exports = function TaskmasterGenerator(args, options, config) {
  yeoman.generators.Base.apply(this, arguments);

  this.on('end', function () {
    this.installDependencies({ skipInstall: options['skip-install'] });
  });

  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
};

util.inherits(TaskmasterGenerator, yeoman.generators.Base);

TaskmasterGenerator.prototype.askFor = function askFor() {
  var cb = this.async();

  // have Yeoman greet the user.
  console.log(this.yeoman);

  var prompts = [
  {
    name:    'siteName',
    message: 'What is the name of your site or project?',
  },
  {
    name:    'authorName',
    message: 'Who is the creator of this site?',
    default: "<NAME>"
  }
  ];

  this.prompt(prompts, function (props) {
    this.siteName   = props.siteName;
    this.authorName = props.authorName;
    cb();
  }.bind(this));
};

TaskmasterGenerator.prototype.app = function app() {
  this.mkdir('site');
  this.mkdir('site/styles');
  this.mkdir('site/scripts');
  this.mkdir('site/images');

  this.copy('_package.json', 'package.json');
  this.copy('_bower.json', 'bower.json');
  this.copy('_GruntFile.js', 'GruntFile.js');
  this.copy('_gitignore', '.gitignore');

  this.copy('_script.coffee', 'site/scripts/scripts.coffee');
  this.copy('_style.styl', 'site/styles/styles.styl');
  this.template('_index.jade', 'site/index.jade');
};
<commit_msg>change site to src<commit_after>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


var TaskmasterGenerator = module.exports = function TaskmasterGenerator(args, options, config) {
  yeoman.generators.Base.apply(this, arguments);

  this.on('end', function () {
    this.installDependencies({ skipInstall: options['skip-install'] });
  });

  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
};

util.inherits(TaskmasterGenerator, yeoman.generators.Base);

TaskmasterGenerator.prototype.askFor = function askFor() {
  var cb = this.async();

  // have Yeoman greet the user.
  console.log(this.yeoman);

  var prompts = [
  {
    name:    'siteName',
    message: 'What is the name of your site or project?',
  },
  {
    name:    'authorName',
    message: 'Who is the creator of this site?',
    default: "<NAME>"
  }
  ];

  this.prompt(prompts, function (props) {
    this.siteName   = props.siteName;
    this.authorName = props.authorName;
    cb();
  }.bind(this));
};

TaskmasterGenerator.prototype.app = function app() {
  this.mkdir('src');
  this.mkdir('src/styles');
  this.mkdir('src/scripts');
  this.mkdir('src/images');

  this.copy('_package.json', 'package.json');
  this.copy('_bower.json', 'bower.json');
  this.copy('_GruntFile.js', 'GruntFile.js');
  this.copy('_gitignore', '.gitignore');

  this.copy('_script.coffee', 'src/scripts/scripts.coffee');
  this.copy('_style.styl', 'src/styles/styles.styl');
  this.template('_index.jade', 'src/index.jade');
};

{'fraction_non_alphanumeric': 0.1788874841972187, 'fraction_numerical': 0.0, 'mean_word_length': 4.188524590163935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2518665', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1043, 'n_words': 199}