<commit_before>package io.confluent.connect.jdbc.sink.metadata;

import org.apache.kafka.connect.data.Schema;

public class SchemaPair {
  public final Schema keySchema;
  public final Schema valueSchema;

  public SchemaPair(Schema keySchema, Schema valueSchema) {
    this.keySchema = keySchema;
    this.valueSchema = valueSchema;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    SchemaPair that = (SchemaPair) o;

    if (keySchema != null ? !keySchema.equals(that.keySchema) : that.keySchema != null) {
      return false;
    }
    return valueSchema != null ? valueSchema.equals(that.valueSchema) : that.valueSchema == null;
  }

  @Override
  public int hashCode() {
    int result = keySchema != null ? keySchema.hashCode() : 0;
    result = 31 * result + (valueSchema != null ? valueSchema.hashCode() : 0);
    return result;
  }
}<commit_msg>use java.util.Objects for equals / hashCode<commit_after>package io.confluent.connect.jdbc.sink.metadata;

import org.apache.kafka.connect.data.Schema;

import java.util.Objects;

public class SchemaPair {
  public final Schema keySchema;
  public final Schema valueSchema;

  public SchemaPair(Schema keySchema, Schema valueSchema) {
    this.keySchema = keySchema;
    this.valueSchema = valueSchema;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SchemaPair that = (SchemaPair) o;
    return Objects.equals(keySchema, that.keySchema) &&
           Objects.equals(valueSchema, that.valueSchema);
  }

  @Override
  public int hashCode() {
    return Objects.hash(keySchema, valueSchema);
  }
}
{'fraction_non_alphanumeric': 0.11583011583011583, 'fraction_numerical': 0.002206287920573635, 'mean_word_length': 3.2582159624413145, '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': '4231225', 'n_tokens_mistral': 568, 'n_tokens_neox': 551, 'n_words': 141}