pytorch / pytorch_sphinx_theme
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
  • 4% duplication:
    • 12,548 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 625 duplicated lines
  • 168 duplicates
system4% (625 lines)
Duplication per Extension
css5% (591 lines)
html2% (18 lines)
js1% (16 lines)
Duplication per Component (primary)
pytorch_sphinx_theme/static/css5% (591 lines)
pytorch_sphinx_theme2% (18 lines)
ROOT8% (16 lines)
js0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 168 duplicates...
Size#FoldersFilesLinesCode
16 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
5382:5397 (<1%)
5484:5499 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
11392:11402 (<1%)
11506:11516 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
10957:10967 (<1%)
11506:11516 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
10957:10967 (<1%)
11392:11402 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
10543:10553 (<1%)
11392:11402 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
10543:10553 (<1%)
11506:11516 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
10543:10553 (<1%)
10957:10967 (<1%)
view
11 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
3876:3886 (<1%)
3891:3901 (<1%)
view
10 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
2298:2307 (<1%)
2387:2396 (<1%)
view
9 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
2484:2492 (<1%)
5718:5726 (<1%)
view
9 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
5331:5339 (<1%)
9779:9787 (<1%)
view
9 x 2 pytorch_sphinx_theme
pytorch_sphinx_theme
layout.html
layout.html
105:119 (2%)
491:505 (2%)
view
9 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
2523:2531 (<1%)
5718:5726 (<1%)
view
9 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
3918:3926 (<1%)
5007:5015 (<1%)
view
9 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
2484:2492 (<1%)
2523:2531 (<1%)
view
8 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
3989:3996 (<1%)
4197:4204 (<1%)
view
8 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
4043:4050 (<1%)
4097:4104 (<1%)
view
8 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
4097:4104 (<1%)
4197:4204 (<1%)
view
8 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
4043:4050 (<1%)
4197:4204 (<1%)
view
8 x 2 pytorch_sphinx_theme/static/css
pytorch_sphinx_theme/static/css
theme.css
theme.css
3989:3996 (<1%)
4151:4158 (<1%)
view