pytorch / elastic
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 41 files with 2,517 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (960 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (676 lines of code)
    • 32 very small files (881 lines of code)
0% | 0% | 38% | 26% | 35%
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
py0% | 0% | 64% | 15% | 19%
yml0% | 0% | 100% | 0% | 0%
go0% | 0% | 0% | 50% | 49%
yaml0% | 0% | 0% | 27% | 72%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
azure0% | 0% | 100% | 0% | 0%
aws/cfn0% | 0% | 100% | 0% | 0%
aws0% | 0% | 45% | 31% | 23%
kubernetes/controllers0% | 0% | 0% | 51% | 48%
kubernetes/config0% | 0% | 0% | 31% | 68%
kubernetes/api0% | 0% | 0% | 66% | 33%
kubernetes0% | 0% | 0% | 0% | 100%
azure/config0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
aws/auth0% | 0% | 0% | 0% | 100%
torchelastic/distributed0% | 0% | 0% | 0% | 100%
torchelastic0% | 0% | 0% | 0% | 100%
Longest Files (Top 41)
File# lines# units
setup.yml
in aws/cfn
271 -
petctl.py
in aws
246 11
petctl.py
in azure
223 10
util.py
in azure
220 19
autoscaling.py
in aws
168 15
job.go
in kubernetes/controllers
157 5
elasticjob_controller.go
in kubernetes/controllers
143 12
elastic.pytorch.org_elasticjobs.yaml
in kubernetes/config/crd/bases
107 -
zz_generated.deepcopy.go
in kubernetes/api/v1alpha1
101 10
expectation.go
in kubernetes/controllers
91 3
pod.go
in kubernetes/controllers
91 5
cloudformation.py
in aws
72 4
service.go
in kubernetes/controllers
66 4
role.yaml
in kubernetes/config/rbac
63 -
main.go
in kubernetes
56 2
sample_specs.yaml
in azure/config
52 -
setup.py
in root
39 1
manager.yaml
in kubernetes/config/manager
39 -
elasticjob_types.go
in kubernetes/api/v1alpha1
34 1
util.go
in kubernetes/controllers
33 3
s3.py
in aws
31 2
leader_election_role.yaml
in kubernetes/config/rbac
31 -
elasticjob_editor_role.yaml
in kubernetes/config/rbac
25 -
session.py
in aws/auth
22 4
util.py
in aws
22 1
elasticjob_viewer_role.yaml
in kubernetes/config/rbac
19 -
kustomizeconfig.yaml
in kubernetes/config/crd
14 -
leader_election_role_binding.yaml
in kubernetes/config/rbac
12 -
role_binding.yaml
in kubernetes/config/rbac
12 -
groupversion_info.go
in kubernetes/api/v1alpha1
10 -
__init__.py
in aws/auth
7 1
launch.py
in torchelastic/distributed
7 1
kustomization.yaml
in kubernetes/config/default
7 -
constants.go
in kubernetes/api/v1alpha1
7 -
__init__.py
in torchelastic/distributed
5 -
kustomization.yaml
in kubernetes/config/rbac
5 -
kustomization.yaml
in kubernetes/config/crd
4 -
kustomization.yaml
in kubernetes/config/manager
2 -
__init__.py
in root
1 -
__init__.py
in aws
1 -
__init__.py
in torchelastic
1 -
Files With Most Units (Top 20)
File# lines# units
util.py
in azure
220 19
autoscaling.py
in aws
168 15
elasticjob_controller.go
in kubernetes/controllers
143 12
petctl.py
in aws
246 11
petctl.py
in azure
223 10
zz_generated.deepcopy.go
in kubernetes/api/v1alpha1
101 10
pod.go
in kubernetes/controllers
91 5
job.go
in kubernetes/controllers
157 5
session.py
in aws/auth
22 4
cloudformation.py
in aws
72 4
service.go
in kubernetes/controllers
66 4
expectation.go
in kubernetes/controllers
91 3
util.go
in kubernetes/controllers
33 3
s3.py
in aws
31 2
main.go
in kubernetes
56 2
setup.py
in root
39 1
__init__.py
in aws/auth
7 1
util.py
in aws
22 1
launch.py
in torchelastic/distributed
7 1
elasticjob_types.go
in kubernetes/api/v1alpha1
34 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
job.go
in kubernetes/controllers
157 5 5
elasticjob_controller.go
in kubernetes/controllers
143 12 3
elastic.pytorch.org_elasticjobs.yaml
in kubernetes/config/crd/bases
107 - 2
expectation.go
in kubernetes/controllers
91 3 2
service.go
in kubernetes/controllers
66 4 2
pod.go
in kubernetes/controllers
91 5 2
main.go
in kubernetes
56 2 1