<commit_before>package com.twu.biblioteca;

public class BibliotecaApp {

    UserInput userInput;


    public void run(){
        userInput = new UserInput();
        welcomeMessage();
        welcomeOptions(userInput);

    }

    public void welcomeMessage() {
        System.out.println("Hello! \nWelcome to Biblioteca.\n");
    }

    public void welcomeOptions(UserInput userInput) {
        String choice = userInput.getString("What would you like to do?\n" +
                "Borrow a book? type: 'b'\n" +
                "Return a book? type: 'r'\n" +
                "See book details? type: 'd'\n" +
                "Quit? type q", null);
        if (choice.equals("b")) borrowItem();
    }

    public void borrowItem() {
        System.out.println("User wants to borrow");
        //TODO borrow fail or succeed
        //TODO user can quit
    }

    public void returnItem(String item){}

    public void showLibraryDetails() {
        displayLibrary();
    }



    public void displayLibrary() {
        System.out.println("Bibliotec Book Library\n" +
                "----------------------------------------\n" +
                "Title, Author\n" +
                "----------------------------------------\n" +
                "The Witches, <NAME>\n" +
                "The God of Small Things, Arundhati Roy\n" +
                "<NAME>, <NAME>");
    }

//Changes
}<commit_msg>Welcome screen now attaches to the other screens<commit_after>package com.twu.biblioteca;

public class BibliotecaApp {

    UserInput userInput;


    public void run(){
        userInput = new UserInput();
        welcomeMessage();
        welcomeOptions(userInput);

    }

    public void welcomeMessage() {
        System.out.println("Hello! \nWelcome to Biblioteca.\n");
    }

    public void welcomeOptions(UserInput userInput) {
        String choice = userInput.getString("What would you like to do?\n" +
                "Borrow a book? type: 'b'\n" +
                "Return a book? type: 'r'\n" +
                "See book details? type: 'd'\n" +
                "Quit? type q", null);
        if (choice.equals("b")) borrowItem();
        if (choice.equals("r")) returnItem();
        if (choice.equals("d")) showLibraryDetails();
        if (choice.equals("q")) quit();
    }

    public void borrowItem() {
        System.out.println("User wants to borrow");
        //TODO borrow fail or succeed
        //TODO user can quit
    }

    public void returnItem() {
        System.out.println("User wants to return Item");
    }

    public void showLibraryDetails() {
        displayLibrary();
    }

    public void quit() {
        System.out.println("User wants to quit");
    }



    public void displayLibrary() {
        System.out.println("Bibliotec Book Library\n" +
                "----------------------------------------\n" +
                "Title, Author\n" +
                "----------------------------------------\n" +
                "The Witches, <NAME>\n" +
                "The God of Small Things, Arundhati Roy\n" +
                "<NAME>, <NAME>");
    }

//Changes
}
{'fraction_non_alphanumeric': 0.17186997103315094, 'fraction_numerical': 0.0, 'mean_word_length': 1.59, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5819275', 'n_tokens_mistral': 877, 'n_tokens_neox': 835, 'n_words': 233}