<commit_before>/**
 * @file OptionHandler
 * @author <NAME> <<EMAIL>>
 * @project Pomegranate-testbed
 * @license MIT {@link http://opensource.org/licenses/MIT}
 */

'use strict';

var _ = require('lodash');
var path = require('path');

/**
 * Handles incoming options object formatting and validation.
 * @module OptionHandler
 */

exports.immutableOptions = {
  prefix: 'pomegranate',
  layers: ['core', 'data', 'controller', 'dependency', 'pre_router', 'router', 'post_router', 'server']
};

exports.parseOptions = function(FrameworkOptions, ParentDirectory){
  var mergedOptions = _.chain(FrameworkOptions)
    .omit('prefix', 'layers')
    .merge({
      prefix: 'pomegranate',
      layers: exports.validateLayers(FrameworkOptions)
    })
    .merge({<commit_msg>Finalize layers for the second time<commit_after>/**
 * @file OptionHandler
 * @author <NAME> <<EMAIL>>
 * @project Pomegranate-testbed
 * @license MIT {@link http://opensource.org/licenses/MIT}
 */

'use strict';

var _ = require('lodash');
var path = require('path');

/**
 * Handles incoming options object formatting and validation.
 * @module OptionHandler
 */

exports.immutableOptions = {
  prefix: 'pomegranate',
  layers: ['core', 'data', 'controller', 'dependency', 'setup','pre_router', 'router', 'post_router', 'server']
};

exports.parseOptions = function(FrameworkOptions, ParentDirectory){
  var mergedOptions = _.chain(FrameworkOptions)
    .omit('prefix', 'layers')
    .merge({
      prefix: 'pomegranate',
      layers: exports.validateLayers(FrameworkOptions)
    })
    .merge({
{'fraction_non_alphanumeric': 0.16135204081632654, 'fraction_numerical': 0.0, 'mean_word_length': 4.643884892086331, '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': '3668866', 'n_tokens_mistral': 483, 'n_tokens_neox': 468, 'n_words': 112}