<commit_before>package core.graph;

import core.Model;
import core.graph.cell.CellType;
import org.junit.*;
import static org.junit.Assert.*;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;

/**
 * Created by user on 18-5-2016.
 */
public class PhylogeneticTreeTest {

    private PhylogeneticTree pt;

    private Model mockedModel;

    /**
     * Setup a new Phylogenetic Tree instance.
     */
    @Before
    public void setUp() {
        pt = new PhylogeneticTree();
        mockedModel = mock(Model.class);

        when(mockedModel.addCell(anyInt(), anyString(), any(CellType.class))).thenReturn(true);
    }

    /**
     * Test the class constructor.
     */
    @Test
    public void testConstructor() {
        assertNotNull(pt);
    }

    /**
     * Test the getModel method.
     */
    @Test
    public void testGetModel() {
        Object model = pt.getModel();
        assertEquals(Model.class, model.getClass());
    }

    /**
     * Test the getTreeFromFile method.
     */
    @Test
    public void testGetTreeFromFile() {
        net.sourceforge.olduvai.treejuxtaposer.drawer.Tree tree = pt.getTreeFromFile();
        assertNotEquals(0, tree.getLeafCount());
    }

    /**
     * Test the setup method.
     */
    @Test
    public void testSetup() {
        pt.setModel(mockedModel);
        pt.setup();
        verify(mockedModel, atLeast(1)).addCell(anyInt(), anyString(), any(CellType.class));
    }<commit_msg>Comment test..<commit_after>package core.graph;

import core.Model;
import core.graph.cell.CellType;
import org.junit.*;
import static org.junit.Assert.*;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;

/**
 * Created by user on 18-5-2016.
 */
public class PhylogeneticTreeTest {

//    private PhylogeneticTree pt;
//
//    private Model mockedModel;
//
//    /**
//     * Setup a new Phylogenetic Tree instance.
//     */
//    @Before
//    public void setUp() {
//        pt = new PhylogeneticTree();
//        mockedModel = mock(Model.class);
//
//        when(mockedModel.addCell(anyInt(), anyString(), any(CellType.class))).thenReturn(true);
//    }
//
//    /**
//     * Test the class constructor.
//     */
//    @Test
//    public void testConstructor() {
//        assertNotNull(pt);
//    }
//
//    /**
//     * Test the getModel method.
//     */
//    @Test
//    public void testGetModel() {
//        Object model = pt.getModel();
//        assertEquals(Model.class, model.getClass());
//    }
//
//    /**
//     * Test the getTreeFromFile method.
//     */
//    @Test
//    public void testGetTreeFromFile() {
//        net.sourceforge.olduvai.treejuxtaposer.drawer.Tree tree = pt.getTreeFromFile();
//        assertNotEquals(0, tree.getLeafCount());
//    }
//
//    /**
//     * Test the setup method.
//     */
//    @Test
//    public void testSetup() {
//        pt.setModel(mockedModel);
//        pt.setup();
//        verify(mockedModel, atLeast(1)).addCell(anyInt(), anyString(), any(CellType.class));
//    }
{'fraction_non_alphanumeric': 0.15759973623475107, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 2.20042194092827, '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': '2761849', 'n_tokens_mistral': 981, 'n_tokens_neox': 943, 'n_words': 197}