freertos / FreeRTOS-Cellular-Interface
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
  • 33% duplication:
    • 11,321 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,746 duplicated lines
  • 712 duplicates
system33% (3,746 lines)
Duplication per Extension
c36% (3,695 lines)
h5% (51 lines)
Duplication per Component (primary)
modules/bg9649% (1,090 lines)
modules/hl780251% (1,002 lines)
modules/sara_r445% (953 lines)
source16% (674 lines)
source/include/common7% (20 lines)
source/include1% (7 lines)
tools/cmock0% (0 lines)
tools0% (0 lines)
source/interface0% (0 lines)
source/include/private0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G modules/hl7802 modules/hl7802 modules/sara_r4 modules/sara_r4 modules/hl7802--modules/sara_r4 1392 source source modules/hl7802--source 204 modules/sara_r4--source 80 modules/bg96 modules/bg96 modules/bg96--modules/hl7802 1225 modules/bg96--modules/sara_r4 1096 modules/bg96--source 594

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 712 duplicates...
Size#FoldersFilesLinesCode
88 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802_wrapper.c
cellular_r4_wrapper.c
44:266 (100%)
44:265 (96%)
view
73 x 2 modules/bg96
modules/hl7802
cellular_bg96_wrapper.c
cellular_hl7802_wrapper.c
44:215 (82%)
44:215 (82%)
view
73 x 2 modules/bg96
modules/sara_r4
cellular_bg96_wrapper.c
cellular_r4_wrapper.c
44:215 (82%)
44:215 (80%)
view
41 x 2 modules/bg96
source
cellular_bg96_api.c
cellular_3gpp_api.c
798:879 (2%)
2158:2237 (2%)
view
40 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1101:1172 (2%)
2112:2184 (2%)
view
32 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802_api.c
cellular_r4_api.c
1758:1822 (2%)
1106:1170 (2%)
view
28 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802_api.c
cellular_r4_api.c
546:588 (2%)
360:402 (1%)
view
25 x 2 modules/bg96
modules/sara_r4
cellular_bg96.c
cellular_r4.c
280:323 (18%)
420:463 (9%)
view
24 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802.c
cellular_r4.c
502:553 (8%)
508:559 (9%)
view
23 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1052:1094 (1%)
2055:2097 (1%)
view
23 x 2 modules/hl7802
source
cellular_hl7802_api.c
cellular_3gpp_api.c
791:836 (1%)
1227:1272 (1%)
view
22 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802_api.c
cellular_r4_api.c
1394:1446 (1%)
682:732 (1%)
view
21 x 2 modules/bg96
source
cellular_bg96_api.c
cellular_3gpp_api.c
465:510 (1%)
2506:2549 (1%)
view
21 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1906:1932 (1%)
2369:2395 (1%)
view
20 x 2 modules/hl7802
modules/sara_r4
cellular_hl7802.c
cellular_r4.c
246:296 (7%)
103:153 (7%)
view
20 x 2 modules/bg96
source
cellular_bg96_api.c
cellular_3gpp_api.c
629:663 (1%)
2365:2397 (1%)
view
19 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
932:966 (1%)
1924:1958 (1%)
view
18 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1795:1820 (1%)
563:588 (1%)
view
18 x 2 modules/bg96
modules/sara_r4
cellular_bg96_api.c
cellular_r4_api.c
1795:1820 (1%)
377:402 (1%)
view
18 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1222:1253 (1%)
392:423 (1%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 23 unit duplicates...
Size#FoldersFilesLinesCode
63 x 2 source
modules/bg96
cellular_3gpp_api.c
cellular_bg96_api.c
2158:2223 
798:863 
view
52 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
1115:1173 
2127:2185 
view
51 x 2 modules/sara_r4
modules/hl7802
cellular_r4_api.c
cellular_hl7802_api.c
409:466 
595:652 
view
50 x 2 modules/sara_r4
modules/hl7802
cellular_r4_api.c
cellular_hl7802_api.c
1113:1171 
1765:1823 
view
42 x 2 modules/sara_r4
modules/hl7802
cellular_r4_api.c
cellular_hl7802_api.c
218:268 
392:442 
view
39 x 2 modules/sara_r4
modules/hl7802
cellular_r4_api.c
cellular_hl7802_api.c
360:403 
546:589 
view
39 x 2 modules/sara_r4
modules/hl7802
cellular_r4.c
cellular_hl7802.c
516:560 
510:554 
view
23 x 2 modules/bg96
modules/sara_r4
cellular_bg96.c
cellular_r4.c
77:103 
78:104 
view
23 x 2 modules/sara_r4
modules/hl7802
cellular_r4.c
cellular_hl7802.c
110:138 
253:281 
view
20 x 2 modules/bg96
modules/sara_r4
cellular_bg96_api.c
cellular_r4_api.c
3017:3041 
2206:2230 
view
19 x 2 source
source
cellular_3gpp_api.c
cellular_3gpp_api.c
1661:1685 
1689:1713 
view
19 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
932:953 
1924:1945 
view
17 x 2 modules/bg96
modules/hl7802
cellular_bg96_api.c
cellular_hl7802_api.c
3141:3159 
2664:2682 
view
13 x 2 modules/bg96
modules/sara_r4
cellular_bg96_urc_handler.c
cellular_r4_urc_handler.c
731:746 
612:627 
view
10 x 3 modules/bg96
modules/sara_r4
modules/hl7802
cellular_bg96_wrapper.c
cellular_r4_wrapper.c
cellular_hl7802_wrapper.c
97:107 
97:107 
97:107 
view
9 x 3 modules/bg96
modules/sara_r4
modules/hl7802
cellular_bg96_wrapper.c
cellular_r4_wrapper.c
cellular_hl7802_wrapper.c
113:122 
113:122 
113:122 
view
9 x 3 modules/bg96
modules/sara_r4
modules/hl7802
cellular_bg96_wrapper.c
cellular_r4_wrapper.c
cellular_hl7802_wrapper.c
128:137 
128:137 
128:137 
view
8 x 2 modules/sara_r4
modules/hl7802
cellular_r4_api.c
cellular_hl7802_api.c
2138:2147 
1218:1228 
view
8 x 2 modules/sara_r4
modules/hl7802
cellular_r4.c
cellular_hl7802.c
144:154 
287:297 
view
7 x 3 modules/bg96
modules/sara_r4
modules/hl7802
cellular_bg96_wrapper.c
cellular_r4_wrapper.c
cellular_hl7802_wrapper.c
143:150 
143:150 
143:150 
view