<commit_before>#include <optimisationProblem/benchmark/sphereFunction.hpp>

#include <cmath>
using std::sqrt;
using std::pow;

#include <armadillo>
using arma::norm;

namespace hop {
  SphereFunction::SphereFunction(const unsigned int &numberOfDimensions) : BenchmarkProblem(numberOfDimensions) {

  }

  double SphereFunction::getObjectiveValueImplementation(const Col<double> &parameter) {
    return pow(norm(getRandomParameterTranslation(parameter)), 2);
  }
}
<commit_msg>devel: Set sphere function's objective value method to be const (missed this one)<commit_after>#include <optimisationProblem/benchmark/sphereFunction.hpp>

#include <cmath>
using std::sqrt;
using std::pow;

#include <armadillo>
using arma::norm;

namespace hop {
  SphereFunction::SphereFunction(const unsigned int &numberOfDimensions) : BenchmarkProblem(numberOfDimensions) {

  }

  double SphereFunction::getObjectiveValueImplementation(const Col<double> &parameter) const {
    return pow(norm(getRandomParameterTranslation(parameter)), 2);
  }
}

{'fraction_non_alphanumeric': 0.10700389105058365, 'fraction_numerical': 0.0019455252918287938, 'mean_word_length': 7.575, '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': '5446309', 'n_tokens_mistral': 319, 'n_tokens_neox': 301, 'n_words': 65}