instagram / Fixit
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 72 files with 6,393 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,326 lines of codeclsfd_ftr_w_mp_ins)
    • 22 small files (3,029 lines of code)
    • 45 very small files (2,038 lines of code)
0% | 0% | 20% | 47% | 31%
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% | 20% | 47% | 31%
toml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fixit/rules0% | 0% | 20% | 43% | 36%
fixit/common0% | 0% | 24% | 44% | 31%
fixit/cli0% | 0% | 21% | 60% | 18%
fixit0% | 0% | 0% | 90% | 9%
ROOT0% | 0% | 0% | 0% | 100%
fixit/common/cli0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
import_constraints.py
in fixit/rules
432 17
apply_fix.py
in fixit/cli
242 7
await_async_call.py
in fixit/rules
236 10
unused_suppressions.py
in fixit/common
209 22
ignores.py
in fixit/common
207 14
199 5
args.py
in fixit/cli
184 15
__init__.py
in fixit/cli
178 6
testing.py
in fixit/common
173 6
use_fstring.py
in fixit/rules
168 7
utils.py
in fixit/common
146 9
use_assert_in.py
in fixit/rules
146 1
139 5
139 7
135 1
run_rules.py
in fixit/cli
132 4
132 4
130 1
127 7
autofix.py
in fixit/common
125 6
rewrite_to_literal.py
in fixit/rules
119 1
117 1
add_file_header.py
in fixit/rules
115 2
base.py
in fixit/common
108 9
cls_in_classmethod.py
in fixit/rules
108 3
flake8_compat.py
in fixit/common
106 20
insert_suppressions.py
in fixit/common
103 3
report.py
in fixit/common
100 9
100 2
document.py
in fixit/common
99 8
95 1
92 4
no_namedtuple.py
in fixit/rules
88 2
config.py
in fixit/common
86 4
83 3
80 4
80 2
76 2
add_new_rule.py
in fixit/cli
71 6
71 5
71 5
63 2
full_repo_metadata.py
in fixit/common
59 1
no_implicit_concat.py
in fixit/rules
54 1
54 2
53 3
52 1
48 1
setup.py
in root
47 -
formatter.py
in fixit/cli
46 7
Files With Most Units (Top 50)
File# lines# units
unused_suppressions.py
in fixit/common
209 22
flake8_compat.py
in fixit/common
106 20
import_constraints.py
in fixit/rules
432 17
args.py
in fixit/cli
184 15
ignores.py
in fixit/common
207 14
await_async_call.py
in fixit/rules
236 10
utils.py
in fixit/common
146 9
base.py
in fixit/common
108 9
report.py
in fixit/common
100 9
document.py
in fixit/common
99 8
formatter.py
in fixit/cli
46 7
apply_fix.py
in fixit/cli
242 7
use_fstring.py
in fixit/rules
168 7
127 7
139 7
__init__.py
in fixit/cli
178 6
utils.py
in fixit/cli
12 6
add_new_rule.py
in fixit/cli
71 6
testing.py
in fixit/common
173 6
autofix.py
in fixit/common
125 6
199 5
pseudo_rule.py
in fixit/common
41 5
71 5
71 5
139 5
run_rules.py
in fixit/cli
132 4
config.py
in fixit/common
86 4
92 4
80 4
132 4
53 3
insert_suppressions.py
in fixit/common
103 3
83 3
cls_in_classmethod.py
in fixit/rules
108 3
line_mapping.py
in fixit/common
45 2
80 2
100 2
76 2
no_namedtuple.py
in fixit/rules
88 2
add_file_header.py
in fixit/rules
115 2
54 2
63 2
main.py
in fixit/cli
21 1
full_repo_metadata.py
in fixit/common
59 1
comments.py
in fixit/common
19 1
95 1
37 1
48 1
avoid_or_in_except.py
in fixit/rules
24 1
rewrite_to_literal.py
in fixit/rules
119 1
Files With Long Lines (Top 8)

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

File# lines# units# long lines
use_fstring.py
in fixit/rules
168 7 3
unused_suppressions.py
in fixit/common
209 22 2
in
1 - 1
100 2 1
no_assert_equals.py
in fixit/rules
25 1 1
139 5 1
no_namedtuple.py
in fixit/rules
88 2 1
52 1 1
Correlations

