<commit_before>package com.vimeo.networking.model;

import com.vimeo.stag.GsonAdapterKey;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

/**
 * The spatial object representing the format
 * data for a 360 video object.
 * <p>
 * Created by restainoa on 1/3/17.
 */
@SuppressWarnings("unused")
public class Spatial implements Serializable {

    private static final long serialVersionUID = 5660325676029549468L;

    public enum Projection {
        EQUIRECTANGULAR,
        CYLINDRICAL,
        CUBICAL,
        PYRAMID,
        DOME,
        UNKNOWN
    }

    public enum Format {
        MONO,
        LEFT_RIGHT,
        TOP_BOTTOM,
        UNKNOWN
    }

    @NotNull
    @GsonAdapterKey("projection")
    protected String mProjection;

    @NotNull
    @GsonAdapterKey("stereo_format")
    protected String mStereoFormat;

    @NotNull
    public Projection getProjection() {
        switch (mProjection) {
            case "equirectangular":
                return Projection.EQUIRECTANGULAR;
            case "cylindrical":
                return Projection.CYLINDRICAL;
            case "cubical":
                return Projection.CUBICAL;
            case "pyramid":
                return Projection.PYRAMID;
            case "dome":
                return Projection.DOME;
            default:
                return Projection.UNKNOWN;
        }
    }

    @NotNull
    public Format getFormat() {
        switch (mStereoFormat) {
            case "mono":
                return Format.MONO;
            case "left-right":
                return Format.LEFT_RIGHT;
            case "top-bottom":
                return Format.TOP_BOTTOM;
            default:
                return Format.UNKNOWN;
        }
    }
}<commit_msg>Adding equals, hashcode, and toString for spatial object<commit_after>package com.vimeo.networking.model;

import com.vimeo.stag.GsonAdapterKey;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

/**
 * The spatial object representing the format
 * data for a 360 video object.
 * <p>
 * Created by restainoa on 1/3/17.
 */
@SuppressWarnings("unused")
public class Spatial implements Serializable {

    private static final long serialVersionUID = 5660325676029549468L;

    public enum Projection {
        EQUIRECTANGULAR,
        CYLINDRICAL,
        CUBICAL,
        PYRAMID,
        DOME,
        UNKNOWN
    }

    public enum Format {
        MONO,
        LEFT_RIGHT,
        TOP_BOTTOM,
        UNKNOWN
    }

    @NotNull
    @GsonAdapterKey("projection")
    protected String mProjection;

    @NotNull
    @GsonAdapterKey("stereo_format")
    protected String mStereoFormat;

    @NotNull
    public Projection getProjection() {
        switch (mProjection) {
            case "equirectangular":
                return Projection.EQUIRECTANGULAR;
            case "cylindrical":
                return Projection.CYLINDRICAL;
            case "cubical":
                return Projection.CUBICAL;
            case "pyramid":
                return Projection.PYRAMID;
            case "dome":
                return Projection.DOME;
            default:
                return Projection.UNKNOWN;
        }
    }

    @NotNull
    public Format getFormat() {
        switch (mStereoFormat) {
            case "mono":
                return Format.MONO;
            case "left-right":
                return Format.LEFT_RIGHT;
            case "top-bottom":
                return Format.TOP_BOTTOM;
            default:
                return Format.UNKNOWN;
        }
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Spatial spatial = (Spatial) o;

        return mProjection.equals(spatial.mProjection) && mStereoFormat.equals(spatial.mStereoFormat);
    }

    @Override
    public String toString() {
        return super.toString() + "{" +
               "mProjection='" + mProjection + '\'' +
               ", mStereoFormat='" + mStereoFormat + '\'' +
               '}';
    }

    @Override
    public int hashCode() {
        int result = mProjection.hashCode();
        result = 31 * result + mStereoFormat.hashCode();
        result = 31 * result + super.hashCode();
        return result;
    }
}
{'fraction_non_alphanumeric': 0.08622262773722628, 'fraction_numerical': 0.012773722627737226, 'mean_word_length': 1.7718078381795197, 'pattern_counts': {'":': 16, '<': 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': '3404185', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1235, 'n_words': 286}