korosuke613 / etrobocon2019
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 56 files with 2,400 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (896 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (449 lines of code)
    • 50 very small files (1,055 lines of code)
0% | 0% | 37% | 18% | 43%
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
c0% | 0% | 66% | 20% | 12%
cmake0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
inc0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ev3-api0% | 0% | 45% | 13% | 40%
cmake0% | 0% | 0% | 100% | 0%
src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ev3api_sensor.c
in ev3-api/src
367 23
ev3api_lcd.c
in ev3-api/src
275 12
ev3api_motor.c
in ev3-api/src
254 11
cmake
175 -
ev3api_newlib.c
in ev3-api/src
165 16
ev3api_fs.c
in ev3-api/src
109 3
ev3api_brick.c
in ev3-api/src
92 9
ev3api_sensor.h
in ev3-api/src
67 -
ev3api_speaker.h
in ev3-api/src
57 -
Controller.cpp
in src/module/api/core
56 17
Controller.h
in src/module/api/core
41 -
Motor.h
in ev3-api/library/libcpp-ev3/include
37 7
Motor.cpp
in ev3-api/library/libcpp-ev3/src
32 2
ev3api.h
in ev3-api
31 -
ev3api_motor.h
in ev3-api/src
31 -
ev3api_fs.h
in ev3-api/src
28 -
ev3api_lcd.h
in ev3-api/src
28 -
ev3api.c
in ev3-api/src
27 2
EtRobocon2019.cpp
in src/module
27 1
GyroSensor.cpp
in ev3-api/library/libcpp-ev3/src
26 4
ColorSensor.cpp
in ev3-api/library/libcpp-ev3/src
26 4
Port.h
in ev3-api/library/libcpp-ev3/include
25 -
Clock.h
in ev3-api/library/libcpp-ev3/include
25 2
22 -
Sensor.h
in ev3-api/library/libcpp-ev3/include
21 3
spp_master_test_api.c
in ev3-api/library/spp_master_test_api/src
21 2
SonarSensor.cpp
in ev3-api/library/libcpp-ev3/src
19 2
Clock.cpp
in ev3-api/library/libcpp-ev3/src
19 3
GyroSensor.h
in ev3-api/library/libcpp-ev3/include
18 -
libcpp-test.h
in ev3-api/library/libcpp-test/include
18 -
18 -
ColorSensor.h
in ev3-api/library/libcpp-ev3/include
16 -
cpp-souce-file-1.cpp
in ev3-api/library/libcpp-test/src
16 2
ev3api_speaker.c
in ev3-api/src
16 4
Steering.h
in ev3-api/library/libcpp-ev3/include
15 -
Filter.cpp
in src/module
15 1
SonarSensor.h
in ev3-api/library/libcpp-ev3/include
14 -
app.h
in src
14 -
TouchSensor.h
in ev3-api/library/libcpp-ev3/include
12 -
ev3api_button.h
in ev3-api/src
12 -
Display.cpp
in src/module/api
12 1
api_common.h
in ev3-api/src
11 -
Filter.h
in src/module
11 -
TouchSensor.cpp
in ev3-api/library/libcpp-ev3/src
10 1
ev3api_battery.c
in ev3-api/src
10 2
Display.h
in src/module/api
10 -
Steering.cpp
in ev3-api/library/libcpp-ev3/src
8 1
ev3api_led.h
in ev3-api/src
8 -
EtRobocon2019.h
in src/module
7 -
app.cpp
in src
6 1
Files With Most Units (Top 27)
File# lines# units
ev3api_sensor.c
in ev3-api/src
367 23
Controller.cpp
in src/module/api/core
56 17
ev3api_newlib.c
in ev3-api/src
165 16
ev3api_lcd.c
in ev3-api/src
275 12
ev3api_motor.c
in ev3-api/src
254 11
ev3api_brick.c
in ev3-api/src
92 9
Motor.h
in ev3-api/library/libcpp-ev3/include
37 7
GyroSensor.cpp
in ev3-api/library/libcpp-ev3/src
26 4
ColorSensor.cpp
in ev3-api/library/libcpp-ev3/src
26 4
ev3api_speaker.c
in ev3-api/src
16 4
Sensor.h
in ev3-api/library/libcpp-ev3/include
21 3
Clock.cpp
in ev3-api/library/libcpp-ev3/src
19 3
ev3api_fs.c
in ev3-api/src
109 3
Clock.h
in ev3-api/library/libcpp-ev3/include
25 2
SonarSensor.cpp
in ev3-api/library/libcpp-ev3/src
19 2
Motor.cpp
in ev3-api/library/libcpp-ev3/src
32 2
cpp-souce-file-1.cpp
in ev3-api/library/libcpp-test/src
16 2
spp_master_test_api.c
in ev3-api/library/spp_master_test_api/src
21 2
ev3api.c
in ev3-api/src
27 2
ev3api_battery.c
in ev3-api/src
10 2
Steering.cpp
in ev3-api/library/libcpp-ev3/src
8 1
TouchSensor.cpp
in ev3-api/library/libcpp-ev3/src
10 1
c-souce-file-1.c
in ev3-api/library/libcpp-test/src
4 1
EtRobocon2019.cpp
in src/module
27 1
Filter.cpp
in src/module
15 1
Display.cpp
in src/module/api
12 1
app.cpp
in src
6 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
ev3api_battery.c
in ev3-api/src
10 2 1
ev3api_lcd.h
in ev3-api/src
28 - 1
Correlations

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

src/Makefile.inc x: 11 commits (all time) y: 18 lines of code src/module/Filter.cpp x: 2 commits (all time) y: 15 lines of code src/module/Filter.h x: 2 commits (all time) y: 11 lines of code codecov.yml x: 3 commits (all time) y: 22 lines of code cmake/CodeCoverage.cmake x: 2 commits (all time) y: 175 lines of code src/module/EtRobocon2019.cpp x: 2 commits (all time) y: 27 lines of code src/module/EtRobocon2019.h x: 2 commits (all time) y: 7 lines of code src/module/api/Display.cpp x: 2 commits (all time) y: 12 lines of code src/module/api/Display.h x: 2 commits (all time) y: 10 lines of code src/module/api/core/Controller.cpp x: 2 commits (all time) y: 56 lines of code src/module/api/core/Controller.h x: 3 commits (all time) y: 41 lines of code src/app.cpp x: 6 commits (all time) y: 6 lines of code ev3-api/ev3api.h x: 3 commits (all time) y: 31 lines of code ev3-api/library/lib2/src/c-souce-file-1.c x: 3 commits (all time) y: 1 lines of code ev3-api/library/libcpp-ev3/include/Clock.h x: 3 commits (all time) y: 25 lines of code ev3-api/library/libcpp-ev3/include/ColorSensor.h x: 3 commits (all time) y: 16 lines of code ev3-api/library/libcpp-ev3/include/GyroSensor.h x: 3 commits (all time) y: 18 lines of code ev3-api/library/libcpp-ev3/include/Motor.h x: 3 commits (all time) y: 37 lines of code ev3-api/library/libcpp-ev3/include/Sensor.h x: 3 commits (all time) y: 21 lines of code ev3-api/library/libcpp-ev3/include/SonarSensor.h x: 3 commits (all time) y: 14 lines of code ev3-api/library/libcpp-ev3/include/Steering.h x: 3 commits (all time) y: 15 lines of code ev3-api/library/libcpp-ev3/include/TouchSensor.h x: 3 commits (all time) y: 12 lines of code ev3-api/library/libcpp-ev3/src/Clock.cpp x: 3 commits (all time) y: 19 lines of code ev3-api/library/libcpp-ev3/src/Motor.cpp x: 3 commits (all time) y: 32 lines of code ev3-api/library/libcpp-ev3/src/Steering.cpp x: 3 commits (all time) y: 8 lines of code ev3-api/library/libcpp-ev3/src/TouchSensor.cpp x: 3 commits (all time) y: 10 lines of code ev3-api/library/libcpp-test/src/c-souce-file-1.c x: 3 commits (all time) y: 4 lines of code ev3-api/src/api_common.h x: 3 commits (all time) y: 11 lines of code ev3-api/src/ev3api.c x: 3 commits (all time) y: 27 lines of code ev3-api/src/ev3api_brick.c x: 3 commits (all time) y: 92 lines of code ev3-api/src/ev3api_fs.c x: 3 commits (all time) y: 109 lines of code ev3-api/src/ev3api_fs.h x: 3 commits (all time) y: 28 lines of code ev3-api/src/ev3api_lcd.c x: 3 commits (all time) y: 275 lines of code ev3-api/src/ev3api_motor.c x: 3 commits (all time) y: 254 lines of code ev3-api/src/ev3api_newlib.c x: 3 commits (all time) y: 165 lines of code ev3-api/src/ev3api_sensor.c x: 3 commits (all time) y: 367 lines of code ev3-api/src/ev3api_sensor.h x: 3 commits (all time) y: 67 lines of code ev3-api/src/ev3api_speaker.h x: 3 commits (all time) y: 57 lines of code src/app.cfg x: 2 commits (all time) y: 5 lines of code src/app.h x: 2 commits (all time) y: 14 lines of code
367.0
lines of code
  min: 1.0
  average: 42.86
  25th percentile: 11.0
  median: 18.5
  75th percentile: 31.0
  max: 367.0
0 11.0
commits (all time)
min: 2.0 | average: 3.02 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 3.0 | max: 11.0

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

src/Makefile.inc x: 4 contributors (all time) y: 18 lines of code src/module/Filter.cpp x: 2 contributors (all time) y: 15 lines of code src/module/Filter.h x: 2 contributors (all time) y: 11 lines of code codecov.yml x: 2 contributors (all time) y: 22 lines of code cmake/CodeCoverage.cmake x: 2 contributors (all time) y: 175 lines of code src/module/EtRobocon2019.cpp x: 2 contributors (all time) y: 27 lines of code src/module/EtRobocon2019.h x: 2 contributors (all time) y: 7 lines of code src/module/api/Display.cpp x: 2 contributors (all time) y: 12 lines of code src/module/api/Display.h x: 2 contributors (all time) y: 10 lines of code src/module/api/core/Controller.cpp x: 2 contributors (all time) y: 56 lines of code src/module/api/core/Controller.h x: 2 contributors (all time) y: 41 lines of code ev3-api/ev3api.h x: 2 contributors (all time) y: 31 lines of code ev3-api/library/lib2/src/c-souce-file-1.c x: 2 contributors (all time) y: 1 lines of code ev3-api/library/libcpp-ev3/include/Clock.h x: 2 contributors (all time) y: 25 lines of code ev3-api/library/libcpp-ev3/include/ColorSensor.h x: 2 contributors (all time) y: 16 lines of code ev3-api/library/libcpp-ev3/include/GyroSensor.h x: 2 contributors (all time) y: 18 lines of code ev3-api/library/libcpp-ev3/include/Motor.h x: 2 contributors (all time) y: 37 lines of code ev3-api/library/libcpp-ev3/include/Sensor.h x: 2 contributors (all time) y: 21 lines of code ev3-api/library/libcpp-ev3/include/SonarSensor.h x: 2 contributors (all time) y: 14 lines of code ev3-api/library/libcpp-ev3/src/Clock.cpp x: 2 contributors (all time) y: 19 lines of code ev3-api/library/libcpp-ev3/src/Motor.cpp x: 2 contributors (all time) y: 32 lines of code ev3-api/library/libcpp-ev3/src/Steering.cpp x: 2 contributors (all time) y: 8 lines of code ev3-api/library/libcpp-test/src/c-souce-file-1.c x: 2 contributors (all time) y: 4 lines of code ev3-api/src/ev3api_brick.c x: 2 contributors (all time) y: 92 lines of code ev3-api/src/ev3api_fs.c x: 2 contributors (all time) y: 109 lines of code ev3-api/src/ev3api_fs.h x: 2 contributors (all time) y: 28 lines of code ev3-api/src/ev3api_lcd.c x: 2 contributors (all time) y: 275 lines of code ev3-api/src/ev3api_motor.c x: 2 contributors (all time) y: 254 lines of code ev3-api/src/ev3api_newlib.c x: 2 contributors (all time) y: 165 lines of code ev3-api/src/ev3api_sensor.c x: 2 contributors (all time) y: 367 lines of code ev3-api/src/ev3api_sensor.h x: 2 contributors (all time) y: 67 lines of code ev3-api/src/ev3api_speaker.h x: 2 contributors (all time) y: 57 lines of code src/app.cfg x: 2 contributors (all time) y: 5 lines of code
367.0
lines of code
  min: 1.0
  average: 42.86
  25th percentile: 11.0
  median: 18.5
  75th percentile: 31.0
  max: 367.0
0 4.0
contributors (all time)
min: 2.0 | average: 2.04 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 4.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".