<commit_before>package nl.pvanassen.ns.handle;

import nl.pvanassen.ns.model.stations.Stations;
import nl.pvanassen.ns.model.stations.StationsHandle;

import org.junit.Assert;
import org.junit.Test;

public class StationsHandleTest {

    @Test
    public void testGetModel() {
        StationsHandle handle = new StationsHandle();
        Stations stations = handle.getModel(getClass().getResourceAsStream("/stations.xml"));
        Assert.assertNotNull(stations);
        Assert.assertNotNull(stations.getStations());
        Assert.assertNotEquals(0, stations.getStations().size());
    }

}<commit_msg>Added actual test<commit_after>package nl.pvanassen.ns.handle;

import static org.junit.Assert.*;
import nl.pvanassen.ns.model.stations.Station;
import nl.pvanassen.ns.model.stations.Stations;
import nl.pvanassen.ns.model.stations.StationsHandle;

import org.junit.Test;

public class StationsHandleTest {

    @Test
    public void testGetModel() {
        StationsHandle handle = new StationsHandle();
        Stations stations = handle.getModel(getClass().getResourceAsStream("/stations.xml"));
        assertNotNull(stations);
        assertNotNull(stations.getStations());
        assertNotEquals(0, stations.getStations().size());
        Station stationDenBosch = stations.getStations().get(0);
        assertNotNull(stationDenBosch.getNamen());
        assertEquals("H'bosch", stationDenBosch.getNamen().getKort());
        assertEquals("'s-Hertogenbosch", stationDenBosch.getNamen().getMiddel());
        assertEquals("'s-Hertogenbosch", stationDenBosch.getNamen().getLang());
        assertEquals("NL", stationDenBosch.getLand());
        assertEquals(8400319, stationDenBosch.getUicCode());
        assertEquals(51.69048d, stationDenBosch.getLat(), Double.MIN_VALUE);
        assertEquals(5.29362d, stationDenBosch.getLon(), Double.MIN_VALUE);
        assertEquals(2, stationDenBosch.getSynoniemen().size());
        assertEquals("Hertogenbosch ('s)", stationDenBosch.getSynoniemen().get(0));
        assertEquals("<NAME>", stationDenBosch.getSynoniemen().get(1));
    }

}
{'fraction_non_alphanumeric': 0.1334928229665072, 'fraction_numerical': 0.012440191387559809, 'mean_word_length': 4.334183673469388, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2494840', 'n_tokens_mistral': 659, 'n_tokens_neox': 646, 'n_words': 88}