facebookresearch / d2go
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 150 files with 17,172 lines of code.
    • 1 very long files (1,229 lines of code)
    • 0 long files (0 lines of code)
    • 25 medium size files (7,949 lines of codeclsfd_ftr_w_mp_ins)
    • 32 small files (4,521 lines of code)
    • 92 very small files (3,473 lines of code)
7% | 0% | 46% | 26% | 20%
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
cuh100% | 0% | 0% | 0% | 0%
py0% | 0% | 52% | 28% | 18%
cu0% | 0% | 0% | 100% | 0%
yaml0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
projects_oss/detr17% | 0% | 47% | 21% | 12%
d2go/modeling0% | 0% | 62% | 23% | 14%
d2go/runner0% | 0% | 94% | 0% | 5%
d2go/data0% | 0% | 40% | 39% | 19%
d2go/export0% | 0% | 57% | 38% | 4%
d2go0% | 0% | 60% | 29% | 9%
d2go/utils0% | 0% | 15% | 44% | 40%
d2go/optimizer0% | 0% | 99% | 0% | <1%
tools0% | 0% | 0% | 52% | 47%
d2go/evaluation0% | 0% | 0% | 77% | 22%
configs0% | 0% | 0% | 0% | 100%
d2go/config0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
d2go/model_zoo0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cuh
ms_deform_im2col_cuda.cuh
in projects_oss/detr/detr/src/cuda
1229 -
default_runner.py
in d2go/runner
471 39
deformable_transformer.py
in projects_oss/detr/detr/models
469 22
modeldef.py
in d2go/modeling/modeldef
459 2
main.py
in projects_oss/detr
438 5
misc.py
in projects_oss/detr/detr/util
376 37
lightning_task.py
in d2go/runner
375 47
quantization.py
in d2go/modeling
361 17
fbnet_v2.py
in d2go/modeling/backbone
359 32
detr.py
in projects_oss/detr/detr/d2
332 12
transformer.py
in projects_oss/detr/detr/models
330 20
quantization.py
in d2go/runner/callbacks
323 22
rcnn.py
in d2go/modeling/meta_arch
320 18
torchscript.py
in d2go/export
301 18
segmentation.py
in projects_oss/detr/detr/models
297 13
pit.py
in projects_oss/detr/detr/backbone
291 19
extended_coco.py
in d2go/data
285 7
deformable_detr.py
in projects_oss/detr/detr/models
276 8
setcriterion.py
in projects_oss/detr/detr/models
263 16
utils.py
in d2go/data
259 24
setup.py
in d2go
254 14
rcnn_helper.py
in d2go/utils/testing
252 21
gans.py
in d2go/data
227 7
d2go_dataset_mapper_impl.py
in d2go/data/dataset_mappers
221 8
build.py
in d2go/optimizer
209 12
transforms.py
in projects_oss/detr/detr/datasets
201 26
api.py
in d2go/export
200 9
coco_eval.py
in projects_oss/detr/detr/datasets
188 13
data_loader_helper.py
in d2go/utils/testing
185 9
crop.py
in d2go/data/transforms
184 20
visualization.py
in d2go/utils
171 12
kmeans_anchors.py
in d2go/modeling
168 7
sem_seg_evaluation.py
in d2go/evaluation
166 11
lightning_train_net.py
in tools
157 9
model_ema.py
in d2go/modeling
156 29
affine.py
in d2go/data/transforms
156 9
coco.py
in projects_oss/detr/detr/datasets
155 8
engine.py
in projects_oss/detr/detr
150 2
datasets.py
in d2go/data
150 11
detr.py
in projects_oss/detr/detr/models
144 7
qat_utils.py
in d2go/utils
141 16
helper.py
in d2go/utils
139 7
ade.py
in projects_oss/detr/detr/datasets
137 8
box_utils.py
in d2go/data/transforms
135 18
subclass.py
in d2go/modeling
133 9
deit.py
in projects_oss/detr/detr/backbone
127 9
cu
ms_deform_attn_cuda.cu
in projects_oss/detr/detr/src/cuda
124 -
benchmark_data.py
in tools
124 2
distributed.py
in d2go
122 6
backbone.py
in projects_oss/detr/detr/models
120 9
Files With Most Units (Top 20)
File# lines# units
lightning_task.py
in d2go/runner
375 47
default_runner.py
in d2go/runner
471 39
misc.py
in projects_oss/detr/detr/util
376 37
fbnet_v2.py
in d2go/modeling/backbone
359 32
model_ema.py
in d2go/modeling
156 29
transforms.py
in projects_oss/detr/detr/datasets
201 26
utils.py
in d2go/data
259 24
deformable_transformer.py
in projects_oss/detr/detr/models
469 22
quantization.py
in d2go/runner/callbacks
323 22
rcnn_helper.py
in d2go/utils/testing
252 21
transformer.py
in projects_oss/detr/detr/models
330 20
color_yuv.py
in d2go/data/transforms
94 20
crop.py
in d2go/data/transforms
184 20
pit.py
in projects_oss/detr/detr/backbone
291 19
rcnn.py
in d2go/modeling/meta_arch
320 18
torchscript.py
in d2go/export
301 18
box_utils.py
in d2go/data/transforms
135 18
quantization.py
in d2go/modeling
361 17
blur.py
in d2go/data/transforms
116 17
setcriterion.py
in projects_oss/detr/detr/models
263 16
Files With Long Lines (Top 2)

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

File# lines# units# long lines
cuh
ms_deform_im2col_cuda.cuh
in projects_oss/detr/detr/src/cuda
1229 - 6
qat_utils.py
in d2go/utils
141 16 1