<commit_before>// Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause

#include <charls/charls.h>

#include "encoder_strategy.h"
#include "jls_codec_factory.h"
#include "jpeg_stream_writer.h"
#include "jpegls_preset_coding_parameters.h"
#include "util.h"

#include <cassert>
#include <new>

using namespace charls;
using impl::throw_jpegls_error;
using std::unique_ptr;

struct charls_jpegls_encoder final
{
    charls_jpegls_encoder() = default;

    void destination(OUT_WRITES_BYTES_(size) void* destination, const size_t size)
    {
        if (state_ != state::initial)
            throw_jpegls_error(jpegls_errc::invalid_operation);
<commit_msg>Remove the defaulted constructor charls_jpegls_encoder<commit_after>// Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause

#include <charls/charls.h>

#include "encoder_strategy.h"
#include "jls_codec_factory.h"
#include "jpeg_stream_writer.h"
#include "jpegls_preset_coding_parameters.h"
#include "util.h"

#include <cassert>
#include <new>

using namespace charls;
using impl::throw_jpegls_error;
using std::unique_ptr;

struct charls_jpegls_encoder final
{
    void destination(OUT_WRITES_BYTES_(size) void* destination, const size_t size)
    {
        if (state_ != state::initial)
            throw_jpegls_error(jpegls_errc::invalid_operation);

{'fraction_non_alphanumeric': 0.11086142322097378, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 5.454106280193237, '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': '6248965', 'n_tokens_mistral': 494, 'n_tokens_neox': 486, 'n_words': 94}