freertos / FreeRTOS-Community-Supported-Demos
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
  • 17% duplication:
    • 17,499 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,989 duplicated lines
  • 129 duplicates
system17% (2,989 lines)
Duplication per Extension
h21% (1,326 lines)
c9% (951 lines)
s97% (609 lines)
S16% (88 lines)
ld9% (15 lines)
Duplication per Component (primary)
CORTEX_M0_FT32F072_KEIL/Source25% (2,112 lines)
shakti/bsp8% (238 lines)
shakti/parashu98% (202 lines)
shakti/vajra98% (202 lines)
RISC-V_RV32_THEAD_SMART_CDS/csi_driver3% (106 lines)
RISC-V_RV32_THEAD_SMART_CDS/projects88% (56 lines)
RISC-V_RV32_THEAD_SMART_CDS/libs3% (48 lines)
RISC-V_RV32_THEAD_SMART_CDS/board8% (15 lines)
shakti/pinaka37% (10 lines)
CORTEX_M0_FT32F072_KEIL0% (0 lines)
RISC-V_RV32_THEAD_SMART_CDS/csi_core0% (0 lines)
RISC-V_RV32_THEAD_SMART_CDS/csi_kernel0% (0 lines)

Duplication Between Components (50+ lines)

G shakti/parashu shakti/parashu shakti/vajra shakti/vajra shakti/parashu--shakti/vajra 404

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 129 duplicates...
Size#FoldersFilesLinesCode
309 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x6.h
ft32f030x8.h
183:637 (87%)
214:668 (84%)
view
289 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x6.h
ft32f072x8.h
219:1038 (81%)
262:1081 (78%)
view
286 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x8.h
ft32f072x8.h
250:668 (78%)
262:680 (78%)
view
174 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x6.s
startup_ft32f030x8.s
45:252 (83%)
45:252 (83%)
view
174 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x8.s
startup_ft32f072xb.s
45:252 (83%)
45:252 (83%)
view
174 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x6.s
startup_ft32f072xb.s
45:252 (83%)
45:252 (83%)
view
114 x 2 shakti/parashu
shakti/vajra
main.c
main.c
201:492 (55%)
201:492 (55%)
view
74 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x8.h
ft32f072x8.h
25:250 (20%)
22:253 (20%)
view
69 x 2 shakti/parashu
shakti/vajra
main.c
main.c
39:168 (33%)
39:168 (33%)
view
62 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0.h
core_cm0plus.h
215:328 (53%)
226:339 (50%)
view
38 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x6.h
ft32f072x8.h
18:158 (10%)
22:173 (10%)
view
38 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x6.h
ft32f030x8.h
18:158 (10%)
25:176 (10%)
view
37 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0.h
core_cm0plus.h
535:686 (32%)
646:797 (30%)
view
33 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x6.s
startup_ft32f030x8.s
6:48 (15%)
6:48 (15%)
view
33 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x6.s
startup_ft32f072xb.s
6:48 (15%)
6:48 (15%)
view
33 x 2 CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
CORTEX_M0_FT32F072_KEIL/...SIS/FT32F0xx/source/arm
s
startup_ft32f030x8.s
startup_ft32f072xb.s
6:48 (15%)
6:48 (15%)
view
24 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
ft32f030x6.h
ft32f072x8.h
183:219 (6%)
218:253 (6%)
view
21 x 2 CORTEX_M0_FT32F072_KEIL/Source/Driver/src
CORTEX_M0_FT32F072_KEIL/...s/CMSIS/FT32F0xx/source
board.c
system_ft32f0xx.c
171:220 (30%)
215:269 (24%)
view
19 x 2 shakti/parashu
shakti/vajra
main.c
main.c
173:198 (9%)
173:198 (9%)
view
16 x 2 RISC-V_RV32_THEAD_SMART_CDS/csi_driver/smartl_rv32
RISC-V_RV32_THEAD_SMART_CDS/csi_driver/smartl_rv32
S
startup.S
vectors.S
1:18 (10%)
1:17 (8%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 20 unit duplicates...
Size#FoldersFilesLinesCode
56 x 2 shakti/parashu
shakti/vajra
main.c
main.c
307:378 
307:378 
view
49 x 2 shakti/parashu
shakti/vajra
main.c
main.c
124:202 
124:202 
view
20 x 2 shakti/parashu
shakti/vajra
main.c
main.c
417:448 
417:448 
view
15 x 2 RISC-V_RV32_THEAD_SMART_CDS/libs/libc
RISC-V_RV32_THEAD_SMART_CDS/libs/libc
printf.c
printf.c
375:395 
400:420 
view
14 x 2 shakti/parashu
shakti/vajra
main.c
main.c
85:112 
85:112 
view
14 x 2 shakti/parashu
shakti/vajra
main.c
main.c
213:239 
213:239 
view
13 x 2 shakti/parashu
shakti/vajra
main.c
main.c
380:398 
380:398 
view
10 x 2 shakti/parashu
shakti/vajra
main.c
main.c
400:415 
400:415 
view
10 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0plus.h
core_cm0.h
787:798 
676:687 
view
9 x 2 shakti/parashu
shakti/vajra
main.c
main.c
285:305 
285:305 
view
8 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0plus.h
core_cm0.h
713:721 
602:610 
view
8 x 2 RISC-V_RV32_THEAD_SMART_CDS/libs/libc
RISC-V_RV32_THEAD_SMART_CDS/libs/libc
printf.c
printf.c
956:964 
966:975 
view
7 x 2 shakti/parashu
shakti/vajra
main.c
main.c
251:261 
251:261 
view
7 x 2 shakti/bsp/drivers/spi
shakti/bsp/drivers/spi
spi_spansion.c
spi_flash_w25q32.c
181:189 
178:185 
view
7 x 2 shakti/bsp/drivers/spi
shakti/bsp/drivers/spi
spi_spansion.c
spi_flash_w25q32.c
198:206 
193:200 
view
7 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0plus.h
core_cm0.h
749:757 
638:646 
view
7 x 7 RISC-V_RV32_THEAD_SMART_CDS/projects/time
RISC-V_RV32_THEAD_SMART_CDS/projects/timer
RISC-V_RV32_THEAD_SMART_CDS/projects/message_q
RISC-V_RV32_THEAD_SMART_CDS/projects/task
RISC-V_RV32_THEAD_SMART_CDS/projects/mutex
RISC-V_RV32_THEAD_SMART_CDS/projects/event
RISC-V_RV32_THEAD_SMART_CDS/projects/sem
main.c
main.c
main.c
main.c
main.c
main.c
main.c
36:46 
36:46 
36:46 
36:46 
35:45 
36:46 
36:46 
view
6 x 4 shakti/parashu
shakti/vajra
shakti/pinaka
CORTEX_M0_FT32F072_KEIL/Source/Tasks/src
main.c
main.c
main.c
TaskManager.c
483:493 
483:493 
98:108 
117:127 
view
6 x 2 CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
CORTEX_M0_FT32F072_KEIL/.../CMSIS/FT32F0xx/Include
core_cm0plus.h
core_cm0.h
735:742 
624:631 
view
6 x 2 RISC-V_RV32_THEAD_SMART_...freertosv10.3.1/adapter
RISC-V_RV32_THEAD_SMART_...freertosv10.3.1/adapter
csi_freertos.c
csi_freertos.c
914:921 
923:930 
view