<commit_before>
const hasOwnPropMethod = {}.hasOwnProperty


export function assignTo(target, ...sources) {
  for (let i = 0; i < sources.length; i++) {
    let source = sources[i]
    if (source != null) { // skip over if undefined or null
      for (let key in source) {
        // avoid bugs when hasOwnProperty is shadowed
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key]
        }
      }
    }
  }<commit_msg>some reuse<commit_after>
const hasOwnPropMethod = {}.hasOwnProperty


export function assignTo(target, ...sources) {
  for (let i = 0; i < sources.length; i++) {
    let source = sources[i]
    if (source != null) { // skip over if undefined or null
      for (let key in source) {
        // avoid bugs when hasOwnProperty is shadowed
        if (hasOwnProp(source, key)) {
          target[key] = source[key]
        }
      }
    }
  }
{'fraction_non_alphanumeric': 0.12265193370165746, 'fraction_numerical': 0.0022099447513812156, 'mean_word_length': 2.3680297397769516, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7347587', 'n_tokens_mistral': 276, 'n_tokens_neox': 274, 'n_words': 87}