<commit_before>package com.flipper83.katapotter;

import java.util.ArrayList;
import java.util.List;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BasketCalculatorTest {
  private static final List<String> EMPTY_BASKET = new ArrayList<>();

  @Test
  public void shouldReturnZeroPriceForAnEmptyBasket() {
    BasketCalculator basketCalculator = new BasketCalculator();

    int amount = basketCalculator.calculatePrice(EMPTY_BASKET);

    assertEquals(0, amount);
  }
}<commit_msg>[RED] check basket with only one book.<commit_after>package com.flipper83.katapotter;

import java.util.ArrayList;
import java.util.List;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BasketCalculatorTest {
  private static final List<String> EMPTY_BASKET = new ArrayList<>();
  private static final String FIRST_BOOK = "Philosopher stone";

  @Test
  public void shouldReturnZeroPriceForAnEmptyBasket() {
    BasketCalculator basketCalculator = new BasketCalculator();

    int amount = basketCalculator.calculatePrice(EMPTY_BASKET);

    assertEquals(0, amount);
  }
  
  @Test
  public void shouldReturnPriceWithoutDiscountWithABasketWithOneBook() {
    BasketCalculator basketCalculator = new BasketCalculator();
    List<String> basket = givenBasketWithOneBook();
    
    int amount = basketCalculator.calculatePrice(basket);

    assertEquals(8, amount);
  }

  private List<String> givenBasketWithOneBook() {
    List<String> basket = new ArrayList<>();
    basket.add(FIRST_BOOK);
    return basket;
  }
}
{'fraction_non_alphanumeric': 0.09177820267686425, 'fraction_numerical': 0.004461440407903123, 'mean_word_length': 5.0852713178294575, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '681540', 'n_tokens_mistral': 482, 'n_tokens_neox': 465, 'n_words': 107}