<commit_before>package com.twu.biblioteca;

import org.junit.Test;

import java.util.ArrayList;

import static org.junit.Assert.assertEquals;

public class CheckInTest {
    @Test
    public void returnsTrueIfTheBookIsAvailableInTheCheckOutList() {
        Book book1 = new Book("Head First Java", "sierra", "1950");
        ArrayList<Book> bookList = new ArrayList<>();
        ArrayList<Book> checkoutBookList = new ArrayList<>();
        checkoutBookList.add(book1);
        Library library = new Library(bookList, checkoutBookList);
        CheckIn checkIn = new CheckIn();
        boolean isAvailable = checkIn.execute(library, "Head First Java");
        assertEquals(true, isAvailable);
    }
}
<commit_msg>|00020| Added functionality for checkIn class<commit_after>package com.twu.biblioteca;

import org.junit.Test;

import java.util.ArrayList;

import static org.junit.Assert.assertEquals;

public class CheckInTest {
    @Test
    public void returnsTrueIfTheBookIsAvailableInTheCheckOutList() {
        Book book1 = new Book("Head First Java", "sierra", "1950");
        ArrayList<Book> bookList = new ArrayList<>();
        ArrayList<Book> checkoutBookList = new ArrayList<>();
        checkoutBookList.add(book1);
        Library library = new Library(bookList, checkoutBookList);
        CheckIn checkIn = new CheckIn();
        assertEquals(true, checkIn.execute(library, "Head First Java"));
    }

    @Test
    public void returnsFalseIfTheBookIsAvailableInTheCheckOutList() {
        Book book1 = new Book("Head First Java", "sierra", "1950");
        ArrayList<Book> bookList = new ArrayList<>();
        ArrayList<Book> checkoutBookList = new ArrayList<>();
        checkoutBookList.add(book1);
        Library library = new Library(bookList, checkoutBookList);
        CheckIn checkIn = new CheckIn();
        assertEquals(false, checkIn.execute(library, "www"));
    }
}

{'fraction_non_alphanumeric': 0.10976253298153034, 'fraction_numerical': 0.012137203166226913, 'mean_word_length': 3.6584766584766584, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3857094', 'n_tokens_mistral': 535, 'n_tokens_neox': 514, 'n_words': 135}