<commit_before>package net.mnb.codeprojects.javase.tenpinbowlingscore;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BowlingScoreBoardVerifyingScoreCalculationTest {

    @Test
    public void shouldReturn300ForPerfectGame() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10"});

        int finalScore = board.calculateFrameScores();

        assertEquals(300, finalScore);
    }
}<commit_msg>add more tests for calculation<commit_after>package net.mnb.codeprojects.javase.tenpinbowlingscore;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BowlingScoreBoardVerifyingScoreCalculationTest {

    @Test
    public void shouldReturn300ForPerfectGame() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10"});

        int finalScore = board.calculateFrameScores();

        assertEquals(300, finalScore);
    }

    @Test
    public void shouldReturn10ForRollScores_1_2_3_4() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"1", "2", "3", "4"});

        int finalScore = board.calculateFrameScores();

        assertEquals(10, finalScore);
    }

    @Test
    public void shouldReturn29ForRollScores_9_1_9_1() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"9", "1", "9", "1"});

        int finalScore = board.calculateFrameScores();

        assertEquals(29, finalScore);
    }

    @Test
    public void shouldReturn18ForRollScores_1_1_1_1_10_1_1() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"1", "1", "1", "1", "10", "1", "1"});

        int finalScore = board.calculateFrameScores();

        assertEquals(18, finalScore);
    }
}
{'fraction_non_alphanumeric': 0.13141683778234087, 'fraction_numerical': 0.053388090349075976, 'mean_word_length': 4.062337662337662, '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': '7397657', 'n_tokens_mistral': 660, 'n_tokens_neox': 590, 'n_words': 138}