facebookresearch / FBTT-Embedding
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
  • 30% duplication:
    • 3,151 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 960 duplicated lines
  • 93 duplicates
system30% (960 lines)
Duplication per Extension
cu42% (748 lines)
py11% (115 lines)
cuh22% (56 lines)
cpp30% (41 lines)
Duplication per Component (primary)
ROOT30% (960 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 93 duplicates...
Size#FoldersFilesLinesCode
34 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
987:1022 (1%)
1173:1206 (1%)
view
25 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1582:1606 (1%)
1666:1690 (1%)
view
24 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1032:1055 (1%)
1219:1242 (1%)
view
21 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1581:1601 (1%)
1744:1764 (1%)
view
21 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
130:150 (1%)
192:212 (1%)
view
20 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1666:1685 (1%)
1745:1764 (1%)
view
20 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1505:1524 (1%)
1745:1764 (1%)
view
20 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1505:1524 (1%)
1582:1601 (1%)
view
20 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1505:1524 (1%)
1666:1685 (1%)
view
15 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
452:466 (<1%)
1177:1191 (<1%)
view
15 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
530:544 (<1%)
1040:1054 (<1%)
view
15 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
530:544 (<1%)
1227:1241 (<1%)
view
15 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
452:466 (<1%)
992:1007 (<1%)
view
14 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
91:104 (<1%)
197:210 (<1%)
view
14 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
91:104 (<1%)
135:148 (<1%)
view
13 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
672:684 (<1%)
705:717 (<1%)
view
13 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
1629:1642 (<1%)
1805:1819 (<1%)
view
13 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
421:433 (<1%)
720:732 (<1%)
view
12 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
788:799 (<1%)
822:833 (<1%)
view
12 x 2 ROOT
ROOT
cu
tt_embeddings_cuda.cu
tt_embeddings_cuda.cu
300:311 (<1%)
329:340 (<1%)
view