facebookresearch / Kats
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 91 files with 19,731 lines of code.
    • 2 very long files (2,323 lines of code)
    • 9 long files (5,961 lines of code)
    • 19 medium size files (6,241 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,515 lines of code)
    • 38 very small files (1,691 lines of code)
11% | 30% | 31% | 17% | 8%
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
py11% | 30% | 31% | 17% | 8%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
kats/tsfeatures99% | 0% | 0% | 0% | <1%
kats/models12% | 22% | 36% | 20% | 8%
kats/detectors0% | 36% | 40% | 13% | 9%
kats/utils0% | 44% | 22% | 30% | 2%
kats0% | 98% | 0% | 0% | 1%
kats/graphics0% | 0% | 0% | 99% | <1%
sphinx/source0% | 0% | 0% | 0% | 100%
kats/evaluation0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
kats/data0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tsfeatures.py
in kats/tsfeatures
1194 44
utils.py
in kats/models/globalmodel
1129 53
model.py
in kats/models/globalmodel
929 24
bocpd.py
in kats/detectors
870 60
stat_sig_detector.py
in kats/detectors
660 28
backtesters.py
in kats/utils
639 26
consts.py
in kats
628 52
cusum_detection.py
in kats/detectors
616 32
time_series_parameter_tuning.py
in kats/utils
551 25
metalearner_hpt.py
in kats/models/metalearner
550 18
kats_ensemble.py
in kats/models/ensemble
518 17
detector_consts.py
in kats/detectors
459 38
cusum_model.py
in kats/detectors
443 16
backtester.py
in kats/models/globalmodel
416 10
changepoint_evaluator.py
in kats/detectors
404 29
ensemble.py
in kats/models/globalmodel
402 9
data_processor.py
in kats/models/globalmodel
401 11
simulator.py
in kats/utils
381 22
trend_mk.py
in kats/detectors
367 23
bayesian_var.py
in kats/models
357 20
metalearner_modelselect.py
in kats/models/metalearner
323 18
thm.py
in kats/models/reconciliation
322 14
prophet.py
in kats/models
299 7
get_metadata.py
in kats/models/metalearner
275 16
sarima.py
in kats/models
259 7
prophet_detector.py
in kats/detectors
244 15
dtwcpd.py
in kats/detectors
239 12
outlier.py
in kats/detectors
223 13
metalearner_predictability.py
in kats/models/metalearner
221 9
emp_confidence_int.py
in kats/utils
206 6
parameter_tuning_utils.py
in kats/utils
199 8
feature_extraction.py
in kats/models/nowcasting
196 12
multi_objective_hpt.py
in kats/utils
188 14
dynamic_nowcasting.py
in kats/models/nowcasting
184 13
detector_benchmark.py
in kats/detectors
182 16
hourly_ratio_detection.py
in kats/detectors
180 6
decomposition.py
in kats/utils
179 9
theta.py
in kats/models
170 9
lstm.py
in kats/models
162 10
seasonality.py
in kats/detectors
161 11
var.py
in kats/models
158 8
arima.py
in kats/models
157 7
stlf.py
in kats/models
153 8
holtwinters.py
in kats/models
151 7
nowcastingplus.py
in kats/models/nowcasting
145 13
bocpd_model.py
in kats/detectors
134 6
neural_prophet.py
in kats/models
126 2
feature_engineering.py
in kats/utils
124 6
cupik.py
in kats/utils
120 7
harmonic_regression.py
in kats/models
120 11
Files With Most Units (Top 20)
File# lines# units
bocpd.py
in kats/detectors
870 60
utils.py
in kats/models/globalmodel
1129 53
consts.py
in kats
628 52
tsfeatures.py
in kats/tsfeatures
1194 44
detector_consts.py
in kats/detectors
459 38
cusum_detection.py
in kats/detectors
616 32
changepoint_evaluator.py
in kats/detectors
404 29
stat_sig_detector.py
in kats/detectors
660 28
backtesters.py
in kats/utils
639 26
time_series_parameter_tuning.py
in kats/utils
551 25
model.py
in kats/models/globalmodel
929 24
trend_mk.py
in kats/detectors
367 23
simulator.py
in kats/utils
381 22
bayesian_var.py
in kats/models
357 20
metalearner_hpt.py
in kats/models/metalearner
550 18
metalearner_modelselect.py
in kats/models/metalearner
323 18
kats_ensemble.py
in kats/models/ensemble
518 17
get_metadata.py
in kats/models/metalearner
275 16
detector_benchmark.py
in kats/detectors
182 16
cusum_model.py
in kats/detectors
443 16
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 36 long lines.

File# lines# units# long lines
layout.html
in sphinx/source/_templates
95 - 17
backtester.py
in kats/models/globalmodel
416 10 4
metalearner_hpt.py
in kats/models/metalearner
550 18 2
metalearner_predictability.py
in kats/models/metalearner
221 9 2
data_processor.py
in kats/models/globalmodel
401 11 2
bocpd.py
in kats/detectors
870 60 2
model.py
in kats/models/globalmodel
929 24 1
utils.py
in kats/models/globalmodel
1129 53 1
ensemble.py
in kats/models/globalmodel
402 9 1
evaluator.py
in kats/evaluation
80 7 1
stat_sig_detector.py
in kats/detectors
660 28 1
exceptions.py
in kats/detectors/meta_learning
21 2 1
hourly_ratio_detection.py
in kats/detectors
180 6 1