pytorch / serve
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 319 files with 20,102 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,439 lines of code)
    • 16 medium size files (5,442 lines of codeclsfd_ftr_w_mp_ins)
    • 39 small files (5,605 lines of code)
    • 262 very small files (7,616 lines of code)
0% | 7% | 27% | 27% | 37%
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
java0% | 6% | 29% | 29% | 34%
yaml0% | 36% | 24% | 0% | 39%
py0% | 0% | 24% | 33% | 41%
yml0% | 0% | 0% | 0% | 100%
proto0% | 0% | 0% | 0% | 100%
tpl0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
Dockerfile0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
frontend0% | 7% | 30% | 29% | 32%
cloudformation0% | 59% | 40% | 0% | 0%
benchmarks0% | 0% | 78% | 16% | 5%
ts_scripts0% | 0% | 38% | 38% | 23%
ci0% | 0% | 63% | 0% | 36%
ts0% | 0% | 0% | 39% | 60%
model-archiver0% | 0% | 0% | 42% | 57%
plugins0% | 0% | 0% | 46% | 53%
kubernetes0% | 0% | 0% | 11% | 88%
experimental0% | 0% | 0% | 78% | 21%
workflow-archiver0% | 0% | 0% | 40% | 59%
ROOT0% | 0% | 0% | 72% | 27%
binaries0% | 0% | 0% | 0% | 100%
serving-sdk0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ConfigManager.java
in frontend/server/src/main/java/org/pytorch/serve/util
797 80
ec2-asg.yaml
in cloudformation
642 -
OpenApiUtils.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
482 21
ModelServer.java
in frontend/server/src/main/java/org/pytorch/serve
453 15
ec2.yaml
in cloudformation
441 -
ModelManager.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
427 29
WorkerThread.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
401 19
benchmark.py
in benchmarks
388 19
WorkflowManager.java
in frontend/server/src/main/java/org/pytorch/serve/workflow
386 15
benchmark-ab.py
in benchmarks
383 30
ApiUtils.java
in frontend/server/src/main/java/org/pytorch/serve/util
369 13
print_env_info.py
in ts_scripts
280 31
api_utils.py
in ts_scripts
280 16
InferenceRequestHandler.java
in frontend/server/src/main/java/org/pytorch/serve/http/api/rest
264 13
ManagementRequestHandler.java
in frontend/server/src/main/java/org/pytorch/serve/http/api/rest
234 14
NettyUtils.java
in frontend/server/src/main/java/org/pytorch/serve/util
226 15
WorkerLifeCycle.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
226 15
ec2.py
in ci/launcher/utils
202 17
Model.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
193 28
DescribeModelResponse.java
in frontend/server/src/main/java/org/pytorch/serve/http/messages
193 49
otf_message_handler.py
in ts/protocol
193 12
WorkFlow.java
in frontend/server/src/main/java/org/pytorch/serve/ensemble
187 14
Connector.java
in frontend/server/src/main/java/org/pytorch/serve/util
187 18
AWS4SignerBase.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/model/s3
181 7
WorkflowMgmtRequestHandler.java
in frontend/server/src/main/java/org/pytorch/serve/workflow/api/http
181 10
sanity_utils.py
in ts_scripts
177 4
model_packaging_utils.py
in model-archiver/model_archiver
175 14
ManagementImpl.java
in frontend/server/src/main/java/org/pytorch/serve/grpcimpl
173 11
DDBSnapshotSerializer.java
in plugins/DDBEndPoint/src/main/java/org/pytorch/serve/plugins/ddb/snapshot
171 8
WorkLoadManager.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
166 8
run_benchmark.py
in benchmarks/automated
164 2
DagExecutor.java
in frontend/server/src/main/java/org/pytorch/serve/ensemble
162 3
base_handler.py
in ts/torch_handler
157 11
SnapshotManager.java
in frontend/server/src/main/java/org/pytorch/serve/snapshot
149 12
model_server.py
in ts
147 2
WorkflowArchive.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/workflow
144 13
ModelArchive.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/model
141 13
install_dependencies.py
in ts_scripts
141 25
bert_handler.py
in kubernetes/kserve/handler/v2
134 9
OpenSslKey.java
in frontend/server/src/main/java/org/pytorch/serve/util
133 5
model_service_worker.py
in ts
132 4
main.py
in experimental/torchprep/torchprep
131 9
Metric.java
in frontend/server/src/main/java/org/pytorch/serve/metrics
127 18
contractions.py
in ts/torch_handler
125 -
marsgen.py
in ts_scripts
124 4
HttpRequestHandlerChain.java
in frontend/server/src/main/java/org/pytorch/serve/http
122 5
Manifest.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/model
118 28
Schema.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
118 29
tsutils.py
in ts_scripts
115 9
BatchAggregator.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
112 4
Files With Most Units (Top 20)
File# lines# units
ConfigManager.java
in frontend/server/src/main/java/org/pytorch/serve/util
797 80
DescribeModelResponse.java
in frontend/server/src/main/java/org/pytorch/serve/http/messages
193 49
print_env_info.py
in ts_scripts
280 31
benchmark-ab.py
in benchmarks
383 30
ModelManager.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
427 29
Schema.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
118 29
Manifest.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/model
118 28
Model.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
193 28
WorkflowManifest.java
in frontend/server/src/main/java/org/pytorch/serve/ensemble
111 26
context.py
in ts
80 26
install_dependencies.py
in ts_scripts
141 25
OpenApiUtils.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
482 21
Parameter.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
74 20
WorkerThread.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
401 19
Operation.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
76 19
benchmark.py
in benchmarks
388 19
Metric.java
in frontend/server/src/main/java/org/pytorch/serve/metrics
127 18
WorkflowModel.java
in frontend/server/src/main/java/org/pytorch/serve/ensemble
83 18
Connector.java
in frontend/server/src/main/java/org/pytorch/serve/util
187 18
ec2.py
in ci/launcher/utils
202 17
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 99 long lines.

File# lines# units# long lines
benchmark.py
in benchmarks
388 19 23
api_utils.py
in ts_scripts
280 16 12
OpenApiUtils.java
in frontend/server/src/main/java/org/pytorch/serve/openapi
482 21 8
benchmark-ab.py
in benchmarks
383 30 8
ec2.yaml
in cloudformation
441 - 8
ec2-asg.yaml
in cloudformation
642 - 7
main.py
in experimental/torchprep/torchprep
131 9 6
proto
management.proto
in frontend/server/src/main/resources/proto
83 - 5
build_packages.py
in binaries/conda
73 3 4
run_benchmark.py
in benchmarks/automated
164 2 4
print_env_info.py
in ts_scripts
280 31 2
windows_install_dependencies.py
in benchmarks
51 1 2
ModelArchive.java
in frontend/archive/src/main/java/org/pytorch/serve/archive/model
141 13 1
WorkerThread.java
in frontend/server/src/main/java/org/pytorch/serve/wlm
401 19 1
WorkflowManager.java
in frontend/server/src/main/java/org/pytorch/serve/workflow
386 15 1
DDBSnapshotSerializer.java
in plugins/DDBEndPoint/src/main/java/org/pytorch/serve/plugins/ddb/snapshot
171 8 1
sanity_utils.py
in ts_scripts
177 4 1
tsutils.py
in ts_scripts
115 9 1
upload.py
in binaries
56 2 1
s3_binary_upload.py
in binaries
67 3 1