tensorflow / federated
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 370 files with 39,937 lines of code.
    • 0 very long files (0 lines of code)
    • 13 long files (9,113 lines of code)
    • 50 medium size files (15,303 lines of codeclsfd_ftr_w_mp_ins)
    • 58 small files (7,968 lines of code)
    • 249 very small files (7,553 lines of code)
0% | 22% | 38% | 19% | 18%
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% | 18% | 40% | 21% | 19%
cc0% | 51% | 26% | 13% | 8%
proto0% | 84% | 0% | 15% | 0%
h0% | 0% | 41% | 18% | 39%
bzl0% | 0% | 100% | 0% | 0%
Dockerfile0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow_federated/python/core0% | 35% | 42% | 9% | 12%
tensorflow_federated/cc/core0% | 35% | 30% | 14% | 18%
tensorflow_federated/proto/v00% | 84% | 0% | 15% | <1%
tensorflow_federated/python/learning0% | 0% | 42% | 34% | 22%
tensorflow_federated/python/aggregators0% | 0% | 59% | 30% | 9%
tensorflow_federated/python/simulation0% | 0% | 31% | 30% | 37%
tensorflow_federated/python/common_libs0% | 0% | 68% | 0% | 31%
tensorflow_federated/python/analytics0% | 0% | 23% | 67% | 9%
tensorflow_federated/tools0% | 0% | 87% | 0% | 12%
tensorflow_federated/python/program0% | 0% | 0% | 58% | 41%
tensorflow_federated/python/tensorflow_libs0% | 0% | 0% | 38% | 61%
tensorflow_federated/experimental/python0% | 0% | 0% | 0% | 100%
tensorflow_federated/tools/runtime0% | 0% | 0% | 0% | 100%
tensorflow_federated/tools/python_package0% | 0% | 0% | 0% | 100%
tensorflow_federated0% | 0% | 0% | 0% | 100%
tensorflow_federated/tools/client0% | 0% | 0% | 0% | 100%
tensorflow_federated/cc/common_libs0% | 0% | 0% | 0% | 100%
tensorflow_federated/experimental0% | 0% | 0% | 0% | 100%
tensorflow_federated/python/cloud0% | 0% | 0% | 0% | 100%
tensorflow_federated/python0% | 0% | 0% | 0% | 100%
tensorflow_federated/proto0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
building_blocks.py
in tensorflow_federated/python/core/impl/compiler
947 128
building_block_factory.py
in tensorflow_federated/python/core/impl/compiler
905 58
composing_executor.cc
in tensorflow_federated/cc/core/impl/executors
877 42
proto
computation.proto
in tensorflow_federated/proto/v0
867 -
computation_types.py
in tensorflow_federated/python/core/impl/types
740 130
tensorflow_utils.py
in tensorflow_federated/python/core/impl/utils
704 20
tensorflow_executor.cc
in tensorflow_federated/cc/core/impl/executors
689 35
transformations.py
in tensorflow_federated/python/core/impl/compiler
604 29
transformation_utils.py
in tensorflow_federated/python/core/impl/compiler
590 54
federating_executor.cc
in tensorflow_federated/cc/core/impl/executors
585 29
form_utils.py
in tensorflow_federated/python/core/backends/mapreduce
570 32
executor_stacks.py
in tensorflow_federated/python/core/impl/executors
520 38
federated_composing_strategy.py
in tensorflow_federated/python/core/impl/executors
515 7
federated_resolving_strategy.py
in tensorflow_federated/python/core/impl/executors
464 10
cifar100.py
in tensorflow_federated/python/simulation/datasets
453 4
reference_resolving_executor.cc
in tensorflow_federated/cc/core/impl/executors
453 13
executor_test_utils.py
in tensorflow_federated/python/core/impl/executors
448 54
intrinsics.py
in tensorflow_federated/python/core/impl/federated_context
412 21
eager_tf_executor.py
in tensorflow_federated/python/core/impl/executors
410 16
type_analysis.py
in tensorflow_federated/python/core/impl/types
409 33
tree_transformations.py
in tensorflow_federated/python/core/impl/compiler
404 24
value_serialization.py
in tensorflow_federated/python/core/impl/executors
390 18
training_process.py
in tensorflow_federated/python/learning/reconstruction
382 14
iblt_lib.py
in tensorflow_federated/python/analytics/heavy_hitters/iblt
372 23
serialization.py
in tensorflow_federated/python/learning/models
370 24
secure.py
in tensorflow_federated/python/aggregators
356 29
tree_analysis.py
in tensorflow_federated/python/core/impl/compiler
350 27
executor_serialization.py
in tensorflow_federated/python/core/impl/executors
348 18
optimizer_utils.py
in tensorflow_federated/python/learning/framework
340 18
primitives.py
in tensorflow_federated/python/aggregators
328 22
type_conversions.py
in tensorflow_federated/python/core/impl/types
327 11
tensorflow_computation_factory.py
in tensorflow_federated/python/core/impl/compiler
325 16
emnist.py
in tensorflow_federated/python/simulation/datasets
325 4
reference_resolving_executor.py
in tensorflow_federated/python/core/impl/executors
318 11
status_matchers.h
in tensorflow_federated/cc/core/impl/executors
315 35
mergeable_comp_execution_context.py
in tensorflow_federated/python/core/impl/execution_contexts
309 10
structure.py
in tensorflow_federated/python/common_libs
299 31
function_utils.py
in tensorflow_federated/python/core/impl/computation
291 13
keras_utils.py
in tensorflow_federated/python/learning
287 15
sequence_executor.py
in tensorflow_federated/python/core/impl/executors
286 19
model_examples.py
in tensorflow_federated/python/learning
285 27
value_impl.py
in tensorflow_federated/python/core/impl/federated_context
283 23
resnet_models.py
in tensorflow_federated/python/simulation/baselines/cifar100
282 14
intrinsic_defs.py
in tensorflow_federated/python/core/impl/compiler
279 9
gldv2.py
in tensorflow_federated/python/simulation/datasets
265 9
federating_executor.py
in tensorflow_federated/python/core/impl/executors
264 5
functional.py
in tensorflow_federated/python/learning/models
264 23
forms.py
in tensorflow_federated/python/core/backends/mapreduce
262 27
executor_utils.py
in tensorflow_federated/python/core/impl/executors
254 4
rotation.py
in tensorflow_federated/python/aggregators
252 16
Files With Most Units (Top 20)
File# lines# units
computation_types.py
in tensorflow_federated/python/core/impl/types
740 130
building_blocks.py
in tensorflow_federated/python/core/impl/compiler
947 128
building_block_factory.py
in tensorflow_federated/python/core/impl/compiler
905 58
transformation_utils.py
in tensorflow_federated/python/core/impl/compiler
590 54
executor_test_utils.py
in tensorflow_federated/python/core/impl/executors
448 54
composing_executor.cc
in tensorflow_federated/cc/core/impl/executors
877 42
executor_stacks.py
in tensorflow_federated/python/core/impl/executors
520 38
tensorflow_executor.cc
in tensorflow_federated/cc/core/impl/executors
689 35
status_matchers.h
in tensorflow_federated/cc/core/impl/executors
315 35
type_analysis.py
in tensorflow_federated/python/core/impl/types
409 33
form_utils.py
in tensorflow_federated/python/core/backends/mapreduce
570 32
structure.py
in tensorflow_federated/python/common_libs
299 31
secure.py
in tensorflow_federated/python/aggregators
356 29
transformations.py
in tensorflow_federated/python/core/impl/compiler
604 29
federating_executor.cc
in tensorflow_federated/cc/core/impl/executors
585 29
tree_analysis.py
in tensorflow_federated/python/core/impl/compiler
350 27
forms.py
in tensorflow_federated/python/core/backends/mapreduce
262 27
model_examples.py
in tensorflow_federated/python/learning
285 27
tracing.py
in tensorflow_federated/python/common_libs
232 25
tree_transformations.py
in tensorflow_federated/python/core/impl/compiler
404 24
Files With Long Lines (Top 13)

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

File# lines# units# long lines
build_defs.bzl
in tensorflow_federated/tools
227 - 2
__init__.py
in tensorflow_federated/python/analytics
5 - 2
stackoverflow.py
in tensorflow_federated/python/simulation/datasets
191 8 2
__init__.py
in tensorflow_federated/python/simulation
15 - 2
__init__.py
in tensorflow_federated/python/simulation/baselines/stackoverflow
5 - 2
transformations.py
in tensorflow_federated/python/core/impl/compiler
604 29 1
__init__.py
in tensorflow_federated/python/core/backends/mapreduce
7 - 1
__init__.py
in tensorflow_federated/python/core/backends/native
10 - 1
__init__.py
in tensorflow_federated/python/learning/algorithms
7 - 1
gldv2.py
in tensorflow_federated/python/simulation/datasets
265 9 1
__init__.py
in tensorflow_federated/python/simulation/baselines/shakespeare
3 - 1
__init__.py
in tensorflow_federated/python/simulation/baselines/cifar100
4 - 1
__init__.py
in tensorflow_federated/python/simulation/baselines/emnist
3 - 1