<commit_before>package market.gui;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Semaphore;

import javax.imageio.ImageIO;

import city.gui.Gui;
import city.roles.DeliveryManRole;

public class DeliveryManGui implements Gui{

	private DeliveryManRole role = null;
	private boolean isPresent = false;
	
	private static BufferedImage deliveryImg = null;
	
	private int xPos = CUST_START_POS, yPos = CUST_START_POS;
	private int xDestination = xWAITING_START, yDestination = yWAITING_START;
	
	public static List<Semaphore> atms = new ArrayList<Semaphore>();
	private Map<Integer, Point> atmMap = new HashMap<Integer, Point>();
	private enum state{waiting,gettingFood,givingFood,delivering,delivered};
	state deliveryState;
	private Semaphore atShelf=new Semaphore(1,true);
	
	static final int CUST_START_POS = -40;
	static final int xWAITING_START = 50;
	static final int yWAITING_START = 50;
	static final int xSHELF1=100;
	static final int ySHELF1=120;<commit_msg>fixed home position of delivery man<commit_after>package market.gui;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Semaphore;

import javax.imageio.ImageIO;

import city.gui.Gui;
import city.roles.DeliveryManRole;

public class DeliveryManGui implements Gui{

	private DeliveryManRole role = null;
	private boolean isPresent = false;
	
	private static BufferedImage deliveryImg = null;
	
	private int xPos = CUST_START_POS, yPos = CUST_START_POS;
	private int xDestination = xWAITING_START, yDestination = yWAITING_START;
	
	public static List<Semaphore> atms = new ArrayList<Semaphore>();
	private Map<Integer, Point> atmMap = new HashMap<Integer, Point>();
	private enum state{waiting,gettingFood,givingFood,delivering,delivered};
	state deliveryState;
	private Semaphore atShelf=new Semaphore(1,true);
	
	static final int CUST_START_POS = -40;
	static final int xWAITING_START = 90;
	static final int yWAITING_START = 190;
	static final int xSHELF1=100;
	static final int ySHELF1=120;
{'fraction_non_alphanumeric': 0.08622854750941816, 'fraction_numerical': 0.01381331100879029, 'mean_word_length': 5.828571428571428, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '109125', 'n_tokens_mistral': 817, 'n_tokens_neox': 764, 'n_words': 210}