facebookresearch / robust_cvd
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 124 files with 18,345 lines of code.
    • 3 very long files (3,381 lines of code)
    • 4 long files (2,664 lines of code)
    • 15 medium size files (4,497 lines of codeclsfd_ftr_w_mp_ins)
    • 34 small files (5,137 lines of code)
    • 68 very small files (2,666 lines of code)
18% | 14% | 24% | 28% | 14%
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
cpp34% | 21% | 31% | 6% | 6%
py12% | 8% | 20% | 42% | 16%
h0% | 17% | 19% | 37% | 26%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib32% | 19% | 29% | 9% | 8%
utils34% | 0% | 24% | 26% | 13%
ROOT0% | 33% | 12% | 53% | <1%
lib/core0% | 19% | 22% | 34% | 22%
loaders0% | 0% | 99% | 0% | <1%
raft/core0% | 0% | 19% | 57% | 22%
loss0% | 0% | 25% | 31% | 43%
raft0% | 0% | 0% | 83% | 16%
optimizer0% | 0% | 0% | 94% | 5%
monodepth/midas_v20% | 0% | 0% | 53% | 46%
monodepth0% | 0% | 0% | 0% | 100%
configs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
PoseOptimizer.cpp
in lib
1179 30
DepthMapTransform.cpp
in lib
1173 75
colormaps.py
in utils
1029 -
Processor.cpp
in lib
849 20
depth_fine_tuning.py
in root
659 16
FlowConstraints.cpp
in lib
597 18
TrackTable-impl.h
in lib/core
559 46
load_colmap.py
in utils
482 30
DepthVideo.cpp
in lib
475 16
PythonBindings.cpp
in lib
456 7
Importer.cpp
in lib
425 7
DepthPhoto.cpp
in lib
297 27
DepthStream.cpp
in lib
280 24
video_dataset.py
in loaders
260 13
flowlib.py
in utils
245 15
pose_optimization.py
in root
238 6
cnpy.cpp
in lib/core
238 10
datasets.py
in raft/core
234 10
scene_flow_loss.py
in loss
225 7
DepthMapTransform.h
in lib
223 6
cnpy.h
in lib/core
210 7
FileIo.h
in lib/core
209 34
params.py
in root
200 10
optical_flow_homography.py
in root
200 11
extractor.py
in raft/core
199 10
train.py
in raft
196 15
augmentor.py
in raft/core/utils
195 11
dynamic_mask_generation.py
in root
188 3
radam.py
in optimizer
185 9
FileIo.cpp
in lib/core
174 18
epipolar_geometry.py
in utils
170 20
flow_viz.py
in raft/core/utils
170 6
OffsetVector.h
in lib/core
168 22
flow.py
in root
165 8
TrackTable.h
in lib/core
164 7
process.py
in root
154 9
ColorStream.cpp
in lib
151 8
predictor.py
in utils
149 13
image_io.py
in utils
149 7
ParamsBase.h
in lib/core
149 10
FlowConstraints.h
in lib
145 10
evaluate.py
in raft
144 5
transforms.py
in monodepth/midas_v2
144 9
MathUtil.h
in lib/core
141 20
consistency_loss.py
in loss
140 5
video.py
in root
140 7
DepthPhoto.h
in lib
138 11
loss_params.py
in loss
134 2
FrameRange.cpp
in lib
127 11
update.py
in raft/core
120 14
Files With Most Units (Top 20)
File# lines# units
DepthMapTransform.cpp
in lib
1173 75
TrackTable-impl.h
in lib/core
559 46
FileIo.h
in lib/core
209 34
load_colmap.py
in utils
482 30
PoseOptimizer.cpp
in lib
1179 30
DepthPhoto.cpp
in lib
297 27
DepthStream.cpp
in lib
280 24
OffsetVector.h
in lib/core
168 22
epipolar_geometry.py
in utils
170 20
MathUtil.h
in lib/core
141 20
Processor.cpp
in lib
849 20
FileIo.cpp
in lib/core
174 18
FlowConstraints.cpp
in lib
597 18
util.py
in loss
97 16
depth_fine_tuning.py
in root
659 16
DepthVideo.cpp
in lib
475 16
flowlib.py
in utils
245 15
train.py
in raft
196 15
geometry.py
in utils
101 14
update.py
in raft/core
120 14
Files With Long Lines (Top 5)

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

File# lines# units# long lines
cnpy.h
in lib/core
210 7 4
radam.py
in optimizer
185 9 3
PythonBindings.cpp
in lib
456 7 2
process.py
in root
154 9 2
cnpy.cpp
in lib/core
238 10 1