<commit_before>package edu.duke.cabig.c3pr.dao;

import edu.duke.cabig.c3pr.dao.hibernate.EpochDaoHibernate;
import edu.duke.cabig.c3pr.domain.Epoch;
import edu.duke.cabig.c3pr.util.ContextDaoTestCase;

/**
 * @author Priyatam
 */
public class EpochDaoTest extends ContextDaoTestCase<EpochDaoHibernate> {

    public void testGetById() throws Exception {
        Epoch loaded = getDao().getById(-1);
        assertEquals("Wrong name", "Treatment", loaded.getName());
        assertEquals("Wrong number of arms", 3, loaded.getArms().size());
        assertEquals("Wrong 0th arm", "A", loaded.getArms().get(0).getName());
        assertEquals("Wrong 1st arm", "B", loaded.getArms().get(1).getName());
        assertEquals("Wrong 2nd arm", "C", loaded.getArms().get(2).getName());
    }
}<commit_msg>updated with new dao<commit_after>package edu.duke.cabig.c3pr.dao;

import edu.duke.cabig.c3pr.dao.EpochDao;
import edu.duke.cabig.c3pr.domain.Epoch;
import edu.duke.cabig.c3pr.util.ContextDaoTestCase;

/**
 * @author Priyatam
 */
public class EpochDaoTest extends ContextDaoTestCase<EpochDao> {

    public void testGetById() throws Exception {
        Epoch loaded = getDao().getById(-1);
        assertEquals("Wrong name", "Treatment", loaded.getName());
        assertEquals("Wrong number of arms", 3, loaded.getArms().size());
        assertEquals("Wrong 0th arm", "A", loaded.getArms().get(0).getName());
        assertEquals("Wrong 1st arm", "B", loaded.getArms().get(1).getName());
        assertEquals("Wrong 2nd arm", "C", loaded.getArms().get(2).getName());
    }
}
{'fraction_non_alphanumeric': 0.16338207247298156, 'fraction_numerical': 0.015257469802924348, 'mean_word_length': 4.127035830618892, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2654255', 'n_tokens_mistral': 551, 'n_tokens_neox': 547, 'n_words': 99}