facebook / TestSlide
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 18 files with 4,903 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (2,909 lines of code)
    • 5 medium size files (1,542 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (105 lines of code)
    • 8 very small files (347 lines of code)
0% | 59% | 31% | 2% | 7%
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% | 59% | 31% | 2% | 6%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
testslide0% | 61% | 32% | 2% | 3%
pytest-testslide0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
mock_callable.py
in testslide
938 73
__init__.py
in testslide
684 69
runner.py
in testslide
683 81
strict_mock.py
in testslide
604 47
cli.py
in testslide
371 13
matchers.py
in testslide
358 71
303 20
lib.py
in testslide
284 21
dsl.py
in testslide
226 26
import_profiler.py
in testslide
105 12
patch_attribute.py
in testslide
80 3
patch.py
in testslide
78 9
pytest_testslide.py
in pytest-testslide
52 8
49 2
setup.py
in root
38 -
setup.py
in pytest-testslide
37 -
in
7 -
in
MANIFEST.in
in pytest-testslide
6 -
Files With Most Units (Top 14)
File# lines# units
runner.py
in testslide
683 81
mock_callable.py
in testslide
938 73
matchers.py
in testslide
358 71
__init__.py
in testslide
684 69
strict_mock.py
in testslide
604 47
dsl.py
in testslide
226 26
lib.py
in testslide
284 21
303 20
cli.py
in testslide
371 13
import_profiler.py
in testslide
105 12
patch.py
in testslide
78 9
pytest_testslide.py
in pytest-testslide
52 8
patch_attribute.py
in testslide
80 3
49 2
Files With Long Lines (Top 5)

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

File# lines# units# long lines
matchers.py
in testslide
358 71 5
mock_callable.py
in testslide
938 73 1
lib.py
in testslide
284 21 1
__init__.py
in testslide
684 69 1
cli.py
in testslide
371 13 1
Correlations

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

testslide/mock_callable.py x: 121 commits (all time) y: 938 lines of code testslide/__init__.py x: 105 commits (all time) y: 684 lines of code testslide/lib.py x: 74 commits (all time) y: 284 lines of code testslide/dsl.py x: 28 commits (all time) y: 226 lines of code testslide/patch.py x: 17 commits (all time) y: 78 lines of code testslide/strict_mock.py x: 136 commits (all time) y: 604 lines of code testslide/runner.py x: 73 commits (all time) y: 683 lines of code pytest-testslide/setup.py x: 23 commits (all time) y: 37 lines of code testslide/patch_attribute.py x: 22 commits (all time) y: 80 lines of code testslide/matchers.py x: 23 commits (all time) y: 358 lines of code testslide/cli.py x: 49 commits (all time) y: 371 lines of code testslide/import_profiler.py x: 11 commits (all time) y: 105 lines of code testslide/mock_constructor.py x: 69 commits (all time) y: 303 lines of code setup.py x: 111 commits (all time) y: 38 lines of code pytest-testslide/MANIFEST.in x: 6 commits (all time) y: 6 lines of code pytest-testslide/pytest_testslide.py x: 13 commits (all time) y: 52 lines of code MANIFEST.in x: 4 commits (all time) y: 7 lines of code util/run_silent_if_successful.py x: 10 commits (all time) y: 49 lines of code
938.0
lines of code
  min: 6.0
  average: 272.39
  25th percentile: 46.25
  median: 165.5
  75th percentile: 429.25
  max: 938.0
0 136.0
commits (all time)
min: 4.0 | average: 49.72 | 25th percentile: 12.5 | median: 25.5 | 75th percentile: 81.75 | max: 136.0

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

testslide/mock_callable.py x: 17 contributors (all time) y: 938 lines of code testslide/__init__.py x: 15 contributors (all time) y: 684 lines of code testslide/lib.py x: 9 contributors (all time) y: 284 lines of code testslide/dsl.py x: 7 contributors (all time) y: 226 lines of code testslide/patch.py x: 6 contributors (all time) y: 78 lines of code testslide/strict_mock.py x: 14 contributors (all time) y: 604 lines of code testslide/runner.py x: 13 contributors (all time) y: 683 lines of code pytest-testslide/setup.py x: 4 contributors (all time) y: 37 lines of code testslide/patch_attribute.py x: 4 contributors (all time) y: 80 lines of code testslide/matchers.py x: 5 contributors (all time) y: 358 lines of code testslide/cli.py x: 9 contributors (all time) y: 371 lines of code testslide/import_profiler.py x: 5 contributors (all time) y: 105 lines of code testslide/mock_constructor.py x: 10 contributors (all time) y: 303 lines of code setup.py x: 10 contributors (all time) y: 38 lines of code pytest-testslide/MANIFEST.in x: 2 contributors (all time) y: 6 lines of code pytest-testslide/pytest_testslide.py x: 3 contributors (all time) y: 52 lines of code MANIFEST.in x: 3 contributors (all time) y: 7 lines of code util/run_silent_if_successful.py x: 4 contributors (all time) y: 49 lines of code
938.0
lines of code
  min: 6.0
  average: 272.39
  25th percentile: 46.25
  median: 165.5
  75th percentile: 429.25
  max: 938.0
0 17.0
contributors (all time)
min: 2.0 | average: 7.78 | 25th percentile: 4.0 | median: 6.5 | 75th percentile: 10.75 | max: 17.0

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

testslide/mock_callable.py x: 1 commits (30d) y: 938 lines of code
938.0
lines of code
  min: 938.0
  average: 938.0
  25th percentile: 938.0
  median: 938.0
  75th percentile: 938.0
  max: 938.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

testslide/mock_callable.py x: 1 contributors (30d) y: 938 lines of code
938.0
lines of code
  min: 938.0
  average: 938.0
  25th percentile: 938.0
  median: 938.0
  75th percentile: 938.0
  max: 938.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): 3 points

testslide/mock_callable.py x: 2 commits (90d) y: 938 lines of code testslide/__init__.py x: 1 commits (90d) y: 684 lines of code testslide/lib.py x: 1 commits (90d) y: 284 lines of code
938.0
lines of code
  min: 284.0
  average: 635.33
  25th percentile: 284.0
  median: 684.0
  75th percentile: 938.0
  max: 938.0
0 2.0
commits (90d)
min: 1.0 | average: 1.33 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0

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

testslide/mock_callable.py x: 2 contributors (90d) y: 938 lines of code testslide/__init__.py x: 1 contributors (90d) y: 684 lines of code testslide/lib.py x: 1 contributors (90d) y: 284 lines of code
938.0
lines of code
  min: 284.0
  average: 635.33
  25th percentile: 284.0
  median: 684.0
  75th percentile: 938.0
  max: 938.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.33 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0