<commit_before>package main.habitivity;

import android.media.Image;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;

import java.util.Date;

import main.habitivity.habits.HabitEvent;

/**
 * Created by sbergen on 10/23/17.
 */

public class HabitEventTests {

    private String id;
    private Date completionDateInitial;
    private Date completionDateReplacement;
    private String comment;
    private Image photograph;

    private HabitEvent habitEvent;

    @Before
    public void set_up(){
        id = "1234";
        completionDateInitial = new Date();
        completionDateReplacement = new Date();
        comment = "This is a habit event";
        photograph = mock(Image.class);
        habitEvent = new HabitEvent(completionDateInitial);

        habitEvent.setId(id);
        habitEvent.setCompletionDate(completionDateReplacement);
        habitEvent.setComment(comment);
        habitEvent.setPhoto(photograph);
    }

    @Test
    public void test(){
        assertEquals(habitEvent.getId(), id);
        assertEquals(habitEvent.getCompletionDate(), completionDateReplacement);
        assertEquals(habitEvent.getComment(), comment);
        assertEquals(habitEvent.getPhoto(), photograph);
    }
}<commit_msg>update tests using Image to Bitmap<commit_after>package main.habitivity;

import android.graphics.Bitmap;
import android.media.Image;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;

import java.util.Date;

import main.habitivity.habits.HabitEvent;


public class HabitEventTests {

    private String id;
    private Date completionDateInitial;
    private Date completionDateReplacement;
    private String comment;
    private Bitmap photograph;

    private HabitEvent habitEvent;

    @Before
    public void set_up(){
        id = "1234";
        completionDateInitial = new Date();
        completionDateReplacement = new Date();
        comment = "This is a habit event";
        photograph = mock(Bitmap.class);
        habitEvent = new HabitEvent(completionDateInitial);

        habitEvent.setId(id);
        habitEvent.setCompletionDate(completionDateReplacement);
        habitEvent.setComment(comment);
        habitEvent.setPhoto(photograph);
    }

    @Test
    public void test(){
        assertEquals(habitEvent.getId(), id);
        assertEquals(habitEvent.getCompletionDate(), completionDateReplacement);
        assertEquals(habitEvent.getComment(), comment);
        assertEquals(habitEvent.getPhoto(), photograph);
    }
}
{'fraction_non_alphanumeric': 0.0935361216730038, 'fraction_numerical': 0.00532319391634981, 'mean_word_length': 3.421848739495798, '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': '7316576', 'n_tokens_mistral': 724, 'n_tokens_neox': 705, 'n_words': 168}