#include "components/history_clusters/core/keyword_cluster_finalizer.h"
#include <queue>
#include "base/containers/contains.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/history/core/browser/history_types.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/on_device_clustering_features.h"
#include "components/history_clusters/core/on_device_clustering_util.h"
namespace history_clusters {
namespace {
static constexpr float kSearchTermsScore = …;
static constexpr float kScoreEpsilon = …;
void KeepTopKeywords(
base::flat_map<std::u16string, history::ClusterKeywordData>&
keyword_to_data_map,
size_t max_num_keywords_per_cluster) { … }
}
KeywordClusterFinalizer::KeywordClusterFinalizer() = default;
KeywordClusterFinalizer::~KeywordClusterFinalizer() = default;
void KeywordClusterFinalizer::FinalizeCluster(history::Cluster& cluster) { … }
}