facebookresearch / bitsandbytes
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 28 files with 4,409 lines of code.
    • 1 very long files (1,577 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,627 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (576 lines of code)
    • 18 very small files (629 lines of code)
35% | 0% | 36% | 13% | 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
cu83% | 0% | 16% | 0% | 0%
h0% | 0% | 67% | 21% | 11%
py0% | 0% | 43% | 18% | 37%
c0% | 0% | 0% | 100% | 0%
cuh0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
csrc73% | 0% | 14% | 5% | 6%
include0% | 0% | 67% | 21% | 11%
bitsandbytes/optim0% | 0% | 48% | 20% | 30%
bitsandbytes/nn0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
bitsandbytes0% | 0% | 0% | 0% | 100%
Longest Files (Top 28)
File# lines# units
cu
kernels.cu
in csrc
1577 -
SIMD.h
in include
448 124
optimizer.py
in bitsandbytes/optim
377 23
cu
ops.cu
in csrc
308 -
Algo-Direct-Common.h
in include
281 16
Algo-Direct2.h
in include
213 7
Type.h
in include
171 12
adam.py
in bitsandbytes/optim
161 7
Portable.h
in include
125 11
pythonInterface.c
in csrc
119 -
lars.py
in bitsandbytes/optim
87 6
cuh
kernels.cuh
in csrc
86 -
BinAlgo.h
in include
64 2
AAlloc.h
in include
63 7
cuh
ops.cuh
in csrc
58 -
modules.py
in bitsandbytes/nn
55 8
adagrad.py
in bitsandbytes/optim
49 3
rmsprop.py
in bitsandbytes/optim
29 3
sgd.py
in bitsandbytes/optim
25 3
AlgoXCodes.h
in include
23 -
setup.py
in root
22 1
adamw.py
in bitsandbytes/optim
21 3
lamb.py
in bitsandbytes/optim
19 3
__init__.py
in bitsandbytes/optim
8 -
BinSearch.h
in include
7 -
toml
pyproject.toml
in root
6 -
__init__.py
in bitsandbytes
6 -
__init__.py
in bitsandbytes/nn
1 -
Files With Most Units (Top 17)
File# lines# units
SIMD.h
in include
448 124
optimizer.py
in bitsandbytes/optim
377 23
Algo-Direct-Common.h
in include
281 16
Type.h
in include
171 12
Portable.h
in include
125 11
modules.py
in bitsandbytes/nn
55 8
AAlloc.h
in include
63 7
Algo-Direct2.h
in include
213 7
adam.py
in bitsandbytes/optim
161 7
lars.py
in bitsandbytes/optim
87 6
rmsprop.py
in bitsandbytes/optim
29 3
lamb.py
in bitsandbytes/optim
19 3
sgd.py
in bitsandbytes/optim
25 3
adagrad.py
in bitsandbytes/optim
49 3
adamw.py
in bitsandbytes/optim
21 3
BinAlgo.h
in include
64 2
setup.py
in root
22 1
Files With Long Lines (Top 13)

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

File# lines# units# long lines
SIMD.h
in include
448 124 55
cu
kernels.cu
in csrc
1577 - 39
pythonInterface.c
in csrc
119 - 31
cu
ops.cu
in csrc
308 - 25
optimizer.py
in bitsandbytes/optim
377 23 18
cuh
kernels.cuh
in csrc
86 - 7
cuh
ops.cuh
in csrc
58 - 3
Algo-Direct-Common.h
in include
281 16 3
modules.py
in bitsandbytes/nn
55 8 2
Portable.h
in include
125 11 1
Algo-Direct2.h
in include
213 7 1
rmsprop.py
in bitsandbytes/optim
29 3 1
lars.py
in bitsandbytes/optim
87 6 1