facebookresearch / PyTorch-BigGraph
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 42 files with 8,037 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (2,582 lines of code)
    • 10 medium size files (3,540 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (929 lines of code)
    • 21 very small files (986 lines of code)
0% | 32% | 44% | 11% | 12%
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% | 34% | 41% | 12% | 12%
cpp0% | 0% | 100% | 0% | 0%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
torchbiggraph0% | 35% | 43% | 11% | 9%
torchbiggraph/converters0% | 0% | 53% | 16% | 30%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 42)
File# lines# units
train_cpu.py
in torchbiggraph
805 23
model.py
in torchbiggraph
668 39
train_gpu.py
in torchbiggraph
580 20
config.py
in torchbiggraph
529 10
parameter_sharing.py
in torchbiggraph
493 22
util.cpp
in torchbiggraph
394 3
importers.py
in torchbiggraph/converters
388 13
graph_storages.py
in torchbiggraph
379 67
bucket_scheduling.py
in torchbiggraph
373 36
checkpoint_manager.py
in torchbiggraph
366 38
checkpoint_storage.py
in torchbiggraph
326 48
schema.py
in torchbiggraph
289 32
util.py
in torchbiggraph
279 30
operators.py
in torchbiggraph
253 43
eval.py
in torchbiggraph
196 6
edgelist.py
in torchbiggraph
149 15
tensorlist.py
in torchbiggraph
140 25
export_to_tsv.py
in torchbiggraph/converters
117 5
distributed.py
in torchbiggraph
112 6
losses.py
in torchbiggraph
111 6
batching.py
in torchbiggraph
104 9
entitylist.py
in torchbiggraph
97 13
partitionserver.py
in torchbiggraph
77 2
rpc.py
in torchbiggraph
74 9
regularizers.py
in torchbiggraph
72 6
import_from_parquet.py
in torchbiggraph/converters
69 1
import_from_tsv.py
in torchbiggraph/converters
69 1
cfg
setup.cfg
in root
68 -
stats.py
in torchbiggraph
63 11
row_adagrad.py
in torchbiggraph
57 3
utils.py
in torchbiggraph/converters
55 4
train.py
in torchbiggraph
55 2
filtered_eval.py
in torchbiggraph
53 2
async_adagrad.py
in torchbiggraph
49 1
types.py
in torchbiggraph
34 3
plugin.py
in torchbiggraph
32 5
dictionary.py
in torchbiggraph/converters
30 9
setup.py
in root
15 -
__init__.py
in torchbiggraph
6 -
in
MANIFEST.in
in root
5 -
ifbpy.py
in root
5 -
__init__.py
in torchbiggraph/converters
1 -
Files With Most Units (Top 20)
File# lines# units
graph_storages.py
in torchbiggraph
379 67
checkpoint_storage.py
in torchbiggraph
326 48
operators.py
in torchbiggraph
253 43
model.py
in torchbiggraph
668 39
checkpoint_manager.py
in torchbiggraph
366 38
bucket_scheduling.py
in torchbiggraph
373 36
schema.py
in torchbiggraph
289 32
util.py
in torchbiggraph
279 30
tensorlist.py
in torchbiggraph
140 25
train_cpu.py
in torchbiggraph
805 23
parameter_sharing.py
in torchbiggraph
493 22
train_gpu.py
in torchbiggraph
580 20
edgelist.py
in torchbiggraph
149 15
entitylist.py
in torchbiggraph
97 13
importers.py
in torchbiggraph/converters
388 13
stats.py
in torchbiggraph
63 11
config.py
in torchbiggraph
529 10
batching.py
in torchbiggraph
104 9
dictionary.py
in torchbiggraph/converters
30 9
rpc.py
in torchbiggraph
74 9
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
train_cpu.py
in torchbiggraph
805 23 1