apple / ccs-pycalendar
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
  • 8% duplication:
    • 9,393 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 804 duplicated lines
  • 68 duplicates
system8% (804 lines)
Duplication per Extension
py8% (804 lines)
Duplication per Component (primary)
src/pycalendar/icalendar10% (479 lines)
src/zonal12% (144 lines)
src/pycalendar3% (126 lines)
src/pycalendar/vcard10% (55 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 68 duplicates...
Size#FoldersFilesLinesCode
30 x 2 src/zonal
src/zonal
tzdump.py
tzverify.py
48:102 (43%)
164:219 (16%)
view
26 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1278:1313 (2%)
1326:1361 (2%)
view
22 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1232:1262 (1%)
1278:1308 (1%)
view
22 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1232:1262 (1%)
1326:1356 (1%)
view
19 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
componentrecur.py
vfreebusy.py
549:575 (4%)
167:193 (9%)
view
18 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1188:1213 (1%)
1278:1303 (1%)
view
18 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1188:1213 (1%)
1326:1351 (1%)
view
18 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1188:1213 (1%)
1232:1257 (1%)
view
16 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
220:238 (1%)
242:260 (1%)
view
14 x 2 src/zonal
src/zonal
rule.py
zone.py
42:66 (4%)
42:67 (4%)
view
12 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
available.py
vavailability.py
66:79 (24%)
73:86 (19%)
view
12 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
vavailability.py
vevent.py
73:86 (19%)
112:125 (12%)
view
12 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
available.py
vevent.py
66:79 (24%)
112:125 (12%)
view
10 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
componentrecur.py
vfreebusy.py
167:180 (2%)
119:132 (5%)
view
10 x 2 src/pycalendar/vcard
src/pycalendar/vcard
adr.py
n.py
99:112 (16%)
98:111 (16%)
view
9 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1149:1160 (<1%)
1188:1199 (<1%)
view
9 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
1083:1096 (<1%)
1213:1226 (<1%)
view
9 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
componentrecur.py
vfreebusy.py
376:390 (2%)
103:117 (4%)
view
9 x 2 src/pycalendar
src/pycalendar
datetime.py
datetime.py
444:455 (1%)
469:480 (1%)
view
9 x 2 src/pycalendar
src/pycalendar/vcard
property.py
property.py
300:310 (2%)
248:258 (4%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
recurrence.py
recurrence.py
0:0 
0:0 
view
12 x 2 src/zonal
src/zonal
tzdump.py
tzverify.py
0:0 
0:0 
view
7 x 2 src/pycalendar/icalendar
src/pycalendar/icalendar
available.py
vevent.py
0:0 
0:0 
view
6 x 3 src/pycalendar/icalendar
src/pycalendar/icalendar
src/pycalendar/icalendar
vavailability.py
vfreebusy.py
vpoll.py
0:0 
0:0 
0:0 
view