<commit_before>package uk.co.ordinancesurvey.routing;


import static uk.co.ordinancesurvey.routing.GraphHopperComponentIdentification.INSTRUCTIONS;
import uk.co.ordnancesurvey.webtests.multiplatform.MultiplatformTest;
import cucumber.api.java.After;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;


public class GraphHopperHooks {
	GraphHopperUIUtil graphUiUtil=new GraphHopperUIUtil();
	String instruction;
	@Given("^I request a route between \"([^\"]*)\" and \"([^\"]*)\" as a \"([^\"]*)\" from RoutingAPI$")
		public void getRoute(String pointA,String pointB,String routeType)
		{
		graphUiUtil.getRouteFromService(pointA, pointB, routeType);
		graphUiUtil.getRouteFromUI(pointA, pointB, routeType);
		
	}

	
	@Then("^I should see \"([^\"]*)\" the TurnNavigationstep \"([^\"]*)\" for my route on UI$")
	public void I_should_see_the_TurnNavigationstep_for_my_route_on_UI(String routeStepNumber,String Instruction)  {
		//checkTableRow(INSTRUCTIONS, routeStep, this.instruction);
		graphUiUtil.verifyInstructionThroughUI(routeStepNumber,Instruction);
		graphUiUtil.verifyInstructionThroughService(Instruction);
	}

  @After({"@Routing"})
    public void closeBrowser()
    {
    	graphUiUtil.logout();
    }
	

}<commit_msg>Adding Route Testing functionality to GraphHopper<commit_after>package uk.co.ordinancesurvey.routing;


import static uk.co.ordinancesurvey.routing.GraphHopperComponentIdentification.INSTRUCTIONS;
import uk.co.ordnancesurvey.webtests.multiplatform.MultiplatformTest;
import cucumber.api.java.After;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;


public class GraphHopperHooks {
	GraphHopperUIUtil graphUiUtil=new GraphHopperUIUtil();
	String instruction;
	@Given("^I request a route between \"([^\"]*)\" and \"([^\"]*)\" as a \"([^\"]*)\" from RoutingAPI$")
		public void getRoute(String pointA,String pointB,String routeType)
		{
		graphUiUtil.getRouteFromService(pointA, pointB, routeType);
		graphUiUtil.getRouteFromUI(pointA, pointB, routeType);
		
	}

	
	@Then("^I should see \"([^\"]*)\" the TurnNavigationstep \"([^\"]*)\" for my route on UI$")
	public void I_should_see_the_TurnNavigationstep_for_my_route_on_UI(String routeStepNumber,String Instruction)  {
		//checkTableRow(INSTRUCTIONS, routeStep, this.instruction);
		graphUiUtil.verifyInstructionThroughUI(routeStepNumber,Instruction);
		graphUiUtil.verifyInstructionThroughService(Instruction);
	}

  @After({"@Routing"})
    public void closeBrowser()
    {
    	graphUiUtil.logout();
    	System.out.println("closed");
    }
	

}
{'fraction_non_alphanumeric': 0.13558678313710595, 'fraction_numerical': 0.0, 'mean_word_length': 5.753846153846154, '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': '422821', 'n_tokens_mistral': 912, 'n_tokens_neox': 865, 'n_words': 146}