awslabs / pidgin-chime
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
  • 3% duplication:
    • 14,800 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 584 duplicated lines
  • 57 duplicates
system3% (584 lines)
Duplication per Extension
c4% (521 lines)
proto5% (33 lines)
py44% (16 lines)
h1% (14 lines)
Duplication per Component (primary)
chime6% (496 lines)
protobuf5% (33 lines)
prpl<1% (24 lines)
ROOT9% (16 lines)
chimeseen12% (15 lines)
gst-chime0% (0 lines)
evolution-plugin0% (0 lines)
gst-xcbimagesrc0% (0 lines)
fs-app-transmitter0% (0 lines)
po0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 57 duplicates...
Size#FoldersFilesLinesCode
19 x 2 chime
chime
chime-conversation.c
chime-room.c
173:193 (3%)
223:243 (2%)
view
16 x 2 chime
chime
chime-call-screen.c
chime-call-transport.c
66:86 (5%)
30:50 (3%)
view
15 x 2 chime
chimeseen
chime-connection.c
chimeseen.c
985:1004 (1%)
46:65 (12%)
view
14 x 2 chime
chime
chime-conversation.c
chime-conversation.c
771:788 (2%)
851:868 (2%)
view
13 x 2 chime
chime
chime-conversation.c
chime-room.c
111:125 (2%)
135:149 (1%)
view
13 x 2 chime
chime
chime-conversation.c
chime-room.c
135:149 (2%)
165:179 (1%)
view
12 x 2 chime
chime
chime-conversation.c
chime-room.c
407:420 (2%)
412:425 (1%)
view
11 x 2 chime
chime
chime-room.c
chime-room.c
923:935 (1%)
985:997 (1%)
view
8 x 2 chime
chime
chime-call-transport.c
chime-call-transport.c
84:95 (1%)
125:136 (1%)
view
8 x 2 chime
chime
chime-conversation.c
chime-meeting.c
801:810 (1%)
883:892 (1%)
view
8 x 2 chime
chime
chime-connection.c
chime-room.c
1024:1036 (<1%)
963:974 (1%)
view
8 x 2 ROOT
ROOT
chime-auth.py
chime-joinable.py
17:27 (38%)
10:20 (53%)
view
8 x 2 chime
chime
chime-conversation.c
chime-room.c
164:171 (1%)
211:218 (1%)
view
8 x 2 chime
chime
chime-connection.c
chime-connection.c
591:600 (<1%)
637:646 (<1%)
view
8 x 2 chime
chime
chime-meeting.c
chime-meeting.c
748:758 (1%)
883:892 (1%)
view
8 x 2 chime
chime
chime-conversation.c
chime-room.c
41:52 (1%)
44:55 (1%)
view
8 x 2 chime
chime
chime-conversation.c
chime-meeting.c
801:810 (1%)
748:758 (1%)
view
7 x 2 chime
chime
chime-signin.c
chime-signin.c
718:726 (1%)
766:774 (1%)
view
7 x 2 protobuf
protobuf
proto
auth_message.proto
auth_message.proto
42:48 (4%)
66:72 (4%)
view
7 x 2 chime
chime
chime-contact.c
chime-meeting.c
680:689 (1%)
924:933 (1%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 chime
chime
chime-call-transport.c
chime-call-screen.c
30:51 
66:87 
view
12 x 2 chime
chime
chime-connection.c
chime-room.c
926:941 
358:373 
view
12 x 2 chime
chime
chime-connection.c
chime-connection.c
1250:1265 
1306:1321 
view
7 x 4 chime
chime
chime
chime
chime-contact.c
chime-contact.c
chime-room.c
chime-meeting.c
735:743 
801:809 
951:959 
962:970 
view
7 x 2 chime
chime
chime-connection.c
chime-connection.c
1296:1304 
1338:1346 
view
6 x 2 chime
chime
chime-connection.c
chime-connection.c
579:586 
624:631 
view