awslabs / realtime-fraud-detection-with-gnn-on-dgl
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:
    • 5,567 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 271 duplicated lines
  • 17 duplicates
system4% (271 lines)
Duplication per Extension
ts5% (180 lines)
py5% (70 lines)
scss5% (21 lines)
Duplication per Component (primary)
src/lib5% (126 lines)
src/sagemaker9% (70 lines)
frontend/src3% (47 lines)
src/lambda.d3% (28 lines)
src0% (0 lines)
src/container.d0% (0 lines)
src/scripts0% (0 lines)
src/schema0% (0 lines)
frontend/public0% (0 lines)
frontend0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
18 x 2 src/lib
src/lib
dashboard-stack.ts
dashboard-stack.ts
239:256 (2%)
407:424 (2%)
view
18 x 2 src/sagemaker/FD_SL_DGL/code
src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
fd_sl_deployment_entry_point.py
pytorch_model.py
69:96 (10%)
9:36 (50%)
view
14 x 2 src/lambda.d/dashboard
src/lambda.d/dashboard
api.ts
event.ts
39:54 (19%)
11:26 (50%)
view
13 x 2 frontend/src
frontend/src
API.ts
API.ts
18:30 (19%)
60:72 (19%)
view
10 x 2 src/sagemaker/FD_SL_DGL/code
src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
fd_sl_deployment_entry_point.py
pytorch_model.py
99:113 (5%)
39:53 (27%)
view
8 x 2 src/lib
src/lib
layer.ts
layer.ts
18:25 (16%)
44:51 (16%)
view
8 x 2 src/lib
src/lib
dashboard-stack.ts
dashboard-stack.ts
287:294 (<1%)
413:420 (<1%)
view
8 x 2 src/lib
src/lib
dashboard-stack.ts
dashboard-stack.ts
245:252 (<1%)
287:294 (<1%)
view
7 x 2 frontend/src
frontend/src
index.scss
index.scss
231:237 (1%)
417:423 (1%)
view
7 x 2 src/lib
src/lib
training-stack.ts
training-stack.ts
707:713 (<1%)
716:722 (<1%)
view
7 x 2 frontend/src
frontend/src
index.scss
index.scss
231:237 (1%)
243:249 (1%)
view
7 x 2 src/lib
src/lib
inference-stack.ts
training-stack.ts
85:92 (8%)
402:409 (<1%)
view
7 x 2 src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
src/sagemaker/data-preprocessing
estimator_fns.py
graph_data_preprocessor.py
30:38 (24%)
21:29 (8%)
view
7 x 2 frontend/src
frontend/src
index.scss
index.scss
243:249 (1%)
417:423 (1%)
view
7 x 2 src/lib
src/lib
training-stack.ts
training-stack.ts
768:775 (<1%)
777:784 (<1%)
view
6 x 2 src/lib
src/lib
dashboard-stack.ts
dashboard-stack.ts
382:389 (<1%)
396:403 (<1%)
view
6 x 2 src/lib
src/lib
dashboard-stack.ts
training-stack.ts
512:517 (<1%)
750:755 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
14 x 2 src/sagemaker/FD_SL_DGL/code
src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
fd_sl_deployment_entry_point.py
pytorch_model.py
0:0 
0:0 
view
7 x 3 src/lib
src/lib
src/lib
training-stack.ts
training-stack.ts
dashboard-stack.ts
72:79 
368:375 
486:493 
view