facebookresearch / fbpcs
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 309 files with 21,646 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (715 lines of code)
    • 18 medium size files (4,865 lines of codeclsfd_ftr_w_mp_ins)
    • 61 small files (8,475 lines of code)
    • 229 very small files (7,591 lines of code)
0% | 3% | 22% | 39% | 35%
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
hpp0% | 39% | 46% | 8% | 5%
py0% | 0% | 30% | 41% | 27%
cpp0% | 0% | 21% | 43% | 34%
h0% | 0% | 5% | 35% | 58%
tf0% | 0% | 0% | 40% | 59%
java0% | 0% | 0% | 89% | 10%
yml0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fbpcs/emp_games0% | 7% | 25% | 36% | 30%
fbpcs/private_computation_cli0% | 0% | 92% | 0% | 7%
fbpcs/pl_coordinator0% | 0% | 59% | 23% | 17%
fbpcs/infra0% | 0% | 16% | 47% | 35%
fbpcs/private_computation0% | 0% | 12% | 60% | 26%
fbpcs/scripts0% | 0% | 68% | 0% | 31%
fbpcs/pid0% | 0% | 16% | 54% | 28%
fbpcs/data_processing0% | 0% | 0% | 34% | 65%
fbpcs/performance_tools0% | 0% | 0% | 76% | 23%
fbpcs/stage_flow0% | 0% | 0% | 95% | 4%
fbpcs/utils0% | 0% | 0% | 0% | 100%
fbpcs/common0% | 0% | 0% | 0% | 100%
fbpcs/post_processing_handler0% | 0% | 0% | 0% | 100%
docker/emp_games0% | 0% | 0% | 0% | 100%
fbpcs0% | 0% | 0% | 0% | 100%
fbpcs/experimental0% | 0% | 0% | 0% | 100%
fbpcs/pcf0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
OutputMetrics.hpp
in fbpcs/emp_games/lift/calculator
715 21
Aggregator.cpp
in fbpcs/emp_games/attribution
427 18
SecretSharing.hpp
in fbpcs/emp_games/common
369 10
private_computation.py
in fbpcs/private_computation/service
357 13
private_computation_service_wrapper.py
in fbpcs/private_computation_cli
352 20
pl_instance_runner.py
in fbpcs/pl_coordinator
290 11
pl_study_runner.py
in fbpcs/pl_coordinator
287 11
private_computation_cli.py
in fbpcs/private_computation_cli
267 1
aws_deployment_helper.py
in fbpcs/infra/cloud_bridge/deployment_helper/aws
254 15
Aggregation.hpp
in fbpcs/emp_games/attribution/decoupled_aggregation
246 3
AggMetrics.cpp
in fbpcs/emp_games/attribution/shard_aggregator
238 16
Attribution.hpp
in fbpcs/emp_games/attribution
235 5
gen_fake_data.py
in fbpcs/scripts
230 9
ShardAggregatorAppTest.cpp
in fbpcs/emp_games/attribution/shard_aggregator
226 4
Column.h
in fbpcs/emp_games/lift/common
226 24
InputData.cpp
in fbpcs/emp_games/lift/calculator
224 5
pid_run_protocol_stage.py
in fbpcs/pid/service/pid_service
217 4
validation.py
in fbpcs/infra/cloud_bridge/data_validation/validation_utility
214 13
AggregationMetrics.cpp
in fbpcs/emp_games/attribution/decoupled_aggregation
206 4
ShardAggregatorGameTest.cpp
in fbpcs/emp_games/attribution/shard_aggregator
200 6
AggregationMetrics.h
in fbpcs/emp_games/attribution/decoupled_aggregation
198 9
pid_dispatcher.py
in fbpcs/pid/service/pid_service
197 6
main.tf
in fbpcs/infra/cloud_bridge/data_ingestion
195 -
Aggregator.h
in fbpcs/emp_games/attribution
190 17
Aggregator.cpp
in fbpcs/emp_games/attribution/decoupled_aggregation
183 6
DeploymentRunner.java
in fbpcs/infra/cloud_bridge/server/src/main/java/com/facebook/business/cloudbridge/pl/server
179 12
compute_metrics_stage_service.py
in fbpcs/private_computation/service
175 5
AttributionMetrics.cpp
in fbpcs/emp_games/attribution
168 3
DataFrame.h
in fbpcs/emp_games/lift/common
167 10
pid.py
in fbpcs/pid/service/pid_service
167 5
AttributionIdSpineFileCombinerTest.cpp
in fbpcs/data_processing/attribution_id_combiner
165 3
SecretSharing.h
in fbpcs/emp_games/common
162 6
Attribution.hpp
in fbpcs/emp_games/attribution/decoupled_attribution
161 3
pc_attribution_runner.py
in fbpcs/private_computation
160 8
main.tf
in fbpcs/infra/cloud_bridge/data_validation
159 -
LiftMetrics.cpp
in fbpcs/emp_games/lift/common
150 4
union_pid_preparer_cpp.py
in fbpcs/data_processing/pid_preparer
149 2
utils.py
in fbpcs/private_computation/service
148 6
prepare_data_stage_service.py
in fbpcs/private_computation/service
147 2
LiftIdSpineFileCombiner.cpp
in fbpcs/data_processing/lift_id_combiner
147 1
DeploymentParams.java
in fbpcs/infra/cloud_bridge/server/src/main/java/com/facebook/business/cloudbridge/pl/server
146 16
AttributionMetrics.h
in fbpcs/emp_games/attribution
145 10
data_transformation_lambda.py
in fbpcs/infra/cloud_bridge/data_ingestion
145 2
cli.py
in fbpcs/infra/cloud_bridge
144 8
AttributionMetrics.h
in fbpcs/emp_games/attribution/decoupled_attribution
141 10
CostEstimation.cpp
in fbpcs/performance_tools
141 9
private_computation_instance.py
in fbpcs/private_computation/entity
140 15
decoupled_aggregation_stage_service.py
in fbpcs/private_computation/service
138 3
pid_stage.py
in fbpcs/pid/service/pid_service
137 7
main.cpp
in fbpcs/emp_games/lift/calculator
136 1
Files With Most Units (Top 20)
File# lines# units
Column.h
in fbpcs/emp_games/lift/common
226 24
OutputMetrics.hpp
in fbpcs/emp_games/lift/calculator
715 21
private_computation_service_wrapper.py
in fbpcs/private_computation_cli
352 20
Aggregator.cpp
in fbpcs/emp_games/attribution
427 18
Aggregator.h
in fbpcs/emp_games/attribution
190 17
AggMetrics.cpp
in fbpcs/emp_games/attribution/shard_aggregator
238 16
DeploymentParams.java
in fbpcs/infra/cloud_bridge/server/src/main/java/com/facebook/business/cloudbridge/pl/server
146 16
stage_flow.py
in fbpcs/stage_flow
106 16
aws_deployment_helper.py
in fbpcs/infra/cloud_bridge/deployment_helper/aws
254 15
private_computation_instance.py
in fbpcs/private_computation/entity
140 15
validation.py
in fbpcs/infra/cloud_bridge/data_validation/validation_utility
214 13
private_computation.py
in fbpcs/private_computation/service
357 13
EmpOperationUtil.hpp
in fbpcs/emp_games/common
93 12
DeploymentRunner.java
in fbpcs/infra/cloud_bridge/server/src/main/java/com/facebook/business/cloudbridge/pl/server
179 12
PrivateData.h
in fbpcs/emp_games/common
105 11
buffered_s3_file_handler.py
in fbpcs/utils
68 11
coordination.py
in fbpcs/pid/service/coordination
69 11
pl_instance_runner.py
in fbpcs/pl_coordinator
290 11
pl_study_runner.py
in fbpcs/pl_coordinator
287 11
SecretSharing.hpp
in fbpcs/emp_games/common
369 10
Files With Long Lines (Top 20)

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

