facebookresearch / AugLy
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
  • 24% duplication:
    • 11,263 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,792 duplicated lines
  • 2,664 duplicates
system24% (2,792 lines)
Duplication per Extension
py24% (2,792 lines)
Duplication per Component (primary)
augly/image29% (769 lines)
augly/video27% (652 lines)
augly/text45% (503 lines)
augly/audio31% (465 lines)
augly/text/augmenters16% (171 lines)
augly/video/helpers18% (168 lines)
augly/image/utils3% (22 lines)
augly/utils9% (21 lines)
augly/video/augmenters2% (21 lines)
ROOT0% (0 lines)
augly0% (0 lines)

Duplication Between Components (50+ lines)

G augly/image augly/image augly/video augly/video augly/image--augly/video 218 augly/text augly/text augly/image--augly/text 56 augly/audio augly/audio augly/audio--augly/image 70 augly/video/helpers augly/video/helpers augly/audio--augly/video/helpers 181

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 2,664 duplicates...
Size#FoldersFilesLinesCode
23 x 2 augly/audio
augly/video/helpers
utils.py
metadata.py
185:209 (14%)
254:282 (8%)
view
21 x 2 augly/utils
augly/video/helpers
functions.py
metadata.py
13:59 (100%)
39:85 (7%)
view
20 x 2 augly/text
augly/text
transforms.py
transforms.py
623:667 (4%)
697:741 (4%)
view
19 x 2 augly/text
augly/text
transforms.py
transforms.py
446:481 (4%)
977:1012 (4%)
view
18 x 2 augly/text
augly/text
transforms.py
transforms.py
821:858 (4%)
1038:1076 (4%)
view
17 x 2 augly/text
augly/text
transforms.py
transforms.py
344:374 (3%)
393:423 (3%)
view
17 x 2 augly/audio
augly/audio
functional.py
functional.py
353:395 (2%)
858:899 (2%)
view
17 x 2 augly/audio
augly/audio
transforms.py
transforms.py
295:321 (4%)
637:663 (4%)
view
17 x 2 augly/text
augly/text
transforms.py
transforms.py
295:325 (3%)
393:423 (3%)
view
17 x 2 augly/text
augly/text
transforms.py
transforms.py
295:325 (3%)
344:374 (3%)
view
15 x 2 augly/video
augly/video
transforms.py
transforms.py
871:895 (1%)
2149:2173 (1%)
view
12 x 2 augly/text
augly/text
functional.py
transforms.py
728:739 (3%)
879:890 (2%)
view
12 x 2 augly/image
augly/video
transforms.py
transforms.py
913:941 (1%)
1005:1033 (1%)
view
12 x 2 augly/text/augmenters
augly/text/augmenters
words_augmenter.py
words_augmenter.py
58:70 (15%)
92:104 (15%)
view
12 x 2 augly/video/helpers
augly/video/helpers
ffmpeg.py
ffmpeg.py
236:247 (6%)
253:264 (6%)
view
12 x 2 augly/audio
augly/video/helpers
utils.py
metadata.py
221:232 (7%)
296:307 (4%)
view
12 x 2 augly/text
augly/text
transforms.py
transforms.py
623:658 (2%)
890:938 (2%)
view
12 x 2 augly/text
augly/text
transforms.py
transforms.py
697:732 (2%)
890:938 (2%)
view
12 x 2 augly/audio
augly/video/helpers
utils.py
metadata.py
140:157 (7%)
126:143 (4%)
view
12 x 2 augly/audio
augly/image
composition.py
composition.py
40:59 (34%)
41:60 (27%)
view
Duplicated Units
The list of top 11 duplicated units.
See data for all 11 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 augly/video
augly/image
transforms.py
transforms.py
0:0 
0:0 
view
8 x 2 augly/video/helpers
augly/image
intensity.py
intensity.py
0:0 
0:0 
view
8 x 2 augly/text/augmenters
augly/text/augmenters
word_replacement.py
contraction.py
0:0 
0:0 
view
7 x 2 augly/video/helpers
augly/utils
metadata.py
functions.py
0:0 
0:0 
view
7 x 2 augly/video/helpers
augly/audio
metadata.py
utils.py
0:0 
0:0 
view
11 x 2 augly/image
augly/audio
composition.py
composition.py
0:0 
0:0 
view
7 x 2 augly/audio
augly/audio
functional.py
functional.py
0:0 
0:0 
view
6 x 2 augly/image
augly/image
functional.py
functional.py
0:0 
0:0 
view
6 x 2 augly/image
augly/image
functional.py
functional.py
0:0 
0:0 
view
7 x 2 augly/video
augly/image
transforms.py
transforms.py
0:0 
0:0 
view
8 x 2 augly/video
augly/image
transforms.py
transforms.py
0:0 
0:0 
view