<commit_before>/////////////////////////////////////////////////
// Project : SCJavaTools
// Package : me.corsin.javatools.misc
// Pair.java
//
// Author : <NAME> <<EMAIL>>
// File created on Oct 17, 2013 at 8:31:54 PM
////////

package me.corsin.javatools.misc;

public class Pair<T, T2> {

	////////////////////////
	// VARIABLES
	////////////////
	
	private T first;
	private T2 second;

	////////////////////////
	// CONSTRUCTORS
	////////////////
	
	public Pair(T first, T2 second) {
		this.first = first;
		this.second = second;
	}
	
	public Pair() {
		
	}

	////////////////////////
	// METHODS
	////////////////

	////////////////////////
	// GETTERS/SETTERS
	////////////////

	public T getFirst() {
		return first;
	}

	public void setFirst(T first) {
		this.first = first;
	}

	public T2 getSecond() {
		return second;
	}

	public void setSecond(T2 second) {
		this.second = second;
	}
}<commit_msg>Adding an "equals" method to the Pair<commit_after>/////////////////////////////////////////////////
// Project : SCJavaTools
// Package : me.corsin.javatools.misc
// Pair.java
//
// Author : <NAME> <<EMAIL>>
// File created on Oct 17, 2013 at 8:31:54 PM
////////

package me.corsin.javatools.misc;

public class Pair<T, T2> {

    ////////////////////////
    // VARIABLES
    ////////////////

    private T first;
    private T2 second;

    ////////////////////////
    // CONSTRUCTORS
    ////////////////

    public Pair(T first, T2 second) {
        this.first = first;
        this.second = second;
    }

    public Pair() {

    }

    ////////////////////////
    // METHODS
    ////////////////

    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        else if (!(obj instanceof Pair)) return false;

        Pair<?, ?> pair = (Pair<?, ?>) obj;
        if (this.first == null) {
            if (pair.getFirst() != null) return false;
        } else {
            if (!first.equals(pair.getFirst())) return false;
        }

        if (this.second == null) {
            if (pair.getSecond() != null) return false;
        } else {
            if (!second.equals(pair.getSecond())) return false;
        }

        return true;
    }


    ////////////////////////
    // GETTERS/SETTERS
    ////////////////

    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public T2 getSecond() {
        return second;
    }

    public void setSecond(T2 second) {
        this.second = second;
    }
}
{'fraction_non_alphanumeric': 0.27631060307449745, 'fraction_numerical': 0.012613322822230981, 'mean_word_length': 1.1879310344827587, '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': '3742070', 'n_tokens_mistral': 806, 'n_tokens_neox': 727, 'n_words': 189}