id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
17,974
audio_sink.h
anbox_anbox/src/anbox/platform/sdl/audio_sink.h
/* * Copyright (C) 2017 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,453
C++
.h
42
32.380952
81
0.748396
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,976
mir_display_connection.h
anbox_anbox/src/anbox/platform/sdl/mir_display_connection.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,359
C++
.h
40
31.725
76
0.773282
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,978
fd_socket_transmission.h
anbox_anbox/src/anbox/network/fd_socket_transmission.h
/* * Copyright © 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOU...
1,462
C++
.h
39
35.25641
75
0.754064
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,979
tcp_socket_connector.h
anbox_anbox/src/anbox/network/tcp_socket_connector.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,775
C++
.h
46
35.73913
79
0.746078
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,980
connection_context.h
anbox_anbox/src/anbox/network/connection_context.h
/* * Copyright © 2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY W...
1,351
C++
.h
37
33.810811
76
0.750574
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,983
stream_socket_transport.h
anbox_anbox/src/anbox/network/stream_socket_transport.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,887
C++
.h
50
34.3
76
0.729863
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,984
tcp_socket_messenger.h
anbox_anbox/src/anbox/network/tcp_socket_messenger.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,342
C++
.h
35
35.628571
78
0.751729
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,989
delegate_message_processor.h
anbox_anbox/src/anbox/network/delegate_message_processor.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,244
C++
.h
32
36.71875
76
0.766169
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,991
credentials.h
anbox_anbox/src/anbox/network/credentials.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,034
C++
.h
34
28.264706
76
0.740443
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,992
message_processor.h
anbox_anbox/src/anbox/network/message_processor.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,154
C++
.h
31
35.419355
80
0.764286
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,994
socket_messenger.h
anbox_anbox/src/anbox/network/socket_messenger.h
/* * Copyright © 2013-2014 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT A...
1,195
C++
.h
33
34.333333
72
0.765976
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,995
connector.h
anbox_anbox/src/anbox/network/connector.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
810
C++
.h
24
32
76
0.766582
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,996
published_socket_connector.h
anbox_anbox/src/anbox/network/published_socket_connector.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, bu...
1,829
C++
.h
45
37.8
81
0.758446
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,103
itemfakevim.cpp
hluk_CopyQ/plugins/itemfakevim/itemfakevim.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemfakevim.h" #include "ui_itemfakevimsettings.h" #include "tests/itemfakevimtests.h" #include "common/contenttype.h" #include "fakevim/fakevimhandler.h" using namespace FakeVim::Internal; #include <QIcon> #include <QLabel> #include <QDialogButtonBox> #includ...
26,921
C++
.cpp
715
29.039161
116
0.620531
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,104
fakevimactions.cpp
hluk_CopyQ/plugins/itemfakevim/fakevim/fakevimactions.cpp
// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include "fakevimactions.h" #include "fakevimhandler.h" // Please do not add any direct dependencies to other Qt Creator code here. // Instead emit signals and let the FakeV...
7,241
C++
.cpp
163
39.319018
103
0.655931
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,106
itemfakevimtests.cpp
hluk_CopyQ/plugins/itemfakevim/tests/itemfakevimtests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemfakevimtests.h" #include "tests/test_utils.h" #include <QDir> #ifdef Q_OS_DARWIN #define FAKEVIM_CTRL "META" #else #define FAKEVIM_CTRL "CTRL" #endif ItemFakeVimTests::ItemFakeVimTests(const TestInterfacePtr &test, QObject *parent) : QObject(parent) ...
3,694
C++
.cpp
105
31.2
108
0.490449
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,107
itemsync.cpp
hluk_CopyQ/plugins/itemsync/itemsync.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemsync.h" #include "ui_itemsyncsettings.h" #include "filewatcher.h" #include "common/appconfig.h" #include "common/compatibility.h" #include "common/contenttype.h" #include "common/log.h" #include "common/mimetypes.h" #include "common/regexp.h" #include "gui/i...
24,119
C++
.cpp
655
30.868702
129
0.667209
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,108
filewatcher.cpp
hluk_CopyQ/plugins/itemsync/filewatcher.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "filewatcher.h" #include "common/contenttype.h" #include "common/log.h" #include "item/serialize.h" #include <QAbstractItemModel> #include <QCryptographicHash> #include <QDataStream> #include <QDateTime> #include <QDir> #include <QElapsedTimer> #include <QMimeDat...
37,444
C++
.cpp
970
30.813402
117
0.629747
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,109
itemsynctests.cpp
hluk_CopyQ/plugins/itemsync/tests/itemsynctests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemsynctests.h" #include "common/commandstatus.h" #include "common/mimetypes.h" #include "common/sleeptimer.h" #include "tests/test_utils.h" #include <QDir> #include <QFile> #include <memory> namespace { using FilePtr = std::shared_ptr<QFile>; const char se...
24,272
C++
.cpp
648
31.686728
106
0.554556
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,110
itemtags.cpp
hluk_CopyQ/plugins/itemtags/itemtags.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemtags.h" #include "ui_itemtagssettings.h" #include "common/command.h" #include "common/compatibility.h" #include "common/contenttype.h" #include "common/regexp.h" #include "common/textdata.h" #include "gui/iconfont.h" #include "gui/iconselectbutton.h" #include...
26,003
C++
.cpp
761
28.256242
116
0.657267
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,111
itemtagstests.cpp
hluk_CopyQ/plugins/itemtags/tests/itemtagstests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemtagstests.h" #include "tests/test_utils.h" namespace { QString testTag(int i) { return "TAG_&" + QString::number(i); } } // namespace ItemTagsTests::ItemTagsTests(const TestInterfacePtr &test, QObject *parent) : QObject(parent) , m_test(test) ...
9,478
C++
.cpp
220
37.977273
75
0.512629
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,112
itemencrypted.cpp
hluk_CopyQ/plugins/itemencrypted/itemencrypted.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemencrypted.h" #include "ui_itemencryptedsettings.h" #include "common/command.h" #include "common/config.h" #include "common/contenttype.h" #include "common/log.h" #include "common/mimetypes.h" #include "common/shortcuts.h" #include "common/processsignals.h" #i...
31,710
C++
.cpp
859
30.463329
134
0.652734
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,113
itemencryptedtests.cpp
hluk_CopyQ/plugins/itemencrypted/tests/itemencryptedtests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemencryptedtests.h" #include "tests/test_utils.h" ItemEncryptedTests::ItemEncryptedTests(const TestInterfacePtr &test, QObject *parent) : QObject(parent) , m_test(test) { } void ItemEncryptedTests::initTestCase() { SKIP_ON_ENV("COPYQ_TESTS_SKIP_IT...
2,982
C++
.cpp
78
34.423077
149
0.628254
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,114
itempinned.cpp
hluk_CopyQ/plugins/itempinned/itempinned.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itempinned.h" #include "common/command.h" #include "common/contenttype.h" #include "common/display.h" #ifdef HAS_TESTS # include "tests/itempinnedtests.h" #endif #include <QApplication> #include <QBoxLayout> #include <QMessageBox> #include <QModelIndex> #incl...
9,972
C++
.cpp
298
28.090604
115
0.66736
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,115
itempinnedtests.cpp
hluk_CopyQ/plugins/itempinned/tests/itempinnedtests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itempinnedtests.h" #include "tests/test_utils.h" #include "common/commandstatus.h" ItemPinnedTests::ItemPinnedTests(const TestInterfacePtr &test, QObject *parent) : QObject(parent) , m_test(test) { } void ItemPinnedTests::initTestCase() { TEST(m_te...
4,767
C++
.cpp
121
35.586777
79
0.554786
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,116
itemtext.cpp
hluk_CopyQ/plugins/itemtext/itemtext.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemtext.h" #include "ui_itemtextsettings.h" #include "common/mimetypes.h" #include "common/sanitize_text_document.h" #include "common/textdata.h" #include <QAbstractTextDocumentLayout> #include <QCoreApplication> #include <QContextMenuEvent> #include <QCursor> ...
9,291
C++
.cpp
247
31.975709
124
0.702035
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,117
itemimage.cpp
hluk_CopyQ/plugins/itemimage/itemimage.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemimage.h" #include "ui_itemimagesettings.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "item/itemeditor.h" #include "gui/pixelratio.h" #ifdef HAS_TESTS # include "tests/itemimagetests.h" #endif #include <QBuffer> #include <QHBox...
7,428
C++
.cpp
232
27.168103
115
0.682422
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,118
itemimagetests.cpp
hluk_CopyQ/plugins/itemimage/tests/itemimagetests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemimagetests.h" #include "tests/test_utils.h" #include <QBuffer> #include <QImageReader> #include <QImageWriter> #include <QImage> ItemImageTests::ItemImageTests(const TestInterfacePtr &test, QObject *parent) : QObject(parent) , m_test(test) { } void...
3,416
C++
.cpp
91
33.846154
276
0.724879
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,119
itemnotes.cpp
hluk_CopyQ/plugins/itemnotes/itemnotes.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemnotes.h" #include "ui_itemnotessettings.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "common/textdata.h" #include "gui/iconfont.h" #include "gui/iconwidget.h" #include "gui/pixelratio.h" #include "item/itemfilter.h" #include <QBo...
7,676
C++
.cpp
214
30.462617
96
0.688006
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,122
qxtglobalshortcut_x11.cpp
hluk_CopyQ/qxt/qxtglobalshortcut_x11.cpp
#include "qxtglobalshortcut_p.h" /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with ...
8,813
C++
.cpp
247
29.34413
94
0.632363
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
18,124
main.cpp
hluk_CopyQ/src/main.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "app/app.h" #include "app/applicationexceptionhandler.h" #include "app/clipboardclient.h" #include "app/clipboardserver.h" #include "common/commandstatus.h" #include "common/log.h" #include "common/messagehandlerforqt.h" #include "common/textdata.h" #include "platf...
8,604
C++
.cpp
233
31.021459
113
0.665104
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,125
tests_commands.cpp
hluk_CopyQ/src/tests/tests_commands.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/sleeptimer.h" void Tests::shortcutCommand() { RUN("setCommands([{name: 'test', inMenu: true, shortcuts: ['Ctrl+F1'], cmd: 'copyq add OK'}])", ""); RUN("keys" << "CTRL+F1", ""); ...
13,589
C++
.cpp
377
29.657825
113
0.528902
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,126
tests_cli.cpp
hluk_CopyQ/src/tests/tests_cli.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/commandstatus.h" #include "common/log.h" #include "common/version.h" #include <QRegularExpression> void Tests::readLog() { QByteArray stdoutActual; QByteArray stderrActual; ...
3,744
C++
.cpp
94
34.276596
113
0.65051
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,127
tests_classes.cpp
hluk_CopyQ/src/tests/tests_classes.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/appconfig.h" void Tests::classByteArray() { RUN("ByteArray", ""); RUN("ByteArray('test')", "test"); RUN("ByteArray(ByteArray('test'))", "test"); RUN("typeof(ByteArray('te...
20,520
C++
.cpp
369
49.533875
153
0.560112
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,128
tests.cpp
hluk_CopyQ/src/tests/tests.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "tests.h" #include "test_utils.h" #include "tests_common.h" #include "common/action.h" #include "common/appconfig.h" #include "common/client_server.h" #include "common/common.h" #include "common/config.h" #include "common/log.h" #include "common/settings.h" #inclu...
22,596
C++
.cpp
574
30.097561
119
0.605445
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,129
tests_script_commands.cpp
hluk_CopyQ/src/tests/tests_script_commands.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "common/commandstatus.h" #include "common/mimetypes.h" #include "common/sleeptimer.h" void Tests::scriptCommandLoaded() { const auto script = R"( setCommands([{ isScript: true, cmd: 'a...
11,199
C++
.cpp
363
21.421488
105
0.455707
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,130
tests_common.cpp
hluk_CopyQ/src/tests/tests_common.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests/tests_common.h" #include <QRegularExpression> #include <QTemporaryFile> TemporaryFile::TemporaryFile() { QTemporaryFile tmp; tmp.setAutoRemove(false); QVERIFY(tmp.open()); m_fileName = tmp.fileName(); tmp.close()...
5,697
C++
.cpp
124
39.298387
168
0.673223
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,131
tests_dialogs.cpp
hluk_CopyQ/src/tests/tests_dialogs.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/mimetypes.h" void Tests::createTabDialog() { const auto tab1 = testTab(1); RUN("keys" << clipboardBrowserId << "CTRL+T" << tabDialogLineEditId << ":" + tab1 << "E...
9,873
C++
.cpp
230
38.082609
109
0.617141
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,132
tests_other.cpp
hluk_CopyQ/src/tests/tests_other.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/commandstatus.h" #include "common/mimetypes.h" #include "common/sleeptimer.h" #include "platform/platformnativeinterface.h" namespace { bool waitWhileFileExists(const QFile &file) { ...
30,301
C++
.cpp
786
33.001272
117
0.58116
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,133
tests_slow_clipboard.cpp
hluk_CopyQ/src/tests/tests_slow_clipboard.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/log.h" #include "common/sleeptimer.h" #include "platform/platformclipboard.h" #include "platform/platformnativeinterface.h" #include <QMimeData> namespace { class SlowMimeData final : ...
2,478
C++
.cpp
75
27.586667
116
0.614902
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,134
tests_items.cpp
hluk_CopyQ/src/tests/tests_items.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/mimetypes.h" #include "common/commandstatus.h" void Tests::configMaxitems() { RUN("config" << "maxitems" << "3", "3\n"); RUN("add" << "A" << "B" << "C", ""); RUN("add" << "D"...
9,348
C++
.cpp
233
35.665236
95
0.499558
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,135
tests_scripts.cpp
hluk_CopyQ/src/tests/tests_scripts.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/mimetypes.h" #include "common/commandstatus.h" #include <QRegularExpression> #include <QTemporaryFile> void Tests::commandExit() { RUN("exit", "Terminating server.\n"); TEST( m...
35,603
C++
.cpp
927
33.061489
165
0.555755
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,136
tests_tray.cpp
hluk_CopyQ/src/tests/tests_tray.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "test_utils.h" #include "tests.h" #include "tests_common.h" #include "common/sleeptimer.h" // WORKAROUND: Checking clipboard right after closing menu gets stuck on OS X. #define ACTIVATE_MENU_ITEM(MENU_ID, WIDGET_ID, CONTENT) \ RUN("keys" << MENU_ID << "ENTER...
4,746
C++
.cpp
129
32.286822
78
0.555386
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,137
itemdelegate.cpp
hluk_CopyQ/src/item/itemdelegate.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemdelegate.h" #include "common/client_server.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "common/sanitize_text_document.h" #include "common/textdata.h" #include "common/timer.h" #include "gui/clipboardbrowser.h" #include "gui/iconf...
18,368
C++
.cpp
496
30.425403
112
0.643356
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,138
itemfactory.cpp
hluk_CopyQ/src/item/itemfactory.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemfactory.h" #include "common/appconfig.h" #include "common/command.h" #include "common/common.h" #include "common/config.h" #include "common/contenttype.h" #include "common/log.h" #include "common/mimetypes.h" #include "common/textdata.h" #include "item/itemfi...
18,746
C++
.cpp
537
28.173184
117
0.644819
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,139
persistentdisplayitem.cpp
hluk_CopyQ/src/item/persistentdisplayitem.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "persistentdisplayitem.h" #include "common/mimetypes.h" #include "gui/traymenu.h" #include "item/itemdelegate.h" #include <QAction> namespace { bool dataEquals(const QVariantMap &lhs, const QVariantMap &rhs) { for (auto it = lhs.constBegin(); it != lhs.cons...
1,557
C++
.cpp
49
27.44898
86
0.676687
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,140
clipboarditem.cpp
hluk_CopyQ/src/item/clipboarditem.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "clipboarditem.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "common/textdata.h" #include "item/serialize.h" #include <QBrush> #include <QByteArray> #include <QString> #include <QStringList> #include <QVariant> namespace { void clear...
4,063
C++
.cpp
145
22.765517
81
0.641699
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,141
itemwidgetwrapper.cpp
hluk_CopyQ/src/item/itemwidgetwrapper.cpp
#include "itemwidgetwrapper.h" #include <QSize> ItemWidgetWrapper::ItemWidgetWrapper(ItemWidget *childItem, QWidget *widget) : ItemWidget(widget) , m_childItem(childItem) { } void ItemWidgetWrapper::updateSize(QSize maximumSize, int idealWidth) { childItem()->updateSize(maximumSize, idealWidth); } void ...
494
C++
.cpp
19
23.684211
76
0.787234
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,142
itemeditorwidget.cpp
hluk_CopyQ/src/item/itemeditorwidget.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "item/itemeditorwidget.h" #include "item/itemwidget.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "common/textdata.h" #include "gui/iconfactory.h" #include "gui/icons.h" #include <QAbstractItemModel> #include <QAction> #include <QColo...
9,373
C++
.cpp
265
30.573585
109
0.699392
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,143
serialize.cpp
hluk_CopyQ/src/item/serialize.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "serialize.h" #include "common/contenttype.h" #include "common/log.h" #include "common/mimetypes.h" #include <QAbstractItemModel> #include <QCoreApplication> #include <QByteArray> #include <QCryptographicHash> #include <QDataStream> #include <QDir> #include <QFil...
13,483
C++
.cpp
381
27.493438
110
0.599048
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,144
itemeditor.cpp
hluk_CopyQ/src/item/itemeditor.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemeditor.h" #include "common/action.h" #include "common/mimetypes.h" #include "common/log.h" #include "common/processsignals.h" #include "common/temporaryfile.h" #include <QDir> #include <QFile> #include <QHash> #include <QTemporaryFile> #include <QTimer> #in...
5,111
C++
.cpp
154
27.214286
90
0.619618
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,145
itemwidget.cpp
hluk_CopyQ/src/item/itemwidget.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemwidget.h" #include "common/command.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "item/itemeditor.h" #include <QAbstractItemModel> #include <QApplication> #include <QDesktopServices> #include <QEvent> #include <QMimeData> #include...
7,130
C++
.cpp
235
25.485106
109
0.69548
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,146
clipboardmodel.cpp
hluk_CopyQ/src/item/clipboardmodel.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "clipboardmodel.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include <QStringList> #include <algorithm> #include <functional> namespace { QList<QPersistentModelIndex> validIndeces(const QModelIndexList &indexList) { QList<QPersistentMo...
7,133
C++
.cpp
206
28.407767
99
0.643794
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,147
itemsaverwrapper.cpp
hluk_CopyQ/src/item/itemsaverwrapper.cpp
#include "itemsaverwrapper.h" #include <QVariantMap> ItemSaverWrapper::ItemSaverWrapper(const ItemSaverPtr &saver) : m_saver(saver) { } bool ItemSaverWrapper::saveItems(const QString &tabName, const QAbstractItemModel &model, QIODevice *file) { return m_saver->saveItems(tabName, model, file); } bool ItemSav...
1,070
C++
.cpp
34
29.264706
106
0.801363
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,148
itemstore.cpp
hluk_CopyQ/src/item/itemstore.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "itemstore.h" #include "common/config.h" #include "common/log.h" #include "common/textdata.h" #include "item/itemfactory.h" #include "item/serialize.h" #include <QAbstractItemModel> #include <QDir> #include <QFile> #include <QSaveFile> #include <QSet> namespace ...
6,510
C++
.cpp
179
29.703911
113
0.637057
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,149
log.cpp
hluk_CopyQ/src/common/log.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "log.h" #include <QCoreApplication> #include <QDateTime> #include <QDir> #include <QLockFile> #include <QFile> #include <QString> #include <QtGlobal> #include <QVariant> #include <QStandardPaths> namespace { QString &logFileNameVariable() { static QString l...
7,828
C++
.cpp
280
23.3
104
0.669071
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,150
temporaryfile.cpp
hluk_CopyQ/src/common/temporaryfile.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "temporaryfile.h" #include "common/log.h" #include <QDir> #include <QTemporaryFile> bool openTemporaryFile(QTemporaryFile *file, const QString &suffix) { const QString tmpFileName = "CopyQ.XXXXXX" + suffix; const QString tmpPath = QDir( QDir::tempPath() ...
856
C++
.cpp
23
31.434783
90
0.64891
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,151
command.cpp
hluk_CopyQ/src/common/command.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "command.h" #include <QDataStream> bool Command::operator==(const Command &other) const { return name == other.name && re == other.re && wndre == other.wndre && matchCmd == other.matchCmd && cmd == other.cmd && sep == o...
3,167
C++
.cpp
107
22.448598
65
0.58511
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,152
textdata.cpp
hluk_CopyQ/src/common/textdata.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "textdata.h" #include "common/mimetypes.h" #include <QLocale> #include <QString> #include <algorithm> #include <iterator> namespace { const QLatin1String mimePluginPrefix(COPYQ_MIME_PREFIX "item"); QString escapeHtmlSpaces(const QString &str) { return QSt...
3,313
C++
.cpp
108
26.175926
86
0.673701
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,153
config.cpp
hluk_CopyQ/src/common/config.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "config.h" #include "log.h" #include "gui/screen.h" #include <QApplication> #include <QByteArray> #include <QDir> #include <QScreen> #include <QSettings> #include <QString> #include <QVariant> #include <QWidget> #include <QWindow> #define GEOMETRY_LOG(window, me...
9,183
C++
.cpp
251
31.139442
97
0.689302
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,154
tabs.cpp
hluk_CopyQ/src/common/tabs.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "tabs.h" #include <QRegularExpression> #include <QSettings> constexpr auto settingsGroupTabs = "Tabs"; constexpr auto optionTabName = "name"; constexpr auto optionIconName = "icon"; constexpr auto optionMaxItemCount = "max_item_count"; constexpr auto optionStoreI...
2,608
C++
.cpp
75
29.2
130
0.67144
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,155
temporarysettings.cpp
hluk_CopyQ/src/common/temporarysettings.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "temporarysettings.h" #include "common/log.h" #include "common/temporaryfile.h" #include <QTemporaryFile> namespace { QString temporaryFileName(const QByteArray &content) { QTemporaryFile tmpfile; if ( !openTemporaryFile(&tmpfile, ".ini") ) { ...
1,236
C++
.cpp
45
23.666667
81
0.717077
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,156
appconfig.cpp
hluk_CopyQ/src/common/appconfig.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "appconfig.h" #include "platform/platformnativeinterface.h" #include <QObject> #include <QString> Config::Config<QString>::Value Config::editor::defaultValue() { return platformNativeInterface()->defaultEditorCommand(); } Config::Config<bool>::Value Config:...
995
C++
.cpp
31
29.258065
105
0.747644
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,157
common.cpp
hluk_CopyQ/src/common/common.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "common/common.h" #include "common/display.h" #include "common/log.h" #include "common/mimetypes.h" #include "common/textdata.h" #include <QApplication> #include <QBuffer> #include <QDropEvent> #include <QElapsedTimer> #include <QFont> #include <QFontMetrics> #in...
24,540
C++
.cpp
697
28.176471
118
0.62404
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,158
settings.cpp
hluk_CopyQ/src/common/settings.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "settings.h" #include <QCoreApplication> Settings::Settings() : QSettings( QSettings::defaultFormat(), QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName() ) { } Settings::Set...
395
C++
.cpp
15
21.866667
47
0.699468
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,159
option.cpp
hluk_CopyQ/src/common/option.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "option.h" #include <QObject> namespace { QString getToolTip(const QObject &object) { return object.property("toolTip").toString(); } QString toolTip(const QObject &object) { const QString toolTip = getToolTip(object); if ( toolTip.isEmpty() && obj...
1,829
C++
.cpp
69
22.086957
73
0.652897
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,160
display.cpp
hluk_CopyQ/src/common/display.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "display.h" #include "gui/screen.h" #include <QApplication> #include <QPoint> #include <QScreen> #include <QStyle> #include <QWidget> #include <QWindow> namespace { QScreen *screenForWidget(QWidget *w) { if (w) { #if QT_VERSION >= QT_VERSION_CHECK(5,14,0) ...
1,438
C++
.cpp
47
25.914894
104
0.655298
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,161
globalshortcutcommands.cpp
hluk_CopyQ/src/common/globalshortcutcommands.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "globalshortcutcommands.h" #include "common/command.h" #include <QCoreApplication> #include <QLocale> #include <QVector> #ifdef COPYQ_GLOBAL_SHORTCUTS # include "common/shortcuts.h" # include "gui/icons.h" namespace { constexpr auto commandScreenshot = R"(...
3,991
C++
.cpp
82
44.182927
173
0.719641
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,162
sanitize_text_document.cpp
hluk_CopyQ/src/common/sanitize_text_document.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "sanitize_text_document.h" #include <QTextBlock> #include <QTextCursor> #include <QTextDocument> #ifdef Q_OS_MAC # include <QFontDatabase> # include <algorithm> #endif namespace { constexpr int maxFontPointSize = 128; constexpr int maxFontPixelSize = maxFon...
2,240
C++
.cpp
63
27.984127
100
0.628413
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,163
predefinedcommands.cpp
hluk_CopyQ/src/common/predefinedcommands.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "predefinedcommands.h" #include "common/command.h" #include "common/globalshortcutcommands.h" #include "common/mimetypes.h" #include "common/shortcuts.h" #include "common/textdata.h" #include "gui/icons.h" #include "platform/platformnativeinterface.h" #include <Q...
5,723
C++
.cpp
156
31.762821
97
0.652103
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,164
server.cpp
hluk_CopyQ/src/common/server.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "server.h" #include "common/common.h" #include "common/config.h" #include "common/clientsocket.h" #include "common/client_server.h" #include "common/log.h" #include <QDir> #include <QEventLoop> #include <QLocalServer> #include <QLocalSocket> #include <QLockFile> ...
3,537
C++
.cpp
108
27.574074
101
0.661579
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,165
clientsocket.cpp
hluk_CopyQ/src/common/clientsocket.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "clientsocket.h" #include "common/client_server.h" #include "common/log.h" #include "common/sleeptimer.h" #include <QDataStream> #define SOCKET_LOG(text) \ COPYQ_LOG_VERBOSE( QString("Socket %1: %2").arg(m_socketId).arg(text) ) namespace { ClientSocketId l...
7,885
C++
.cpp
242
26.057851
119
0.637956
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,166
actionoutput.cpp
hluk_CopyQ/src/common/actionoutput.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "actionoutput.h" #include "common/action.h" #include "common/contenttype.h" #include "common/mimetypes.h" #include "common/textdata.h" #include "gui/clipboardbrowser.h" #include "gui/mainwindow.h" #include "item/serialize.h" #include <QObject> #include <QPersiste...
5,146
C++
.cpp
176
22.284091
92
0.634359
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,167
commandstore.cpp
hluk_CopyQ/src/common/commandstore.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "commandstore.h" #include "common/command.h" #include "common/common.h" #include "common/config.h" #include "common/mimetypes.h" #include "common/settings.h" #include "common/temporarysettings.h" #include "common/textdata.h" #include <QSettings> #include <QString...
10,030
C++
.cpp
236
35.639831
104
0.657638
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,168
mimetypes.cpp
hluk_CopyQ/src/common/mimetypes.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "mimetypes.h" #include <QLatin1String> const QLatin1String mimePrivatePrefix(COPYQ_MIME_PRIVATE_PREFIX); const QLatin1String mimeText("text/plain"); const QLatin1String mimeTextUtf8("text/plain;charset=utf-8"); const QLatin1String mimeHtml("text/html"); const QLa...
1,365
C++
.cpp
23
58.217391
84
0.831217
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,169
action.cpp
hluk_CopyQ/src/common/action.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "action.h" #include "common/log.h" #include "common/mimetypes.h" #include "common/processsignals.h" #include "common/timer.h" #include "item/serialize.h" #include <QCoreApplication> #include <QEventLoop> #include <QPointer> #include <QProcessEnvironment> #include...
12,501
C++
.cpp
377
26.251989
107
0.59376
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,170
client_server.cpp
hluk_CopyQ/src/common/client_server.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "common/client_server.h" #include "common/config.h" #include <QCoreApplication> #include <QDir> #include <QFile> #include <QString> #include <QStringList> #include <QtGlobal> QString clipboardServerName() { // applicationName changes case depending on whether...
993
C++
.cpp
26
35.307692
81
0.734927
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,171
actiontablemodel.cpp
hluk_CopyQ/src/common/actiontablemodel.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "actiontablemodel.h" #include "common/action.h" #include "common/actionhandlerenums.h" #include <QColor> #include <algorithm> namespace { constexpr auto dateTimeFormat = "yyyy-MM-dd HH:mm:ss.zzz"; QString actionStateToString(ActionState state) { switch (s...
8,457
C++
.cpp
238
28.344538
115
0.639452
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,172
messagehandlerforqt.cpp
hluk_CopyQ/src/common/messagehandlerforqt.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "messagehandlerforqt.h" #include "common/log.h" #include <QString> #include <QtGlobal> #include <exception> namespace { class ExceptionQtFatal final : public std::exception { public: explicit ExceptionQtFatal(const QByteArray &message) : m_message(...
1,688
C++
.cpp
53
26.622642
96
0.685151
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,173
shortcuts.cpp
hluk_CopyQ/src/common/shortcuts.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "shortcuts.h" #include <QKeySequence> #include <QObject> #include <QString> namespace { int indexOfKeyHint(const QString &name) { bool amp = false; int i = 0; for (const auto &c : name) { if (c == '&') amp = !amp; else if...
1,264
C++
.cpp
48
22.583333
76
0.677741
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,174
scriptablesettings.cpp
hluk_CopyQ/src/scriptable/scriptablesettings.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptablesettings.h" ScriptableSettings::ScriptableSettings() : QObject() , m_settings() { } ScriptableSettings::ScriptableSettings(const QString &fileName) : QObject() , m_settings(fileName, QSettings::IniFormat) { }
293
C++
.cpp
12
21.833333
63
0.751799
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,175
scriptabledir.cpp
hluk_CopyQ/src/scriptable/scriptabledir.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptabledir.h" #include <QJSEngine> ScriptableDir::ScriptableDir(const QString &path) : m_path(path) { } ScriptableDir::~ScriptableDir() { delete m_self; } QJSValue ScriptableDir::absoluteFilePath(const QJSValue &fileName) { return self()->absolu...
5,030
C++
.cpp
213
21.328638
90
0.750787
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,176
commandhelp.cpp
hluk_CopyQ/src/scriptable/commandhelp.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "commandhelp.h" #include "common/common.h" #include "scriptable/scriptable.h" constexpr int helpTextColumn = 23; CommandHelp::CommandHelp() : cmd() , desc() , args() { } CommandHelp::CommandHelp(const char *command, const QString &description) :...
9,018
C++
.cpp
180
34.377778
113
0.482782
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,177
scriptabletemporaryfile.cpp
hluk_CopyQ/src/scriptable/scriptabletemporaryfile.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptabletemporaryfile.h" #include <QTemporaryFile> Q_DECLARE_METATYPE(QTemporaryFile*) ScriptableTemporaryFile::ScriptableTemporaryFile(const QString &path) : ScriptableFile(path) { } bool ScriptableTemporaryFile::autoRemove() { return tmpFile()->aut...
895
C++
.cpp
36
22.222222
69
0.772406
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,178
scriptableitemselection.cpp
hluk_CopyQ/src/scriptable/scriptableitemselection.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptableitemselection.h" #include "scriptableproxy.h" #include "scriptable/scriptablebytearray.h" #include "scriptable/scriptvaluefactory.h" #include <QJSEngine> ScriptableItemSelection::ScriptableItemSelection(const QString &tabName) : m_tabName(tabName)...
5,849
C++
.cpp
178
28.97191
111
0.717758
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,179
scriptablefile.cpp
hluk_CopyQ/src/scriptable/scriptablefile.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptablefile.h" #include "scriptable/scriptablebytearray.h" #include <QDir> #include <QFile> #include <QJSEngine> #include <QJSValue> Q_DECLARE_METATYPE(QByteArray*) Q_DECLARE_METATYPE(QFile*) ScriptableFile::ScriptableFile(const QString &path) : m_path(...
2,926
C++
.cpp
144
17.916667
66
0.723032
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,180
scriptable.cpp
hluk_CopyQ/src/scriptable/scriptable.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptable.h" #include "app/clipboardmonitor.h" #include "common/action.h" #include "common/command.h" #include "common/commandstatus.h" #include "common/commandstore.h" #include "common/common.h" #include "common/log.h" #include "common/sleeptimer.h" #include "c...
102,244
C++
.cpp
3,152
26.516497
136
0.646916
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,181
scriptablebytearray.cpp
hluk_CopyQ/src/scriptable/scriptablebytearray.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptablebytearray.h" #include "common/textdata.h" #include <QJSEngine> #include <QJSValue> ScriptableByteArray::ScriptableByteArray(const QByteArray &bytes) : m_self(bytes) { } ScriptableByteArray::ScriptableByteArray(const QString &text) : m_self(te...
3,596
C++
.cpp
139
23.151079
82
0.738165
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,182
scriptableproxy.cpp
hluk_CopyQ/src/scriptable/scriptableproxy.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "scriptableproxy.h" #include "common/action.h" #include "common/appconfig.h" #include "common/command.h" #include "common/commandstatus.h" #include "common/commandstore.h" #include "common/common.h" #include "common/config.h" #include "common/contenttype.h" #inclu...
80,049
C++
.cpp
2,260
29.659292
132
0.673125
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,183
platformcommon.cpp
hluk_CopyQ/src/platform/platformcommon.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "platformcommon.h" #include "platformwindow.h" #include "common/log.h" #include "common/appconfig.h" #include <QEventLoop> #include <QRegularExpression> #include <QSettings> #include <QTimer> namespace { const QLatin1String optionName("paste_with_ctrl_v_windows...
1,457
C++
.cpp
44
28.181818
92
0.67
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,184
dummyclipboard.cpp
hluk_CopyQ/src/platform/dummy/dummyclipboard.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "dummyclipboard.h" #include "common/common.h" #include "common/log.h" #include "common/mimetypes.h" #include <QGuiApplication> #include <QMimeData> #include <QStringList> QClipboard::Mode modeToQClipboardMode(ClipboardMode mode) { switch (mode) { case Cl...
2,576
C++
.cpp
73
31.616438
101
0.748792
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
18,185
dummyplatform.cpp
hluk_CopyQ/src/platform/dummy/dummyplatform.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "dummyplatform.h" #include "dummyclipboard.h" #include "app/applicationexceptionhandler.h" #include <QApplication> #include <QCoreApplication> #include <QDir> #include <QStringList> PlatformNativeInterface *platformNativeInterface() { static DummyPlatform p...
1,933
C++
.cpp
61
29.213115
90
0.793959
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,186
unixsignalhandler.cpp
hluk_CopyQ/src/platform/unix/unixsignalhandler.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "unixsignalhandler.h" #include "common/log.h" #include <QCoreApplication> #include <QSocketNotifier> #include <csignal> #include <sys/socket.h> #include <unistd.h> namespace { namespace SignalAction { enum SignalAction { Write, Read, Count }; } int signalFd[S...
2,400
C++
.cpp
70
30.242857
96
0.709468
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
18,187
x11platform.cpp
hluk_CopyQ/src/platform/x11/x11platform.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "x11platform.h" #include "x11info.h" #include "app/applicationexceptionhandler.h" #include "common/log.h" #include "common/textdata.h" #include <QApplication> #include <QCoreApplication> #include <QDir> #include <QRegularExpression> #include <QStringList> #inclu...
8,689
C++
.cpp
260
29.134615
100
0.704708
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,188
x11platformwindow.cpp
hluk_CopyQ/src/platform/x11/x11platformwindow.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "x11platformwindow.h" #include "x11info.h" #include "common/appconfig.h" #include "common/log.h" #include "common/sleeptimer.h" #include "gui/clipboardspy.h" #include "platform/platformcommon.h" #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/keysym.h>...
8,852
C++
.cpp
267
27.734082
110
0.661425
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,189
x11platformclipboard.cpp
hluk_CopyQ/src/platform/x11/x11platformclipboard.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include <QApplication> #include "x11platformclipboard.h" #include "x11info.h" #include "common/common.h" #include "common/mimetypes.h" #include "common/log.h" #include "common/timer.h" #include "systemclipboard/waylandclipboard.h" #include <QDataStream> #ifdef COPYQ_...
11,399
C++
.cpp
281
34.064057
111
0.691612
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,190
x11info.cpp
hluk_CopyQ/src/platform/x11/x11info.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "x11info.h" #include <QGuiApplication> #ifdef COPYQ_WITH_X11 # if QT_VERSION < QT_VERSION_CHECK(6,0,0) # include <QX11Info> # else # include <QtGui/private/qtx11extras_p.h> # endif # include <X11/Xlib.h> #else struct _XDisplay {}; #endif bool...
539
C++
.cpp
25
19.88
68
0.715128
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,191
waylandclipboard.cpp
hluk_CopyQ/src/platform/x11/systemclipboard/waylandclipboard.cpp
/* SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org> SPDX-FileCopyrightText: 2021 Méven Car <meven.car@enioka.com> SPDX-License-Identifier: LGPL-2.0-or-later */ #include "waylandclipboard.h" #include <QBuffer> #include <QDebug> #include <QElapsedTimer> #include <QFile> #include <QGui...
20,810
C++
.cpp
589
28.13073
141
0.636246
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,192
winplatform.cpp
hluk_CopyQ/src/platform/win/winplatform.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "app/applicationexceptionhandler.h" #include "common/log.h" #include "common/settings.h" #include "platform/dummy/dummyclipboard.h" #include "winplatform.h" #include "winplatformclipboard.h" #include "winplatformwindow.h" #include <QApplication> #include <QCoreAp...
7,426
C++
.cpp
233
27.566524
95
0.713504
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
18,193
winplatformwindow.cpp
hluk_CopyQ/src/platform/win/winplatformwindow.cpp
// SPDX-License-Identifier: GPL-3.0-or-later #include "platform/platformcommon.h" #include "winplatformwindow.h" #include "common/appconfig.h" #include "common/log.h" #include "common/sleeptimer.h" #include <QApplication> #include <QElapsedTimer> #include <QString> #include <QVector> namespace { QString windowTitl...
5,464
C++
.cpp
173
26.132948
102
0.674543
hluk/CopyQ
8,577
439
420
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false