aws-samples / amazon-textract-response-parser
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
  • 13% duplication:
    • 3,934 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 550 duplicated lines
  • 38 duplicates
system13% (550 lines)
Duplication per Extension
py20% (383 lines)
ts6% (110 lines)
cs12% (57 lines)
Duplication per Component (primary)
src-python/trp14% (225 lines)
src-python/a2i60% (158 lines)
src-js/src7% (110 lines)
src-csharp12% (57 lines)
src-python0% (0 lines)
src-js/src/api-models0% (0 lines)
src-js0% (0 lines)

Duplication Between Components (50+ lines)

G src-python/a2i src-python/a2i src-python/trp src-python/trp src-python/a2i--src-python/trp 212

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 38 duplicates...
Size#FoldersFilesLinesCode
28 x 2 src-python/a2i
src-python/a2i
a2irp.py
a2irp.py
27:62 (12%)
65:100 (12%)
view
26 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
125:157 (11%)
262:295 (5%)
view
19 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
200:224 (8%)
513:537 (3%)
view
14 x 2 src-csharp
src-csharp
TextractExtensions.cs
TextractExtensions.cs
371:385 (3%)
412:427 (3%)
view
14 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
233:252 (6%)
554:573 (2%)
view
12 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
277:292 (5%)
599:614 (2%)
view
11 x 2 src-csharp
src-csharp
TextractExtensions.cs
TextractExtensions.cs
391:406 (2%)
429:445 (2%)
view
10 x 2 src-python/trp
src-python/trp
__init__.py
__init__.py
187:198 (2%)
209:220 (2%)
view
10 x 2 src-js/src
src-js/src
document.ts
document.ts
1155:1165 (<1%)
1201:1211 (<1%)
view
10 x 2 src-js/src
src-js/src
base.ts
document.ts
50:59 (23%)
668:677 (<1%)
view
10 x 2 src-python/trp
src-python/trp
__init__.py
__init__.py
38:50 (2%)
169:181 (2%)
view
9 x 2 src-python/trp
src-python/trp
trp2_expense.py
trp2_expense.py
95:104 (3%)
123:132 (3%)
view
9 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
14:24 (3%)
46:56 (1%)
view
8 x 2 src-python/trp
src-python/trp
trp2_expense.py
trp2_expense.py
183:191 (3%)
221:229 (3%)
view
8 x 2 src-js/src
src-js/src
document.ts
document.ts
212:221 (<1%)
265:274 (<1%)
view
8 x 2 src-python/a2i
src-python/trp
a2irp.py
__init__.py
179:188 (3%)
445:454 (1%)
view
7 x 2 src-python/trp
src-python/trp
trp2_expense.py
trp2_expense.py
175:181 (2%)
211:218 (2%)
view
7 x 2 src-python/trp
src-python/trp
__init__.py
__init__.py
173:181 (1%)
537:545 (1%)
view
7 x 2 src-csharp
src-csharp
TextractExtensions.cs
TextractExtensions.cs
15:22 (1%)
438:445 (1%)
view
7 x 2 src-python/trp
src-python/trp
trp2.py
trp2_expense.py
673:680 (1%)
463:470 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 src-python/a2i
src-python/a2i
a2irp.py
a2irp.py
0:0 
0:0 
view