<commit_before>package org.apollo.extension.releasegen.message.node;

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

public class CompoundPropertyNode extends PropertyNode {
    private final Map<String, PropertyNode> children = new HashMap<>();

    /**
     * Parser action which adds a child to this property and
     */
    public boolean addChild(PropertyNode node) {
        children.put(node.getIdentifier(), node);
        return true;
    }

    public boolean hasChild(String identifier) {
        return children.containsKey(identifier);
    }

    public Collection<PropertyNode> getChildren() {
        return children.values();
    }
}<commit_msg>changing type of child property collection in CompoundPropertyNode to fix ordering, resolves #3<commit_after>package org.apollo.extension.releasegen.message.node;

import java.util.Collection;
import java.util.LinkedList;

public class CompoundPropertyNode extends PropertyNode {
    private final LinkedList<PropertyNode> children = new LinkedList<>();

    /**
     * Parser action which adds a child to this property and
     */
    public boolean addChild(PropertyNode node) {
        children.addLast(node);
        return true;
    }

    public boolean hasChild(String identifier) {
        for (PropertyNode node : children) {
            if (identifier.equals(node.getIdentifier())) {
                return true;
            }
        }
        return false;
    }

    public Collection<PropertyNode> getChildren() {
        return children;
    }
}
{'fraction_non_alphanumeric': 0.08762886597938144, 'fraction_numerical': 0.0006443298969072165, 'mean_word_length': 3.012919896640827, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2565704', 'n_tokens_mistral': 398, 'n_tokens_neox': 387, 'n_words': 114}