<commit_before>#include "transactiondescdialog.h"
#include "ui_transactiondescdialog.h"
#include "main.h"
#include "util.h"
#include "transactiontablemodel.h"
#include <QMessageBox>
#include <QModelIndex>

void ExecuteCode();
extern std::string ExtractXML(std::string XMLdata, std::string key, std::string key_end);
QString ToQString(std::string s);
int qtTrackConfirm(std::string txid);
std::string qtExecuteDotNetStringFunction(std::string function, std::string data);


TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::TransactionDescDialog)
{
    ui->setupUi(this);
    QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
    ui->detailText->setHtml(desc);
    //If smart contract is populated
    ui->btnExecute->setVisible(Contains(msHashBoinc,"<CODE>"));
    ui->btnTrack->setVisible(Contains(msHashBoinc,"<TRACK>"));
    ui->btnViewAttachment->setVisible(Contains(msHashBoinc,"<ATTACHMENT>"));
}

TransactionDescDialog::~TransactionDescDialog()
{
    delete ui;
}<commit_msg>Only show transaction tracking button on Windows.<commit_after>#include "transactiondescdialog.h"
#include "ui_transactiondescdialog.h"
#include "main.h"
#include "util.h"
#include "transactiontablemodel.h"
#include <QMessageBox>
#include <QModelIndex>

void ExecuteCode();
extern std::string ExtractXML(std::string XMLdata, std::string key, std::string key_end);
QString ToQString(std::string s);
int qtTrackConfirm(std::string txid);
std::string qtExecuteDotNetStringFunction(std::string function, std::string data);


TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::TransactionDescDialog)
{
    ui->setupUi(this);
    QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
    ui->detailText->setHtml(desc);
    //If smart contract is populated
    ui->btnExecute->setVisible(Contains(msHashBoinc,"<CODE>"));
#if defined(WIN32)
    ui->btnTrack->setVisible(Contains(msHashBoinc,"<TRACK>"));
#else
    ui->btnTrack->setVisible(false);
#endif
    ui->btnViewAttachment->setVisible(Contains(msHashBoinc,"<ATTACHMENT>"));
}

TransactionDescDialog::~TransactionDescDialog()
{
    delete ui;
}
{'fraction_non_alphanumeric': 0.1427316644707949, 'fraction_numerical': 0.000878348704435661, 'mean_word_length': 7.405904059040591, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 33, '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': '6591490', 'n_tokens_mistral': 708, 'n_tokens_neox': 703, 'n_words': 129}