awslabs / amazon-kinesis-video-streams-producer-sdk-cpp
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 19% duplication:
    • 7,634 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,526 duplicated lines
  • 442 duplicates
system19% (1,526 lines)
Duplication per Extension
cpp23% (1,425 lines)
h5% (89 lines)
cmake7% (12 lines)
Duplication per Component (primary)
tst52% (725 lines)
src/JNI/com20% (519 lines)
src13% (239 lines)
tst/gstreamer11% (22 lines)
CMake7% (12 lines)
src/gstreamer<1% (9 lines)
src/gstreamer/Util0% (0 lines)
src/common0% (0 lines)
src/JNI/include0% (0 lines)
src/credential-providers0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 442 duplicates...
Size#FoldersFilesLinesCode
36 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
430:482 (7%)
497:549 (7%)
view
35 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
300:349 (6%)
365:414 (6%)
view
30 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
742:772 (5%)
777:807 (5%)
view
29 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
708:737 (5%)
743:772 (5%)
view
29 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
708:737 (5%)
778:807 (5%)
view
27 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
107:138 (6%)
235:266 (6%)
view
27 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
49:80 (6%)
107:138 (6%)
view
27 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
49:80 (6%)
235:266 (6%)
view
25 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
519:551 (5%)
606:638 (5%)
view
25 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
238:266 (5%)
296:324 (5%)
view
25 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
778:802 (4%)
812:836 (4%)
view
25 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
708:732 (4%)
812:836 (4%)
view
25 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
743:767 (4%)
812:836 (4%)
view
25 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
52:80 (5%)
296:324 (5%)
view
25 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
110:138 (5%)
296:324 (5%)
view
24 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
253:284 (4%)
383:414 (4%)
view
24 x 2 tst
tst
ProducerFunctionalityTest.cpp
ProducerFunctionalityTest.cpp
375:405 (5%)
459:489 (5%)
view
24 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
253:284 (4%)
318:349 (4%)
view
23 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
381:411 (4%)
446:476 (4%)
view
23 x 2 tst
tst
ProducerApiTest.cpp
ProducerApiTest.cpp
381:411 (4%)
513:543 (4%)
view