<commit_before>/**
 * CQLObjectResult.java
 * 
 * This file was auto-generated from WSDL by the Apache Axis 1.2RC2 Apr 28, 2006
 * (12:42:00 EDT) WSDL2Java emitter.
 */

package org.cagrid.cql2.results;

import org.apache.axis.message.MessageElement;
import org.cagrid.cql.utilities.AnyNodeHelper;
import org.exolab.castor.types.AnyNode;


/**
 * Result object
 */
public class CQLObjectResult extends org.cagrid.cql2.results.CQLResult implements java.io.Serializable {
    private AnyNode _any;


    public CQLObjectResult() {
    }


    public CQLObjectResult(AnyNode _any) {
        this._any = _any;
    }


    /**
     * Gets the _any value for this CQLObjectResult.
     * 
     * @return _any
     */
    public AnyNode get_any() {
        return _any;
    }


    /**
     * Sets the _any value for this CQLObjectResult.
     * 
     * @param _any
     */
    public void set_any(AnyNode _any) {
        this._any = _any;
    }


    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof CQLObjectResult))
            return false;
        CQLObjectResult other = (CQLObjectResult) obj;
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        boolean _equals;
        _equals = super.equals(obj) && anysEqual(other);
        return _equals;
    }


    public synchronized int hashCode() {
        int _hashCode = super.hashCode();
        if (get_any() != null) {
            _hashCode += get_any().hashCode();
        }
        return _hashCode;
    }
    
    
    private boolean anysEqual(CQLObjectResult other) {
        AnyNode oAny = other.get_any();
        if (this._any == null && oAny == null) {
            return true;
        } else if ((this._any != null && oAny == null)
            || (this._any == null && oAny != null)) {
            return false;
        } else {
            try {
                MessageElement myAnyElement = AnyNodeHelper.convertAnyNodeToMessageElement(_any);
                MessageElement theirAnyElement = AnyNodeHelper.convertAnyNodeToMessageElement(oAny);
                return myAnyElement.equals(theirAnyElement);
            } catch (Exception ex) {
                ex.printStackTrace();
                return false;
            }
        }
    }
}<commit_msg>HACK until I get this sorted out<commit_after>/**
 * CQLObjectResult.java
 * 
 * This file was auto-generated from WSDL by the Apache Axis 1.2RC2 Apr 28, 2006
 * (12:42:00 EDT) WSDL2Java emitter.
 */

package org.cagrid.cql2.results;

// import org.apache.axis.message.MessageElement;
// import org.cagrid.cql.utilities.AnyNodeHelper;
import org.exolab.castor.types.AnyNode;


/**
 * Result object
 */
public class CQLObjectResult extends org.cagrid.cql2.results.CQLResult implements java.io.Serializable {
    private AnyNode _any;


    public CQLObjectResult() {
    }


    public CQLObjectResult(AnyNode _any) {
        this._any = _any;
    }


    /**
     * Gets the _any value for this CQLObjectResult.
     * 
     * @return _any
     */
    public AnyNode get_any() {
        return _any;
    }


    /**
     * Sets the _any value for this CQLObjectResult.
     * 
     * @param _any
     */
    public void set_any(AnyNode _any) {
        this._any = _any;
    }


    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof CQLObjectResult))
            return false;
        CQLObjectResult other = (CQLObjectResult) obj;
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        boolean _equals;
        _equals = super.equals(obj) && anysEqual(other);
        return _equals;
    }


    public synchronized int hashCode() {
        int _hashCode = super.hashCode();
        if (get_any() != null) {
            _hashCode += get_any().hashCode();
        }
        return _hashCode;
    }
    
    
    private boolean anysEqual(CQLObjectResult other) {
        AnyNode oAny = other.get_any();
        if (this._any == null && oAny == null) {
            return true;
        } else if ((this._any != null && oAny == null)
            || (this._any == null && oAny != null)) {
            return false;
        } else {
            try {
                //MessageElement myAnyElement = AnyNodeHelper.convertAnyNodeToMessageElement(_any);
                // MessageElement theirAnyElement = AnyNodeHelper.convertAnyNodeToMessageElement(oAny);
                // return myAnyElement.equals(theirAnyElement);
                // HACK:
                return true;
            } catch (Exception ex) {
                ex.printStackTrace();
                return false;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10244420828905419, 'fraction_numerical': 0.0076514346439957494, 'mean_word_length': 1.9139318885448917, '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': '7324769', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1364, 'n_words': 337}