aws-samples / amazon-sumerian-hosts
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:
    • 8,315 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 697 duplicated lines
  • 62 duplicates
system8% (697 lines)
Duplication per Extension
js9% (685 lines)
css1% (12 lines)
Duplication per Component (primary)
src/core/animpack14% (335 lines)
src/core4% (116 lines)
src/core/awspack7% (82 lines)
src/Babylon.js/animpack24% (51 lines)
src/three.js/animpack33% (51 lines)
src/three.js24% (16 lines)
src/Babylon.js18% (16 lines)
docs_template/static/styles1% (12 lines)
src/Babylon.js/awspack14% (9 lines)
src/three.js/awspack18% (9 lines)
docs_template/static/scripts0% (0 lines)
docs_template0% (0 lines)

Duplication Between Components (50+ lines)

G src/Babylon.js/animpack src/Babylon.js/animpack src/three.js/animpack src/three.js/animpack src/Babylon.js/animpack--src/three.js/animpack 102 src/core/animpack src/core/animpack src/Babylon.js/animpack--src/core/animpack 80 src/core/animpack--src/three.js/animpack 80

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 62 duplicates...
Size#FoldersFilesLinesCode
44 x 2 src/Babylon.js/animpack
src/three.js/animpack
index.js
index.js
9:141 (100%)
9:141 (100%)
view
29 x 2 src/core/animpack
src/three.js/animpack
index.js
index.js
38:139 (65%)
38:141 (65%)
view
29 x 2 src/Babylon.js/animpack
src/core/animpack
index.js
index.js
38:141 (65%)
38:139 (65%)
view
26 x 2 src/core/animpack
src/core/animpack
AnimationFeature.js
AnimationFeature.js
1069:1099 (4%)
1230:1260 (4%)
view
16 x 2 src/Babylon.js
src/core
index.js
index.js
21:78 (100%)
21:78 (100%)
view
16 x 2 src/core
src/three.js
index.js
index.js
21:78 (100%)
21:78 (100%)
view
16 x 2 src/Babylon.js
src/three.js
index.js
index.js
21:78 (100%)
21:78 (100%)
view
12 x 2 src/core/animpack
src/core/animpack
Easing.js
Easing.js
209:225 (5%)
231:247 (5%)
view
12 x 2 src/core
src/core
LipsyncFeature.js
LipsyncFeature.js
335:349 (3%)
385:399 (3%)
view
12 x 2 src/core/animpack
src/core/animpack
Easing.js
Easing.js
186:202 (5%)
209:225 (5%)
view
12 x 2 src/core/animpack
src/core/animpack
Easing.js
Easing.js
186:202 (5%)
231:247 (5%)
view
11 x 2 src/core/animpack
src/core/animpack
index.js
index.js
9:19 (25%)
42:82 (25%)
view
11 x 2 src/core/animpack
src/three.js/animpack
index.js
index.js
42:82 (25%)
9:19 (25%)
view
11 x 2 src/Babylon.js/animpack
src/core/animpack
index.js
index.js
9:19 (25%)
42:82 (25%)
view
11 x 2 src/Babylon.js/animpack
src/three.js/animpack
index.js
index.js
9:19 (25%)
42:82 (25%)
view
11 x 2 src/core/animpack
src/three.js/animpack
index.js
index.js
9:19 (25%)
9:19 (25%)
view
11 x 2 src/core/animpack
src/core/animpack
AnimationPlayerInterface.js
AnimationPlayerInterface.js
334:346 (5%)
379:391 (5%)
view
11 x 2 src/Babylon.js/animpack
src/core/animpack
index.js
index.js
42:82 (25%)
9:19 (25%)
view
11 x 2 src/Babylon.js/animpack
src/core/animpack
index.js
index.js
9:19 (25%)
9:19 (25%)
view
11 x 2 src/three.js/animpack
src/three.js/animpack
index.js
index.js
9:19 (25%)
42:82 (25%)
view