awslabs / realtime-fraud-detection-with-gnn-on-dgl
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 63 files with 6,133 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,730 lines of code)
    • 5 medium size files (1,499 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (990 lines of code)
    • 49 very small files (1,914 lines of code)
0% | 28% | 24% | 16% | 31%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts0% | 52% | 14% | 7% | 25%
scss0% | 0% | 91% | 0% | 8%
tsx0% | 0% | 37% | 15% | 47%
py0% | 0% | 20% | 43% | 36%
graphql0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/lib0% | 66% | 18% | 5% | 10%
frontend/src0% | 0% | 47% | 9% | 43%
src/lambda.d0% | 0% | 30% | 13% | 56%
src/sagemaker0% | 0% | 0% | 59% | 40%
src/scripts0% | 0% | 0% | 100% | 0%
src/container.d0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/schema0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
frontend0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
dashboard-stack.ts
in src/lib
932 6
training-stack.ts
in src/lib
798 10
index.scss
in frontend/src
379 -
Dashboard.tsx
in frontend/src/pages/dashboard
373 4
inferenceApi.py
in src/lambda.d/inference/func
272 6
etl-glue.ts
in src/lib
258 2
stack.ts
in src/lib
217 2
fd_sl_deployment_entry_point.py
in src/sagemaker/FD_SL_DGL/code
179 10
fd_sl_train_entry_point.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
158 7
TransactionList.tsx
in frontend/src/pages/dashboard/comps
154 -
sar.ts
in src/lib
133 1
data.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
126 8
sar.ts
in src/lambda.d/sar-deployment
122 1
glue-etl.py
in src/scripts
118 6
inference-stack.ts
in src/lib
100 1
List.tsx
in frontend/src/pages/list
97 1
FSHeader.tsx
in frontend/src/common
94 -
utils.ts
in src/lib
91 5
App.tsx
in frontend/src
88 -
graph_data_preprocessor.py
in src/sagemaker/data-preprocessing
87 6
api.ts
in src/lambda.d/dashboard
83 -
RealtimeChart.tsx
in frontend/src/pages/dashboard/comps
76 2
API.ts
in frontend/src
66 -
gen.py
in src/lambda.d/simulator
60 3
const.ts
in frontend/src/assets/js
60 -
utils.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
59 4
layer.ts
in src/lib
57 3
index.ts
in src/lambda.d/parameters-normalize
54 1
handler.ts
in src/lambda.d/create-indexes
51 1
client_boto_demo.py
in src/sagemaker/FD_SL_DGL/clients_python
51 3
SearchList.tsx
in frontend/src/pages/list
48 -
bulk-load.py
in src/container.d/load-graph-data
45 -
graph_utils.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
44 2
pytorch_model.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
41 4
index.ts
in src/lambda.d/crawl-data-catalog
39 1
main.ts
in src
36 2
index.ts
in src/lambda.d/training-hyperparam
34 -
doc-util.ts
in src/lambda.d/share.d
34 -
event.ts
in src/lambda.d/dashboard
33 -
queries.ts
in frontend/src/graphql
33 4
App.scss
in frontend/src
33 -
estimator_fns.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
32 2
parameter.ts
in src/lambda.d/simulator
29 1
dashboard.graphql
in src/schema
29 -
app.py
in src/lambda.d/check-sagemaker-endpoint
27 1
import.py
in src/lambda.d/ingest
24 2
useWindowSize.tsx
in frontend/src/hooks
24 1
app.py
in src/lambda.d/repackage-model
22 1
index.html
in frontend/public
20 -
token.ts
in src/lambda.d/dashboard
19 -
Files With Most Units (Top 20)
File# lines# units
training-stack.ts
in src/lib
798 10
fd_sl_deployment_entry_point.py
in src/sagemaker/FD_SL_DGL/code
179 10
data.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
126 8
fd_sl_train_entry_point.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
158 7
dashboard-stack.ts
in src/lib
932 6
inferenceApi.py
in src/lambda.d/inference/func
272 6
glue-etl.py
in src/scripts
118 6
graph_data_preprocessor.py
in src/sagemaker/data-preprocessing
87 6
utils.ts
in src/lib
91 5
utils.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
59 4
pytorch_model.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
41 4
queries.ts
in frontend/src/graphql
33 4
Dashboard.tsx
in frontend/src/pages/dashboard
373 4
layer.ts
in src/lib
57 3
gen.py
in src/lambda.d/simulator
60 3
client_boto_demo.py
in src/sagemaker/FD_SL_DGL/clients_python
51 3
etl-glue.ts
in src/lib
258 2
stack.ts
in src/lib
217 2
main.ts
in src
36 2
import.py
in src/lambda.d/ingest
24 2
Files With Long Lines (Top 17)

There are 17 files with lines longer than 120 characters. In total, there are 56 long lines.

File# lines# units# long lines
inferenceApi.py
in src/lambda.d/inference/func
272 6 12
training-stack.ts
in src/lib
798 10 10
glue-etl.py
in src/scripts
118 6 6
etl-glue.ts
in src/lib
258 2 4
stack.ts
in src/lib
217 2 4
dashboard-stack.ts
in src/lib
932 6 4
layer.ts
in src/lib
57 3 2
gen.py
in src/lambda.d/simulator
60 3 2
handler.ts
in src/lambda.d/create-indexes
51 1 2
sar.ts
in src/lambda.d/sar-deployment
122 1 2
fd_sl_train_entry_point.py
in src/sagemaker/FD_SL_DGL/gnn_fraud_detection_dgl
158 7 2
inference-stack.ts
in src/lib
100 1 1
utils.ts
in src/lib
91 5 1
dataset.ts
in src/lib
17 1 1
app.py
in src/lambda.d/check-sagemaker-endpoint
27 1 1
doc-util.ts
in src/lambda.d/share.d
34 - 1
index.html
in frontend/public
20 - 1