<commit_before>/**
 * Assemble
 * Assemble <http://assemble.io>
 * Created and maintained by <NAME> and <NAME>
 *
 * Copyright (c) 2013 Upstage.
 * Licensed under the MIT License (MIT).
 */

// node_modules
var yfm = require('assemble-yaml');
var _   = require('lodash');

var path = require('path');

var Assemble = function() {

  // Assemble utils.
  var engineUtils = require('./engine');
  var collection  = require('./collection');
  var plugins  = require('./plugins');

  var steps = [];

  var init = function(task, grunt){

    this.grunt = grunt;
    this.task = task;
    this.options = task.options({
      layoutdir: '',
      layout: '',
      layoutext: '',
      partials: [],
      data: [],
      assets: '',
      ext: '.html'
    });

    this.options.originalAssets = this.options.assets;

    this.options.data = mergeOptionsArrays.apply(this, [task.target, 'data']);
    this.options.partials = mergeOptionsArrays.apply(this, [task.target, 'partials']);
    this.options.collections = mergeOptionsArrays.apply(this, [task.target, 'collections']);
<commit_msg>feature (originalLayout):<commit_after>/**
 * Assemble
 * Assemble <http://assemble.io>
 * Created and maintained by <NAME> and <NAME>
 *
 * Copyright (c) 2013 Upstage.
 * Licensed under the MIT License (MIT).
 */

// node_modules
var yfm = require('assemble-yaml');
var _   = require('lodash');

var path = require('path');

var Assemble = function() {

  // Assemble utils.
  var engineUtils = require('./engine');
  var collection  = require('./collection');
  var plugins  = require('./plugins');

  var steps = [];

  var init = function(task, grunt){

    this.grunt = grunt;
    this.task = task;
    this.options = task.options({
      layoutdir: '',
      layout: '',
      layoutext: '',
      partials: [],
      data: [],
      assets: '',
      ext: '.html'
    });

    this.options.originalAssets = this.options.assets;
    this.options.originalLayout = this.options.layout;

    this.options.data = mergeOptionsArrays.apply(this, [task.target, 'data']);
    this.options.partials = mergeOptionsArrays.apply(this, [task.target, 'partials']);
    this.options.collections = mergeOptionsArrays.apply(this, [task.target, 'collections']);

{'fraction_non_alphanumeric': 0.16614420062695925, 'fraction_numerical': 0.0035826242722794446, 'mean_word_length': 3.207156308851224, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2305723', 'n_tokens_mistral': 696, 'n_tokens_neox': 683, 'n_words': 159}