<commit_before>'use strict';

var yeoman = require('yeoman-generator');
var base   = require('../base');
var _      = require('lodash');

module.exports = yeoman.generators.Base.extend(_.extend(base.generator,{

  type: 'layout',

  location: 'layouts',

  stylesheets: ['layout'],

  templates: ['template'],

  configuring: function () {
    this.stylesheetPaths = this.stylesheets.map(function(file) {
      return {
        dest: this.location + '/' + this.name + '/_' + this.name + '.scss',
        src: '_' + file + '.scss'
      };
    }.bind(this));

    this.templatePaths = this.templates.map(function(file) {
      return {
        dest: this.location + '/' + this.name + '/templates/example.hbs',
        src: 'templates/_' + file + '.hbs'
      };
    }.bind(this));

    this.importPaths = this.stylesheets.map(function(file) {
      return '../' + this.location + '/' + this.name + '/' + file;
    }.bind(this));

    this.filePaths = this.stylesheetPaths.concat(this.templatePaths);
  }
}));<commit_msg>update import path of layout file<commit_after>'use strict';

var yeoman = require('yeoman-generator');
var base   = require('../base');
var _      = require('lodash');

module.exports = yeoman.generators.Base.extend(_.extend(base.generator,{

  type: 'layout',

  location: 'layouts',

  stylesheets: ['layout'],

  templates: ['template'],

  configuring: function () {
    this.stylesheetPaths = this.stylesheets.map(function(file) {
      return {
        dest: this.location + '/' + this.name + '/_' + this.name + '.scss',
        src: '_' + file + '.scss'
      };
    }.bind(this));

    this.templatePaths = this.templates.map(function(file) {
      return {
        dest: this.location + '/' + this.name + '/templates/example.hbs',
        src: 'templates/_' + file + '.hbs'
      };
    }.bind(this));

    this.importPaths = this.stylesheets.map(function(file) {
      return '../' + this.location + '/' + this.name + '/' + this.name;
    }.bind(this));

    this.filePaths = this.stylesheetPaths.concat(this.templatePaths);
  }
}));
{'fraction_non_alphanumeric': 0.1885603490063015, 'fraction_numerical': 0.0, 'mean_word_length': 2.8435754189944134, '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': '1329938', 'n_tokens_mistral': 682, 'n_tokens_neox': 649, 'n_words': 115}