<commit_before>#ifndef SEM_CORE_BASE_LAYER_H_
#define SEM_CORE_BASE_LAYER_H_

class LayerConfig;
class LayerIONames;
class Signal;

/**
 * @brief The Layer base class
 * Overloaded constructor calls overloaded Reset() so you can implement Reset(config) directly.
 */
class base_Layer
{
public:
    virtual ~base_Layer();

    /**
     * @brief Reset the state of the layer.
     */
    virtual void Clear() = 0;

    /**
     * @brief Reset the state of the layer with new configurations.
     * This is a hard reset.
     * For a soft reset \see Reconfigure
     * @param config
     */
    virtual void Reset(const LayerConfig& config);

    /**
      * @brief Reconfigure the layer without modifying its state
      * @todo Keep this?
      * @param new configuration
      */
    virtual void Reconfigure(const LayerConfig& config) = 0;

    /**
      * @brief Set layer input output keys
      * @param new I/O configuration
      */
    virtual void IONames(const LayerIONames& config) = 0;

    /**
     * @brief Activate layer computations to most recent stimuli
     */
    virtual void Activate(const Signal &signal) = 0;

    /**
     * @brief Get layer response
     */
    virtual void Response(Signal &signal) = 0;<commit_msg>additional method descriptions around base layer class<commit_after>#ifndef SEM_CORE_BASE_LAYER_H_
#define SEM_CORE_BASE_LAYER_H_

class LayerConfig;
class LayerIONames;
class Signal;

/**
 * @brief The Layer base class
 * Overloaded constructor calls overloaded Reset() so you can implement Reset(config) directly.
 */
class base_Layer
{
public:
    virtual ~base_Layer();

    /**
     * @brief Reset the state of the layer.
     */
    virtual void Clear() = 0;

    /**
     * @brief Reset the state of the layer with new configurations.
     * This is a hard reset.
     * For a soft reset \see Reconfigure
     * @param config
     */
    virtual void Reset(const LayerConfig& config);

    /**
      * @brief Reconfigure the layer without modifying its state
      * @todo Keep this?
      * @param new configuration
      */
    virtual void Reconfigure(const LayerConfig& config) = 0;

    /**
      * @brief Set layer input output keys
      * @param new I/O configuration
      */
    virtual void IONames(const LayerIONames& config) = 0;

    /**
     * @brief Activate layer computations to most recent stimuli
     * This is expected to perform the heavy lifting
     *
     * @param[in] signal object with input features
     * @throws sem::ExceptionKeyError for missing features
     */
    virtual void Activate(const Signal &signal) = 0;

    /**
     * @brief Get layer response due to most recent stimuli
     *
     * @param[out] signal object to populate with layer's output features
     */
    virtual void Response(Signal &signal) = 0;
{'fraction_non_alphanumeric': 0.08642857142857142, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 2.6855263157894735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6242199', 'n_tokens_mistral': 812, 'n_tokens_neox': 758, 'n_words': 296}