aws-solutions / discovering-hot-topics-using-machine-learning
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 139 files with 7,522 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,167 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,723 lines of code)
    • 122 very small files (4,632 lines of code)
0% | 0% | 15% | 22% | 61%
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% | 0% | 32% | 22% | 44%
py0% | 0% | 0% | 43% | 56%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/lib0% | 0% | 100% | 0% | 0%
source/lib/text-analysis-workflow0% | 0% | 61% | 0% | 38%
source/lib/topic-analysis-workflow0% | 0% | 100% | 0% | 0%
source/lib/ingestion0% | 0% | 25% | 49% | 24%
source/lambda/quicksight-custom-resources0% | 0% | 0% | 38% | 61%
source/lambda/wf_publish_topic_model0% | 0% | 0% | 99% | <1%
source/lambda/capture_news_feed0% | 0% | 0% | 44% | 55%
source/lib/storage0% | 0% | 0% | 70% | 29%
source/lib/visualization0% | 0% | 0% | 20% | 79%
source/lambda/ingestion-youtube0% | 0% | 0% | 43% | 56%
source/lib/integration0% | 0% | 0% | 42% | 57%
source/lambda/firehose-text-proxy0% | 0% | 0% | 0% | 100%
source/lambda/ingestion-producer0% | 0% | 0% | 0% | 100%
source/lambda/wf-detect-moderation-labels0% | 0% | 0% | 0% | 100%
source/lambda/wf-extract-text-in-image0% | 0% | 0% | 0% | 100%
source/lambda/wf-submit-topic-model0% | 0% | 0% | 0% | 100%
source/lib/quicksight-custom-resources0% | 0% | 0% | 0% | 100%
source/lambda/wf-translate-text0% | 0% | 0% | 0% | 100%
source/lambda/create-partition0% | 0% | 0% | 0% | 100%
source/lib/solution-helper0% | 0% | 0% | 0% | 100%
source/lambda/wf-analyze-text0% | 0% | 0% | 0% | 100%
source/lib/awsnodejs-lambda-layer0% | 0% | 0% | 0% | 100%
source/lambda/layers0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
source/lambda/firehose_topic_proxy0% | 0% | 0% | 0% | 100%
source/lambda/wf-detect-language0% | 0% | 0% | 0% | 100%
source/lambda/solution_helper0% | 0% | 0% | 0% | 100%
source/lambda/wf-check-topic-model0% | 0% | 0% | 0% | 100%
source/lambda/wf-publish-text-inference0% | 0% | 0% | 0% | 100%
source/lib/aspects0% | 0% | 0% | 0% | 100%
source/lambda/ingestion-consumer0% | 0% | 0% | 0% | 100%
source/lambda/storage-firehose-processor0% | 0% | 0% | 0% | 100%
source/lambda/integration0% | 0% | 0% | 0% | 100%
source0% | 0% | 0% | 0% | 100%
deployment0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
discovering-hot-topics-stack.ts
in source/lib
392 1
text-orchestration-construct.ts
in source/lib/text-analysis-workflow
320 4
topic-orchestration-construct.ts
in source/lib/topic-analysis-workflow
247 1
data-ingestion-template.ts
in source/lib/ingestion
208 11
newscatcher_helper.py
in source/lambda/capture_news_feed/util
190 11
event-storage-construct.ts
in source/lib/storage
173 -
youtube-comments-stacks.ts
in source/lib/ingestion
163 1
inf-database-construct.ts
in source/lib/visualization
155 -
quicksight_resource.py
in source/lambda/quicksight-custom-resources/util
129 14
quicksight.py
in source/lambda/quicksight-custom-resources/util
126 21
comment.py
in source/lambda/ingestion-youtube/util
122 10
newscatcher-stack.ts
in source/lib/ingestion
118 1
ingestion-construct.ts
in source/lib/ingestion
115 -
template.py
in source/lambda/quicksight-custom-resources/util
111 10
app-integration-construct.ts
in source/lib/integration
109 -
topic.py
in source/lambda/wf_publish_topic_model/util
109 5
lambda_function.py
in source/lambda/wf_publish_topic_model
103 6
layer.ts
in source/lib/awsnodejs-lambda-layer
99 2
quicksight_application.py
in source/lambda/quicksight-custom-resources/util
99 12
dataset.py
in source/lambda/quicksight-custom-resources/util
99 7
store-text-analysis.js
in source/lambda/firehose-text-proxy/util
97 -
index.js
in source/lambda/wf-extract-text-in-image
96 1
lambda_function.py
in source/lambda/quicksight-custom-resources
95 8
store-text-img-analysis.js
in source/lambda/firehose-text-proxy/util
93 -
twitter-search-stack.ts
in source/lib/ingestion
92 1
index.js
in source/lambda/wf-analyze-text
92 1
quicksight-construct.ts
in source/lib/quicksight-custom-resources
89 1
callback-task-construct.ts
in source/lib/text-analysis-workflow
89 1
video.py
in source/lambda/ingestion-youtube/util
85 3
index.js
in source/lambda/wf-detect-moderation-labels
84 1
solution-helper-construct.ts
in source/lib/solution-helper
83 2
index.js
in source/lambda/wf-translate-text
81 1
workflow-construct.ts
in source/lib/text-analysis-workflow
74 1
index.js
in source/lambda/wf-submit-topic-model
73 -
index.js
in deployment/cdk-solution-helper
73 -
config_helper.py
in source/lambda/capture_news_feed/util
72 4
storage-crawler-construct.ts
in source/lib/storage
71 -
dashboard.py
in source/lambda/quicksight-custom-resources/util
70 6
quicksight-stack.ts
in source/lib/quicksight-custom-resources
69 -
newsfeed-table-construct.ts
in source/lib/visualization
68 1
datasource.py
in source/lambda/quicksight-custom-resources/util
68 5
twitter-client.js
in source/lambda/ingestion-producer/util
67 3
analysis.py
in source/lambda/quicksight-custom-resources/util
65 5
lambda_function.py
in source/lambda/solution_helper
61 3
extract-records.js
in source/lambda/wf-submit-topic-model/util
61 2
ddb_helper.py
in source/lambda/capture_news_feed/util
60 4
topic.py
in source/lambda/firehose_topic_proxy/util
57 2
topic-analysis-proxy.ts
in source/lib/integration
54 -
feed-tracker.js
in source/lambda/ingestion-producer/util
54 2
lambda_function.py
in source/lambda/capture_news_feed
54 2
Files With Most Units (Top 20)
File# lines# units
quicksight.py
in source/lambda/quicksight-custom-resources/util
126 21
quicksight_resource.py
in source/lambda/quicksight-custom-resources/util
129 14
quicksight_application.py
in source/lambda/quicksight-custom-resources/util
99 12
data-ingestion-template.ts
in source/lib/ingestion
208 11
newscatcher_helper.py
in source/lambda/capture_news_feed/util
190 11
template.py
in source/lambda/quicksight-custom-resources/util
111 10
comment.py
in source/lambda/ingestion-youtube/util
122 10
data-cleanse.js
in source/lambda/wf-translate-text/util
34 8
lambda_function.py
in source/lambda/quicksight-custom-resources
95 8
dataset.py
in source/lambda/quicksight-custom-resources/util
99 7
lambda_function.py
in source/lambda/wf_publish_topic_model
103 6
helpers.py
in source/lambda/quicksight-custom-resources/util
35 6
dashboard.py
in source/lambda/quicksight-custom-resources/util
70 6
topic.py
in source/lambda/wf_publish_topic_model/util
109 5
analysis.py
in source/lambda/quicksight-custom-resources/util
65 5
datasource.py
in source/lambda/quicksight-custom-resources/util
68 5
text-orchestration-construct.ts
in source/lib/text-analysis-workflow
320 4
config_helper.py
in source/lambda/capture_news_feed/util
72 4
ddb_helper.py
in source/lambda/capture_news_feed/util
60 4
source_entity.py
in source/lambda/quicksight-custom-resources/util
50 4
Files With Long Lines (Top 20)

