<commit_before>import QtQuick 2.5
import QtQuick.Controls 1.4

DefaultDialog {

    title: qsTr("Status for OpenPGP")
    property var device
    property var openPgpVersion
    property var pinRetries
    property var resetCodeRetries
    property var adminPinRetries

    Label {
        text: qsTr("OpenPGP")
        font.bold: true
    }
    Label {
        text: qsTr("Version: ") + (openPgpVersion ? openPgpVersion.join(
                                                        '.') : '')
    }
    Label {
        text: qsTr("PIN retries remaining: ") + pinRetries
    }
    Label {
        text: qsTr("Reset Code retries remaining: ") + resetCodeRetries
    }
    Label {
        text: qsTr("Admin PIN retries reamining: ") + adminPinRetries
    }

    function load() {
        device.openpgp_get_version(function (version) {<commit_msg>Revert "Don't assign string to int"<commit_after>import QtQuick 2.5
import QtQuick.Controls 1.4

DefaultDialog {

    title: qsTr("Status for OpenPGP")
    property var device
    property var openPgpVersion
    property int pinRetries
    property int resetCodeRetries
    property int adminPinRetries

    Label {
        text: qsTr("OpenPGP")
        font.bold: true
    }

    Label {
        text: qsTr("Version: ") + (openPgpVersion ? openPgpVersion.join('.') : '')
    }

    Label {
        text: qsTr("PIN retries remaining: ") + pinRetries
    }
    Label {
        text: qsTr("Reset Code retries remaining: ") + resetCodeRetries
    }
    Label {
        text: qsTr("Admin PIN retries reamining: ") + adminPinRetries
    }

    function load() {
        device.openpgp_get_version(function (version) {
{'fraction_non_alphanumeric': 0.09474954737477369, 'fraction_numerical': 0.004828002414001207, 'mean_word_length': 2.30938123752495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '348395', 'n_tokens_mistral': 514, 'n_tokens_neox': 500, 'n_words': 125}