facebookresearch / FLSim
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 99 files with 10,150 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 14 medium size files (4,257 lines of codeclsfd_ftr_w_mp_ins)
    • 25 small files (3,530 lines of code)
    • 60 very small files (2,363 lines of code)
0% | 0% | 41% | 34% | 23%
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% | 0% | 41% | 34% | 23%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
flsim/trainers0% | 0% | 87% | 10% | 1%
flsim/optimizers0% | 0% | 54% | 39% | 5%
flsim/utils0% | 0% | 30% | 35% | 34%
flsim/active_user_selectors0% | 0% | 93% | 0% | 6%
scripts0% | 0% | 100% | 0% | 0%
flsim/clients0% | 0% | 54% | 24% | 20%
flsim/privacy0% | 0% | 72% | 0% | 27%
flsim/reducers0% | 0% | 0% | 78% | 21%
flsim/common0% | 0% | 0% | 69% | 30%
flsim/servers0% | 0% | 0% | 80% | 19%
flsim/data0% | 0% | 0% | 43% | 56%
flsim/secure_aggregation0% | 0% | 0% | 95% | 4%
flsim/metrics_reporter0% | 0% | 0% | 99% | <1%
flsim/channels0% | 0% | 0% | 29% | 70%
flsim/interfaces0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
flsim0% | 0% | 0% | 0% | 100%
flsim/configs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sync_trainer.py
in flsim/trainers
470 22
old_config_converter.py
in scripts
437 21
diverse_user_selector.py
in flsim/active_user_selectors
386 12
simple_user_selector.py
in flsim/active_user_selectors
377 28
async_aggregators.py
in flsim/optimizers
366 32
example_utils.py
in flsim/utils
347 48
sync_aggregators.py
in flsim/optimizers
279 23
base_client.py
in flsim/clients
272 19
fl_distributed.py
in flsim/utils/distributed
229 12
common.py
in flsim/utils/fl
229 22
trainer_base.py
in flsim/trainers
224 11
privacy_engine.py
in flsim/privacy
219 18
server_optimizers.py
in flsim/optimizers
215 20
async_trainer.py
in flsim/trainers
207 13
optimizer_scheduler.py
in flsim/optimizers
195 17
sample_model.py
in flsim/utils
186 35
data_sharder.py
in flsim/data
179 19
optimizer_test_utils.py
in flsim/optimizers
176 8
base_round_reducer.py
in flsim/reducers
167 18
training_duration_distribution.py
in flsim/utils/timing
166 22
training_event_generator.py
in flsim/utils/async_trainer
166 22
count_sketch.py
in flsim/utils
154 18
timeout_simulator.py
in flsim/common
152 31
stats.py
in flsim/utils/fl
151 31
secure_aggregator.py
in flsim/secure_aggregation
140 14
tensorboard_metrics_reporter.py
in flsim/metrics_reporter
134 11
diversity_metrics.py
in flsim/common
133 20
sync_dp_servers.py
in flsim/servers
133 7
__init__.py
in flsim/optimizers
128 -
training_time_estimator.py
in flsim/utils/timing
127 10
weighted_dp_round_reducer.py
in flsim/reducers
127 10
dp_client.py
in flsim/clients
125 8
sync_servers.py
in flsim/servers
122 12
local_optimizers.py
in flsim/optimizers
120 8
sync_secagg_servers.py
in flsim/servers
119 7
scalar_quantization_channel.py
in flsim/channels
115 8
dp_round_reducer.py
in flsim/reducers
110 6
private_sync_trainer.py
in flsim/trainers
104 5
training_simulator.py
in flsim/common
101 12
async_example_weights.py
in flsim/utils/async_trainer
99 16
config_utils.py
in flsim/utils
96 10
dataset_data_loader.py
in flsim/data
94 9
layerwise_optimizers.py
in flsim/optimizers
93 5
async_client.py
in flsim/clients
92 5
secure_round_reducer.py
in flsim/reducers
92 5
async_staleness_weights.py
in flsim/utils/async_trainer
89 13
base_channel.py
in flsim/channels
85 17
data_provider.py
in flsim/data
83 22
__init__.py
in flsim/utils/async_trainer
79 -
fake_data_utils.py
in flsim/utils/data
77 15
Files With Most Units (Top 20)
File# lines# units
example_utils.py
in flsim/utils
347 48
sample_model.py
in flsim/utils
186 35
async_aggregators.py
in flsim/optimizers
366 32
stats.py
in flsim/utils/fl
151 31
timeout_simulator.py
in flsim/common
152 31
simple_user_selector.py
in flsim/active_user_selectors
377 28
sync_aggregators.py
in flsim/optimizers
279 23
common.py
in flsim/utils/fl
229 22
training_duration_distribution.py
in flsim/utils/timing
166 22
training_event_generator.py
in flsim/utils/async_trainer
166 22
sync_trainer.py
in flsim/trainers
470 22
data_provider.py
in flsim/data
83 22
old_config_converter.py
in scripts
437 21
server_optimizers.py
in flsim/optimizers
215 20
diversity_metrics.py
in flsim/common
133 20
base_client.py
in flsim/clients
272 19
data_sharder.py
in flsim/data
179 19
privacy_engine.py
in flsim/privacy
219 18
cuda.py
in flsim/utils
54 18
count_sketch.py
in flsim/utils
154 18
Files With Long Lines (Top 2)

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

File# lines# units# long lines
setup.py
in root
68 - 1
private_sync_trainer.py
in flsim/trainers
104 5 1