File Size vs. Commits (all time): 69 points

fixit/cli/args.py x: 6 commits (all time) y: 184 lines of code fixit/cli/__init__.py x: 6 commits (all time) y: 178 lines of code fixit/cli/apply_fix.py x: 8 commits (all time) y: 242 lines of code fixit/cli/full_repo_metadata.py x: 4 commits (all time) y: 53 lines of code fixit/cli/insert_suppressions.py x: 5 commits (all time) y: 199 lines of code fixit/cli/run_rules.py x: 6 commits (all time) y: 132 lines of code fixit/common/base.py x: 14 commits (all time) y: 108 lines of code fixit/common/cli/__init__.py x: 16 commits (all time) y: 2 lines of code fixit/common/config.py x: 16 commits (all time) y: 86 lines of code fixit/common/full_repo_metadata.py x: 3 commits (all time) y: 59 lines of code fixit/common/generate_pyre_fixtures.py x: 8 commits (all time) y: 92 lines of code fixit/common/testing.py x: 22 commits (all time) y: 173 lines of code fixit/common/unused_suppressions.py x: 4 commits (all time) y: 209 lines of code fixit/common/utils.py x: 13 commits (all time) y: 146 lines of code fixit/rule_lint_engine.py x: 16 commits (all time) y: 139 lines of code fixit/rules/await_async_call.py x: 9 commits (all time) y: 236 lines of code fixit/rules/no_namedtuple.py x: 2 commits (all time) y: 88 lines of code fixit/rules/use_is_none_on_optional.py x: 6 commits (all time) y: 139 lines of code fixit/common/report.py x: 5 commits (all time) y: 100 lines of code fixit/rules/explicit_frozen_dataclass.py x: 2 commits (all time) y: 130 lines of code fixit/rules/use_fstring.py x: 4 commits (all time) y: 168 lines of code setup.py x: 17 commits (all time) y: 47 lines of code fixit/common/flake8_compat.py x: 9 commits (all time) y: 106 lines of code fixit/rules/gather_sequential_await.py x: 10 commits (all time) y: 54 lines of code fixit/_version.py x: 16 commits (all time) y: 1 lines of code MANIFEST.in x: 6 commits (all time) y: 1 lines of code fixit/rules/cls_in_classmethod.py x: 12 commits (all time) y: 108 lines of code fixit/cli/add_new_rule.py x: 4 commits (all time) y: 71 lines of code fixit/common/autofix.py x: 2 commits (all time) y: 125 lines of code fixit/rules/use_types_from_typing.py x: 11 commits (all time) y: 80 lines of code fixit/rules/rewrite_to_comprehension.py x: 6 commits (all time) y: 117 lines of code fixit/rules/use_assert_in.py x: 1 commits (all time) y: 146 lines of code fixit/rules/use_lint_fixme_comment.py x: 1 commits (all time) y: 21 lines of code fixit/rules/import_constraints.py x: 10 commits (all time) y: 432 lines of code fixit/rules/no_redundant_arguments_super.py x: 1 commits (all time) y: 71 lines of code fixit/common/ignores.py x: 5 commits (all time) y: 207 lines of code fixit/rules/sorted_attributes_rule.py x: 1 commits (all time) y: 52 lines of code fixit/rules/use_assert_is_not_none.py x: 2 commits (all time) y: 135 lines of code fixit/rules/add_file_header.py x: 2 commits (all time) y: 115 lines of code fixit/rules/no_string_type_annotation.py x: 1 commits (all time) y: 127 lines of code fixit/rules/no_assert_true_for_comparison.py x: 1 commits (all time) y: 95 lines of code fixit/cli/utils.py x: 2 commits (all time) y: 12 lines of code fixit/rules/chained_instance_check.py x: 1 commits (all time) y: 132 lines of code fixit/rules/rewrite_to_literal.py x: 7 commits (all time) y: 119 lines of code fixit/rules/no_redundant_lambda.py x: 1 commits (all time) y: 63 lines of code fixit/common/insert_suppressions.py x: 5 commits (all time) y: 103 lines of code fixit/common/document.py x: 6 commits (all time) y: 99 lines of code codecov.yml x: 1 commits (all time) y: 4 lines of code fixit/rules/no_redundant_fstring.py x: 1 commits (all time) y: 46 lines of code fixit/rules/no_redundant_list_comprehension.py x: 1 commits (all time) y: 48 lines of code fixit/rules/avoid_or_in_except.py x: 6 commits (all time) y: 24 lines of code fixit/rules/compare_primitives_by_equal.py x: 7 commits (all time) y: 76 lines of code fixit/rules/no_assert_equals.py x: 7 commits (all time) y: 25 lines of code fixit/rules/no_implicit_concat.py x: 7 commits (all time) y: 54 lines of code fixit/rules/no_static_if_condition.py x: 6 commits (all time) y: 80 lines of code fixit/rules/replace_union_with_optional.py x: 6 commits (all time) y: 83 lines of code fixit/rules/use_classname_as_code.py x: 6 commits (all time) y: 71 lines of code fixit/__init__.py x: 1 commits (all time) y: 13 lines of code fixit/rules/compare_singleton_primitives_by_is.py x: 4 commits (all time) y: 100 lines of code fixit/rules/no_inherit_from_object.py x: 2 commits (all time) y: 37 lines of code pyproject.toml x: 3 commits (all time) y: 9 lines of code fixit/cli/formatter.py x: 2 commits (all time) y: 46 lines of code fixit/common/cli/args.py x: 9 commits (all time) y: 16 lines of code fixit/common/cli/formatter.py x: 1 commits (all time) y: 2 lines of code fixit/rules/flake8_compat.py x: 1 commits (all time) y: 24 lines of code fixit/rules/__init__.py x: 2 commits (all time) y: 1 lines of code fixit/common/line_mapping.py x: 2 commits (all time) y: 45 lines of code
432.0
lines of code
  min: 1.0
  average: 91.77
  25th percentile: 41.0
  median: 83.0
  75th percentile: 131.0
  max: 432.0
