<commit_before>package ve.com.abicelis.remindy.viewmodel;

import android.support.annotation.NonNull;

import java.security.InvalidParameterException;
import java.util.Calendar;

import ve.com.abicelis.remindy.enums.TaskViewModelType;
import ve.com.abicelis.remindy.model.Task;
import ve.com.abicelis.remindy.model.Time;

/**
 * Created by abice on 26/3/2017.
 */

public class TaskTriggerViewModel {

    //DATA
    private Task task = null;
    private Calendar triggerDate = null;
    private Time triggerTime = null;

    public TaskTriggerViewModel(@NonNull Task task, @NonNull Calendar triggerDate, @NonNull Time triggerTime) {
        this.task = task;
        this.triggerDate = triggerDate;
        this.triggerTime = triggerTime;
    }

    public Task getTask() { return task; }
    public Calendar getTriggerDate() { return triggerDate; }
    public Time getTriggerTime() { return triggerTime; }
}<commit_msg>getTriggerDateWithTime() implementation<commit_after>package ve.com.abicelis.remindy.viewmodel;

import android.support.annotation.NonNull;

import java.security.InvalidParameterException;
import java.util.Calendar;

import ve.com.abicelis.remindy.enums.TaskViewModelType;
import ve.com.abicelis.remindy.model.Task;
import ve.com.abicelis.remindy.model.Time;
import ve.com.abicelis.remindy.util.CalendarUtil;

/**
 * Created by abice on 26/3/2017.
 */

public class TaskTriggerViewModel {

    //DATA
    private Task task = null;
    private Calendar triggerDate = null;
    private Time triggerTime = null;

    public TaskTriggerViewModel(@NonNull Task task, @NonNull Calendar triggerDate, @NonNull Time triggerTime) {
        this.task = task;
        this.triggerDate = triggerDate;
        this.triggerTime = triggerTime;
    }

    public Task getTask() { return task; }
    public Calendar getTriggerDate() { return triggerDate; }
    public Time getTriggerTime() { return triggerTime; }

    public Calendar getTriggerDateWithTime() {
        Calendar cal = CalendarUtil.getNewInstanceZeroedCalendar();
        cal.setTimeInMillis(getTriggerDate().getTimeInMillis());

        cal.set(Calendar.HOUR_OF_DAY, getTriggerTime().getHour());
        cal.set(Calendar.MINUTE, getTriggerTime().getMinute());

        return cal;
    }
}
{'fraction_non_alphanumeric': 0.09964570416297608, 'fraction_numerical': 0.006200177147918512, 'mean_word_length': 3.858064516129032, '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': '5328176', 'n_tokens_mistral': 693, 'n_tokens_neox': 658, 'n_words': 148}