<commit_before>/**
 *
 *  \file function.h
 *  \remark This file is part of VITA.
 *
 *  Copyright (C) 2011-2013 <NAME>.
 *
 *  This Source Code Form is subject to the terms of the Mozilla Public
 *  License, v. 2.0. If a copy of the MPL was not distributed with this file,
 *  You can obtain one at http://mozilla.org/MPL/2.0/
 *
 */

#if !defined(FUNCTION_H)
#define      FUNCTION_H

#include <string>
#include <vector>

#include "kernel/gene.h"

namespace vita
{
  ///
  /// A symbol used in GP. A \a function label the internal (non-leaf) points
  /// of the parse trees that represent the programs in the \a population. An
  /// example function set might be {+,-,*}.
  /// Each function should be able to handle gracefully all values it might
  /// receive as input (this is called closure property). Remember: if there is
  /// a way to crash the system, the GP system will certainly hit upon hit.
  ///
  class function : public symbol
  {
  public:
    function(const std::string &, category_t, const std::vector<category_t> &,
             unsigned = k_base_weight, bool = false);

    ///
    /// \return \c true if the function is associative (e.g. sum is associative,
    ///         division isn't).
    ///
    virtual bool associative() const override { return associative_; }<commit_msg>Fixed typo<commit_after>/**
 *
 *  \file function.h
 *  \remark This file is part of VITA.
 *
 *  Copyright (C) 2011-2013 <NAME>.
 *
 *  This Source Code Form is subject to the terms of the Mozilla Public
 *  License, v. 2.0. If a copy of the MPL was not distributed with this file,
 *  You can obtain one at http://mozilla.org/MPL/2.0/
 *
 */

#if !defined(FUNCTION_H)
#define      FUNCTION_H

#include <string>
#include <vector>

#include "kernel/gene.h"

namespace vita
{
  ///
  /// A symbol used in GP. A \a function labels the internal (non-leaf) points
  /// of the parse trees that represent the programs in the \a population. An
  /// example function set might be {+,-,*}.
  /// Each function should be able to handle gracefully all values it might
  /// receive as input (this is called closure property). Remember: if there is
  /// a way to crash the system, the GP system will certainly hit upon hit.
  ///
  class function : public symbol
  {
  public:
    function(const std::string &, category_t, const std::vector<category_t> &,
             unsigned = k_base_weight, bool = false);

    ///
    /// \return \c true if the function is associative (e.g. sum is associative,
    ///         division isn't).
    ///
    virtual bool associative() const override { return associative_; }
{'fraction_non_alphanumeric': 0.11435149654643131, 'fraction_numerical': 0.00920951650038373, 'mean_word_length': 2.610803324099723, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5349750', 'n_tokens_mistral': 795, 'n_tokens_neox': 756, 'n_words': 329}