<commit_before>/**
 * 
 */
package org.helioviewer.jhv.data.datatype.event;

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

/**
 * Defines the relationship between events.
 * 
 * @author <NAME> (<EMAIL>)
 * 
 */
public class JHVEventRelationship {
    /** Events following this event */
    private final List<JHVEventRelation> nextEvents;
    /** Events preceding this event */
    private final List<JHVEventRelation> precedingEvents;
    /** Rules for relation with this event */
    private final List<JHVEventRelationShipRule> relationshipRules;
    /** Related events */
    private final List<JHVEventRelation> relatedEventsByRule;

    /**
     * Default constructor of JHV event relationship.
     */
    public JHVEventRelationship() {
        nextEvents = new ArrayList<JHVEventRelation>();
        precedingEvents = new ArrayList<JHVEventRelation>();
        relationshipRules = new ArrayList<JHVEventRelationShipRule>();
        relatedEventsByRule = new ArrayList<JHVEventRelation>();
    }

    /**
     * Gets the related events by rule.
     * 
     * @return the relatedEventsByRule
     */
    public List<JHVEventRelation> getRelatedEventsByRule() {
        return relatedEventsByRule;
    }

    /**
     * Gets the next events.
     * 
     * @return the nextEvents
     */
    public List<JHVEventRelation> getNextEvents() {
        return nextEvents;
    }

    /**
     * Gets the preceding events.
     * 
     * @return the precedingEvents
     */
    public List<JHVEventRelation> getPrecedingEvents() {
        return precedingEvents;
    }

    /**
     * Gets the relationship rules.
     * 
     * @return the relationshipRules
     */
    public List<JHVEventRelationShipRule> getRelationshipRules() {
        return relationshipRules;
    }

}<commit_msg>Changed the lists in the event relationship to maps<commit_after>/**
 * 
 */
package org.helioviewer.jhv.data.datatype.event;

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

/**
 * Defines the relationship between events.
 * 
 * @author <NAME> (<EMAIL>@oma.be)
 * 
 */
public class JHVEventRelationship {
    /** Events following this event */
    private final Map<String, JHVEventRelation> nextEvents;
    /** Events preceding this event */
    private final Map<String, JHVEventRelation> precedingEvents;
    /** Rules for relation with this event */
    private final Map<String, JHVEventRelationShipRule> relationshipRules;
    /** Related events */
    private final Map<String, JHVEventRelation> relatedEventsByRule;

    /**
     * Default constructor of JHV event relationship.
     */
    public JHVEventRelationship() {
        nextEvents = new HashMap<String, JHVEventRelation>();
        precedingEvents = new HashMap<String, JHVEventRelation>();
        relationshipRules = new HashMap<String, JHVEventRelationShipRule>();
        relatedEventsByRule = new HashMap<String, JHVEventRelation>();
    }

    /**
     * Gets the related events by rule.
     * 
     * @return the relatedEventsByRule
     */
    public Map<String, JHVEventRelation> getRelatedEventsByRule() {
        return relatedEventsByRule;
    }

    /**
     * Gets the next events.
     * 
     * @return the nextEvents
     */
    public Map<String, JHVEventRelation> getNextEvents() {
        return nextEvents;
    }

    /**
     * Gets the preceding events.
     * 
     * @return the precedingEvents
     */
    public Map<String, JHVEventRelation> getPrecedingEvents() {
        return precedingEvents;
    }

    /**
     * Gets the relationship rules.
     * 
     * @return the relationshipRules
     */
    public Map<String, JHVEventRelationShipRule> getRelationshipRules() {
        return relationshipRules;
    }

}
{'fraction_non_alphanumeric': 0.09811320754716982, 'fraction_numerical': 0.0, 'mean_word_length': 2.786734693877551, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '6651219', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1025, 'n_words': 260}