<commit_before>#ifndef RDB_PROTOCOL_CONFIGURED_LIMITS_HPP_
#define RDB_PROTOCOL_CONFIGURED_LIMITS_HPP_

#include <map>
#include <string>

namespace ql {

class wire_func_t;

class configured_limits_t {
public:
    configured_limits_t() : _array_size_limit(100000) {}
    explicit configured_limits_t(const size_t limit) : _array_size_limit(limit) {}

    size_t array_size_limit() const { return _array_size_limit; }
private:
    const size_t _array_size_limit;
};

configured_limits_t from_optargs(const std::map<std::string, wire_func_t> &optargs);

} // namespace ql

#endif<commit_msg>Fix otherwise inexplicable compile errors by making this field nonconst<commit_after>#ifndef RDB_PROTOCOL_CONFIGURED_LIMITS_HPP_
#define RDB_PROTOCOL_CONFIGURED_LIMITS_HPP_

#include <map>
#include <string>

namespace ql {

class wire_func_t;

class configured_limits_t {
public:
    configured_limits_t() : _array_size_limit(100000) {}
    explicit configured_limits_t(const size_t limit) : _array_size_limit(limit) {}

    size_t array_size_limit() const { return _array_size_limit; }
private:
    size_t _array_size_limit;
};

configured_limits_t from_optargs(const std::map<std::string, wire_func_t> &optargs);

} // namespace ql

#endif
{'fraction_non_alphanumeric': 0.08617886178861789, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 6.7421383647798745, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3001669', 'n_tokens_mistral': 451, 'n_tokens_neox': 441, 'n_words': 85}