aws-samples / aws-glue-flatten-nested-json
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
  • 17% duplication:
    • 1,212 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 218 duplicated lines
  • 18 duplicates
system17% (218 lines)
Duplication per Extension
yml23% (218 lines)
Duplication per Component (primary)
ROOT17% (218 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
14 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
183:196 (1%)
198:211 (1%)
view
12 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
478:489 (1%)
869:880 (1%)
view
9 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
297:305 (<1%)
312:320 (<1%)
view
9 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
238:246 (<1%)
250:258 (<1%)
view
9 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
183:191 (<1%)
213:221 (<1%)
view
9 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
198:206 (<1%)
213:221 (<1%)
view
8 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
462:469 (<1%)
819:826 (<1%)
view
8 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
845:852 (<1%)
859:866 (<1%)
view
8 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
287:294 (<1%)
302:309 (<1%)
view
7 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
411:417 (<1%)
869:875 (<1%)
view
7 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
396:402 (<1%)
590:596 (<1%)
view
7 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
411:417 (<1%)
478:484 (<1%)
view
7 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
419:425 (<1%)
488:494 (<1%)
view
7 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
387:393 (<1%)
599:605 (<1%)
view
6 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
176:181 (<1%)
191:196 (<1%)
view
6 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
141:146 (<1%)
150:155 (<1%)
view
6 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
264:269 (<1%)
274:279 (<1%)
view
6 x 2 ROOT
ROOT
flatten_json_cf_template.yml
flatten_json_cf_template.yml
176:181 (<1%)
206:211 (<1%)
view