0 22.0
commits (all time)
min: 1.0 | average: 5.68 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 7.5 | max: 22.0

File Size vs. Contributors (all time): 69 points

fixit/cli/args.py x: 3 contributors (all time) y: 184 lines of code fixit/cli/__init__.py x: 4 contributors (all time) y: 178 lines of code fixit/cli/apply_fix.py x: 4 contributors (all time) y: 242 lines of code fixit/cli/full_repo_metadata.py x: 2 contributors (all time) y: 53 lines of code fixit/cli/insert_suppressions.py x: 4 contributors (all time) y: 199 lines of code fixit/cli/run_rules.py x: 4 contributors (all time) y: 132 lines of code fixit/common/base.py x: 6 contributors (all time) y: 108 lines of code fixit/common/cli/__init__.py x: 4 contributors (all time) y: 2 lines of code fixit/common/config.py x: 6 contributors (all time) y: 86 lines of code fixit/common/full_repo_metadata.py x: 3 contributors (all time) y: 59 lines of code fixit/common/generate_pyre_fixtures.py x: 3 contributors (all time) y: 92 lines of code fixit/common/testing.py x: 6 contributors (all time) y: 173 lines of code fixit/common/unused_suppressions.py x: 3 contributors (all time) y: 209 lines of code fixit/common/utils.py x: 5 contributors (all time) y: 146 lines of code fixit/rule_lint_engine.py x: 5 contributors (all time) y: 139 lines of code fixit/rules/await_async_call.py x: 4 contributors (all time) y: 236 lines of code fixit/rules/no_namedtuple.py x: 2 contributors (all time) y: 88 lines of code fixit/rules/use_is_none_on_optional.py x: 3 contributors (all time) y: 139 lines of code fixit/common/report.py x: 4 contributors (all time) y: 100 lines of code fixit/rules/explicit_frozen_dataclass.py x: 2 contributors (all time) y: 130 lines of code fixit/rules/use_fstring.py x: 4 contributors (all time) y: 168 lines of code setup.py x: 6 contributors (all time) y: 47 lines of code fixit/common/flake8_compat.py x: 5 contributors (all time) y: 106 lines of code fixit/rules/gather_sequential_await.py x: 6 contributors (all time) y: 54 lines of code fixit/_version.py x: 6 contributors (all time) y: 1 lines of code MANIFEST.in x: 4 contributors (all time) y: 1 lines of code fixit/rules/cls_in_classmethod.py x: 5 contributors (all time) y: 108 lines of code fixit/cli/add_new_rule.py x: 2 contributors (all time) y: 71 lines of code fixit/common/autofix.py x: 2 contributors (all time) y: 125 lines of code fixit/rules/use_types_from_typing.py x: 5 contributors (all time) y: 80 lines of code fixit/rules/rewrite_to_comprehension.py x: 3 contributors (all time) y: 117 lines of code fixit/rules/use_assert_in.py x: 1 contributors (all time) y: 146 lines of code fixit/rules/use_lint_fixme_comment.py x: 1 contributors (all time) y: 21 lines of code fixit/rules/import_constraints.py x: 3 contributors (all time) y: 432 lines of code fixit/rules/no_redundant_arguments_super.py x: 1 contributors (all time) y: 71 lines of code fixit/common/ignores.py x: 4 contributors (all time) y: 207 lines of code fixit/rules/sorted_attributes_rule.py x: 1 contributors (all time) y: 52 lines of code fixit/rules/use_assert_is_not_none.py x: 1 contributors (all time) y: 135 lines of code fixit/rules/add_file_header.py x: 2 contributors (all time) y: 115 lines of code fixit/rules/no_string_type_annotation.py x: 1 contributors (all time) y: 127 lines of code fixit/rules/no_assert_true_for_comparison.py x: 1 contributors (all time) y: 95 lines of code fixit/cli/utils.py x: 2 contributors (all time) y: 12 lines of code fixit/rules/chained_instance_check.py x: 1 contributors (all time) y: 132 lines of code fixit/rules/rewrite_to_literal.py x: 3 contributors (all time) y: 119 lines of code fixit/rules/no_redundant_lambda.py x: 1 contributors (all time) y: 63 lines of code fixit/common/insert_suppressions.py x: 3 contributors (all time) y: 103 lines of code fixit/common/document.py x: 2 contributors (all time) y: 99 lines of code codecov.yml x: 1 contributors (all time) y: 4 lines of code fixit/rules/no_redundant_fstring.py x: 1 contributors (all time) y: 46 lines of code fixit/rules/no_redundant_list_comprehension.py x: 1 contributors (all time) y: 48 lines of code fixit/rules/avoid_or_in_except.py x: 4 contributors (all time) y: 24 lines of code fixit/rules/compare_primitives_by_equal.py x: 4 contributors (all time) y: 76 lines of code fixit/rules/no_implicit_concat.py x: 4 contributors (all time) y: 54 lines of code fixit/rules/no_static_if_condition.py x: 4 contributors (all time) y: 80 lines of code fixit/rules/replace_union_with_optional.py x: 4 contributors (all time) y: 83 lines of code fixit/__init__.py x: 1 contributors (all time) y: 13 lines of code fixit/rules/no_inherit_from_object.py x: 1 contributors (all time) y: 37 lines of code pyproject.toml x: 3 contributors (all time) y: 9 lines of code fixit/cli/formatter.py x: 2 contributors (all time) y: 46 lines of code fixit/common/cli/args.py x: 2 contributors (all time) y: 16 lines of code fixit/common/cli/formatter.py x: 1 contributors (all time) y: 2 lines of code fixit/rules/flake8_compat.py x: 1 contributors (all time) y: 24 lines of code fixit/rules/__init__.py x: 1 contributors (all time) y: 1 lines of code fixit/common/line_mapping.py x: 2 contributors (all time) y: 45 lines of code
432.0
lines of code
  min: 1.0
  average: 91.77
  25th percentile: 41.0
  median: 83.0
  75th percentile: 131.0
  max: 432.0
