amazon-research / video-contrastive-learning
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
  • 15% duplication:
    • 2,257 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 344 duplicated lines
  • 15 duplicates
system15% (344 lines)
Duplication per Extension
py15% (344 lines)
Duplication per Component (primary)
ROOT35% (196 lines)
tools/data/k40058% (66 lines)
dataset14% (38 lines)
models10% (30 lines)
liblinear2% (14 lines)
tools/weights0% (0 lines)
tools/feature_visualization0% (0 lines)
utils0% (0 lines)
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
33 x 2 tools/data/k400
tools/data/k400
extract_frames.py
extract_frames_parallel.py
19:61 (61%)
10:52 (56%)
view
21 x 2 ROOT
ROOT
eval_retrieve_knn_pred.py
eval_svm_feature_perf.py
46:67 (21%)
43:64 (30%)
view
18 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
eval_svm_feature_extract.py
49:70 (22%)
43:64 (21%)
view
16 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
eval_svm_feature_extract.py
73:91 (19%)
65:82 (19%)
view
16 x 2 ROOT
ROOT
eval_retrieve_knn_pred.py
eval_svm_feature_perf.py
25:43 (16%)
23:41 (23%)
view
11 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
eval_svm_feature_extract.py
92:105 (13%)
86:98 (13%)
view
9 x 2 models
models
resnet_mlp.py
resnet_mlp.py
62:73 (3%)
102:113 (3%)
view
7 x 2 dataset
dataset
dataset_downstream.py
dataset_kinetics.py
135:143 (7%)
101:108 (4%)
view
7 x 2 liblinear
liblinear
liblinearutil.py
liblinearutil.py
240:246 (4%)
257:263 (4%)
view
7 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
train_vclr.py
124:131 (8%)
179:186 (5%)
view
6 x 2 models
models
Contrast.py
Contrast.py
49:54 (10%)
81:86 (10%)
view
6 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
eval_svm_feature_extract.py
130:136 (7%)
124:130 (7%)
view
6 x 2 ROOT
ROOT
eval_retrieval_feature_extract.py
eval_svm_feature_extract.py
121:128 (7%)
115:122 (7%)
view
6 x 2 dataset
dataset
dataset_downstream.py
dataset_kinetics.py
52:57 (6%)
71:76 (3%)
view
6 x 2 dataset
dataset
dataset_downstream.py
dataset_kinetics.py
69:74 (6%)
64:69 (3%)
view