<commit_before>/**
 *
 */
package com.github.apixandru.games.rummikub.model;

import org.junit.Test;

import java.util.NoSuchElementException;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;

/**
 * @author <NAME>
 * @since Sep 20, 2015
 */
@SuppressWarnings("static-method")
public class CardPileTest {

    /**
     * @throws Exception
     */
    @Test
    public void testNumberOfCards() throws Exception {
        final CardPile cardPile = new CardPile();
        assertSame("Numbers of cards don't match", 54, cardPile.getNumberOfCards());
    }

    /**
     * @throws Exception
     */
    @Test
    public void testHasCards() throws Exception {
        final CardPile cardPile = new CardPile();
        while (cardPile.hasMoreCards()) {
            assertNotNull("Should have cards", cardPile.nextCard());
        }
    }

    /**
     * @throws Exception
     */<commit_msg>number of cards should be 106; 2 jokers + 2 * 4 colors * 13 ranks<commit_after>/**
 *
 */
package com.github.apixandru.games.rummikub.model;

import org.junit.Test;

import java.util.NoSuchElementException;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;

/**
 * @author <NAME>
 * @since Sep 20, 2015
 */
@SuppressWarnings("static-method")
public class CardPileTest {

    /**
     * @throws Exception
     */
    @Test
    public void testNumberOfCards() throws Exception {
        final CardPile cardPile = new CardPile();
        assertSame("Numbers of cards don't match", 106, cardPile.getNumberOfCards());
    }

    /**
     * @throws Exception
     */
    @Test
    public void testHasCards() throws Exception {
        final CardPile cardPile = new CardPile();
        while (cardPile.hasMoreCards()) {
            assertNotNull("Should have cards", cardPile.nextCard());
        }
    }

    /**
     * @throws Exception
     */
{'fraction_non_alphanumeric': 0.12178477690288714, 'fraction_numerical': 0.013123359580052493, 'mean_word_length': 2.751968503937008, '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': '2655566', 'n_tokens_mistral': 612, 'n_tokens_neox': 577, 'n_words': 140}