<commit_before>/*
 * Copyright 2005 The JA-SIG Collaborative. All rights reserved. See license
 * distributed with this file and available online at
 * http://www.uportal.org/license.html
 */
package org.jasig.cas.services;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jasig.cas.util.annotation.NotNull;


public final class MapBackedAttributeRepository implements AttributeRepository {
    
    @NotNull
    private Map<String, Attribute> attributes = new HashMap<String, Attribute>();

    public Attribute getAttribute(final String id) {
        return this.attributes.get(id);
    }

    public List<Attribute> getAttributes() {
        return new ArrayList<Attribute>(this.attributes.values());
    }
    
    public void setAttributes(final Map<String, Attribute> attributes) {
        this.attributes = attributes;
    }
}<commit_msg>changed setAttributes name to fix problem with Spring<commit_after>/*
 * Copyright 2005 The JA-SIG Collaborative. All rights reserved. See license
 * distributed with this file and available online at
 * http://www.uportal.org/license.html
 */
package org.jasig.cas.services;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jasig.cas.util.annotation.NotNull;


public final class MapBackedAttributeRepository implements AttributeRepository {
    
    @NotNull
    private Map<String, Attribute> attributes = new HashMap<String, Attribute>();

    public Attribute getAttribute(final String id) {
        return this.attributes.get(id);
    }

    public List<Attribute> getAttributes() {
        return new ArrayList<Attribute>(this.attributes.values());
    }
    
    public void setAttributesMap(final Map<String, Attribute> attributes) {
        this.attributes = attributes;
    }
}
{'fraction_non_alphanumeric': 0.09575040344271113, 'fraction_numerical': 0.004303388918773534, 'mean_word_length': 3.84375, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4336776', 'n_tokens_mistral': 500, 'n_tokens_neox': 482, 'n_words': 141}