aws-samples / query-data-in-s3-with-amazon-athena-and-aws-sdk-for-dotnet
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
  • 28% duplication:
    • 997 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 280 duplicated lines
  • 15 duplicates
system28% (280 lines)
Duplication per Extension
js49% (250 lines)
cs7% (30 lines)
Duplication per Component (primary)
app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp45% (250 lines)
app/AthenaNetCore/AthenaNetCore.WebApp/Controllers34% (30 lines)
cloud-formation-templates0% (0 lines)
app/AthenaNetCore/AthenaNetCore.WebApp0% (0 lines)
app/AthenaNetCore/AthenaNetCore.WebApp/Models0% (0 lines)
app/AthenaNetCore/AthenaNetCore.WebApp/Pages0% (0 lines)
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Entities0% (0 lines)
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Repositories0% (0 lines)
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions0% (0 lines)
app/AthenaNetCore/AthenaNetCore.BusinessLogicTests/Repositories0% (0 lines)
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
27 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
CovidTestingByState.js
46:76 (24%)
44:74 (28%)
view
26 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
Hospitals.js
HospitalsRunAndGo.js
17:42 (50%)
25:50 (27%)
view
22 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
CovidTestingByState.js
107:135 (19%)
108:136 (23%)
view
19 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByState.js
HospitalsRunAndGo.js
108:133 (20%)
71:96 (19%)
view
19 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
HospitalsRunAndGo.js
107:132 (17%)
71:96 (19%)
view
17 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
CovidTestingByState.js
78:101 (15%)
76:98 (17%)
view
10 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
HospitalsRunAndGo.js
78:91 (9%)
46:59 (10%)
view
10 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByState.js
HospitalsRunAndGo.js
76:89 (10%)
46:59 (10%)
view
10 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
CovidTestingByState.js
28:41 (9%)
26:39 (10%)
view
10 x 2 src/app/AthenaNetCore/At...Core.WebApp/Controllers
src/app/AthenaNetCore/At...Core.WebApp/Controllers
CovidTrackingController.cs
CovidTrackingController.cs
123:136 (11%)
148:161 (11%)
view
10 x 2 src/app/AthenaNetCore/At...Core.WebApp/Controllers
src/app/AthenaNetCore/At...Core.WebApp/Controllers
CovidTrackingController.cs
CovidTrackingController.cs
65:78 (11%)
123:136 (11%)
view
10 x 2 src/app/AthenaNetCore/At...Core.WebApp/Controllers
src/app/AthenaNetCore/At...Core.WebApp/Controllers
CovidTrackingController.cs
CovidTrackingController.cs
65:78 (11%)
148:161 (11%)
view
8 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
HospitalsRunAndGo.js
148:158 (7%)
111:121 (8%)
view
6 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByState.js
HospitalsRunAndGo.js
28:34 (6%)
9:15 (6%)
view
6 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
HospitalsRunAndGo.js
30:36 (5%)
9:15 (6%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByState.js
CovidTestingByDate.js
50:81 
52:83 
view
21 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByDate.js
CovidTestingByState.js
52:83 
50:81 
view
19 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
Hospitals.js
HospitalsRunAndGo.js
14:43 
22:51 
view
17 x 3 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
CovidTestingByState.js
HospitalsRunAndGo.js
CovidTestingByDate.js
113:131 
76:94 
112:130 
view
8 x 2 src/app/AthenaNetCore/At...lientApp/src/components
src/app/AthenaNetCore/At...lientApp/src/components
HospitalsRunAndGo.js
CovidTestingByDate.js
114:122 
151:159 
view