<commit_before>#ifndef MOLP_HPP
#define MOLP_HPP

#include <list>
#include "BVect.hpp"
#include "BEdge.hpp"
#include "DominanceStatus.hpp"

class MOLP {
 private:
  std::list<BEdge> set;
 public:
  MOLP();
  MOLP(std::list<BEdge>);
  std::list<BEdge> edges() const;
  std::list<BEdge>::iterator begin();
  std::list<BEdge>::iterator end();
  bool empty() const;
  unsigned size() const;
  void push_back(const BEdge&);
  void extendWithPoint(const BVect&);
  BVect leftmostPoint() const;
  BVect rightmostPoint() const;
  bool isInA1AreaOf(const MOLP&) const;
  bool isInA2AreaOf(const MOLP&) const;
  DominanceStatus computeUpdate(const MOLP&, std::list<MOLP>&) const;
};

#endif
<commit_msg>MOLP: Add << ostream operator<commit_after>#ifndef MOLP_HPP
#define MOLP_HPP

#include <list>
#include "BVect.hpp"
#include "BEdge.hpp"
#include "DominanceStatus.hpp"

class MOLP {
 private:
  std::list<BEdge> set;
 public:
  MOLP();
  MOLP(std::list<BEdge>);
  std::list<BEdge> edges() const;
  std::list<BEdge>::iterator begin();
  std::list<BEdge>::iterator end();
  bool empty() const;
  unsigned size() const;
  void push_back(const BEdge&);
  void extendWithPoint(const BVect&);
  BVect leftmostPoint() const;
  BVect rightmostPoint() const;
  bool isInA1AreaOf(const MOLP&) const;
  bool isInA2AreaOf(const MOLP&) const;
  DominanceStatus computeUpdate(const MOLP&, std::list<MOLP>&) const;
  friend ostream& operator << (ostream& s, const MOLP& m) {
    s << "{ ";
    for (auto edge: m.edges())
      s << edge << " ";
    s << "}";
    return s;
  }
};

#endif

{'fraction_non_alphanumeric': 0.15792838874680307, 'fraction_numerical': 0.0025575447570332483, 'mean_word_length': 5.019230769230769, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 17, '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': '2174762', 'n_tokens_mistral': 614, 'n_tokens_neox': 603, 'n_words': 139}