aws-samples / ipc-h264-hls-c-sdk
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
  • 4% duplication:
    • 1,517 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 6 duplicates
system4% (62 lines)
Duplication per Extension
c4% (62 lines)
Duplication per Component (primary)
ROOT4% (62 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 ROOT
ROOT
S3_HLS_Pes.c
S3_HLS_Pes.c
292:306 (3%)
423:437 (3%)
view
7 x 2 ROOT
ROOT
S3_HLS_Pes.c
S3_HLS_Pes.c
331:344 (2%)
457:468 (2%)
view
7 x 2 ROOT
ROOT
S3_HLS_Pes.c
S3_HLS_Pes.c
271:280 (2%)
402:411 (2%)
view
6 x 2 ROOT
ROOT
S3_HLS_Return_Code.c
S3_HLS_Return_Code.c
4:9 (25%)
10:15 (25%)
view
6 x 2 ROOT
ROOT
S3_HLS_Return_Code.c
S3_HLS_Return_Code.c
10:15 (25%)
16:21 (25%)
view
6 x 2 ROOT
ROOT
S3_HLS_Return_Code.c
S3_HLS_Return_Code.c
4:9 (25%)
16:21 (25%)
view