<commit_before>package com.example.tests;

import org.testng.annotations.Test;
import com.example.utilits.SortedListOf;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.*;

public class ContactDeleteTests extends ContactsTests{
		
	//TODO Tests are failing. Need to fix
	@Test
	public void testDeleteContact () {
		int index = smartContactChoosing();
		
		//get Contacts list before testing
		SortedListOf<ObjContact> beforeTestingContacts= app.getContactHelper().getContactsList();
		
		int idContact = app.getContactHelper().getIdContact(index);
		app.getContactHelper()
			.clickEditContact(idContact)
			.clickDeleteContact();
		
		//get contacts list after testing
		SortedListOf<ObjContact> afterTestingContacts= app.getContactHelper().getContactsList();
		
		//Compare results
		assertThat(afterTestingContacts, equalTo(beforeTestingContacts.without(index - 1)));
	}
}
<commit_msg>Contact full edit bugfix<commit_after>package com.example.tests;

import org.testng.annotations.Test;
import com.example.utilits.SortedListOf;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.*;

public class ContactDeleteTests extends ContactsTests{
		
	//TODO Tests are failing. Need to fix
	@Test
	public void testDeleteContact () {
		int index = smartContactChoosing();
		
		//get Contacts list before testing
		SortedListOf<ObjContact> beforeTestingContacts= app.getContactHelper().getContactsList();
		
		int idContact = app.getContactHelper().getIdContact(index);
		app.getContactHelper()
			.clickEditContact(idContact)
			.clickDeleteContact();
		
		//get contacts list after testing
		SortedListOf<ObjContact> afterTestingContacts= app.getContactHelper().getContactsList();
		
		//Compare results
		assertThat(afterTestingContacts, equalTo(beforeTestingContacts.without(index)));
	}
}

{'fraction_non_alphanumeric': 0.09820944112859468, 'fraction_numerical': 0.0005425935973955507, 'mean_word_length': 5.380622837370242, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1458153', 'n_tokens_mistral': 578, 'n_tokens_neox': 522, 'n_words': 118}