<commit_before>/*
 * Copyright (c) 2015 SeNDA
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
/**
 * FILE Config.h
 * AUTHOR Blackcatn13
 * DATE Nov 10, 2015
 * VERSION 1
 *
 */
#ifndef BUNDLEAGENT_NODE_CONFIG_H_
#define BUNDLEAGENT_NODE_CONFIG_H_

#include <string>
#include "Utils/ConfigLoader.h"

class Config {
 public:
  /**
   *
   */
  Config();
  /**
   *
   * @param configFilename
   */
  explicit Config(const std::string &configFilename);
  /**
   *
   */
  virtual ~Config();
  /**
   * Get the node id in the configuration.
   *
   * @return The node id.
   */
  std::string getNodeId();
  /**
   * Get the node IP address in the configuration.
   *
   * @return The IP address.
   */
  std::string getNodeAddress();
  /**
   * Get the node Port in the configuration.
   *
   * @return The node Port.
   */
  int getNodePort();<commit_msg>Adds missing documentation.<commit_after>/*
 * Copyright (c) 2015 SeNDA
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
/**
 * FILE Config.h
 * AUTHOR Blackcatn13
 * DATE Nov 10, 2015
 * VERSION 1
 *
 */
#ifndef BUNDLEAGENT_NODE_CONFIG_H_
#define BUNDLEAGENT_NODE_CONFIG_H_

#include <string>
#include "Utils/ConfigLoader.h"

/**
 * CLASS Config
 * This class is a configuration holder. It loads all the configuration that
 * will be needed by the node, if the values are not present a default value is
 * given to them.
 */
class Config {
 public:
  /**
   * @brief Empty constructor.
   *
   * Generates a Config object with the default parameters.
   */
  Config();
  /**
   * @brief Loads a configuration file.
   *
   * Generates a Config object with the values found in the configuration
   * file, if no values found the default are used.
   *
   * @param configFilename the path to the configuration file.
   */
  explicit Config(const std::string &configFilename);
  /**
   * Destructor of the class.
   */
  virtual ~Config();
  /**
   * Get the node id in the configuration.
   *
   * @return The node id.
   */
  std::string getNodeId();
  /**
   * Get the node IP address in the configuration.
   *
   * @return The IP address.
   */
  std::string getNodeAddress();
  /**
   * Get the node Port in the configuration.
   *
   * @return The node Port.
   */
  int getNodePort();
{'fraction_non_alphanumeric': 0.10012210012210013, 'fraction_numerical': 0.010378510378510378, 'mean_word_length': 2.9963414634146344, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7626451', 'n_tokens_mistral': 984, 'n_tokens_neox': 959, 'n_words': 386}