<commit_before>package org.motechproject.ivr.event;

import org.joda.time.DateTime;
import org.motechproject.util.DateUtil;

public class CallEvent {
    private String name;
    private DateTime timeStamp;
    private CallEventCustomData callEventCustomData = new CallEventCustomData();

    private CallEvent(){
    }

    public CallEvent(String name) {
        this(name, DateUtil.now());
    }

    private CallEvent(String name, DateTime timeStamp) {
        this.name = name;
        this.timeStamp = timeStamp;
    }

    public static CallEvent newDialEvent() {
        return new CallEvent("Dial", DateUtil.now());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DateTime getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(DateTime timeStamp) {
        this.timeStamp = timeStamp;
    }

    public CallEventCustomData getData() {
        return callEventCustomData;
    }

    public void setData(CallEventCustomData callEventCustomData) {<commit_msg><NAME> | #1381(TAMA) | Storing event timestamp with timezone.<commit_after>package org.motechproject.ivr.event;

import org.joda.time.DateTime;
import org.motechproject.util.DateUtil;

public class CallEvent {
    private String name;
    private DateTime timeStamp;
    private CallEventCustomData callEventCustomData = new CallEventCustomData();

    private CallEvent(){
    }

    public CallEvent(String name) {
        this(name, DateUtil.now());
    }

    private CallEvent(String name, DateTime timeStamp) {
        this.name = name;
        this.timeStamp = timeStamp;
    }

    public static CallEvent newDialEvent() {
        return new CallEvent("Dial", DateUtil.now());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DateTime getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(DateTime timeStamp) {
        this.timeStamp = DateUtil.setTimeZone(timeStamp);
    }

    public CallEventCustomData getData() {
        return callEventCustomData;
    }

    public void setData(CallEventCustomData callEventCustomData) {
{'fraction_non_alphanumeric': 0.08755555555555555, 'fraction_numerical': 0.0017777777777777779, 'mean_word_length': 2.874354561101549, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7252379', 'n_tokens_mistral': 675, 'n_tokens_neox': 648, 'n_words': 156}