<commit_before>public class GUIObject{
    private double pos;

    /**
    * Creates a GUIObject object at position 0.*/
    public GUIObject() {
        pos = 0;
    }

    /**
     * Create a GUIObject object at position pos
     *
     * @param pos the position to create the object at
     */
    public GUIObject(double pos) {
        setPos(pos);
    }

    /**
    * Returns the position of this GUIObject.
    *
    * @return the position this object.
    * */
    public double getPos() {
        return pos;
    }


    /**
     * Sets the position of this GUIObject.
     * Throws IllegalArgumentException if pos not between -30200 and 30200
     *
     * @param pos the position to set this object to. */
    public void setPos(double pos) {
        if (-30200 <= pos && pos <= 30200){
            this.pos = pos;
        }
        else{
            throw new IllegalArgumentException("Position must be between -30200 and 30200");
        }
    }

    /**
     * Returns the distance from this object to other.
     *
     * @param other the other GUIObject.
     * @return      the distance from this object to other.
     */
    public double distanceTo(GUIObject other) {
        return this.pos - other.pos;
    }

    /**
     * Returns the horizontal coordinate of this object.
     *
     * @return the horizontal coordiante of this object.*/
    public double getX(){return 0;}

    /**
     * Returns the vertical coordinate of this object.
     *
     * @return the vertical coordiante of this object.*/
    public double getY(){return 0;}


}<commit_msg>Added equals method in GUIObject<commit_after>public class GUIObject{
    private double pos;

    /**
    * Creates a GUIObject object at position 0.*/
    public GUIObject() {
        pos = 0;
    }

    /**
     * Create a GUIObject object at position pos
     *
     * @param pos the position to create the object at
     */
    public GUIObject(double pos) {
        setPos(pos);
    }

    /**
    * Returns the position of this GUIObject.
    *
    * @return the position this object.
    * */
    public double getPos() {
        return pos;
    }


    /**
     * Sets the position of this GUIObject.
     * Throws IllegalArgumentException if pos not between -30200 and 30200
     *
     * @param pos the position to set this object to. */
    public void setPos(double pos) {
        if (-30200 <= pos && pos <= 30200){
            this.pos = pos;
        }
        else{
            throw new IllegalArgumentException("Position must be between -30200 and 30200");
        }
    }

    /**
     * Returns the distance from this object to other.
     *
     * @param other the other GUIObject.
     * @return      the distance from this object to other.
     */
    public double distanceTo(GUIObject other) {
        return this.pos - other.pos;
    }

    /**
     * Returns the horizontal coordinate of this object.
     *
     * @return the horizontal coordiante of this object.*/
    public double getX(){return 0;}

    /**
     * Returns the vertical coordinate of this object.
     *
     * @return the vertical coordiante of this object.*/
    public double getY(){return 0;}

    /**
     * Returns whether this object is equal to other. Two GUIObjects are equal when they have the same position.
     *
     * @return whether this object is equal to other.
    */
    public boolean equals(GUIObject other){
        return this.pos == other.pos;
    }

}
{'fraction_non_alphanumeric': 0.09009269988412515, 'fraction_numerical': 0.019698725376593278, 'mean_word_length': 1.9287531806615776, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3054228', 'n_tokens_mistral': 1004, 'n_tokens_neox': 920, 'n_words': 361}