<commit_before>package common.sunshine.model.selling.event;

import common.sunshine.model.Entity;

import java.sql.Timestamp;
import java.util.List;

/**
 * 活动默认从当前时间开始,默认持续时间为7天
 * Created by sunshine on 8/23/16.
 */
public abstract class Event extends Entity {
    private final int DURATION = 7;

    private String eventId;

    private String title;

    private String nickname;

    private Timestamp start;

    private Timestamp end;
    

    public Event() {
        this.start = new Timestamp(System.currentTimeMillis());
        this.end = new Timestamp(start.getTime() + 24 * 60 * 60 * 1000 * DURATION);
    }

    public Event(Timestamp start, Timestamp end) {
        this.start = start;
        this.end = end;
    }

    public Event(String title, Timestamp start, Timestamp end) {
        this(start, end);
        this.title = title;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Timestamp getStart() {
        return start;
    }

    public void setStart(Timestamp start) {
        this.start = start;
    }

    public Timestamp getEnd() {
        return end;
    }

    public void setEnd(Timestamp end) {
        this.end = end;
    }
}<commit_msg> Changes to be committed: 	modified:   common/src/main/java/common/sunshine/model/selling/event/Event.java<commit_after>package common.sunshine.model.selling.event;

import common.sunshine.model.Entity;
import common.sunshine.model.selling.event.support.EventType;

import java.sql.Timestamp;
import java.util.List;

/**
 * 活动默认从当前时间开始,默认持续时间为7天
 * Created by sunshine on 8/23/16.
 */
public abstract class Event extends Entity {
    private final int DURATION = 7;

    private String eventId;

    private String title;

    private String nickname;

    private Timestamp start;

    private Timestamp end;
    
    private EventType type;
    

    public Event() {
        this.start = new Timestamp(System.currentTimeMillis());
        this.end = new Timestamp(start.getTime() + 24 * 60 * 60 * 1000 * DURATION);
    }

    public Event(Timestamp start, Timestamp end) {
        this.start = start;
        this.end = end;
    }

    public Event(String title, Timestamp start, Timestamp end) {
        this(start, end);
        this.title = title;
    }

    public Event(String title, String nickname, Timestamp start, Timestamp end, EventType type) {
		super();
		this.title = title;
		this.nickname = nickname;
		this.start = start;
		this.end = end;
		this.type = type;
	}

	public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Timestamp getStart() {
        return start;
    }

    public void setStart(Timestamp start) {
        this.start = start;
    }

    public Timestamp getEnd() {
        return end;
    }

    public void setEnd(Timestamp end) {
        this.end = end;
    }

	public EventType getType() {
		return type;
	}

	public void setType(EventType type) {
		this.type = type;
	}
    
    
}
{'fraction_non_alphanumeric': 0.09523809523809523, 'fraction_numerical': 0.0091991341991342, 'mean_word_length': 2.35480943738657, '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': '4555726', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1123, 'n_words': 300}