<commit_before>from model.contact import Contact
__author__ = "<NAME>"


def test_modify_first_contact(app):
    if app.contact.count() == 0:
        app.contact.create(Contact(first_name="<NAME>", last_name="<NAME>", email="<EMAIL>"
                                   , mobile_phone="1241241"))
    app.contact.modify_first_contact_without_photo(Contact(first_name="noweImie", last_name="noweNazwisko"
                                                           , mobile_phone="99999", email="<EMAIL>"
                                                           , birthday_day=27, birthday_month=11, birthday_year="1988"
                                                           , address="Gdzieś w Mińsku Mazowieckim"))


def test_modify_first_name(app):
    if app.contact.count() == 0:
        app.contact.create(Contact(first_name="<NAME>", last_name="<NAME>", email="<EMAIL>"
                                   , mobile_phone="1241241"))
    app.contact.modify_first_contact_without_photo(Contact(first_name="noweImie", last_name=None
                                                           , mobile_phone=None, email=None))<commit_msg>new comment in modify contact<commit_after>from model.contact import Contact
__author__ = "<NAME>"


def test_modify_first_contact(app):
    if app.contact.count() == 0:
        app.contact.create(Contact(first_name="<NAME>", last_name="<NAME>", email="<EMAIL>"
                                   , mobile_phone="1241241"))
    app.contact.modify_first_contact_without_photo(Contact(first_name="noweImie", last_name="noweNazwisko"
                                                           , mobile_phone="99999", email="<EMAIL>"
                                                           , birthday_day=27, birthday_month=11, birthday_year="1988"
                                                           , address="Gdzieś w <NAME>"))


def test_modify_first_name(app):
    if app.contact.count() == 0:
        app.contact.create(Contact(first_name="<NAME>", last_name="<NAME>", email="<EMAIL>"
                                   , mobile_phone="1241241"))
    # need to make none only for these, as in model.class only these four are required - keep it simple :)
    app.contact.modify_first_contact_without_photo(Contact(first_name="noweImie", last_name=None
                                                           , mobile_phone=None, email=None))
{'fraction_non_alphanumeric': 0.11421425593997499, 'fraction_numerical': 0.02417674030846186, 'mean_word_length': 1.874251497005988, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4910132', 'n_tokens_mistral': 659, 'n_tokens_neox': 618, 'n_words': 98}