<commit_before>package com.infotel.seleniumTests.qwantTest.cucumber;



import com.infotel.seleniumTests.qwantTest.webpage.QwantHomePage;
import com.seleniumtests.uipage.Locator;
import com.seleniumtests.uipage.htmlelements.LinkElement;

import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class Qwant {
	private QwantHomePage myHomePage;
	
	private LinkElement linkToClick;
	private LinkElement linkWordToFind;

	@When("saisir ([\\p{L}\\s]+)")
	public void saisirToto(String search) throws Exception {
		myHomePage = new QwantHomePage(true).search(search);
	}
	@Then("clique rechercher")
	public void rechercher() throws Exception {
		myHomePage.search();	
	}
	@Then("clique lien numéro (\\d+)")
	public void cliquerLienWikipedia(int num) throws Exception {
		linkToClick = new LinkElement("first Result", Locator.locateByXPath("(//span[@class='result--web--title'])["+num+"]"));
		linkToClick.click();
		myHomePage.selectNewWindow();
	}
	@Then("clique mot (\\p{L}+)")
	public void cliquerLienLievre(String keyWord) throws Exception {
		if(myHomePage.isElementPresent(Locator.locateByLinkText(keyWord))){
		linkWordToFind = new LinkElement("keyWord Link", Locator.locateByLinkText(keyWord));
		linkWordToFind.click();
		}
		else{
			System.out.println("\nle mot : "+keyWord+" ne fait pas partie de la page ou n'est pas un lien.");
		}
	}
	@Then("rechercher présence mot (\\p{L}+)")
	public void rechercherMotGibier(String searchWord) throws Exception {	
		
		if(myHomePage.isTextPresent(searchWord)){
			System.out.println("\nle mot : "+searchWord+" fait parti de la page");
		}
		else{
			System.out.println("\nle mot : "+searchWord+" ne fait pas parti de la page");
		}
	}
}

<commit_msg>correction due to core change<commit_after>package com.infotel.seleniumTests.qwantTest.cucumber;



import com.infotel.seleniumTests.qwantTest.webpage.QwantHomePage;
import com.seleniumtests.uipage.Locator;
import com.seleniumtests.uipage.htmlelements.LinkElement;

import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class Qwant {
	private QwantHomePage myHomePage;
	
	private LinkElement linkToClick;
	private LinkElement linkWordToFind;

	@When("saisir ([\\p{L}\\s]+)")
	public void saisirToto(String search) throws Exception {
		myHomePage = new QwantHomePage(true).search(search);
	}
	@Then("clique rechercher")
	public void rechercher() throws Exception {
		myHomePage.search();	
	}
	@Then("clique lien numéro (\\d+)")
	public void cliquerLienWikipedia(int num) throws Exception {
		linkToClick = new LinkElement("first Result", Locator.locateByXPath("(//span[@class='result--web--title'])["+num+"]"));
		linkToClick.click();
		myHomePage.selectNewWindow();
	}
	@Then("clique mot (\\p{L}+)")
	public void cliquerLienLievre(String keyWord) throws Exception {
		linkWordToFind = new LinkElement("keyWord Link", Locator.locateByLinkText(keyWord));
		if (linkWordToFind.isElementPresent()) {
			linkWordToFind.click();
		} else{
			System.out.println("\nle mot : "+keyWord+" ne fait pas partie de la page ou n'est pas un lien.");
		}
	}
	@Then("rechercher présence mot (\\p{L}+)")
	public void rechercherMotGibier(String searchWord) throws Exception {	
		
		if(myHomePage.isTextPresent(searchWord)){
			System.out.println("\nle mot : "+searchWord+" fait parti de la page");
		}
		else{
			System.out.println("\nle mot : "+searchWord+" ne fait pas parti de la page");
		}
	}
}


{'fraction_non_alphanumeric': 0.1395552954944412, 'fraction_numerical': 0.0, 'mean_word_length': 5.16036036036036, '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': '4045661', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1179, 'n_words': 249}