apple / ccs-caldavtester
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
  • 12% duplication:
    • 4,505 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 583 duplicated lines
  • 43 duplicates
system12% (583 lines)
Duplication per Extension
py12% (583 lines)
Duplication per Component (primary)
verifiers23% (311 lines)
src10% (237 lines)
ROOT4% (35 lines)
generators0% (0 lines)
src/observers0% (0 lines)
src/unittest0% (0 lines)

Duplication Between Components (50+ lines)

G src src verifiers verifiers src--verifiers 116

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 43 duplicates...
Size#FoldersFilesLinesCode
27 x 2 verifiers
verifiers
freeBusy.py
postFreeBusy.py
69:101 (41%)
92:124 (31%)
view
20 x 2 src
src
caldavtest.py
caldavtest.py
348:374 (2%)
435:460 (2%)
view
17 x 2 verifiers
verifiers
dataMatch.py
xmlDataMatch.py
36:60 (34%)
37:61 (38%)
view
14 x 2 verifiers
verifiers
addressDataMatch.py
calendarDataMatch.py
79:92 (21%)
112:125 (11%)
view
14 x 2 src
verifiers
xmlUtils.py
xmlElementMatch.py
65:81 (16%)
101:117 (7%)
view
14 x 2 src
src
caldavtest.py
caldavtest.py
278:297 (1%)
484:503 (1%)
view
13 x 2 src
src
request.py
request.py
567:579 (2%)
643:655 (2%)
view
11 x 2 verifiers
verifiers
addressDataMatch.py
calendarDataMatch.py
53:65 (16%)
69:81 (9%)
view
10 x 2 src
src
caldavtest.py
caldavtest.py
980:989 (1%)
1024:1033 (1%)
view
10 x 2 src
verifiers
caldavtest.py
propfindValues.py
388:398 (1%)
90:100 (11%)
view
10 x 2 src
src
caldavtest.py
caldavtest.py
388:398 (1%)
934:944 (1%)
view
10 x 2 src
verifiers
caldavtest.py
propfindValues.py
934:944 (1%)
90:100 (11%)
view
8 x 2 src
verifiers
xmlUtils.py
xmlElementMatch.py
103:110 (9%)
155:162 (4%)
view
8 x 2 verifiers
verifiers
addressDataMatch.py
calendarDataMatch.py
18:36 (12%)
18:38 (6%)
view
8 x 2 verifiers
verifiers
calendarDataMatch.py
dataMatch.py
73:80 (6%)
48:55 (16%)
view
8 x 2 src
src
caldavtest.py
caldavtest.py
441:454 (<1%)
490:503 (<1%)
view
8 x 2 ROOT
ROOT
setup.py
setup.py
56:63 (5%)
70:77 (5%)
view
8 x 2 src
src
caldavtest.py
caldavtest.py
284:297 (<1%)
354:368 (<1%)
view
8 x 2 verifiers
verifiers
addressDataMatch.py
dataMatch.py
57:64 (12%)
48:55 (16%)
view
8 x 2 src
src
caldavtest.py
caldavtest.py
354:368 (<1%)
490:503 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
12 x 2 src
src
request.py
request.py
0:0 
0:0 
view