<commit_before>// adopted from: <https://github.com/jonschlinkert/omit-value>
// Copyright (c) 2015, <NAME>. (MIT)

var isObject = require('../lang/isPlainObject')
var isString = require('../lang/isString')
var omit     = require('./omit')
var get      = require('./get')
var set      = require('./set')
var assert   = require('assert')

function omitValue (obj, prop, keys) {
  assert(isObject(obj), 'omitValue expects first arg to be an object.')
  assert(isString(prop), 'omitValue expects prop to be a string')

  if (typeof keys === undefined) return omit(obj, prop)

  var val = get(obj, prop)
  set(obj, prop, omit(val, keys))
  return obj
}

module.exports = omitValue<commit_msg>fix object/omitValue -- undefined should be a string<commit_after>// adopted from: <https://github.com/jonschlinkert/omit-value>
// Copyright (c) 2015, <NAME>. (MIT)

var isObject = require('../lang/isPlainObject')
var isString = require('../lang/isString')
var omit     = require('./omit')
var get      = require('./get')
var set      = require('./set')
var assert   = require('assert')

function omitValue (obj, prop, keys) {
  assert(isObject(obj), 'omitValue expects first arg to be an object.')
  assert(isString(prop), 'omitValue expects prop to be a string')

  if (typeof keys === 'undefined') return omit(obj, prop)

  var val = get(obj, prop)
  set(obj, prop, omit(val, keys))
  return obj
}

module.exports = omitValue
{'fraction_non_alphanumeric': 0.16019760056457305, 'fraction_numerical': 0.0056457304163726185, 'mean_word_length': 3.906574394463668, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5075042', 'n_tokens_mistral': 475, 'n_tokens_neox': 443, 'n_words': 141}