anthropics / httpcore
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 32 files with 5,246 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 11 medium size files (3,358 lines of code)
    • 8 small files (1,255 lines of code)
    • 13 very small files (633 lines of code)
0% | 0% | 64% | 23% | 12%
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% | 0% | 64% | 23% | 12%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
httpcore0% | 0% | 64% | 24% | 10%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 32)
File# lines# units
http2.py
in httpcore/_async
436 11
http2.py
in httpcore/_sync
436 31
_models.py
in httpcore
326 25
http_proxy.py
in httpcore/_async
277 19
http_proxy.py
in httpcore/_sync
277 23
http11.py
in httpcore/_async
276 11
http11.py
in httpcore/_sync
276 28
connection_pool.py
in httpcore/_async
272 10
connection_pool.py
in httpcore/_sync
272 18
socks_proxy.py
in httpcore/_async
255 10
socks_proxy.py
in httpcore/_sync
255 13
199 27
sync.py
in httpcore/_backends
198 15
connection.py
in httpcore/_async
179 9
connection.py
in httpcore/_sync
179 14
trio.py
in httpcore/_backends
139 3
anyio.py
in httpcore/_backends
130 2
__init__.py
in httpcore
119 2
mock.py
in httpcore/_backends
112 17
_trace.py
in httpcore
95 4
interfaces.py
in httpcore/_async
85 6
interfaces.py
in httpcore/_sync
85 10
base.py
in httpcore/_backends
79 9
unasync.py
in scripts
78 5
auto.py
in httpcore/_backends
43 -
_exceptions.py
in httpcore
42 1
_api.py
in httpcore
39 2
__init__.py
in httpcore/_async
32 2
__init__.py
in httpcore/_sync
32 2
_utils.py
in httpcore
16 1
_ssl.py
in httpcore
6 1
__init__.py
in httpcore/_backends
1 -
Files With Most Units (Top 30)
File# lines# units
http2.py
in httpcore/_sync
436 31
http11.py
in httpcore/_sync
276 28
199 27
_models.py
in httpcore
326 25
http_proxy.py
in httpcore/_sync
277 23
http_proxy.py
in httpcore/_async
277 19
connection_pool.py
in httpcore/_sync
272 18
mock.py
in httpcore/_backends
112 17
sync.py
in httpcore/_backends
198 15
connection.py
in httpcore/_sync
179 14
socks_proxy.py
in httpcore/_sync
255 13
http11.py
in httpcore/_async
276 11
http2.py
in httpcore/_async
436 11
socks_proxy.py
in httpcore/_async
255 10
connection_pool.py
in httpcore/_async
272 10
interfaces.py
in httpcore/_sync
85 10
base.py
in httpcore/_backends
79 9
connection.py
in httpcore/_async
179 9
interfaces.py
in httpcore/_async
85 6
unasync.py
in scripts
78 5
_trace.py
in httpcore
95 4
trio.py
in httpcore/_backends
139 3
anyio.py
in httpcore/_backends
130 2
_api.py
in httpcore
39 2
__init__.py
in httpcore/_async
32 2
__init__.py
in httpcore/_sync
32 2
__init__.py
in httpcore
119 2
_exceptions.py
in httpcore
42 1
_utils.py
in httpcore
16 1
_ssl.py
in httpcore
6 1
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): 32 points

httpcore/_async/connection_pool.py x: 80 commits (all time) y: 272 lines of code httpcore/_async/http2.py x: 60 commits (all time) y: 436 lines of code httpcore/_sync/connection_pool.py x: 77 commits (all time) y: 272 lines of code httpcore/_sync/http2.py x: 55 commits (all time) y: 436 lines of code httpcore/__init__.py x: 72 commits (all time) y: 119 lines of code httpcore/_synchronization.py x: 15 commits (all time) y: 199 lines of code httpcore/_async/http_proxy.py x: 45 commits (all time) y: 277 lines of code httpcore/_async/socks_proxy.py x: 12 commits (all time) y: 255 lines of code httpcore/_models.py x: 14 commits (all time) y: 326 lines of code httpcore/_sync/http_proxy.py x: 43 commits (all time) y: 277 lines of code httpcore/_sync/socks_proxy.py x: 11 commits (all time) y: 255 lines of code httpcore/_api.py x: 5 commits (all time) y: 39 lines of code httpcore/_async/connection.py x: 41 commits (all time) y: 179 lines of code httpcore/_async/http11.py x: 49 commits (all time) y: 276 lines of code httpcore/_async/interfaces.py x: 6 commits (all time) y: 85 lines of code httpcore/_backends/anyio.py x: 22 commits (all time) y: 130 lines of code httpcore/_backends/auto.py x: 17 commits (all time) y: 43 lines of code httpcore/_backends/mock.py x: 3 commits (all time) y: 112 lines of code httpcore/_backends/sync.py x: 26 commits (all time) y: 198 lines of code httpcore/_backends/trio.py x: 24 commits (all time) y: 139 lines of code httpcore/_exceptions.py x: 14 commits (all time) y: 42 lines of code httpcore/_sync/connection.py x: 40 commits (all time) y: 179 lines of code httpcore/_sync/http11.py x: 47 commits (all time) y: 276 lines of code httpcore/_trace.py x: 8 commits (all time) y: 95 lines of code httpcore/_backends/base.py x: 18 commits (all time) y: 79 lines of code httpcore/_utils.py x: 10 commits (all time) y: 16 lines of code scripts/unasync.py x: 1 commits (all time) y: 78 lines of code httpcore/_backends/__init__.py x: 3 commits (all time) y: 1 lines of code httpcore/_ssl.py x: 3 commits (all time) y: 6 lines of code httpcore/_async/__init__.py x: 4 commits (all time) y: 32 lines of code
436.0
lines of code
  min: 1.0
  average: 163.94
  25th percentile: 51.75
  median: 134.5
  75th percentile: 272.0
  max: 436.0
