<commit_before>package org.realityforge.replicant.server;

import java.util.Collection;
import java.util.LinkedHashMap;

public final class ChangeSet
{
  private final LinkedHashMap<String, Change> _entities = new LinkedHashMap<String, Change>();

  public void mergeAll( final Collection<Change> changes )
  {
    mergeAll( changes, false );
  }

  public void mergeAll( final Collection<Change> changes, final boolean copyOnMerge )
  {
    for ( final Change change : changes )
    {
      merge( change, copyOnMerge );
    }
  }

  public void merge( final Change change )
  {
    merge( change, false );
  }

  public void merge( final Change change, final boolean copyOnMerge )
  {
    final Change existing = _entities.get( change.getID() );
    if ( null != existing )
    {
      existing.merge( change );
    }
    else
    {
      _entities.put( change.getID(), copyOnMerge ? change.duplicate() : change );
    }
  }

  public Collection<Change> getChanges()
  {
    return _entities.values();
  }
}
<commit_msg>Name field appropriately<commit_after>package org.realityforge.replicant.server;

import java.util.Collection;
import java.util.LinkedHashMap;

public final class ChangeSet
{
  private final LinkedHashMap<String, Change> _changes = new LinkedHashMap<String, Change>();

  public void mergeAll( final Collection<Change> changes )
  {
    mergeAll( changes, false );
  }

  public void mergeAll( final Collection<Change> changes, final boolean copyOnMerge )
  {
    for ( final Change change : changes )
    {
      merge( change, copyOnMerge );
    }
  }

  public void merge( final Change change )
  {
    merge( change, false );
  }

  public void merge( final Change change, final boolean copyOnMerge )
  {
    final Change existing = _changes.get( change.getID() );
    if ( null != existing )
    {
      existing.merge( change );
    }
    else
    {
      _changes.put( change.getID(), copyOnMerge ? change.duplicate() : change );
    }
  }

  public Collection<Change> getChanges()
  {
    return _changes.values();
  }
}

{'fraction_non_alphanumeric': 0.10433934666016577, 'fraction_numerical': 0.0, 'mean_word_length': 3.179226069246436, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2141922', 'n_tokens_mistral': 608, 'n_tokens_neox': 604, 'n_words': 168}