awslabs / handwritten-text-recognition-for-apache-mxnet
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
  • 4% duplication:
    • 3,258 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 159 duplicated lines
  • 11 duplicates
system4% (159 lines)
Duplication per Extension
py4% (159 lines)
Duplication per Component (primary)
ocr/utils4% (91 lines)
ocr6% (68 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
11 x 2 ocr
ocr
handwriting_line_recognition.py
word_and_line_segmentation.py
126:139 (3%)
70:83 (2%)
view
10 x 2 ocr/utils
ocr/utils
encoder_decoder.py
encoder_decoder.py
617:626 (1%)
807:816 (1%)
view
8 x 2 ocr/utils
ocr/utils
draw_box_on_image.py
draw_box_on_image.py
62:71 (8%)
101:111 (8%)
view
7 x 2 ocr/utils
ocr/utils
encoder_decoder.py
encoder_decoder.py
628:634 (1%)
818:824 (1%)
view
7 x 2 ocr
ocr
handwriting_line_recognition.py
word_and_line_segmentation.py
280:288 (1%)
421:430 (1%)
view
7 x 2 ocr/utils
ocr/utils
encoder_decoder.py
encoder_decoder.py
1065:1071 (1%)
1076:1082 (1%)
view
7 x 2 ocr
ocr
word_and_line_segmentation.py
word_and_line_segmentation.py
94:102 (1%)
113:121 (1%)
view
6 x 2 ocr/utils
ocr/utils
encoder_decoder.py
encoder_decoder.py
481:486 (<1%)
804:809 (<1%)
view
6 x 2 ocr
ocr
handwriting_line_recognition.py
paragraph_segmentation_dcnn.py
449:455 (1%)
202:207 (3%)
view
6 x 2 ocr/utils
ocr/utils
iam_dataset.py
iam_dataset.py
324:331 (1%)
360:367 (1%)
view
6 x 2 ocr
ocr/utils
paragraph_segmentation_dcnn.py
iam_dataset.py
58:64 (3%)
446:452 (1%)
view