<commit_before>#ifndef ZONOTOPE_HALFSPACES_HPP_
#define ZONOTOPE_HALFSPACES_HPP_

#include "hyperplane.hpp"
#include "combination_traversal.hpp"
#include "zonotope_halfspaces_output_functor.hpp"
#include "combination_kernel_container.hpp"
#include "combination_kernel_container_iml.hpp"

#include <vector>
#include <set>

/**
 * @brief Generic construction of the set of halfspaces
 *
 * @tparam Combination_container A combination container that also
 *                               maintains the kernel of the
 *                               combination
 */
template <typename NT,
          typename Combination_container = Combination_kernel_container<NT> >
std::set<Hyperplane<NT> >
zonotope_halfspaces (const std::vector<std::vector<NT> >& generators) {

  typedef Zonotope_halfspaces_output_functor<NT, Combination_container> Output_functor;

  const int d = generators[0].size();

  Combination_container empty_combination (generators, d-1);  
  Output_functor zonotope_halfspaces_output (generators);

  traverse_combinations<Combination_container, Output_functor>
    (empty_combination, d-2, zonotope_halfspaces_output);
  
  return zonotope_halfspaces_output.halfspaces;
}<commit_msg>removed redundant #include<commit_after>#ifndef ZONOTOPE_HALFSPACES_HPP_
#define ZONOTOPE_HALFSPACES_HPP_

#include "hyperplane.hpp"
#include "combination_traversal.hpp"
#include "zonotope_halfspaces_output_functor.hpp"
#include "combination_kernel_container.hpp"

#include <vector>
#include <set>

/**
 * @brief Generic construction of the set of halfspaces
 *
 * @tparam Combination_container A combination container that also
 *                               maintains the kernel of the
 *                               combination
 */
template <typename NT,
          typename Combination_container = Combination_kernel_container<NT> >
std::set<Hyperplane<NT> >
zonotope_halfspaces (const std::vector<std::vector<NT> >& generators) {

  typedef Zonotope_halfspaces_output_functor<NT, Combination_container> Output_functor;

  const int d = generators[0].size();

  Combination_container empty_combination (generators, d-1);  
  Output_functor zonotope_halfspaces_output (generators);

  traverse_combinations<Combination_container, Output_functor>
    (empty_combination, d-2, zonotope_halfspaces_output);
  
  return zonotope_halfspaces_output.halfspaces;
}
{'fraction_non_alphanumeric': 0.08181432810512929, 'fraction_numerical': 0.002543450614667232, 'mean_word_length': 4.9, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1760794', 'n_tokens_mistral': 766, 'n_tokens_neox': 721, 'n_words': 144}