facebookresearch / ego-topo
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
  • 21% duplication:
    • 3,745 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 812 duplicated lines
  • 41 duplicates
system21% (812 lines)
Duplication per Extension
py21% (812 lines)
Duplication per Component (primary)
anticipation/anticipation/configs97% (378 lines)
anticipation/anticipation/datasets22% (140 lines)
build_graph/data46% (110 lines)
anticipation/anticipation/models17% (108 lines)
build_graph/localization_network14% (52 lines)
anticipation/anticipation/runner3% (12 lines)
build_graph/tools2% (12 lines)
build_graph0% (0 lines)
build_graph/tools/superpoint0% (0 lines)
build_graph/utils0% (0 lines)
anticipation/anticipation/tools0% (0 lines)
anticipation/anticipation0% (0 lines)
anticipation/anticipation/utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 41 duplicates...
Size#FoldersFilesLinesCode
69 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
common.py
common.py
8:87 (73%)
8:86 (73%)
view
29 x 2 anticipation/anticipation/datasets
anticipation/anticipation/datasets
epic_future_labels.py
epic_future_labels.py
459:493 (5%)
649:683 (5%)
view
24 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
131:161 (21%)
140:170 (19%)
view
22 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
gfb_gcn.py
gfb_gcn.py
5:27 (100%)
5:27 (100%)
view
21 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
rnn.py
rnn.py
5:26 (100%)
5:26 (100%)
view
19 x 2 anticipation/anticipation/datasets
anticipation/anticipation/datasets
epic_future_labels.py
epic_future_labels.py
120:142 (3%)
158:181 (3%)
view
17 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
netvlad.py
netvlad.py
5:22 (100%)
5:22 (100%)
view
16 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
168:187 (14%)
177:196 (13%)
view
16 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
gfb.py
gfb.py
5:21 (100%)
5:21 (100%)
view
16 x 2 build_graph/localization_network
build_graph/localization_network
dataset.py
dataset.py
211:229 (7%)
257:274 (7%)
view
15 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
107:128 (13%)
116:137 (12%)
view
13 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
i3d.py
i3d.py
5:18 (100%)
5:18 (100%)
view
12 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
common.py
common.py
103:116 (12%)
102:115 (12%)
view
11 x 2 anticipation/anticipation/models/recognizers
anticipation/anticipation/models/recognizers
future_recognizer.py
future_recognizer.py
205:218 (5%)
239:252 (5%)
view
11 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
timeception.py
timeception.py
5:16 (100%)
5:16 (100%)
view
10 x 2 build_graph/localization_network
build_graph/localization_network
model.py
model.py
15:24 (25%)
46:55 (25%)
view
9 x 2 anticipation/anticipation/datasets
anticipation/anticipation/datasets
epic_future_labels.py
epic_future_labels.py
396:406 (1%)
510:520 (1%)
view
8 x 2 anticipation/anticipation/models/recognizers
anticipation/anticipation/models/recognizers
future_recognizer.py
future_recognizer.py
168:179 (4%)
237:248 (4%)
view
8 x 2 anticipation/anticipatio...pic/verb_anti_vpretrain
anticipation/anticipatio...tea/verb_anti_vpretrain
common.py
common.py
89:98 (8%)
88:97 (8%)
view
7 x 2 anticipation/anticipation/models/recognizers
anticipation/anticipation/models/recognizers
future_recognizer.py
future_recognizer.py
196:205 (3%)
214:220 (3%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
0:0 
0:0 
view
9 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
0:0 
0:0 
view
7 x 2 build_graph/localization_network
build_graph/localization_network
dataset.py
dataset.py
0:0 
0:0 
view
7 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
0:0 
0:0 
view
7 x 2 build_graph/data
build_graph/data
epic.py
gtea.py
0:0 
0:0 
view