awslabs / aws-c-compression
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
  • 14% duplication:
    • 722 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 103 duplicated lines
  • 13 duplicates
system14% (103 lines)
Duplication per Extension
yml39% (55 lines)
c8% (42 lines)
h7% (6 lines)
Duplication per Component (primary)
codebuild39% (55 lines)
source14% (42 lines)
include/aws/compression/private22% (6 lines)
cmake0% (0 lines)
source/huffman_generator0% (0 lines)
include/aws/compression0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
10 x 2 source
source
huffman_testing.c
huffman_testing.c
20:31 (9%)
81:92 (9%)
view
8 x 2 source
source
huffman_testing.c
huffman_testing.c
61:72 (7%)
161:172 (7%)
view
7 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-6x-x64.yml
12:18 (41%)
12:18 (41%)
view
7 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-7x-x64.yml
12:18 (41%)
12:18 (41%)
view
7 x 2 codebuild
codebuild
linux-gcc-6x-x64.yml
linux-gcc-7x-x64.yml
12:18 (41%)
12:18 (41%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-5x-x64.yml
11:17 (43%)
12:18 (41%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-6x-x64.yml
11:17 (43%)
12:18 (41%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-7x-x64.yml
11:17 (43%)
12:18 (41%)
view
6 x 2 include/aws/compression/private
source
huffman_testing.h
huffman_testing.c
91:96 (22%)
75:80 (5%)
view
6 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-7x-x64.yml
1:7 (35%)
1:7 (35%)
view
6 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-4x-x86.yml
8:13 (37%)
8:13 (37%)
view
6 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-6x-x64.yml
1:7 (35%)
1:7 (35%)
view
6 x 2 codebuild
codebuild
linux-gcc-6x-x64.yml
linux-gcc-7x-x64.yml
1:7 (35%)
1:7 (35%)
view