<commit_before>package com.setiawanpaiman.sunnyreader.data.model;

import android.support.annotation.NonNull;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class Comment {

    @SerializedName("id")
    private long mId;

    @SerializedName("time")
    private long mTimestamp;

    @SerializedName("by")
    private String mAuthor;

    @SerializedName("text")
    private String mText;

    @SerializedName("parent")
    private long mParentId;

    @SerializedName("kids")
    private List<Long> mCommentIds;

    @SerializedName("deleted")
    private boolean mDeleted;

    private int mDepth;

    protected Comment(Builder builder) {
        mId = builder.mId;
        mTimestamp = builder.mTimestamp;
        mAuthor = builder.mAuthor;
        mText = builder.mText;
        mParentId = builder.mParentId;
        mCommentIds = builder.mCommentIds;
        mDeleted = builder.mDeleted;
    }

    public long getId() {
        return mId;
    }

    public long getTimestamp() {
        return mTimestamp;
    }<commit_msg>Implement Parcelable in Comment<commit_after>package com.setiawanpaiman.sunnyreader.data.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class Comment implements Parcelable {

    public static final Creator<Comment> CREATOR = new Creator<Comment>() {
        @Override
        public Comment createFromParcel(Parcel source) {return new Comment(source);}

        @Override
        public Comment[] newArray(int size) {return new Comment[size];}
    };

    @SerializedName("id")
    private long mId;

    @SerializedName("time")
    private long mTimestamp;

    @SerializedName("by")
    private String mAuthor;

    @SerializedName("text")
    private String mText;

    @SerializedName("parent")
    private long mParentId;

    @SerializedName("kids")
    private List<Long> mCommentIds;

    @SerializedName("deleted")
    private boolean mDeleted;

    private int mDepth;

    protected Comment(Builder builder) {
        mId = builder.mId;
        mTimestamp = builder.mTimestamp;
        mAuthor = builder.mAuthor;
        mText = builder.mText;
        mParentId = builder.mParentId;
        mCommentIds = builder.mCommentIds;
        mDeleted = builder.mDeleted;
    }

    protected Comment(Parcel in) {
        this.mId = in.readLong();
        this.mTimestamp = in.readLong();
        this.mAuthor = in.readString();
        this.mText = in.readString();
        this.mParentId = in.readLong();
        this.mCommentIds = new ArrayList<Long>();
        in.readList(this.mCommentIds, Long.class.getClassLoader());
        this.mDeleted = in.readByte() != 0;
        this.mDepth = in.readInt();
    }

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.mId);
        dest.writeLong(this.mTimestamp);
        dest.writeString(this.mAuthor);
        dest.writeString(this.mText);
        dest.writeLong(this.mParentId);
        dest.writeList(this.mCommentIds);
        dest.writeByte(mDeleted ? (byte) 1 : (byte) 0);
        dest.writeInt(this.mDepth);
    }

    public long getId() {
        return mId;
    }

    public long getTimestamp() {
        return mTimestamp;
    }
{'fraction_non_alphanumeric': 0.10489913544668587, 'fraction_numerical': 0.0011527377521613833, 'mean_word_length': 2.8481152993348116, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '18214', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1030, 'n_words': 222}