<commit_before>package com.tumblr.jumblr.types;

import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import org.apache.commons.lang3.StringUtils;

/**
 * This class is the base of all post types on Tumblr
 * @author jc
 */
public class Post extends Resource {

    private Long id;
    private String author;
    private String reblog_key;
    private String blog_name;
    private String post_url, short_url;
    private String type;<commit_msg>add post type enum in Post.java<commit_after>package com.tumblr.jumblr.types;

import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import org.apache.commons.lang3.StringUtils;

/**
 * This class is the base of all post types on Tumblr
 * @author jc
 */
public class Post extends Resource {
    /**
     * Enum of valid Post types
     * @author kevintcoughlin
     */
    public enum PostType {
        TEXT("text"),
        ANSWER("answer"),
        CHAT("chat"),
        LINK("link"),
        PHOTO("photo"),
        PHOTOSET("photoset"),
        POSTCARD("postcard"),
        QUOTE("quote"),
        VIDEO("video"),
        UNKNOWN("unknown");

        private final String mType;

        PostType(final String type) {
            this.mType = type;
        }

        public String getType() {
            return this.mType;
        }
    }

    private Long id;
    private String author;
    private String reblog_key;
    private String blog_name;
    private String post_url, short_url;
    private String type;
{'fraction_non_alphanumeric': 0.10032537960954446, 'fraction_numerical': 0.0010845986984815619, 'mean_word_length': 2.925531914893617, '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': '5555871', 'n_tokens_mistral': 569, 'n_tokens_neox': 546, 'n_words': 156}