<commit_before>package nerd.tuxmobil.fahrplan.congress.navigation;

import android.support.annotation.Nullable;

import java.util.HashMap;
import java.util.Map;

public class RoomForC3NavConverter {

    private static final String EMPTY_STRING = "";

    private static final Map<String, String> ROOM_TO_C3NAV_MAPPING = new HashMap<String, String>() {{
        put("<NAME>", "hall-a");
        put("<NAME>", "hall-b");
        put("<NAME>", "hall-c");
        put("<NAME>", "hall-d");

        // From everything.schedule.xml
        put("Assembly:Chaos West", null);
        put("Assembly:Bogonauten", null);
        put("Assembly:Haecksen", null);
        put("Assembly:HardwareHackingArea", null);
        put("Assembly:Jugend hackt", null);
        put("Assembly:Milliways", null);
        put("Assembly:Open Knowledge Assembly", null);
        put("Assembly:Physikfachschaft Rostock", null);
        put("Assembly:TeaHouse", null);
        put("CCL Hall 3", null);
        put("Chaos West Stage", null);
        put("Hall 3", null);
        put("Hive Stage", null);
        put("Kidspace", null);
        put("Komona Aquarius", null);
        put("Komona Blue Princess", null);
        put("Komona Coral Reef", null);
        put("<NAME>", null);
        put("Lecture room 11", null);
        put("Lecture room 12", null);
        put("Seminar room 13", null);
        put("Seminar room 14-15", null);
    }};

    @Nullable
    public static String convert(@Nullable final String room) {
        if (room != null && !EMPTY_STRING.equals(room)) {
            return ROOM_TO_C3NAV_MAPPING.get(room.toUpperCase());
        }
        return null;
    }

}<commit_msg>all known mappings (for now) for c3nav<commit_after>package nerd.tuxmobil.fahrplan.congress.navigation;

import android.support.annotation.Nullable;

import java.util.HashMap;
import java.util.Map;

public class RoomForC3NavConverter {

    private static final String EMPTY_STRING = "";

    private static final Map<String, String> ROOM_TO_C3NAV_MAPPING = new HashMap<String, String>() {{
        put("<NAME>", "hall-a");
        put("<NAME>", "hall-b");
        put("<NAME>", "hall-c");
        put("<NAME>", "hall-d");

        // From everything.schedule.xml
        put("Assembly:Chaos West", "chaos-west-stage");
        put("Assembly:Bogonauten", null);
        put("Assembly:Haecksen", null);
        put("Assembly:HardwareHackingArea", "hardware-hacking-area");
        put("Assembly:Jugend hackt", "jugend-hackt");
        put("Assembly:Milliways", "milliways");
        put("Assembly:Open Knowledge Assembly", null);
        put("Assembly:Physikfachschaft Rostock", null);
        put("Assembly:TeaHouse", null);
        put("CCL Hall 3", "ccl-hall-3");
        put("Chaos West Stage", "chaos-west-stage");
        put("Hall 3", "ccl-hall-3");
        put("Hive Stage", "the-hive-stage");
        put("Kidspace", "kidspace");
        put("Komona Aquarius", "komona-aquarius");
        put("Komona Blue Princess", "komona-blue-princess");
        put("Komona Coral Reef", "komona-coral-reef");
        put("<NAME>", "komona-d-ressrosa");
        put("Lecture room 11", "ccl-lecture-room-11");
        put("Lecture room 12", "ccl-lecture-room-12");
        put("Seminar room 13", "ccl-seminar-room-13");
        put("Seminar room 14-15", "ccl-seminar-room-13");
    }};

    @Nullable
    public static String convert(@Nullable final String room) {
        if (room != null && !EMPTY_STRING.equals(room)) {
            return ROOM_TO_C3NAV_MAPPING.get(room.toUpperCase());
        }
        return null;
    }

}
{'fraction_non_alphanumeric': 0.16146993318485522, 'fraction_numerical': 0.011414253897550112, 'mean_word_length': 2.9182115594329336, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2501828', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1133, 'n_words': 244}