<commit_before>#ifndef ANNOTATOR_ANNOTATORLIB_ALGO_COMPRESSOBJ_H
#define ANNOTATOR_ANNOTATORLIB_ALGO_COMPRESSOBJ_H

/************************************************************
 CompressObjectTrack class header
 ************************************************************/
#include <AnnotatorLib/AnnotatorLibDatastructs.h>
#include <AnnotatorLib/annotatorlib_api.h>
#include <vector>
#include <memory>

using std::shared_ptr;

namespace AnnotatorLib {

class Object;
class Annotation;
class Session;

namespace Algo {

/************************************************************/
/**
 *
 */
class ANNOTATORLIB_API CompressObjectTrack {
 public:
  static std::vector<shared_ptr<Annotation>> compress(Session* session, shared_ptr<Object> object,
                                           float max_diff = 5);
  static std::vector<shared_ptr<Annotation>> compressSession(Session* session, float max_diff = 5);
};
}
}
#endif
<commit_msg>change default max_diff to 3px<commit_after>#ifndef ANNOTATOR_ANNOTATORLIB_ALGO_COMPRESSOBJ_H
#define ANNOTATOR_ANNOTATORLIB_ALGO_COMPRESSOBJ_H

/************************************************************
 CompressObjectTrack class header
 ************************************************************/
#include <AnnotatorLib/AnnotatorLibDatastructs.h>
#include <AnnotatorLib/annotatorlib_api.h>
#include <vector>
#include <memory>

using std::shared_ptr;

namespace AnnotatorLib {

class Object;
class Annotation;
class Session;

namespace Algo {

/************************************************************/
/**
 *
 */
class ANNOTATORLIB_API CompressObjectTrack {
 public:
  static std::vector<shared_ptr<Annotation>> compress(Session* session, shared_ptr<Object> object,
                                           float max_diff = 3);
  static std::vector<shared_ptr<Annotation>> compressSession(Session* session, float max_diff = 3);
};
}
}
#endif

{'fraction_non_alphanumeric': 0.26730058108821975, 'fraction_numerical': 0.002641310089804543, 'mean_word_length': 6.1471698113207545, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5396466', 'n_tokens_mistral': 529, 'n_tokens_neox': 513, 'n_words': 100}