<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package worldofzuul;

import java.util.HashMap;

/**
 *
 * @author ViktoriaNadarajah
 */
public class Environment {
    /**
     * HashMap attribute for rooms and their names
     */
    private HashMap<String, Room> rooms;
    
    /**
     * This method is a getter method
     * @param name
     * @return returns name of room
     */
    public Room getRoom(String name) {
        return rooms.get(name);
    }
    
    /**
     * This method create the different rooms in our game.
     * 
     * We create the rooms in our game and sets an exit for each room.
     * We put our room into a HashMap. The method returns the rooms
     * into our HashMap.
     */
    private void createRooms() {
        Room ovalOffice, lobby1, lobby2, kitchen, diningRoom, cleaningRoom, pressBriefingRoom, secretServiceRoom;
        
        ovalOffice = new Room("in the oval office");
        lobby1 = new Room("in the first lobby"); 
        lobby2 = new Room("in the second lobby");
        kitchen = new Room("in the kitchen");
        diningRoom = new Room("in the dining room");
        cleaningRoom = new Room("in the cleaning room");
        pressBriefingRoom = new Room("in the press briefing room");
        secretServiceRoom = new Room("in the secret service room"); 
        
        ovalOffice.setExit("north", lobby1);
        
        lobby1.setExit("north", lobby2);
        lobby1.setExit("east", secretServiceRoom);
        lobby1.setExit("south", ovalOffice);
        lobby1.setExit("west", diningRoom); 
        
        diningRoom.setExit("north", kitchen);
        diningRoom.setExit("east", lobby1); 
        
        secretServiceRoom.setExit("west", lobby1); 
        
        lobby2.setExit("north", cleaningRoom);
        lobby2.setExit("east", pressBriefingRoom);
        lobby2.setExit("south", lobby1);
        lobby2.setExit("west", kitchen); 
        
        kitchen.setExit("west", lobby2);
        kitchen.setExit("south", diningRoom);
        
        pressBriefingRoom.setExit("west", lobby2); 
        
        cleaningRoom.setExit("south", lobby2); 
        
        rooms.put("Oval office", ovalOffice);
        rooms.put("Lobby1", lobby1);
        rooms.put("Lobby2", lobby2);
        rooms.put("Dining room", diningRoom);
        rooms.put("Secret service room", secretServiceRoom);
        rooms.put("Kitchen", kitchen);
        rooms.put("Press briefing room", pressBriefingRoom);
        rooms.put("Cleaning room", cleaningRoom);
    }
}<commit_msg>Changed kitches exit (#25)<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package worldofzuul;

import java.util.HashMap;

/**
 *
 * @author ViktoriaNadarajah
 */
public class Environment {
    /**
     * HashMap attribute for rooms and their names
     */
    private HashMap<String, Room> rooms;
    
    /**
     * This method is a getter method
     * @param name
     * @return returns name of room
     */
    public Room getRoom(String name) {
        return rooms.get(name);
    }
    
    /**
     * This method create the different rooms in our game.
     * 
     * We create the rooms in our game and sets an exit for each room.
     * We put our room into a HashMap. The method returns the rooms
     * into our HashMap.
     */
    private void createRooms() {
        Room ovalOffice, lobby1, lobby2, kitchen, diningRoom, cleaningRoom, pressBriefingRoom, secretServiceRoom;
        
        ovalOffice = new Room("in the oval office");
        lobby1 = new Room("in the first lobby"); 
        lobby2 = new Room("in the second lobby");
        kitchen = new Room("in the kitchen");
        diningRoom = new Room("in the dining room");
        cleaningRoom = new Room("in the cleaning room");
        pressBriefingRoom = new Room("in the press briefing room");
        secretServiceRoom = new Room("in the secret service room"); 
        
        ovalOffice.setExit("north", lobby1);
        
        lobby1.setExit("north", lobby2);
        lobby1.setExit("east", secretServiceRoom);
        lobby1.setExit("south", ovalOffice);
        lobby1.setExit("west", diningRoom); 
        
        diningRoom.setExit("north", kitchen);
        diningRoom.setExit("east", lobby1); 
        
        secretServiceRoom.setExit("west", lobby1); 
        
        lobby2.setExit("north", cleaningRoom);
        lobby2.setExit("east", pressBriefingRoom);
        lobby2.setExit("south", lobby1);
        lobby2.setExit("west", kitchen); 
        
        kitchen.setExit("east", lobby2);
        kitchen.setExit("south", diningRoom);
        
        pressBriefingRoom.setExit("west", lobby2); 
        
        cleaningRoom.setExit("south", lobby2); 
        
        rooms.put("Oval office", ovalOffice);
        rooms.put("Lobby1", lobby1);
        rooms.put("Lobby2", lobby2);
        rooms.put("Dining room", diningRoom);
        rooms.put("Secret service room", secretServiceRoom);
        rooms.put("Kitchen", kitchen);
        rooms.put("Press briefing room", pressBriefingRoom);
        rooms.put("Cleaning room", cleaningRoom);
    }
}
{'fraction_non_alphanumeric': 0.11168927708604348, 'fraction_numerical': 0.00929195316855603, 'mean_word_length': 2.4323979591836733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5303257', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1498, 'n_words': 443}