dart-lang / samples
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 64 files with 1,098 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 64 very small files (1,098 lines of code)
0% | 0% | 0% | 0% | 100%
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
dart0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
command_line/lib0% | 0% | 0% | 0% | 100%
ffi/structs0% | 0% | 0% | 0% | 100%
ffi/system-command0% | 0% | 0% | 0% | 100%
ffi/primitives0% | 0% | 0% | 0% | 100%
extension_methods/example0% | 0% | 0% | 0% | 100%
server/google_apis0% | 0% | 0% | 0% | 100%
server/simple0% | 0% | 0% | 0% | 100%
null_safety/calculate_lix0% | 0% | 0% | 0% | 100%
ffi/hello_world0% | 0% | 0% | 0% | 100%
extension_methods/lib0% | 0% | 0% | 0% | 100%
command_line0% | 0% | 0% | 0% | 100%
extension_methods0% | 0% | 0% | 0% | 100%
native_app0% | 0% | 0% | 0% | 100%
isolates0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
helpers.dart
in server/google_apis/lib
77 3
structs.dart
in ffi/structs
69 1
github_activity.dart
in command_line/lib
54 3
primitives.dart
in ffi/primitives
52 1
index.html
in server/simple/public
49 -
util.dart
in command_line/lib/src
48 5
lix.dart
in null_safety/calculate_lix/lib
46 2
primitives.c
in ffi/primitives/primitives_library
46 5
structs.c
in ffi/structs/structs_library
46 4
win32ui.dart
in ffi/system-command
45 2
formatter.dart
in command_line/lib/src
39 2
windows.dart
in ffi/system-command
32 2
options.dart
in command_line/lib/src
31 -
core_type_extensions.dart
in extension_methods/example
24 2
hello.dart
in ffi/hello_world
22 1
pubspec.yaml
in command_line
19 -
some_api.dart
in extension_methods/lib
17 1
operator_extensions.dart
in extension_methods/example
17 1
getter_extensions.dart
in extension_methods/example
16 1
fluid_api.dart
in extension_methods/example
16 2
linux.dart
in ffi/system-command
16 2
macos.dart
in ffi/system-command
16 2
pubspec.yaml
in ffi/structs
15 -
privacy_source.dart
in extension_methods/lib
14 1
code_generation.dart
in extension_methods/example
14 1
structs.h
in ffi/structs/structs_library
14 -
pubspec.yaml
in ffi/hello_world
14 -
pubspec.yaml
in server/simple
13 -
pubspec.yaml
in ffi/primitives
13 -
pubspec.yaml
in server/google_apis
11 -
json_helpers.dart
in extension_methods/example
11 1
pubspec.yaml
in native_app
11 -
hello.c
in ffi/hello_world/hello_library
11 2
pubspec.yaml
in null_safety/calculate_lix
10 -
pubspec.yaml
in isolates
10 -
pubspec.yaml
in ffi/system-command
10 -
mono_pkg.yaml
in server/simple
9 -
pubspec.yaml
in extension_methods
9 -
mono_pkg.yaml
in extension_methods
9 -
mono_pkg.yaml
in command_line
9 -
mono_pkg.yaml
in ffi/primitives
9 -
mono_pkg.yaml
in ffi/hello_world
9 -
mono_pkg.yaml
in server/google_apis
7 -
mono_pkg.yaml
in null_safety/calculate_lix
7 -
mono_pkg.yaml
in native_app
7 -
mono_pkg.yaml
in isolates
7 -
mono_pkg.yaml
in ffi/system-command
7 -
mono_pkg.yaml
in ffi/structs
7 -
generics.dart
in extension_methods/example
6 1
mono_repo.yaml
in root
5 -
Files With Most Units (Top 20)
File# lines# units
util.dart
in command_line/lib/src
48 5
primitives.c
in ffi/primitives/primitives_library
46 5
structs.c
in ffi/structs/structs_library
46 4
helpers.dart
in server/google_apis/lib
77 3
github_activity.dart
in command_line/lib
54 3
lix.dart
in null_safety/calculate_lix/lib
46 2
core_type_extensions.dart
in extension_methods/example
24 2
fluid_api.dart
in extension_methods/example
16 2
formatter.dart
in command_line/lib/src
39 2
linux.dart
in ffi/system-command
16 2
win32ui.dart
in ffi/system-command
45 2
macos.dart
in ffi/system-command
16 2
windows.dart
in ffi/system-command
32 2
hello.c
in ffi/hello_world/hello_library
11 2
privacy_source.dart
in extension_methods/lib
14 1
some_api.dart
in extension_methods/lib
17 1
code_generation.dart
in extension_methods/example
14 1
json_helpers.dart
in extension_methods/example
11 1
generics.dart
in extension_methods/example
6 1
privacy_destination.dart
in extension_methods/example
4 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
index.html
in server/simple/public
49 - 1
structs.c
in ffi/structs/structs_library
46 4 1