<commit_before>'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var _ = require('lodash');

module.exports = yeoman.Base.extend({
  constructor: function(){
    yeoman.Base.apply(this, arguments);
    this.argument('store', { type: String, required: true });
    this.names = {
      interfaceName : _.capitalize(this.store)+'I',
      lowSingleName : _.lowerCase(this.store),
      firstUpSingleName : _.capitalize(this.store),
      upSingleName : _.upperCase(this.store)
    }
  },
  writing: function () {

    var copy = function(a,x){
      this.fs.copyTpl(
        this.templatePath(x[0]+'/'+x[1]+'.ts'),
        this.destinationPath(x[0]+'/'+this.names.lowSingleName+'.'+x[1]+'.ts'),
        this.names
      );
      var result = a.concat(['import { '+x[2]+' } from ../../'+x[0]+'/'+this.names.lowSingleName+'.'+x[1]])
      return result
    }
    var all = [
      ['actions','actions',this.names.firstUpSingleName+'Actions'],
      ['effects','effects',this.names.firstUpSingleName+'Effects'],
      ['models','model',this.names.firstUpSingleName+'I'],
      ['reducers','reducer',this.names.firstUpSingleName+'Reducer'],
      ['providers','service',this.names.firstUpSingleName+'Service']]
    var result = all.reduce(copy.bind(this),[])
    result.forEach((x)=>{this.log(x)})
  }
});<commit_msg>Fix lint errors<commit_after>'use strict';
var yeoman = require('yeoman-generator');
var _ = require('lodash');

module.exports = yeoman.Base.extend({
  constructor: function () {
    yeoman.Base.apply(this, arguments);
    this.argument('store', {type: String, required: true});
    this.names = {
      interfaceName: _.capitalize(this.store) + 'I',
      lowSingleName: _.lowerCase(this.store),
      firstUpSingleName: _.capitalize(this.store),
      upSingleName: _.upperCase(this.store)
    };
  },
  writing: function () {
    var copy = function (a, x) {
      this.fs.copyTpl(
        this.templatePath(x[0] + '/' + x[1] + '.ts'),
        this.destinationPath(x[0] + '/' + this.names.lowSingleName + '.' + x[1] + '.ts'),
        this.names
      );
      var result = a.concat(['import { ' + x[2] + ' } from \'../../' + x[0] + '/' + this.names.lowSingleName + '.' + x[1] + '\'']);
      return result;
    };
    var all = [
      ['actions', 'actions', this.names.firstUpSingleName + 'Actions'],
      ['effects', 'effects', this.names.firstUpSingleName + 'Effects'],
      ['models', 'model', this.names.firstUpSingleName + 'I'],
      ['reducers', 'reducer', this.names.firstUpSingleName + 'Reducer'],
      ['providers', 'service', this.names.firstUpSingleName + 'Service']];
    var result = all.reduce(copy.bind(this), []);
    result.forEach(function (x) {
      this.log(x);
    }.bind(this));
  }
});
{'fraction_non_alphanumeric': 0.20536672629695885, 'fraction_numerical': 0.005008944543828265, 'mean_word_length': 3.3348837209302324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6503586', 'n_tokens_mistral': 942, 'n_tokens_neox': 924, 'n_words': 146}