0 6.0
contributors (all time)
min: 1.0 | average: 2.9 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 4.0 | max: 6.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 22 points

fixit/cli/args.py x: 2 commits (90d) y: 184 lines of code fixit/cli/__init__.py x: 2 commits (90d) y: 178 lines of code fixit/cli/apply_fix.py x: 2 commits (90d) y: 242 lines of code fixit/cli/full_repo_metadata.py x: 2 commits (90d) y: 53 lines of code fixit/cli/insert_suppressions.py x: 1 commits (90d) y: 199 lines of code fixit/cli/run_rules.py x: 1 commits (90d) y: 132 lines of code fixit/common/base.py x: 1 commits (90d) y: 108 lines of code fixit/common/cli/__init__.py x: 1 commits (90d) y: 2 lines of code fixit/common/config.py x: 2 commits (90d) y: 86 lines of code fixit/common/full_repo_metadata.py x: 1 commits (90d) y: 59 lines of code fixit/common/generate_pyre_fixtures.py x: 2 commits (90d) y: 92 lines of code fixit/common/testing.py x: 2 commits (90d) y: 173 lines of code fixit/common/unused_suppressions.py x: 2 commits (90d) y: 209 lines of code fixit/common/utils.py x: 2 commits (90d) y: 146 lines of code fixit/rule_lint_engine.py x: 2 commits (90d) y: 139 lines of code fixit/rules/await_async_call.py x: 1 commits (90d) y: 236 lines of code fixit/rules/no_namedtuple.py x: 1 commits (90d) y: 88 lines of code fixit/rules/use_is_none_on_optional.py x: 1 commits (90d) y: 139 lines of code fixit/common/report.py x: 1 commits (90d) y: 100 lines of code fixit/rules/explicit_frozen_dataclass.py x: 1 commits (90d) y: 130 lines of code fixit/rules/use_fstring.py x: 1 commits (90d) y: 168 lines of code setup.py x: 1 commits (90d) y: 47 lines of code
242.0
lines of code
  min: 2.0
  average: 132.27
  25th percentile: 87.5
  median: 135.5
  75th percentile: 179.5
  max: 242.0
