<commit_before>/**
 *
 */
package roslab.model.general;

import java.util.ArrayList;
import java.util.List;

import roslab.model.ui.UILink;
import roslab.model.ui.UINode;

/**
 * @author <NAME>
 */
public class Configuration {

    List<UINode> nodes;
    List<UILink> links;

    /**
     * @param nodes
     * @param links
     */
    public Configuration(List<UINode> nodes, List<UILink> links) {
        this.nodes = nodes;
        this.links = links;
    }

    /**
     * @return the UI nodes
     */
    public List<UINode> getUINodes() {
        return nodes;
    }

    /**
     * @param nodes
     *            the UI nodes to set
     */
    public void setUINodes(List<UINode> nodes) {
        this.nodes = nodes;
    }

    /**
     * @return the nodes
     */
    public List<Node> getNodes() {
        List<Node> nodes = new ArrayList<Node>();

        for (UINode n : this.nodes) {
            nodes.add(n.getNode());
        }

        return nodes;
    }

    /**
     * @return the UI links
     */
    public List<UILink> getUILinks() {
        return links;
    }

    /**
     * @param links
     *            the UI links to set<commit_msg>Added UINode and UILink handling methods.<commit_after>/**
 *
 */
package roslab.model.general;

import java.util.ArrayList;
import java.util.List;

import roslab.model.ui.UILink;
import roslab.model.ui.UINode;

/**
 * @author <NAME>
 */
public class Configuration {

    List<UINode> nodes;
    List<UILink> links;

    /**
     * @param nodes
     * @param links
     */
    public Configuration(List<UINode> nodes, List<UILink> links) {
        this.nodes = nodes;
        this.links = links;
    }

    public boolean addUINode(UINode node) {
        return nodes.add(node);
    }

    public boolean removeUINode(UINode node) {
        return nodes.remove(node);
    }

    /**
     * @return the UI nodes
     */
    public List<UINode> getUINodes() {
        return nodes;
    }

    /**
     * @param nodes
     *            the UI nodes to set
     */
    public void setUINodes(List<UINode> nodes) {
        this.nodes = nodes;
    }

    /**
     * @return the nodes
     */
    public List<Node> getNodes() {
        List<Node> nodes = new ArrayList<Node>();

        for (UINode n : this.nodes) {
            nodes.add(n.getNode());
        }

        return nodes;
    }

    public boolean addUILink(UILink link) {
        return links.add(link);
    }

    public boolean removeUILink(UILink link) {
        return links.remove(link);
    }

    /**
     * @return the UI links
     */
    public List<UILink> getUILinks() {
        return links;
    }

    /**
     * @param links
     *            the UI links to set
{'fraction_non_alphanumeric': 0.12490733876945886, 'fraction_numerical': 0.0, 'mean_word_length': 1.7968911917098445, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6709533', 'n_tokens_mistral': 898, 'n_tokens_neox': 877, 'n_words': 204}