<commit_before>/*
 * Copyright (c) 2012 <NAME>, <NAME>
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * <NAME> - initial API and implementation
 */
package prm4j.logic;

import java.util.List;
import java.util.Map;
import java.util.Set;

import prm4j.api.Symbol;

/**
 * A specification which can be implemented by classes which provide parameters, symbols and have a finite number of
 * states.
 */
public interface StatefulSpec {

    /**
     * Get all symbols.
     *
     * @return all symbols
     */
    public List<Symbol> getSymbols();

    /**
     * Returns the property enable set. It maps each symbol S into a set of symbol sets, where each symbol have to be
     * seen, before S can be observerd.
     *
     * @return the property enable set
     */
    public Map<Symbol, Set<Set<Symbol>>> getPropertyEnableSet();

    /**
     * Return the state co-enable set. It maps each state to set of symbol sets, where each symbol has to be seen at
     * least once to trigger a match. When some symbols may not be seen, no match can be triggered.
     *
     * @return the state co-enable set
     */
    public Map<MonitorState<?>, Set<Set<Symbol>>> getStateCoEnableSet();

}<commit_msg>Add method<commit_after>/*
 * Copyright (c) 2012 <NAME>, <NAME>
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * <NAME> - initial API and implementation
 */
package prm4j.logic;

import java.util.List;
import java.util.Map;
import java.util.Set;

import prm4j.api.Symbol;

/**
 * A specification which can be implemented by classes which provide parameters, symbols and have a finite number of
 * states.
 */
public interface StatefulSpec {

    /**
     * Get all symbols.
     *
     * @return all symbols
     */
    public List<Symbol> getSymbols();

    /**
     * Returns the property enable set. It maps each symbol S into a set of symbol sets, where each symbol have to be
     * seen, before S can be observerd.
     *
     * @return the property enable set
     */
    public Map<Symbol, Set<Set<Symbol>>> getPropertyEnableSet();

    /**
     * Return the state co-enable set. It maps each state to set of symbol sets, where each symbol has to be seen at
     * least once to trigger a match. When some symbols may not be seen, no match can be triggered.
     *
     * @return the state co-enable set
     */
    public Map<MonitorState<?>, Set<Set<Symbol>>> getStateCoEnableSet();

    /**
     * Returns the initial state.
     *
     * @return the initial state
     */
    public MonitorState<?> getInitialState();

}
{'fraction_non_alphanumeric': 0.09427609427609428, 'fraction_numerical': 0.006734006734006734, 'mean_word_length': 2.92989417989418, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '1550737', 'n_tokens_mistral': 840, 'n_tokens_neox': 814, 'n_words': 350}