0 2.0
commits (90d)
min: 1.0 | average: 1.45 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Contributors (90 days): 22 points

fixit/cli/args.py x: 1 contributors (90d) y: 184 lines of code fixit/cli/__init__.py x: 1 contributors (90d) y: 178 lines of code fixit/cli/apply_fix.py x: 1 contributors (90d) y: 242 lines of code fixit/cli/full_repo_metadata.py x: 1 contributors (90d) y: 53 lines of code fixit/cli/insert_suppressions.py x: 1 contributors (90d) y: 199 lines of code fixit/cli/run_rules.py x: 1 contributors (90d) y: 132 lines of code fixit/common/base.py x: 1 contributors (90d) y: 108 lines of code fixit/common/cli/__init__.py x: 1 contributors (90d) y: 2 lines of code fixit/common/config.py x: 1 contributors (90d) y: 86 lines of code fixit/common/full_repo_metadata.py x: 1 contributors (90d) y: 59 lines of code fixit/common/generate_pyre_fixtures.py x: 1 contributors (90d) y: 92 lines of code fixit/common/testing.py x: 1 contributors (90d) y: 173 lines of code fixit/common/unused_suppressions.py x: 1 contributors (90d) y: 209 lines of code fixit/common/utils.py x: 1 contributors (90d) y: 146 lines of code fixit/rule_lint_engine.py x: 1 contributors (90d) y: 139 lines of code fixit/rules/await_async_call.py x: 1 contributors (90d) y: 236 lines of code fixit/rules/no_namedtuple.py x: 1 contributors (90d) y: 88 lines of code fixit/common/report.py x: 1 contributors (90d) y: 100 lines of code fixit/rules/explicit_frozen_dataclass.py x: 1 contributors (90d) y: 130 lines of code fixit/rules/use_fstring.py x: 1 contributors (90d) y: 168 lines of code setup.py x: 1 contributors (90d) y: 47 lines of code
242.0
lines of code
  min: 2.0
  average: 132.27
  25th percentile: 87.5
  median: 135.5
  75th percentile: 179.5
  max: 242.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0