<commit_before>'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var _s = require('underscore.string');

module.exports = yeoman.generators.Base.extend({
  prompting: function () {
    var done = this.async();

    // Have Yeoman greet the user.
    this.log(yosay(
      'Welcome to the prime ' + chalk.bold.red('Dnn ') + chalk.bold.blue('theme') + ' generator!'
    ));

    var prompts = [{
      type: 'input',
      name: 'themeName',
      message: 'Tell me how your theme should be named',
      validate: function (string) {
        return string.replace(/\s+/, '').length > 0;
      }
    }];

    this.prompt(prompts, function (props) {
      this.props = props;
      this.props.themeName = _s.camelize(props.themeName);
      done();
    }.bind(this));
  },

  writing: {
    app: function () {
      var config = {
        themeName: this.props.themeName
      };
      this.fs.copyTpl(
        this.templatePath('_package.json'),
        this.destinationPath('package.json'),
        config
      );
      this.fs.copyTpl(
        this.templatePath('_bower.json'),
        this.destinationPath('bower.json'),
        config
      );
      this.fs.copy(
        this.templatePath('_skin.ascx'),
        this.destinationPath(_s.dasherize(this.props.themeName) +'.ascx')
      );
      this.fs.copy(
        this.templatePath('images'),
        this.destinationPath('images')
      );
      this.fs.copy(
        this.templatePath('js'),
        this.destinationPath('js')
      );<commit_msg>fixed<commit_after>'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var _s = require('underscore.string');

module.exports = yeoman.generators.Base.extend({
  prompting: function () {
    var done = this.async();

    // Have Yeoman greet the user.
    this.log(yosay(
      'Welcome to the prime ' + chalk.bold.red('Dnn ') + chalk.bold.blue('theme') + ' generator!'
    ));

    var prompts = [{
      type: 'input',
      name: 'themeName',
      message: 'Tell me how your theme should be named',
      validate: function (string) {
        return string.replace(/\s+/, '').length > 0;
      }
    }];

    this.prompt(prompts, function (props) {
      this.props = props;
      this.props.themeName = _s.camelize(props.themeName);
      done();
    }.bind(this));
  },

  writing: {
    app: function () {
      var config = {
        themeName: this.props.themeName
      };
      this.fs.copyTpl(
        this.templatePath('_package.json'),
        this.destinationPath('package.json'),
        config
      );
      this.fs.copyTpl(
        this.templatePath('_bower.json'),
        this.destinationPath('bower.json'),
        config
      );
      this.fs.copy(
        this.templatePath('_skin.ascx'),
        this.destinationPath(_s.dasherize(this.props.themeName) +'.ascx')
      );
      this.fs.copy(
        this.templatePath('js'),
        this.destinationPath('js')
      );
{'fraction_non_alphanumeric': 0.15857284440039643, 'fraction_numerical': 0.0006607201850016518, 'mean_word_length': 2.353266888150609, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5684213', 'n_tokens_mistral': 974, 'n_tokens_neox': 947, 'n_words': 177}