<commit_before>package ge.edu.freeuni.taxi.dispatcher;

import ge.edu.freeuni.taxi.core.Message;

public class CancelMessageListener implements IncomingMessageListener{

	@Override
	public void onIncomingMessage(Message message) {
		// TODO Auto-generated method stub
		
	}

}<commit_msg>#25 CancelMessageListener onIncommingMessage implementation<commit_after>package ge.edu.freeuni.taxi.dispatcher;


import ge.edu.freeuni.taxi.PassengerOrder;
import ge.edu.freeuni.taxi.core.Message;
import ge.edu.freeuni.taxi.manager.OrderManager;

public class CancelMessageListener implements IncomingMessageListener{

	@Override
	public void onIncomingMessage(Message message) {

		OrderManager orderManager = OrderManager.getInstance();
		String passengerName = message.getSender();
		PassengerOrder order = orderManager.getOrderByPassengerName(passengerName);
		if(order!=null) orderManager.deleteOrder(order);
		
		
		
	}

}
{'fraction_non_alphanumeric': 0.08714596949891068, 'fraction_numerical': 0.002178649237472767, 'mean_word_length': 6.015267175572519, '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': '4743424', 'n_tokens_mistral': 288, 'n_tokens_neox': 268, 'n_words': 50}