anthropics / apitools
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 36 files with 7,357 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,054 lines of code)
    • 14 medium size files (4,382 lines of code)
    • 4 small files (577 lines of code)
    • 15 very small files (344 lines of code)
0% | 27% | 59% | 7% | 4%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 27% | 59% | 7% | 4%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
apitools0% | 28% | 60% | 5% | 4%
ROOT0% | 0% | 0% | 96% | 3%
Longest Files (Top 36)
File# lines# units
messages.py
in apitools/base/protorpclite
797 83
transfer.py
in apitools/base/py
755 73
base_api.py
in apitools/base/py
502 58
encoding_helper.py
in apitools/base/py
489 44
credentials_lib.py
in apitools/base/py
461 37
service_registry.py
in apitools/gen
415 20
gzip.py
in apitools/base/py
402 37
message_registry.py
in apitools/gen
374 27
extended_descriptor.py
in apitools/gen
364 32
util.py
in apitools/gen
310 36
gen_client.py
in apitools/gen
255 14
descriptor.py
in apitools/base/protorpclite
242 11
http_wrapper.py
in apitools/base/py
227 19
mock.py
in apitools/base/py/testing
222 18
protojson.py
in apitools/base/protorpclite
215 11
batch.py
in apitools/base/py
205 19
gen_client_lib.py
in apitools/gen
201 18
extra_types.py
in apitools/base/py
179 19
150 6
util.py
in apitools/base/protorpclite
127 7
util.py
in apitools/base/py
121 9
exceptions.py
in apitools/base/py
72 7
list_pager.py
in apitools/base/py
54 3
message_types.py
in apitools/base/protorpclite
51 3
compression.py
in apitools/base/py
51 7
buffered_stream.py
in apitools/base/py
39 7
stream_slice.py
in apitools/base/py
30 6
encoding.py
in apitools/base/py
16 -
__init__.py
in apitools/base/py
14 -
in
6 -
__init__.py
in apitools/gen
2 -
__init__.py
in apitools
2 -
__init__.py
in apitools/base/protorpclite
2 -
__init__.py
in apitools/base
2 -
__init__.py
in apitools/scripts
2 -
__init__.py
in apitools/base/py/testing
1 -
Files With Most Units (Top 27)
File# lines# units
messages.py
in apitools/base/protorpclite
797 83
transfer.py
in apitools/base/py
755 73
base_api.py
in apitools/base/py
502 58
encoding_helper.py
in apitools/base/py
489 44
credentials_lib.py
in apitools/base/py
461 37
gzip.py
in apitools/base/py
402 37
util.py
in apitools/gen
310 36
extended_descriptor.py
in apitools/gen
364 32
message_registry.py
in apitools/gen
374 27
service_registry.py
in apitools/gen
415 20
http_wrapper.py
in apitools/base/py
227 19
extra_types.py
in apitools/base/py
179 19
batch.py
in apitools/base/py
205 19
gen_client_lib.py
in apitools/gen
201 18
mock.py
in apitools/base/py/testing
222 18
gen_client.py
in apitools/gen
255 14
descriptor.py
in apitools/base/protorpclite
242 11
protojson.py
in apitools/base/protorpclite
215 11
util.py
in apitools/base/py
121 9
util.py
in apitools/base/protorpclite
127 7
buffered_stream.py
in apitools/base/py
39 7
exceptions.py
in apitools/base/py
72 7
compression.py
in apitools/base/py
51 7
150 6
stream_slice.py
in apitools/base/py
30 6
message_types.py
in apitools/base/protorpclite
51 3
list_pager.py
in apitools/base/py
54 3
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

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

