<commit_before>package hu.elte.txtuml.stdlib.util;

/**
 * Implementation class for UUID interface for txtUML models.
 * 
 * @see UUID
 * @author <NAME> (<EMAIL>)
 *
 */

public class UUIDImplementation implements UUID {

	/**
	 * Store UUID object and then do all other functions with it
	 */
	private java.util.UUID var;

	/**
	 * Instance method that returns val. This methid is used to extract
	 * java.util.UUID from UUID, it is used when there is an instance method
	 * that takes another UUID as a parameter and we want to extract an original
	 * Java object to send it as a parameter to an original object method.
	 * 
	 * @see equals
	 * @see compareTo
	 * @param val
	 * @return
	 */
	protected java.util.UUID getOrigUUID(Object val) {
		if (val instanceof UUIDImplementation) {
			return ((UUIDImplementation) val).var;
		} else if (val instanceof UUID) {
			return var;
		} else
			return null;
	}

	/**
	 * Constructs a new UUID using the specified data. mostSigBits is used for
	 * the most significant 64 bits of the UUID and leastSigBits becomes the
	 * least significant 64 bits of the UUID.
	 * 
	 * @param mostSigBits
	 *            - The most significant bits of the UUID
	 * @param leastSigBits
	 *            - The least significant bits of the UUID
	 */
	public UUIDImplementation(long mostSigBits, long leastSigBits) {
		this.var = new java.util.UUID(mostSigBits, leastSigBits);
	}

	/**
	 * protected constructor
	 * 
	 * @param var
	 */
	protected UUIDImplementation(java.util.UUID var) {
		this.var = var;
	}

	@Override
	public int clockSequence() {

		return var.clockSequence();
	}

	@Override
	public int compareTo(UUID val) {
		return var.compareTo(getOrigUUID(val));
	}

	@Override
	public boolean equals(UUID obj) {
		return var.equals(getOrigUUID(obj));
	}

	@Override
	public long getLeastSignificantBits() {
		return var.getLeastSignificantBits();
	}

	@Override
	public long getMostSignificantBits() {
		return var.getMostSignificantBits();
	}

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

	@Override
	public long node() {
		return var.node();
	}

	@Override
	public long timestamp() {
		return var.timestamp();
	}

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

	@Override
	public int variant() {
		return var.variant();
	}

	@Override
	public int version() {
		return var.version();
	}

}
<commit_msg>Modifying java doc for getOrigUUID method<commit_after>package hu.elte.txtuml.stdlib.util;

/**
 * Implementation class for UUID interface for txtUML models.
 * 
 * @see UUID
 * @author <NAME> (<EMAIL>)
 *
 */

public class UUIDImplementation implements UUID {

	/**
	 * Store UUID object and then do all other functions with it
	 */
	private java.util.UUID var;

	/**
	 * Instance method that returns val. This method get the "origin" value from
	 * the envelope val, it simply convert the original UUID class to the
	 * UUIDImplementation class and vise versa. For example, when we are trying
	 * to compare two UUIDs, we send the UUID object to the original java's
	 * UUID, we will not be able to compare these two objects(not possible to
	 * compare two different objects).
	 * 
	 * @see equals
	 * @see compareTo
	 * @param val
	 * @return
	 */
	protected java.util.UUID getOrigUUID(Object val) {
		if (val instanceof UUIDImplementation) {
			return ((UUIDImplementation) val).var;
		} else if (val instanceof UUID) {
			return var;
		} else
			return null;
	}

	/**
	 * Constructs a new UUID using the specified data. mostSigBits is used for
	 * the most significant 64 bits of the UUID and leastSigBits becomes the
	 * least significant 64 bits of the UUID.
	 * 
	 * @param mostSigBits
	 *            - The most significant bits of the UUID
	 * @param leastSigBits
	 *            - The least significant bits of the UUID
	 */
	public UUIDImplementation(long mostSigBits, long leastSigBits) {
		this.var = new java.util.UUID(mostSigBits, leastSigBits);
	}

	/**
	 * protected constructor
	 * 
	 * @param var
	 */
	protected UUIDImplementation(java.util.UUID var) {
		this.var = var;
	}

	@Override
	public int clockSequence() {

		return var.clockSequence();
	}

	@Override
	public int compareTo(UUID val) {
		return var.compareTo(getOrigUUID(val));
	}

	@Override
	public boolean equals(UUID obj) {
		return var.equals(getOrigUUID(obj));
	}

	@Override
	public long getLeastSignificantBits() {
		return var.getLeastSignificantBits();
	}

	@Override
	public long getMostSignificantBits() {
		return var.getMostSignificantBits();
	}

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

	@Override
	public long node() {
		return var.node();
	}

	@Override
	public long timestamp() {
		return var.timestamp();
	}

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

	@Override
	public int variant() {
		return var.variant();
	}

	@Override
	public int version() {
		return var.version();
	}

}

{'fraction_non_alphanumeric': 0.09798329598696272, 'fraction_numerical': 0.0016296598085149725, 'mean_word_length': 3.3451327433628317, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '251982', 'n_tokens_mistral': 1650, 'n_tokens_neox': 1515, 'n_words': 514}