tensorflow / tfjs-website
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
  • 22% duplication:
    • 9,085 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,041 duplicated lines
  • 377 duplicates
system22% (2,041 lines)
Duplication per Extension
css29% (1,973 lines)
ts3% (52 lines)
scss4% (16 lines)
Duplication per Component (primary)
themes/tfjs/source/css28% (1,989 lines)
build-scripts/doc-gen3% (40 lines)
build-scripts3% (12 lines)
source/debug0% (0 lines)
test-scripts/cloud_funcs/trigger_nightly0% (0 lines)
ROOT0% (0 lines)
themes/tfjs/source/js0% (0 lines)
themes/tfjs/layout0% (0 lines)
themes/tfjs/layout/partials0% (0 lines)
themes/tfjs0% (0 lines)
themes/tfjs/helper0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 377 duplicates...
Size#FoldersFilesLinesCode
136 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8636:8778 (2%)
8960:9102 (2%)
view
20 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
2575:2594 (<1%)
3000:3019 (<1%)
view
20 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
2283:2302 (<1%)
2575:2594 (<1%)
view
20 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
2283:2302 (<1%)
3000:3019 (<1%)
view
20 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
6:27 (<1%)
8586:8607 (<1%)
view
18 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
4701:4718 (<1%)
4721:4738 (<1%)
view
18 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
4827:4844 (<1%)
4847:4864 (<1%)
view
18 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
4741:4758 (<1%)
4761:4778 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8233:8249 (<1%)
8672:8688 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8161:8177 (<1%)
8636:8652 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8341:8357 (<1%)
9050:9066 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8413:8429 (<1%)
9086:9102 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8413:8429 (<1%)
8762:8778 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8197:8213 (<1%)
8654:8670 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8233:8249 (<1%)
8996:9012 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8197:8213 (<1%)
8978:8994 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8305:8321 (<1%)
9032:9048 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8161:8177 (<1%)
8960:8976 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8305:8321 (<1%)
8708:8724 (<1%)
view
17 x 2 themes/tfjs/source/css
themes/tfjs/source/css
material-components-web.css
material-components-web.css
8377:8393 (<1%)
8744:8760 (<1%)
view