<commit_before>package com.forerunnergames.tools.common.id;

import com.forerunnergames.tools.common.Arguments;

import java.util.UUID;

public final class Id implements Comparable <Id>
{
  private final UUID value;

  public Id (final UUID value)
  {
    Arguments.checkIsNotNull (value, "value");
    
    this.value = value;
  }

  public UUID value ()
  {
    return value;
  }

  @Override
  public int hashCode ()
  {
    return value.hashCode ();
  }

  @Override
  public boolean equals (final Object o)
  {
    Arguments.checkIsNotNull (o, "o");
    
    if (this == o) return true;

    if (o == null || getClass () != o.getClass ()) return false;

    final Id that = (Id) o;

    return value.equals (that.value);
  }

  @Override
  public String toString ()
  {
    return String.valueOf (value);
  }

  @Override
  public int compareTo (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");

    return this.value.compareTo (id.value);
  }

  public boolean is (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");
    
    return equals (id);
  }

  public boolean isNot (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");
    
    return !is (id);
  }

  public boolean hasValue (final UUID value)
  {
    Arguments.checkIsNotNull (value, "value");
    
    return this.value.equals (value);
  }
}<commit_msg>Fix Id.equals throwing exception on null argument.<commit_after>package com.forerunnergames.tools.common.id;

import com.forerunnergames.tools.common.Arguments;

import java.util.UUID;

public final class Id implements Comparable <Id>
{
  private final UUID value;

  public Id (final UUID value)
  {
    Arguments.checkIsNotNull (value, "value");

    this.value = value;
  }

  public UUID value ()
  {
    return value;
  }

  @Override
  public int hashCode ()
  {
    return value.hashCode ();
  }

  @Override
  public boolean equals (final Object o)
  {
    if (this == o) return true;

    if (o == null || getClass () != o.getClass ()) return false;

    final Id that = (Id) o;

    return value.equals (that.value);
  }

  @Override
  public String toString ()
  {
    return String.valueOf (value);
  }

  @Override
  public int compareTo (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");

    return this.value.compareTo (id.value);
  }

  public boolean is (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");

    return equals (id);
  }

  public boolean isNot (final Id id)
  {
    Arguments.checkIsNotNull (id, "id");

    return !is (id);
  }

  public boolean hasValue (final UUID value)
  {
    Arguments.checkIsNotNull (value, "value");

    return this.value.equals (value);
  }
}
{'fraction_non_alphanumeric': 0.1192177510342234, 'fraction_numerical': 0.0, 'mean_word_length': 2.810888252148997, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7249219', 'n_tokens_mistral': 907, 'n_tokens_neox': 862, 'n_words': 251}