facebookresearch / nonrigid_nerf
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
  • 11% duplication:
    • 3,503 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 420 duplicated lines
  • 22 duplicates
system11% (420 lines)
Duplication per Extension
py12% (420 lines)
Duplication per Component (primary)
ROOT12% (420 lines)
llff_preprocessing0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
46 x 2 ROOT
ROOT
train.py
train.py
1736:1781 (2%)
1803:1848 (2%)
view
22 x 2 ROOT
ROOT
run_nerf_helpers.py
run_nerf_helpers.py
828:849 (2%)
878:899 (2%)
view
17 x 2 ROOT
ROOT
free_viewpoint_rendering.py
train.py
121:137 (2%)
1385:1401 (1%)
view
16 x 2 ROOT
ROOT
free_viewpoint_rendering.py
free_viewpoint_rendering.py
395:410 (2%)
450:465 (2%)
view
13 x 2 ROOT
ROOT
free_viewpoint_rendering.py
free_viewpoint_rendering.py
184:196 (1%)
474:486 (1%)
view
12 x 2 ROOT
ROOT
free_viewpoint_rendering.py
train.py
139:151 (1%)
1403:1415 (<1%)
view
10 x 2 ROOT
ROOT
train.py
train.py
1752:1761 (<1%)
1835:1844 (<1%)
view
10 x 2 ROOT
ROOT
train.py
train.py
889:898 (<1%)
940:950 (<1%)
view
10 x 2 ROOT
ROOT
train.py
train.py
1768:1777 (<1%)
1819:1828 (<1%)
view
10 x 2 ROOT
ROOT
train.py
train.py
1819:1828 (<1%)
1835:1844 (<1%)
view
10 x 2 ROOT
ROOT
train.py
train.py
1752:1761 (<1%)
1768:1777 (<1%)
view
9 x 2 ROOT
ROOT
free_viewpoint_rendering.py
train.py
111:119 (1%)
1375:1383 (<1%)
view
9 x 2 ROOT
ROOT
load_llff.py
load_llff.py
24:32 (16%)
45:53 (16%)
view
8 x 2 ROOT
ROOT
run_nerf_helpers.py
run_nerf_helpers.py
854:861 (<1%)
904:911 (<1%)
view
8 x 2 ROOT
ROOT
train.py
train.py
598:605 (<1%)
619:626 (<1%)
view
7 x 2 ROOT
ROOT
run_nerf_helpers.py
run_nerf_helpers.py
438:444 (<1%)
489:495 (<1%)
view
7 x 2 ROOT
ROOT
run_nerf_helpers.py
run_nerf_helpers.py
979:985 (<1%)
993:999 (<1%)
view
7 x 2 ROOT
ROOT
train.py
train.py
881:887 (<1%)
932:938 (<1%)
view
7 x 2 ROOT
ROOT
preprocess.py
preprocess.py
195:201 (2%)
274:280 (2%)
view
7 x 2 ROOT
ROOT
train.py
train.py
157:163 (<1%)
1570:1576 (<1%)
view