<commit_before>package org.slc.sli.api.representation;

import java.util.HashMap;

/**
 * Contents of Home resource, for use in XML return
 */
public class Home extends HashMap<String, Object> {
    
    private static final long serialVersionUID = -8766900333518618999L;

    public Home(HashMap<String, Object> linksMap, String entityCollectionName) {
        super();
        this.put(entityCollectionName, linksMap);
    }
}<commit_msg>change order of parameters to more logical representation. Add function to get linksMap.<commit_after>package org.slc.sli.api.representation;

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

/**
 * Contents of Home resource, for use in XML return
 */
//public class Home extends MutablePair<String, HashMap<String, Object>> {
public class Home extends HashMap<String, Object> {
    
    private static final long serialVersionUID = -8766900333518618999L;

    public Home(String entityCollectionName, HashMap<String, Object> linksMap) {
        super();
        this.put(entityCollectionName, linksMap);
    }

    public HashMap<String, Object> getLinksMap() {
        Entry<String, Object> collectionEntry = this.entrySet().iterator().next();
        @SuppressWarnings (value="unchecked")
        HashMap<String, Object> linksMap = (HashMap<String, Object>) collectionEntry.getValue();
        return linksMap;
    }
}
{'fraction_non_alphanumeric': 0.10241404535479151, 'fraction_numerical': 0.027798098024871983, 'mean_word_length': 3.9745454545454546, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6271107', 'n_tokens_mistral': 398, 'n_tokens_neox': 372, 'n_words': 107}