<commit_before>var _ = require('./index')
var extend = _.extend

/**
 * Option overwriting strategies are functions that handle
 * how to merge a parent option value and a child option
 * value into the final value.
 *
 * All strategy functions follow the same signature:
 *
 * @param {*} parentVal
 * @param {*} childVal
 * @param {Vue} [vm]
 */

var strats = {}

/**
 * Data
 */

strats.data = function (parentVal, childVal, vm) {
  // in a class merge, both should be functions
  // so we just return child if it exists
  if (!vm) {
    if (childVal && typeof childVal !== 'function') {
      _.warn(
        'The "data" option should be a function ' +
        'that returns a per-instance value in component ' +
        'definitions.'
      )<commit_msg>make merging strategies a real hash<commit_after>var _ = require('./index')
var extend = _.extend

/**
 * Option overwriting strategies are functions that handle
 * how to merge a parent option value and a child option
 * value into the final value.
 *
 * All strategy functions follow the same signature:
 *
 * @param {*} parentVal
 * @param {*} childVal
 * @param {Vue} [vm]
 */

var strats = Object.create(null)

/**
 * Data
 */

strats.data = function (parentVal, childVal, vm) {
  // in a class merge, both should be functions
  // so we just return child if it exists
  if (!vm) {
    if (childVal && typeof childVal !== 'function') {
      _.warn(
        'The "data" option should be a function ' +
        'that returns a per-instance value in component ' +
        'definitions.'
      )
{'fraction_non_alphanumeric': 0.11768488745980707, 'fraction_numerical': 0.0, 'mean_word_length': 2.823095823095823, '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': '3916617', 'n_tokens_mistral': 448, 'n_tokens_neox': 445, 'n_words': 184}