facebookresearch / hydra
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 199 files with 11,984 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,228 lines of code)
    • 13 medium size files (4,190 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,611 lines of code)
    • 166 very small files (3,955 lines of code)
0% | 10% | 34% | 21% | 33%
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% | 11% | 40% | 21% | 26%
js0% | 0% | 0% | 94% | 5%
yaml0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
g40% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
jsx0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hydra/_internal0% | 33% | 40% | 8% | 16%
hydra/core0% | 0% | 70% | 21% | 8%
ROOT0% | 0% | 75% | 0% | 24%
plugins/hydra_ax_sweeper0% | 0% | 56% | 0% | 43%
plugins/hydra_optuna_sweeper0% | 0% | 45% | 21% | 32%
hydra/plugins0% | 0% | 55% | 27% | 16%
tools/configen0% | 0% | 51% | 0% | 48%
plugins/hydra_ray_launcher0% | 0% | 0% | 52% | 47%
website0% | 0% | 0% | 100% | 0%
plugins/hydra_nevergrad_sweeper0% | 0% | 0% | 51% | 48%
tools/release0% | 0% | 0% | 75% | 24%
build_helpers0% | 0% | 0% | 98% | 1%
plugins/hydra_rq_launcher0% | 0% | 0% | 45% | 54%
plugins/hydra_submitit_launcher0% | 0% | 0% | 46% | 53%
website/src0% | 0% | 0% | 37% | 62%
hydra0% | 0% | 0% | 0% | 100%
plugins/hydra_joblib_launcher0% | 0% | 0% | 0% | 100%
hydra/conf0% | 0% | 0% | 0% | 100%
hydra/grammar0% | 0% | 0% | 0% | 100%
plugins/hydra_colorlog0% | 0% | 0% | 0% | 100%
hydra/experimental0% | 0% | 0% | 0% | 100%
hydra/extra0% | 0% | 0% | 0% | 100%
tools/ci0% | 0% | 0% | 0% | 100%
website/versioned_docs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
defaults_list.py
in hydra/_internal
646 29
hydra.py
in hydra/_internal
582 34
utils.py
in hydra/_internal
496 20
config_loader_impl.py
in hydra/_internal
464 22
default_element.py
in hydra/core
439 78
noxfile.py
in root
370 23
overrides_visitor.py
in hydra/core/override_parser
344 22
types.py
in hydra/core/override_parser
342 28
config_repository.py
in hydra/_internal
286 30
grammar_functions.py
in hydra/_internal/grammar
272 18
_core.py
in plugins/hydra_ax_sweeper/hydra_plugins/hydra_ax_sweeper
269 14
_impl.py
in plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper
242 5
utils.py
in hydra/core
232 16
completion_plugin.py
in hydra/plugins
228 17
configen.py
in tools/configen/configen
206 6
plugins.py
in hydra/core
198 11
_instantiate2.py
in hydra/_internal/instantiate
196 9
_core_aws.py
in plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher
184 4
_impl.py
in plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper
179 5
release.py
in tools/release
175 9
sidebars.js
in website
175 1
build_helpers.py
in build_helpers
165 14
_config.py
in plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher
164 1
basic_sweeper.py
in hydra/_internal/core_plugins
135 8
_core.py
in plugins/hydra_rq_launcher/hydra_plugins/hydra_rq_launcher
129 2
docusaurus.config.js
in website
121 -
_launcher_util.py
in plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher
120 7
submitit_launcher.py
in plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher
118 5
config.py
in plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper
115 -
config_source.py
in hydra/plugins
113 14
index.js
in website/src/pages
112 1
config_store.py
in hydra/core
111 12
overrides_parser.py
in hydra/core/override_parser
101 6
utils.py
in tools/configen/configen
93 4
initialize.py
in hydra
93 14
__init__.py
in hydra/conf
93 -
_core.py
in plugins/hydra_joblib_launcher/hydra_plugins/hydra_joblib_launcher
91 3
importlib_resources_config_source.py
in hydra/_internal/core_plugins
85 8
pytest_plugin.py
in hydra/extra
82 5
styles.module.css
in website/src/pages
73 -
create_integration_test_ami.py
in plugins/hydra_ray_launcher/integration_test_tools
72 2
config_search_path_impl.py
in hydra/_internal
72 8
initialize.py
in hydra/experimental
71 14
basic_launcher.py
in hydra/_internal/core_plugins
70 3
_remote_invoke.py
in plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher
68 3
g4
OverrideLexer.g4
in hydra/grammar
68 -
g4
OverrideParser.g4
in hydra/grammar
61 -
toml
pyproject.toml
in root
60 -
circleci_pipeline.py
in tools/ci
59 3
functions.py
in hydra/_internal/grammar
57 2
Files With Most Units (Top 20)
File# lines# units
default_element.py
in hydra/core
439 78
hydra.py
in hydra/_internal
582 34
config_repository.py
in hydra/_internal
286 30
defaults_list.py
in hydra/_internal
646 29
types.py
in hydra/core/override_parser
342 28
noxfile.py
in root
370 23
config_loader_impl.py
in hydra/_internal
464 22
overrides_visitor.py
in hydra/core/override_parser
344 22
utils.py
in hydra/_internal
496 20
grammar_functions.py
in hydra/_internal/grammar
272 18
completion_plugin.py
in hydra/plugins
228 17
utils.py
in hydra/core
232 16
_core.py
in plugins/hydra_ax_sweeper/hydra_plugins/hydra_ax_sweeper
269 14
build_helpers.py
in build_helpers
165 14
initialize.py
in hydra/experimental
71 14
initialize.py
in hydra
93 14
config_source.py
in hydra/plugins
113 14
config_store.py
in hydra/core
111 12
plugins.py
in hydra/core
198 11
release.py
in tools/release
175 9
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 5 long lines.

File# lines# units# long lines
index.js
in website/src/pages
112 1 3
colorlog.yaml
in plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/conf/hydra/job_logging
26 - 1
docusaurus.config.js
in website
121 - 1