<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <iosfwd>

namespace search {

/*
 * Class describing compaction strategy for a compactable data structure.
 */
class CompactionStrategy
{
private:
    double _maxDeadBytesRatio; // Max ratio of dead bytes before compaction
    double _maxDeadAddressSpaceRatio; // Max ratio of dead address space before compaction
public:
    CompactionStrategy() noexcept
        : _maxDeadBytesRatio(0.2),<commit_msg>Track changed default max dead bytes ratio.<commit_after>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <iosfwd>

namespace search {

/*
 * Class describing compaction strategy for a compactable data structure.
 */
class CompactionStrategy
{
private:
    double _maxDeadBytesRatio; // Max ratio of dead bytes before compaction
    double _maxDeadAddressSpaceRatio; // Max ratio of dead address space before compaction
public:
    CompactionStrategy() noexcept
        : _maxDeadBytesRatio(0.15),
{'fraction_non_alphanumeric': 0.0634231103388358, 'fraction_numerical': 0.014769765421372719, 'mean_word_length': 4.142857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '828256', 'n_tokens_mistral': 308, 'n_tokens_neox': 292, 'n_words': 127}