0 80.0
commits (all time)
min: 1.0 | average: 26.09 | 25th percentile: 6.0 | median: 16.0 | 75th percentile: 44.5 | max: 80.0

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

httpcore/_async/connection_pool.py x: 19 contributors (all time) y: 272 lines of code httpcore/_async/http2.py x: 16 contributors (all time) y: 436 lines of code httpcore/_sync/connection_pool.py x: 17 contributors (all time) y: 272 lines of code httpcore/_sync/http2.py x: 14 contributors (all time) y: 436 lines of code httpcore/__init__.py x: 13 contributors (all time) y: 119 lines of code httpcore/_synchronization.py x: 7 contributors (all time) y: 199 lines of code httpcore/_async/http_proxy.py x: 11 contributors (all time) y: 277 lines of code httpcore/_async/socks_proxy.py x: 7 contributors (all time) y: 255 lines of code httpcore/_models.py x: 8 contributors (all time) y: 326 lines of code httpcore/_sync/socks_proxy.py x: 6 contributors (all time) y: 255 lines of code httpcore/_api.py x: 4 contributors (all time) y: 39 lines of code httpcore/_async/connection.py x: 11 contributors (all time) y: 179 lines of code httpcore/_async/http11.py x: 10 contributors (all time) y: 276 lines of code httpcore/_async/interfaces.py x: 5 contributors (all time) y: 85 lines of code httpcore/_backends/anyio.py x: 7 contributors (all time) y: 130 lines of code httpcore/_backends/auto.py x: 6 contributors (all time) y: 43 lines of code httpcore/_backends/mock.py x: 2 contributors (all time) y: 112 lines of code httpcore/_backends/trio.py x: 7 contributors (all time) y: 139 lines of code httpcore/_exceptions.py x: 6 contributors (all time) y: 42 lines of code httpcore/_sync/http11.py x: 9 contributors (all time) y: 276 lines of code httpcore/_trace.py x: 5 contributors (all time) y: 95 lines of code httpcore/_backends/base.py x: 7 contributors (all time) y: 79 lines of code httpcore/_utils.py x: 5 contributors (all time) y: 16 lines of code scripts/unasync.py x: 1 contributors (all time) y: 78 lines of code httpcore/_backends/__init__.py x: 1 contributors (all time) y: 1 lines of code httpcore/_ssl.py x: 2 contributors (all time) y: 6 lines of code httpcore/_async/__init__.py x: 1 contributors (all time) y: 32 lines of code
436.0
lines of code
  min: 1.0
  average: 163.94
  25th percentile: 51.75
  median: 134.5
  75th percentile: 272.0
  max: 436.0
0 19.0
contributors (all time)
min: 1.0 | average: 7.56 | 25th percentile: 5.0 | median: 7.0 | 75th percentile: 11.0 | max: 19.0

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

httpcore/_async/connection_pool.py x: 2 commits (30d) y: 272 lines of code httpcore/_async/http2.py x: 2 commits (30d) y: 436 lines of code httpcore/_sync/connection_pool.py x: 3 commits (30d) y: 272 lines of code
436.0
lines of code
  min: 272.0
  average: 354.0
  25th percentile: 272.0
  median: 354.0
  75th percentile: 436.0
  max: 436.0
0 3.0
commits (30d)
min: 2.0 | average: 2.25 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.75 | max: 3.0

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

httpcore/_async/connection_pool.py x: 1 contributors (30d) y: 272 lines of code httpcore/_async/http2.py x: 1 contributors (30d) y: 436 lines of code
436.0
lines of code
  min: 272.0
  average: 354.0
  25th percentile: 272.0
  median: 354.0
  75th percentile: 436.0
  max: 436.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

httpcore/_async/connection_pool.py x: 2 commits (90d) y: 272 lines of code httpcore/_async/http2.py x: 2 commits (90d) y: 436 lines of code httpcore/_sync/connection_pool.py x: 3 commits (90d) y: 272 lines of code
436.0
lines of code
  min: 272.0
  average: 354.0
  25th percentile: 272.0
  median: 354.0
  75th percentile: 436.0
  max: 436.0
0 3.0
commits (90d)
min: 2.0 | average: 2.25 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.75 | max: 3.0

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

httpcore/_async/connection_pool.py x: 1 contributors (90d) y: 272 lines of code httpcore/_async/http2.py x: 1 contributors (90d) y: 436 lines of code
436.0
lines of code
  min: 272.0
  average: 354.0
  25th percentile: 272.0
  median: 354.0
  75th percentile: 436.0
  max: 436.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