tensorflow / privacy
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 121 files with 10,148 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 10 medium size files (2,878 lines of codeclsfd_ftr_w_mp_ins)
    • 30 small files (4,251 lines of code)
    • 81 very small files (3,019 lines of code)
0% | 0% | 28% | 41% | 29%
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% | 28% | 42% | 29%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow_privacy/privacy0% | 0% | 26% | 44% | 29%
research/pate_20180% | 0% | 61% | 29% | 8%
research/pate_20170% | 0% | 37% | 39% | 23%
tutorials0% | 0% | 0% | 47% | 52%
research/GDP_20190% | 0% | 0% | 100% | 0%
g3doc/guide0% | 0% | 0% | 0% | 100%
tutorials/walkthrough0% | 0% | 0% | 0% | 100%
tensorflow_privacy0% | 0% | 0% | 0% | 100%
g3doc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
tensorflow_privacy/v10% | 0% | 0% | 0% | 100%
g3doc/tutorials0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
data_structures.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
487 46
deep_cnn.py
in research/pate_2017
321 10
head.py
in tensorflow_privacy/privacy/estimators/v1
314 5
rdp_privacy_accountant.py
in tensorflow_privacy/privacy/analysis
310 23
plot_partition.py
in research/pate_2018/ICLR2018
271 7
rdp_accountant.py
in tensorflow_privacy/privacy/analysis
258 20
rdp_cumulative.py
in research/pate_2018/ICLR2018
255 5
smooth_sensitivity_table.py
in research/pate_2018/ICLR2018
229 8
tree_aggregation.py
in tensorflow_privacy/privacy/dp_query
224 22
smooth_sensitivity.py
in research/pate_2018
209 21
input.py
in research/pate_2017
197 12
membership_inference_attack.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
196 10
seq2seq_mia.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
194 10
optimizers.py
in tensorflow_privacy/privacy/bolt_on
186 22
dp_optimizer.py
in tensorflow_privacy/privacy/optimizers
184 7
plots_for_slides.py
in research/pate_2018/ICLR2018
184 9
tree_aggregation_query.py
in tensorflow_privacy/privacy/dp_query
177 17
dp_optimizer_keras.py
in tensorflow_privacy/privacy/optimizers
167 11
rdp_bucketized.py
in research/pate_2018/ICLR2018
163 4
models.py
in tensorflow_privacy/privacy/bolt_on
158 6
example.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/codelabs
153 4
movielens_tutorial.py
in tutorials
143 3
mnist_lr_tutorial.py
in tutorials
142 5
analysis.py
in research/pate_2017
139 7
lm_dpsgd_tutorial.py
in tutorials
138 4
tree_aggregation_accountant.py
in tensorflow_privacy/privacy/analysis
136 10
tree_range_query.py
in tensorflow_privacy/privacy/dp_query
124 9
core.py
in research/pate_2018
123 14
dp_optimizer_keras_vectorized.py
in tensorflow_privacy/privacy/optimizers
121 6
losses.py
in tensorflow_privacy/privacy/bolt_on
120 20
multi_label_head.py
in tensorflow_privacy/privacy/estimators
119 3
mnist_dpsgd_tutorial_vectorized.py
in tutorials
116 4
binary_class_head.py
in tensorflow_privacy/privacy/estimators
114 3
multi_class_head.py
in tensorflow_privacy/privacy/estimators
113 3
quantile_estimator_query.py
in tensorflow_privacy/privacy/dp_query
111 12
imdb_tutorial.py
in research/GDP_2019
109 3
adult_tutorial.py
in research/GDP_2019
108 3
tf_estimator_evaluation.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
107 5
models.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
105 9
tf_estimator_evaluation_example.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
104 3
mnist_dpsgd_tutorial_tpu.py
in tutorials
100 2
mnist_dpsgd_tutorial_eager.py
in tutorials
96 2
mnist_dpsgd_tutorial_keras.py
in tutorials
96 3
multinomial_logistic.py
in tensorflow_privacy/privacy/logistic_regression
95 7
mnist_dpsgd_tutorial_keras_model.py
in tutorials
94 3
bolton_tutorial.py
in tutorials
93 2
dp_optimizer_vectorized.py
in tensorflow_privacy/privacy/optimizers
92 3
dataset_slicing.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
92 8
train_student.py
in research/pate_2017
90 4
keras_evaluation.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
89 4
Files With Most Units (Top 20)
File# lines# units
data_structures.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
487 46
rdp_privacy_accountant.py
in tensorflow_privacy/privacy/analysis
310 23
tree_aggregation.py
in tensorflow_privacy/privacy/dp_query
224 22
optimizers.py
in tensorflow_privacy/privacy/bolt_on
186 22
smooth_sensitivity.py
in research/pate_2018
209 21
rdp_accountant.py
in tensorflow_privacy/privacy/analysis
258 20
losses.py
in tensorflow_privacy/privacy/bolt_on
120 20
tree_aggregation_query.py
in tensorflow_privacy/privacy/dp_query
177 17
restart_query.py
in tensorflow_privacy/privacy/dp_query
85 15
dp_query.py
in tensorflow_privacy/privacy/dp_query
46 14
core.py
in research/pate_2018
123 14
quantile_estimator_query.py
in tensorflow_privacy/privacy/dp_query
111 12
input.py
in research/pate_2017
197 12
nested_query.py
in tensorflow_privacy/privacy/dp_query
55 11
dp_optimizer_keras.py
in tensorflow_privacy/privacy/optimizers
167 11
tree_aggregation_accountant.py
in tensorflow_privacy/privacy/analysis
136 10
seq2seq_mia.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
194 10
membership_inference_attack.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
196 10
deep_cnn.py
in research/pate_2017
321 10
tree_range_query.py
in tensorflow_privacy/privacy/dp_query
124 9
Files With Long Lines (Top 9)

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

File# lines# units# long lines
train_student.py
in research/pate_2017
90 4 6
tf_estimator_evaluation_example.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
104 3 3
keras_evaluation_example.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
76 3 3
keras_evaluation.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
89 4 2
membership_inference_attack.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
196 10 2
analysis.py
in research/pate_2017
139 7 2
__init__.py
in tensorflow_privacy
53 - 1
utils_tensorboard.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
35 2 1
privacy_report.py
in tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
79 5 1