<commit_before>import referencelibrary.*
import referencelibrary.UI.*
import referencelibrary.data.StubDao

description """A new bookreference can be added
                to referencelibrary"""

scenario "New bookreference can be added to system", {
    given 'command add book is selected and reference info is typed', {
        io = new StubIO("a", "B", "1", "2", "3", "4", "5", "q")
        app = new App(new StubDao())
        ui = new UI(io, app)
    }
 
    when 'a valid username and password are entered', {
      ui.run()
    }

    then 'new user is registered to system', {
      io.getPrints().shouldHave("Reference added!")
    }
}
<commit_msg>Remove copy paste from easyb tests<commit_after>import referencelibrary.*
import referencelibrary.UI.*
import referencelibrary.data.StubDao

description """A new reference can be added
                to referencelibrary"""

scenario "New bookreference can be added to system", {
    given 'command add book is selected and reference info is typed', {
        io = new StubIO("a", "B", "1", "2", "3", "4", "5", "q")
        app = new App(new StubDao())
        ui = new UI(io, app)
    }
 
    when 'a new reference is made and valid data is entered', {
      ui.run()
    }

    then 'new reference is added to the system', {
      io.getPrints().shouldHave("Reference added!")
    }
}

{'fraction_non_alphanumeric': 0.12342007434944238, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 2.8457142857142856, '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': '7059808', 'n_tokens_mistral': 412, 'n_tokens_neox': 401, 'n_words': 149}