File# lines# units# long lines
exceptions.py
in fbpcs/utils/config_yaml
26 6 6
pl_instance_runner.py
in fbpcs/pl_coordinator
290 11 4
Aggregator.cpp
in fbpcs/emp_games/attribution
427 18 2
main.tf
in fbpcs/infra/cloud_bridge/data_ingestion
195 - 2
private_computation.py
in fbpcs/private_computation/service
357 13 2
decoupled_aggregation_stage_service.py
in fbpcs/private_computation/service
138 3 2
config.yml
in fbpcs/private_computation_cli
50 - 1
Attribution.hpp
in fbpcs/emp_games/attribution
235 5 1
Aggregator.cpp
in fbpcs/emp_games/attribution/decoupled_aggregation
183 6 1
LiftMetrics.cpp
in fbpcs/emp_games/lift/common
150 4 1
variable.tf
in fbpcs/infra/pce/aws_terraform_template/common/pce_shared
20 - 1
DeploymentParams.java
in fbpcs/infra/cloud_bridge/server/src/main/java/com/facebook/business/cloudbridge/pl/server
146 16 1
validation.py
in fbpcs/infra/cloud_bridge/data_validation/validation_utility
214 13 1
variable.tf
in fbpcs/infra/cloud_bridge/data_validation
32 - 1
private_computation_stage_flow.py
in fbpcs/private_computation/stage_flows
133 1 1
private_computation_decoupled_stage_flow.py
in fbpcs/private_computation/stage_flows
120 1 1
private_computation_instance.py
in fbpcs/private_computation/entity
140 15 1
decoupled_attribution_stage_service.py
in fbpcs/private_computation/service
133 3 1
utils.py
in fbpcs/private_computation/service
148 6 1
compute_metrics_stage_service.py
in fbpcs/private_computation/service
175 5 1