<commit_before>package ru.stqua.pft.addressbook.tests;

import org.testng.annotations.Test;
import ru.stqua.pft.addressbook.model.ContactData;

/**
 * Created by <NAME> on 1/29/2017.
 */
public class ContactModificationTests extends TestBase {

  @Test
  public void testContactModification(){
    app.getNavigationHelper().gotoHomePage();

    if (! app.getContactHelper().isThereAContact()){
      // create new contact
      app.getContactHelper().createContact(new ContactData("Alex", "Gorny", "<NAME>", "Mr", "GE", "New Orleans", "444-555-6666", "<EMAIL>", "<EMAIL>", "www.homepage.com", "test1"), true);
      app.getNavigationHelper().gotoHomePage();
      // modify created contact
      app.getContactHelper().modifyContact(new ContactData("Chuck", "Norris", "Walker", "Mr", "Texas Ranger", "Ryan", "444-555-6666", "<EMAIL>", "<EMAIL>", "www.homepage.com", null), 1);
      app.getNavigationHelper().gotoHomePage();
      // delete previously created contact
      app.getContactHelper().selectContactFromTheList(1);
      app.getContactHelper().deleteSelectedContant();
    } else {
      app.getContactHelper().modifyContact(new ContactData("Chuck", "Norris", "Walker", "Mr", "Texas Ranger", "Ryan", "444-555-6666", "<EMAIL>", "<EMAIL>", "www.homepage.com", null), 1);
    }

    app.getNavigationHelper().gotoHomePage();

  }


}<commit_msg>Remove Contact Deletion from ContactModification<commit_after>package ru.stqua.pft.addressbook.tests;

import org.testng.annotations.Test;
import ru.stqua.pft.addressbook.model.ContactData;

/**
 * Created by <NAME> on 1/29/2017.
 */
public class ContactModificationTests extends TestBase {

  @Test
  public void testContactModification(){
    app.getNavigationHelper().gotoHomePage();

    if (! app.getContactHelper().isThereAContact()){
      // create new contact
      app.getContactHelper().createContact(new ContactData("Alex", "Gorny", "<NAME>", "Mr", "GE", "New Orleans", "444-555-6666", "<EMAIL>", "<EMAIL>", "www.homepage.com", "test1"), true);
      app.getNavigationHelper().gotoHomePage();
    }

    app.getContactHelper().modifyContact(new ContactData("Chuck", "Norris", "Walker", "Mr", "<NAME>", "Ryan", "444-555-6666", "<EMAIL>", "<EMAIL>", "www.homepage.com", null), 1);
    app.getNavigationHelper().gotoHomePage();
  }


}
{'fraction_non_alphanumeric': 0.18154114061819765, 'fraction_numerical': 0.030474531998258596, 'mean_word_length': 4.688118811881188, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '3115194', 'n_tokens_mistral': 782, 'n_tokens_neox': 707, 'n_words': 140}