<commit_before>package pl.temomuko.autostoprace.data.model;

import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.google.gson.annotations.SerializedName;

import java.util.Date;

import pl.temomuko.autostoprace.Constants;
import pl.temomuko.autostoprace.data.remote.PostProcessingEnabler;

/**
 * Created by <NAME> on 2016-01-22.
 */
public class LocationRecord implements Comparable<LocationRecord>, Parcelable, PostProcessingEnabler.PostProcessable {

    @SerializedName("id") private int mId;
    @SerializedName("latitude") private double mLatitude;
    @SerializedName("longitude") private double mLongitude;
    @SerializedName("message") private String mMessage;
    @SerializedName("address") private String mAddress;
    @SerializedName("country") private String mCountry;
    @SerializedName("country_code") private String mCountryCode;
    @SerializedName("created_at") private Date mServerReceiptDate;

    @Nullable
    @SerializedName("image")
    private String mImageLocation;

    public LocationRecord() {
    }

    public LocationRecord(double latitude, double longitude, String message, String address,
                          String country, String countryCode, Uri imageLocation) {
        mLatitude = latitude;
        mLongitude = longitude;
        mMessage = message;
        mAddress = address;
        mCountry = country;
        mCountryCode = countryCode;
        if (imageLocation != null) {
            mImageLocation = imageLocation.toString();
        }
    }

    @Override
    public int compareTo(@NonNull LocationRecord another) {
        int dateCompareResult = getDateCompareResult(another);
        if (dateCompareResult == 0) {
            return Integer.valueOf(another.getId()).compareTo(mId);
        } else {
            return dateCompareResult;
        }
    }<commit_msg>Remove useless nullcheck<commit_after>package pl.temomuko.autostoprace.data.model;

import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.google.gson.annotations.SerializedName;

import java.util.Date;

import pl.temomuko.autostoprace.Constants;
import pl.temomuko.autostoprace.data.remote.PostProcessingEnabler;

/**
 * Created by <NAME> on 2016-01-22.
 */
public class LocationRecord implements Comparable<LocationRecord>, Parcelable, PostProcessingEnabler.PostProcessable {

    @SerializedName("id") private int mId;
    @SerializedName("latitude") private double mLatitude;
    @SerializedName("longitude") private double mLongitude;
    @SerializedName("message") private String mMessage;
    @SerializedName("address") private String mAddress;
    @SerializedName("country") private String mCountry;
    @SerializedName("country_code") private String mCountryCode;
    @SerializedName("created_at") private Date mServerReceiptDate;

    @Nullable
    @SerializedName("image")
    private String mImageLocation;

    public LocationRecord() {
    }

    public LocationRecord(double latitude, double longitude, String message, String address,
                          String country, String countryCode, Uri imageLocation) {
        mLatitude = latitude;
        mLongitude = longitude;
        mMessage = message;
        mAddress = address;
        mCountry = country;
        mCountryCode = countryCode;
        mImageLocation = imageLocation.toString();
    }

    @Override
    public int compareTo(@NonNull LocationRecord another) {
        int dateCompareResult = getDateCompareResult(another);
        if (dateCompareResult == 0) {
            return Integer.valueOf(another.getId()).compareTo(mId);
        } else {
            return dateCompareResult;
        }
    }
{'fraction_non_alphanumeric': 0.0922279792746114, 'fraction_numerical': 0.00466321243523316, 'mean_word_length': 3.6462093862815883, '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': '5453524', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1039, 'n_words': 239}