http://duplo.sourceforge.net/#download Downloaded from https://sourceforge.net/projects/duplo/ with version 0.2.0 /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(32) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(337) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(237) done(TRUE); break; default: break; /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(87) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(367) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(58) bool isUnity() { QString desktop = getenv("XDG_CURRENT_DESKTOP"); return (desktop.toLower() == "unity" || desktop.toLower() == "kde" || desktop.toLower() == "lxde" || desktop.toLower() == "xfce"); /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(378) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(68) #ifdef HAVE_LIBAPPINDICATOR if (isUnity()) { if (!notify_init("example")) return; NotifyNotification *notf; notf = notify_notification_new(title.toUtf8().data(), msg.toUtf8().data(), NULL); notify_notification_show(notf, NULL); notify_uninit(); } else #endif if (TRUE == trayIcon->supportsMessages()) { /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(3868) /home/sz/work/nitrokey-app/src/ui/hotpdialog.cpp(50) uint8_t result[18]; memset(result, 0, 18); uint32_t code; uint8_t config; /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(3945) /home/sz/work/nitrokey-app/src/ui/hotpdialog.cpp(72) code = result[0] + (result[1] << 8) + (result[2] << 16) + (result[3] << 24); config = result[4]; if (config & (1 << 0)) { code = code % 100000000; output.append(QString("%1").arg(QString::number(code), 8, '0')); } else { code = code % 1000000; output.append(QString("%1").arg(QString::number(code), 6, '0')); /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2444) /home/sz/work/nitrokey-app/src/ui/stick20setup.cpp(130) DialogChangePassword dialog(this); dialog.setModal(TRUE); dialog.cryptostick = cryptostick; dialog.PasswordKind = STICK20_PASSWORD_KIND_USER; dialog.InitData(); dialog.exec(); /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2457) /home/sz/work/nitrokey-app/src/ui/stick20setup.cpp(82) DialogChangePassword dialog(this); dialog.setModal(TRUE); dialog.cryptostick = cryptostick; dialog.PasswordKind = STICK20_PASSWORD_KIND_ADMIN; dialog.InitData(); dialog.exec(); /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2636) /home/sz/work/nitrokey-app/src/ui/stick20setup.cpp(105) MatrixPasswordDialog dialog(this); csApplet->warningBox(tr("The selected lines must be greater then greatest password length")); dialog.setModal(TRUE); dialog.cryptostick = cryptostick; dialog.SetupInterfaceFlag = TRUE; dialog.InitSecurePasswordDialog(); dialog.exec(); /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(87) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/stick20infodialog.cpp(57) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(114) OutputText.append(QString("Firmware version ")); OutputText.append( QString("%1").arg(QString::number(HID_Stick20Configuration_st.VersionInfo_au8[0]))); OutputText.append(QString(".")); OutputText.append( QString("%1").arg(QString::number(HID_Stick20Configuration_st.VersionInfo_au8[1]))); OutputText.append(QString("\n")); if (TRUE == HID_Stick20Configuration_st.FirmwareLocked_u8) { OutputText.append(QString("*** Firmware is locked *** ")).append("\n"); if (READ_WRITE_ACTIVE == HID_Stick20Configuration_st.ReadWriteFlagUncryptedVolume_u8) { /home/sz/work/nitrokey-app/src/ui/stick20infodialog.cpp(92) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(160) OutputText .append(QString("%1").arg( QString::number(HID_Stick20Configuration_st.SDFillWithRandomChars_u8 >> 1))) .append("\n"); /home/sz/work/nitrokey-app/src/ui/stick20infodialog.cpp(92) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(166) OutputText .append(QString("%1").arg( QString::number(HID_Stick20Configuration_st.SDFillWithRandomChars_u8 >> 1))) .append("\n"); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(280) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2812) 0, false); if (answer) { ret = cryptostick->stick20FillSDCardWithRandomChars( password, STICK20_FILL_SD_CARD_WITH_RANDOM_CHARS_ENCRYPTED_VOL); if (TRUE == ret) { waitForAnswerFromStick20 = TRUE; /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(256) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2800) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_GENERATE_NEW_KEYS: ret = cryptostick->stick20CreateNewKeys(password); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(295) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2829) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_ENABLE_READWRITE_UNCRYPTED_LUN: ret = cryptostick->stick20SendSetReadwriteToUncryptedVolume(password); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(301) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2834) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_SEND_PASSWORD_MATRIX: ret = cryptostick->stick20GetPasswordMatrix(); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(307) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2839) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_SEND_PASSWORD_MATRIX_PINDATA: ret = cryptostick->stick20SendPasswordMatrixPinData(password); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(313) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2844) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_GET_DEVICE_STATUS: ret = cryptostick->stick20GetStatusData(); if (TRUE == ret) { waitForAnswerFromStick20 = TRUE; /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(221) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2775) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_DISABLE_CRYPTED_PARI: ret = cryptostick->stick20DisableCryptedPartition(); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(227) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2780) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_ENABLE_HIDDEN_CRYPTED_PARI: ret = cryptostick->stick20EnableHiddenCryptedPartition(password); /home/sz/work/nitrokey-app/src/ui/stick20dialog.cpp(233) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(2785) waitForAnswerFromStick20 = TRUE; break; case STICK20_CMD_DISABLE_HIDDEN_CRYPTED_PARI: ret = cryptostick->stick20DisableHiddenCryptedPartition(); /home/sz/work/nitrokey-app/src/ui/pindialog.cpp(24) /home/sz/work/nitrokey-app/src/ui/passworddialog.cpp(24) #include "ui_passworddialog.h" #include "nitrokey-applet.h" #include "stick20matrixpassworddialog.h" #define LOCAL_PASSWORD_SIZE 40 /home/sz/work/nitrokey-app/src/ui/pindialog.cpp(135) /home/sz/work/nitrokey-app/src/ui/passworddialog.cpp(218) } else { if (NULL != cryptostick) { MatrixPasswordDialog dialog(this); dialog.setModal(TRUE); dialog.cryptostick = cryptostick; dialog.PasswordLen = 19; dialog.SetupInterfaceFlag = false; dialog.InitSecurePasswordDialog(); if (false == dialog.exec()) { done(FALSE); return; /home/sz/work/nitrokey-app/src/ui/pindialog.cpp(81) /home/sz/work/nitrokey-app/src/ui/passworddialog.cpp(148) if (checked) ui->lineEdit->setEchoMode(QLineEdit::Normal); else ui->lineEdit->setEchoMode(QLineEdit::Password); /home/sz/work/nitrokey-app/src/ui/pindialog.cpp(89) /home/sz/work/nitrokey-app/src/ui/passworddialog.cpp(169) if (checked) { ui->lineEdit->setDisabled(TRUE); } else { ui->lineEdit->setDisabled(FALSE); /home/sz/work/nitrokey-app/src/ui/stick20debugdialog.cpp(45) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/stick20debugdialog.cpp(45) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/stick20debugdialog.cpp(45) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(87) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/passwordsafedialog.cpp(31) /home/sz/work/nitrokey-app/src/ui/stick20-response-task.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/passwordsafedialog.cpp(31) /home/sz/work/nitrokey-app/src/ui/stick20responsedialog.cpp(32) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/passwordsafedialog.cpp(31) /home/sz/work/nitrokey-app/src/ui/mainwindow.cpp(87) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } /home/sz/work/nitrokey-app/src/ui/passwordsafedialog.cpp(31) /home/sz/work/nitrokey-app/src/ui/stick20debugdialog.cpp(45) class OwnSleep : public QThread { public: static void usleep(unsigned long usecs) { QThread::usleep(usecs); } static void msleep(unsigned long msecs) { QThread::msleep(msecs); } static void sleep(unsigned long secs) { QThread::sleep(secs); } Configuration: Number of files: 33 Minimal block size: 4 Minimal characters in line: 3 Ignore preprocessor directives: 0 Ignore same filenames: 0 Results: Lines of code: 14223 Duplicate lines of code: 181 Total 34 duplicate block(s) found. Time: 0.577979 seconds