<commit_before>#ifndef TELEGRAMQT_PENDING_OPERATION_PRIVATE_HPP
#define TELEGRAMQT_PENDING_OPERATION_PRIVATE_HPP

#include "PendingOperation.hpp"

namespace Telegram {

class PendingOperationPrivate
{
public:
    Q_DECLARE_PUBLIC(PendingOperation)

    explicit PendingOperationPrivate(PendingOperation *parent) :
        q_ptr(parent)
    {
    }

    virtual ~PendingOperationPrivate() = default;

    static const PendingOperationPrivate *get(const PendingOperation *op) { return op->d; }

    virtual QObject *toQObject() { return nullptr; }
    virtual const QObject *toQObject() const { return nullptr; }

    QVariantHash m_errorDetails;
    bool m_finished = false;
    bool m_succeeded = true;

    PendingOperation *q_ptr = nullptr;<commit_msg>PendingOperation: Add a Private getter from mutable instance<commit_after>#ifndef TELEGRAMQT_PENDING_OPERATION_PRIVATE_HPP
#define TELEGRAMQT_PENDING_OPERATION_PRIVATE_HPP

#include "PendingOperation.hpp"

namespace Telegram {

class PendingOperationPrivate
{
public:
    Q_DECLARE_PUBLIC(PendingOperation)

    explicit PendingOperationPrivate(PendingOperation *parent) :
        q_ptr(parent)
    {
    }

    virtual ~PendingOperationPrivate() = default;

    static const PendingOperationPrivate *get(const PendingOperation *op) { return op->d; }
    static PendingOperationPrivate *get(PendingOperation *op) { return op->d; }

    virtual QObject *toQObject() { return nullptr; }
    virtual const QObject *toQObject() const { return nullptr; }

    QVariantHash m_errorDetails;
    bool m_finished = false;
    bool m_succeeded = true;

    PendingOperation *q_ptr = nullptr;
{'fraction_non_alphanumeric': 0.0746177370030581, 'fraction_numerical': 0.0, 'mean_word_length': 4.780918727915195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5810299', 'n_tokens_mistral': 506, 'n_tokens_neox': 488, 'n_words': 112}