<commit_before>/*
 * @QuantityType.java 1.0 Oct 9, 2013 Sistema Integral de Gestion Hospitalaria
 */
package py.una.med.base.dao.entity.types;

import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.usertype.UserType;
import py.una.med.base.math.Quantity;

/**
 * Hibernate Type para la clase {@link Quantity}.
 *
 * @author <NAME>
 * @since 1.0
 * @version 1.0 Oct 9, 2013
 *
 */
public final class QuantityCustomType implements UserType {

	private QuantityType qt = QuantityType.INSTANCE;

	/**
	 * Singleton de esta tipo.
	 */
	public static final QuantityCustomType INSTANCE = new QuantityCustomType();

	/**
	 * Definirlo como singleton.
	 */
	private QuantityCustomType() {

	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public int[] sqlTypes() {

		return new int[] { qt.sqlType() };
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public Class returnedClass() {

		return Quantity.class;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean equals(final Object x, final Object y) {

		if (x == null) {<commit_msg>QuantityCustomType deja de ser singleton<commit_after>/*
 * @QuantityType.java 1.0 Oct 9, 2013 Sistema Integral de Gestion Hospitalaria
 */
package py.una.med.base.dao.entity.types;

import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.usertype.UserType;
import py.una.med.base.math.Quantity;

/**
 * Hibernate Type para la clase {@link Quantity}.
 *
 * @author <NAME>
 * @since 1.0
 * @version 1.0 Oct 9, 2013
 *
 */
public final class QuantityCustomType implements UserType {

	private QuantityType qt = QuantityType.INSTANCE;

	/**
	 * Singleton de esta tipo.
	 */
	public static final QuantityCustomType INSTANCE = new QuantityCustomType();

	/**
	 * {@inheritDoc}
	 */
	@Override
	public int[] sqlTypes() {

		return new int[] { qt.sqlType() };
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public Class returnedClass() {

		return Quantity.class;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean equals(final Object x, final Object y) {

		if (x == null) {
{'fraction_non_alphanumeric': 0.13153384747215083, 'fraction_numerical': 0.013710368466152529, 'mean_word_length': 3.7946611909650922, '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': '6441334', 'n_tokens_mistral': 839, 'n_tokens_neox': 761, 'n_words': 197}