GerritCodeReview / egit-github
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
  • 7% duplication:
    • 13,571 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,035 duplicated lines
  • 110 duplicates
system7% (1,035 lines)
Duplication per Extension
java6% (895 lines)
html49% (128 lines)
css11% (12 lines)
Duplication per Component (primary)
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service15% (470 lines)
org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui8% (305 lines)
org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core3% (63 lines)
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core1% (36 lines)
org.eclipse.mylyn.github.core100% (27 lines)
org.eclipse.mylyn.github.doc100% (27 lines)
org.eclipse.mylyn.github.ui100% (27 lines)
org.eclipse.egit.github.core100% (27 lines)
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client2% (21 lines)
org.eclipse.mylyn.github.doc/help/EGit/GitHub/User_Guide13% (20 lines)
org.eclipse.mylyn.github.doc/help11% (12 lines)
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/event0% (0 lines)
org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/util0% (0 lines)

Duplication Between Components (50+ lines)

G org.eclipse.egit.github.core org.eclipse.egit.github.core org.eclipse.mylyn.github.ui org.eclipse.mylyn.github.ui org.eclipse.egit.github.core--org.eclipse.mylyn.github.ui 54 org.eclipse.mylyn.github.core org.eclipse.mylyn.github.core org.eclipse.egit.github.core--org.eclipse.mylyn.github.core 54 org.eclipse.mylyn.github.doc org.eclipse.mylyn.github.doc org.eclipse.egit.github.core--org.eclipse.mylyn.github.doc 54 org.eclipse.mylyn.github.core--org.eclipse.mylyn.github.ui 54 org.eclipse.mylyn.github.core--org.eclipse.mylyn.github.doc 54 org.eclipse.mylyn.github.doc--org.eclipse.mylyn.github.ui 54

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 110 duplicates...
Size#FoldersFilesLinesCode
27 x 2 org.eclipse.egit.github.core
org.eclipse.mylyn.github.ui
about.html
about.html
1:32 (100%)
1:32 (100%)
view
27 x 2 org.eclipse.mylyn.github.core
org.eclipse.mylyn.github.doc
about.html
about.html
1:32 (100%)
1:32 (100%)
view
27 x 2 org.eclipse.egit.github.core
org.eclipse.mylyn.github.doc
about.html
about.html
1:32 (100%)
1:32 (100%)
view
27 x 2 org.eclipse.mylyn.github.doc
org.eclipse.mylyn.github.ui
about.html
about.html
1:32 (100%)
1:32 (100%)
view
27 x 2 org.eclipse.egit.github.core
org.eclipse.mylyn.github.core
about.html
about.html
1:32 (100%)
1:32 (100%)
view
27 x 2 org.eclipse.mylyn.github.core
org.eclipse.mylyn.github.ui
about.html
about.html
1:32 (100%)
1:32 (100%)
view
13 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
281:294 (7%)
306:319 (7%)
view
13 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
281:294 (7%)
331:344 (7%)
view
13 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
306:319 (7%)
331:344 (7%)
view
13 x 2 org.eclipse.mylyn.github...n/internal/github/ui/pr
org.eclipse.mylyn.github...n/internal/github/ui/pr
MergePullRequestHandler.java
RebasePullRequestHandler.java
86:103 (25%)
87:104 (25%)
view
13 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
255:268 (7%)
356:369 (7%)
view
12 x 2 org.eclipse.mylyn.github...nternal/github/ui/issue
org.eclipse.mylyn.github...n/internal/github/ui/pr
IssueTaskEditorPage.java
PullRequestTaskEditorPage.java
55:68 (19%)
49:62 (38%)
view
12 x 2 org.eclipse.mylyn.github...nternal/github/ui/issue
org.eclipse.mylyn.github...n/internal/github/ui/pr
IssueRepositoryQueryPage.java
PullRequestRepositoryQueryPage.java
214:227 (4%)
104:117 (13%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
306:317 (6%)
356:367 (6%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
281:292 (6%)
356:367 (6%)
view
11 x 2 org.eclipse.mylyn.github...n/internal/github/ui/pr
org.eclipse.mylyn.github...n/internal/github/ui/pr
MergePullRequestHandler.java
RebasePullRequestHandler.java
56:66 (21%)
56:66 (21%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
CommitService.java
PullRequestService.java
284:305 (4%)
445:466 (4%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
255:266 (6%)
306:317 (6%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
255:266 (6%)
281:292 (6%)
view
11 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OrganizationService.java
OrganizationService.java
255:266 (6%)
331:342 (6%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 org.eclipse.egit.github....clipse/egit/github/core
org.eclipse.egit.github....clipse/egit/github/core
SearchRepository.java
RepositoryId.java
58:70 
106:118 
view
7 x 2 org.eclipse.egit.github....git/github/core/service
org.eclipse.egit.github....git/github/core/service
OAuthService.java
OAuthService.java
118:125 
135:142 
view