There are 41 files with lines longer than 120 characters. In total, there are 157 long lines.

File# lines# units# long lines
discovering-hot-topics-stack.ts
in source/lib
392 1 52
youtube-comments-stacks.ts
in source/lib/ingestion
163 1 10
newscatcher-stack.ts
in source/lib/ingestion
118 1 8
quicksight-stack.ts
in source/lib/quicksight-custom-resources
69 - 8
text-orchestration-construct.ts
in source/lib/text-analysis-workflow
320 4 8
twitter-search-stack.ts
in source/lib/ingestion
92 1 7
topic-orchestration-construct.ts
in source/lib/topic-analysis-workflow
247 1 6
ingestion-construct.ts
in source/lib/ingestion
115 - 5
index.js
in source/lambda/wf-extract-text-in-image
96 1 3
index.js
in source/lambda/ingestion-producer
53 1 3
twitter-client.js
in source/lambda/ingestion-producer/util
67 3 3
index.js
in source/lambda/wf-detect-language
53 1 3
index.js
in source/lambda/wf-analyze-text
92 1 3
store-text-analysis.js
in source/lambda/firehose-text-proxy/util
97 - 3
store-text-img-analysis.js
in source/lambda/firehose-text-proxy/util
93 - 3
event-storage-construct.ts
in source/lib/storage
173 - 2
topic-analysis-proxy.ts
in source/lib/integration
54 - 2
index.js
in source/lambda/wf-detect-moderation-labels
84 1 2
account-secrets.js
in source/lambda/ingestion-producer/util
38 2 2
index.js
in source/lambda/wf-translate-text
81 1 2