<commit_before>'use strict';

var fs = require('fs');
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var s = require('underscore.string');

var generators = yeoman.generators;

module.exports = generators.Base.extend({
  constructor: function () {
    generators.Base.apply(this, arguments);

    this.option('coffee');

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

  prompting: function () {
    var done = this.async();

    var prompts = [{
      name: 'nameOfKata',
      message: 'Whats the name of your kata?',
      default: 'kata'
    },
    {
      type: 'list',
      name: 'browser',
      message: 'Which browser do you want to use for debugging?',
      choices: [{
        name: 'Chrome',
        value: 'Chrome'
      }, {
        name: 'ChromeCanary',
        value: 'ChromeCanary'
      }],
      default: 'Chrome'
    },<commit_msg>Fix usage of the depraceted function readFileAsString<commit_after>'use strict';

var fs = require('fs');
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var s = require('underscore.string');
var reader = require('html-wiring');

var generators = yeoman.generators;

module.exports = generators.Base.extend({
  constructor: function () {
    generators.Base.apply(this, arguments);

    this.option('coffee');

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

  prompting: function () {
    var done = this.async();

    var prompts = [{
      name: 'nameOfKata',
      message: 'Whats the name of your kata?',
      default: 'kata'
    },
    {
      type: 'list',
      name: 'browser',
      message: 'Which browser do you want to use for debugging?',
      choices: [{
        name: 'Chrome',
        value: 'Chrome'
      }, {
        name: 'ChromeCanary',
        value: 'ChromeCanary'
      }],
      default: 'Chrome'
    },
{'fraction_non_alphanumeric': 0.1566750629722922, 'fraction_numerical': 0.0, 'mean_word_length': 2.87890625, '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': '5341676', 'n_tokens_mistral': 634, 'n_tokens_neox': 615, 'n_words': 155}