apitools/gen/message_registry.py x: 26 commits (all time) y: 374 lines of code apitools/base/protorpclite/message_types.py x: 5 commits (all time) y: 51 lines of code apitools/base/py/credentials_lib.py x: 79 commits (all time) y: 461 lines of code apitools/gen/gen_client.py x: 41 commits (all time) y: 255 lines of code apitools/gen/util.py x: 41 commits (all time) y: 310 lines of code apitools/base/py/base_api.py x: 52 commits (all time) y: 502 lines of code apitools/gen/service_registry.py x: 39 commits (all time) y: 415 lines of code apitools/base/protorpclite/messages.py x: 21 commits (all time) y: 797 lines of code apitools/base/protorpclite/util.py x: 12 commits (all time) y: 127 lines of code MANIFEST.in x: 4 commits (all time) y: 6 lines of code apitools/base/protorpclite/protojson.py x: 24 commits (all time) y: 215 lines of code apitools/base/py/encoding_helper.py x: 3 commits (all time) y: 489 lines of code apitools/base/py/transfer.py x: 60 commits (all time) y: 755 lines of code apitools/gen/extended_descriptor.py x: 20 commits (all time) y: 364 lines of code apitools/gen/gen_client_lib.py x: 47 commits (all time) y: 201 lines of code apitools/base/py/http_wrapper.py x: 34 commits (all time) y: 227 lines of code apitools/base/py/list_pager.py x: 20 commits (all time) y: 54 lines of code apitools/base/py/extra_types.py x: 20 commits (all time) y: 179 lines of code apitools/base/py/util.py x: 27 commits (all time) y: 121 lines of code apitools/base/py/testing/mock.py x: 23 commits (all time) y: 222 lines of code apitools/base/protorpclite/descriptor.py x: 5 commits (all time) y: 242 lines of code apitools/base/py/exceptions.py x: 14 commits (all time) y: 72 lines of code apitools/base/py/batch.py x: 30 commits (all time) y: 205 lines of code ez_setup.py x: 5 commits (all time) y: 150 lines of code apitools/base/py/encoding.py x: 49 commits (all time) y: 16 lines of code apitools/base/py/compression.py x: 4 commits (all time) y: 51 lines of code apitools/base/py/gzip.py x: 3 commits (all time) y: 402 lines of code apitools/base/py/__init__.py x: 9 commits (all time) y: 14 lines of code apitools/base/protorpclite/__init__.py x: 4 commits (all time) y: 2 lines of code apitools/base/__init__.py x: 3 commits (all time) y: 2 lines of code apitools/base/py/buffered_stream.py x: 4 commits (all time) y: 39 lines of code apitools/base/py/stream_slice.py x: 7 commits (all time) y: 30 lines of code
797.0
lines of code
  min: 1.0
  average: 204.36
  25th percentile: 19.5
  median: 164.5
  75th percentile: 350.5
  max: 797.0
0 79.0
commits (all time)
min: 3.0 | average: 20.81 | 25th percentile: 4.0 | median: 17.0 | 75th percentile: 33.0 | max: 79.0

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

apitools/gen/message_registry.py x: 7 contributors (all time) y: 374 lines of code apitools/base/protorpclite/message_types.py x: 3 contributors (all time) y: 51 lines of code apitools/base/py/credentials_lib.py x: 19 contributors (all time) y: 461 lines of code apitools/gen/gen_client.py x: 10 contributors (all time) y: 255 lines of code apitools/gen/util.py x: 13 contributors (all time) y: 310 lines of code apitools/base/py/base_api.py x: 17 contributors (all time) y: 502 lines of code apitools/gen/service_registry.py x: 12 contributors (all time) y: 415 lines of code apitools/base/protorpclite/messages.py x: 11 contributors (all time) y: 797 lines of code apitools/base/protorpclite/util.py x: 8 contributors (all time) y: 127 lines of code MANIFEST.in x: 3 contributors (all time) y: 6 lines of code apitools/base/protorpclite/protojson.py x: 13 contributors (all time) y: 215 lines of code apitools/base/py/encoding_helper.py x: 3 contributors (all time) y: 489 lines of code apitools/base/py/transfer.py x: 18 contributors (all time) y: 755 lines of code apitools/gen/extended_descriptor.py x: 10 contributors (all time) y: 364 lines of code apitools/gen/gen_client_lib.py x: 10 contributors (all time) y: 201 lines of code apitools/base/py/http_wrapper.py x: 10 contributors (all time) y: 227 lines of code apitools/base/py/list_pager.py x: 12 contributors (all time) y: 54 lines of code apitools/base/py/extra_types.py x: 7 contributors (all time) y: 179 lines of code apitools/base/py/util.py x: 10 contributors (all time) y: 121 lines of code apitools/base/py/testing/mock.py x: 8 contributors (all time) y: 222 lines of code apitools/base/protorpclite/descriptor.py x: 3 contributors (all time) y: 242 lines of code apitools/base/py/exceptions.py x: 7 contributors (all time) y: 72 lines of code apitools/base/py/batch.py x: 11 contributors (all time) y: 205 lines of code ez_setup.py x: 5 contributors (all time) y: 150 lines of code apitools/base/py/encoding.py x: 19 contributors (all time) y: 16 lines of code apitools/base/py/compression.py x: 4 contributors (all time) y: 51 lines of code apitools/base/py/gzip.py x: 3 contributors (all time) y: 402 lines of code apitools/base/py/__init__.py x: 4 contributors (all time) y: 14 lines of code apitools/base/protorpclite/__init__.py x: 3 contributors (all time) y: 2 lines of code apitools/base/py/buffered_stream.py x: 3 contributors (all time) y: 39 lines of code apitools/base/py/stream_slice.py x: 3 contributors (all time) y: 30 lines of code
797.0
lines of code
  min: 1.0
  average: 204.36
  25th percentile: 19.5
  median: 164.5
  75th percentile: 350.5
  max: 797.0
0 19.0
contributors (all time)
min: 3.0 | average: 7.89 | 25th percentile: 3.0 | median: 7.0 | 75th percentile: 11.0 | max: 19.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): 0 points

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

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

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