<commit_before>'use strict';

/**
 * Copy project initial files.
 */
module.exports = function () {

  this.fs.writeJSON(this.destinationPath('package.json'), this.pkg);
  if (this.pkg.devDependencies.bower) {
    this.template('_bower.json', 'bower.json');
  }
  this.template('README.md');
  this.copy('LICENSE');
};<commit_msg>Better initial bower.json<commit_after>'use strict';

/**
 * Copy project initial files.
 */
module.exports = function () {

  let bower;

  this.fs.writeJSON(this.destinationPath('package.json'), this.pkg);

  if (this.pkg.devDependencies.bower) {

    this.template('_bower.json', 'bower.json');

    bower = Object.assign(
      this.fs.readJSON(this.templatePath('_bower.json'), {}),
      {
        name: this.pkg.name,
        description: this.pkg.description,
        homepage: this.pkg.homepage,
        authors: this.pkg.author,
        repository: { type: 'git', url: this.pkg.repository.url }
      }
    );

    this.fs.writeJSON(this.destinationPath('bower.json'), bower);
  }
  this.template('README.md');
  this.copy('LICENSE');
};
{'fraction_non_alphanumeric': 0.1764159702878366, 'fraction_numerical': 0.0, 'mean_word_length': 3.346774193548387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3593849', 'n_tokens_mistral': 366, 'n_tokens_neox': 355, 'n_words': 54}