facebookincubator / fbjni
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 61 files with 5,779 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (513 lines of code)
    • 10 medium size files (2,875 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,012 lines of code)
    • 43 very small files (1,379 lines of code)
0% | 8% | 49% | 17% | 23%
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
h0% | 12% | 51% | 13% | 21%
cpp0% | 0% | 52% | 30% | 16%
java0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cxx/fbjni/detail0% | 11% | 62% | 11% | 14%
cxx/lyra0% | 0% | 0% | 58% | 41%
cxx/fbjni0% | 0% | 0% | 43% | 56%
java/com/facebook/jni0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
java/com/facebook/jni/annotations0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
CoreClasses-inl.h
in cxx/fbjni/detail
513 66
References-inl.h
in cxx/fbjni/detail
418 50
Meta-inl.h
in cxx/fbjni/detail
322 31
CoreClasses.h
in cxx/fbjni/detail
315 8
Exceptions.cpp
in cxx/fbjni/detail
311 32
References.h
in cxx/fbjni/detail
303 7
Environment.cpp
in cxx/fbjni/detail
271 12
SimpleFixedString.h
in cxx/fbjni/detail
262 24
Meta.h
in cxx/fbjni/detail
234 2
Hybrid.h
in cxx/fbjni/detail
222 22
utf8.cpp
in cxx/fbjni/detail
217 10
fbjni.cpp
in cxx/fbjni
184 13
Iterator-inl.h
in cxx/fbjni/detail
183 16
cxa_throw.cpp
in cxx/lyra
140 7
lyra.cpp
in cxx/lyra
133 7
Registration-inl.h
in cxx/fbjni/detail
128 11
TypeTraits.h
in cxx/fbjni/detail
125 10
MetaConvert.h
in cxx/fbjni/detail
119 19
DestructorThread.java
in java/com/facebook/jni
87 9
lyra.h
in cxx/lyra
84 8
ReferenceAllocators-inl.h
in cxx/fbjni/detail
83 9
ByteBuffer.cpp
in cxx/fbjni
69 7
62 3
Registration.h
in cxx/fbjni/detail
59 -
Boxed.h
in cxx/fbjni/detail
56 4
Iterator.h
in cxx/fbjni/detail
56 -
Exceptions.h
in cxx/fbjni/detail
55 2
References.cpp
in cxx/fbjni/detail
52 4
Environment.h
in cxx/fbjni/detail
48 -
utf8.h
in cxx/fbjni/detail
43 1
Log.h
in cxx/fbjni/detail
41 5
JThread.h
in cxx/fbjni
39 7
Common.h
in cxx/fbjni/detail
39 2
References-forward.h
in cxx/fbjni/detail
38 -
37 -
ByteBuffer.h
in cxx/fbjni
31 1
HybridData.java
in java/com/facebook/jni
28 4
MapIteratorHelper.java
in java/com/facebook/jni
28 2
IteratorHelper.java
in java/com/facebook/jni
27 3
NativeRunnable.h
in cxx/fbjni
25 2
ReferenceAllocators.h
in cxx/fbjni/detail
24 -
Meta.cpp
in cxx/fbjni/detail
21 -
Meta-forward.h
in cxx/fbjni/detail
20 -
Context.h
in cxx/fbjni
19 2
Hybrid.cpp
in cxx/fbjni/detail
19 3
JWeakReference.h
in cxx/fbjni/detail
19 1
17 -
File.h
in cxx/fbjni
14 1
fbjni.h
in cxx/fbjni
14 -
CppSystemErrorException.java
in java/com/facebook/jni
14 2
Files With Most Units (Top 47)
File# lines# units
CoreClasses-inl.h
in cxx/fbjni/detail
513 66
References-inl.h
in cxx/fbjni/detail
418 50
Exceptions.cpp
in cxx/fbjni/detail
311 32
Meta-inl.h
in cxx/fbjni/detail
322 31
SimpleFixedString.h
in cxx/fbjni/detail
262 24
Hybrid.h
in cxx/fbjni/detail
222 22
MetaConvert.h
in cxx/fbjni/detail
119 19
Iterator-inl.h
in cxx/fbjni/detail
183 16
fbjni.cpp
in cxx/fbjni
184 13
Environment.cpp
in cxx/fbjni/detail
271 12
Registration-inl.h
in cxx/fbjni/detail
128 11
TypeTraits.h
in cxx/fbjni/detail
125 10
utf8.cpp
in cxx/fbjni/detail
217 10
ReferenceAllocators-inl.h
in cxx/fbjni/detail
83 9
DestructorThread.java
in java/com/facebook/jni
87 9
CoreClasses.h
in cxx/fbjni/detail
315 8
lyra.h
in cxx/lyra
84 8
JThread.h
in cxx/fbjni
39 7
ByteBuffer.cpp
in cxx/fbjni
69 7
References.h
in cxx/fbjni/detail
303 7
lyra.cpp
in cxx/lyra
133 7
cxa_throw.cpp
in cxx/lyra
140 7
Log.h
in cxx/fbjni/detail
41 5
References.cpp
in cxx/fbjni/detail
52 4
Boxed.h
in cxx/fbjni/detail
56 4
HybridData.java
in java/com/facebook/jni
28 4
Hybrid.cpp
in cxx/fbjni/detail
19 3
62 3
IteratorHelper.java
in java/com/facebook/jni
27 3
NativeRunnable.h
in cxx/fbjni
25 2
Context.h
in cxx/fbjni
19 2
Exceptions.h
in cxx/fbjni/detail
55 2
Common.h
in cxx/fbjni/detail
39 2
Meta.h
in cxx/fbjni/detail
234 2
UnknownCppException.java
in java/com/facebook/jni
13 2
CppSystemErrorException.java
in java/com/facebook/jni
14 2
ThreadScopeSupport.java
in java/com/facebook/jni
14 2
MapIteratorHelper.java
in java/com/facebook/jni
28 2
11 1
File.h
in cxx/fbjni
14 1
ByteBuffer.h
in cxx/fbjni
31 1
JWeakReference.h
in cxx/fbjni/detail
19 1
utf8.h
in cxx/fbjni/detail
43 1
OnLoad.cpp
in cxx/fbjni
10 1
11 1
CppException.java
in java/com/facebook/jni
9 1
NativeRunnable.java
in java/com/facebook/jni
10 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
Meta.h
in cxx/fbjni/detail
234 2 4
Hybrid.h
in cxx/fbjni/detail
222 22 2
Registration.h
in cxx/fbjni/detail
59 - 1
CoreClasses-inl.h
in cxx/fbjni/detail
513 66 1
Meta-inl.h
in cxx/fbjni/detail
322 31 1
CoreClasses.h
in cxx/fbjni/detail
315 8 1
References.h
in cxx/fbjni/detail
303 7 1
Correlations

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

cxx/lyra/cxa_throw.cpp x: 8 commits (all time) y: 140 lines of code cxx/fbjni/detail/Hybrid.h x: 11 commits (all time) y: 222 lines of code cxx/fbjni/detail/Registration-inl.h x: 8 commits (all time) y: 128 lines of code googletest-CMakeLists.txt.in x: 3 commits (all time) y: 17 lines of code cxx/fbjni/detail/Environment.cpp x: 10 commits (all time) y: 271 lines of code cxx/fbjni/detail/Environment.h x: 5 commits (all time) y: 48 lines of code cxx/fbjni/detail/Meta-inl.h x: 5 commits (all time) y: 322 lines of code cxx/fbjni/detail/Meta.h x: 8 commits (all time) y: 234 lines of code cxx/fbjni/detail/Iterator-inl.h x: 5 commits (all time) y: 183 lines of code cxx/fbjni/detail/Iterator.h x: 4 commits (all time) y: 56 lines of code cxx/fbjni/detail/SimpleFixedString.h x: 4 commits (all time) y: 262 lines of code cxx/fbjni/detail/MetaConvert.h x: 3 commits (all time) y: 119 lines of code cxx/fbjni/detail/Registration.h x: 6 commits (all time) y: 59 lines of code cxx/lyra/lyra.cpp x: 4 commits (all time) y: 133 lines of code cxx/lyra/lyra_breakpad.cpp x: 3 commits (all time) y: 11 lines of code cxx/fbjni/detail/References.h x: 9 commits (all time) y: 303 lines of code cxx/fbjni/detail/CoreClasses-inl.h x: 10 commits (all time) y: 513 lines of code cxx/fbjni/detail/Exceptions.cpp x: 4 commits (all time) y: 311 lines of code cxx/fbjni/detail/CoreClasses.h x: 9 commits (all time) y: 315 lines of code java/com/facebook/jni/HybridData.java x: 3 commits (all time) y: 28 lines of code cxx/fbjni/detail/Exceptions.h x: 2 commits (all time) y: 55 lines of code cxx/lyra/lyra_exceptions.cpp x: 3 commits (all time) y: 62 lines of code cxx/fbjni/detail/FbjniApi.h x: 1 commits (all time) y: 10 lines of code cxx/fbjni/detail/ReferenceAllocators-inl.h x: 2 commits (all time) y: 83 lines of code cxx/fbjni/detail/References-forward.h x: 3 commits (all time) y: 38 lines of code cxx/fbjni/detail/References-inl.h x: 5 commits (all time) y: 418 lines of code cxx/fbjni/detail/Meta.cpp x: 1 commits (all time) y: 21 lines of code cxx/fbjni/detail/References.cpp x: 2 commits (all time) y: 52 lines of code cxx/lyra/lyra_exceptions.h x: 2 commits (all time) y: 37 lines of code cxx/fbjni/detail/utf8.h x: 2 commits (all time) y: 43 lines of code cxx/fbjni/ByteBuffer.cpp x: 3 commits (all time) y: 69 lines of code cxx/fbjni/Context.h x: 3 commits (all time) y: 19 lines of code cxx/fbjni/JThread.h x: 2 commits (all time) y: 39 lines of code cxx/fbjni/ByteBuffer.h x: 2 commits (all time) y: 31 lines of code cxx/fbjni/File.h x: 1 commits (all time) y: 14 lines of code cxx/fbjni/NativeRunnable.h x: 1 commits (all time) y: 25 lines of code cxx/fbjni/ReadableByteChannel.cpp x: 1 commits (all time) y: 11 lines of code cxx/fbjni/detail/Hybrid.cpp x: 1 commits (all time) y: 19 lines of code cxx/fbjni/detail/Log.h x: 1 commits (all time) y: 41 lines of code cxx/fbjni/detail/ReferenceAllocators.h x: 1 commits (all time) y: 24 lines of code cxx/fbjni/detail/TypeTraits.h x: 1 commits (all time) y: 125 lines of code cxx/fbjni/detail/utf8.cpp x: 1 commits (all time) y: 217 lines of code cxx/fbjni/fbjni.cpp x: 1 commits (all time) y: 184 lines of code cxx/lyra/lyra.h x: 1 commits (all time) y: 84 lines of code java/com/facebook/jni/DestructorThread.java x: 1 commits (all time) y: 87 lines of code java/com/facebook/jni/HybridClassBase.java x: 1 commits (all time) y: 4 lines of code java/com/facebook/jni/IteratorHelper.java x: 1 commits (all time) y: 27 lines of code java/com/facebook/jni/ThreadScopeSupport.java x: 2 commits (all time) y: 14 lines of code java/com/facebook/jni/annotations/DoNotStrip.java x: 1 commits (all time) y: 8 lines of code
513.0
lines of code
  min: 4.0
  average: 94.74
  25th percentile: 18.0
  median: 41.0
  75th percentile: 130.5
  max: 513.0
0 11.0
commits (all time)
min: 1.0 | average: 3.03 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 4.0 | max: 11.0

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

cxx/lyra/cxa_throw.cpp x: 4 contributors (all time) y: 140 lines of code cxx/fbjni/detail/Hybrid.h x: 4 contributors (all time) y: 222 lines of code cxx/fbjni/detail/Registration-inl.h x: 3 contributors (all time) y: 128 lines of code googletest-CMakeLists.txt.in x: 2 contributors (all time) y: 17 lines of code cxx/fbjni/detail/Environment.cpp x: 6 contributors (all time) y: 271 lines of code cxx/fbjni/detail/Environment.h x: 4 contributors (all time) y: 48 lines of code cxx/fbjni/detail/Meta-inl.h x: 4 contributors (all time) y: 322 lines of code cxx/fbjni/detail/Meta.h x: 4 contributors (all time) y: 234 lines of code cxx/fbjni/detail/Iterator-inl.h x: 2 contributors (all time) y: 183 lines of code cxx/fbjni/detail/Iterator.h x: 2 contributors (all time) y: 56 lines of code cxx/fbjni/detail/SimpleFixedString.h x: 2 contributors (all time) y: 262 lines of code cxx/fbjni/detail/MetaConvert.h x: 2 contributors (all time) y: 119 lines of code cxx/fbjni/detail/Registration.h x: 3 contributors (all time) y: 59 lines of code cxx/lyra/lyra.cpp x: 2 contributors (all time) y: 133 lines of code cxx/lyra/lyra_breakpad.cpp x: 2 contributors (all time) y: 11 lines of code cxx/fbjni/detail/References.h x: 4 contributors (all time) y: 303 lines of code cxx/fbjni/detail/CoreClasses-inl.h x: 4 contributors (all time) y: 513 lines of code cxx/fbjni/detail/Exceptions.cpp x: 3 contributors (all time) y: 311 lines of code cxx/fbjni/detail/CoreClasses.h x: 4 contributors (all time) y: 315 lines of code java/com/facebook/jni/HybridData.java x: 3 contributors (all time) y: 28 lines of code cxx/lyra/lyra_exceptions.cpp x: 3 contributors (all time) y: 62 lines of code cxx/fbjni/detail/FbjniApi.h x: 1 contributors (all time) y: 10 lines of code cxx/fbjni/detail/ReferenceAllocators-inl.h x: 2 contributors (all time) y: 83 lines of code cxx/fbjni/detail/References-forward.h x: 3 contributors (all time) y: 38 lines of code cxx/fbjni/detail/References-inl.h x: 3 contributors (all time) y: 418 lines of code cxx/fbjni/detail/Meta.cpp x: 1 contributors (all time) y: 21 lines of code cxx/fbjni/detail/References.cpp x: 2 contributors (all time) y: 52 lines of code cxx/lyra/lyra_exceptions.h x: 2 contributors (all time) y: 37 lines of code cxx/fbjni/detail/utf8.h x: 2 contributors (all time) y: 43 lines of code cxx/fbjni/ByteBuffer.cpp x: 3 contributors (all time) y: 69 lines of code cxx/fbjni/Context.h x: 2 contributors (all time) y: 19 lines of code cxx/fbjni/JThread.h x: 2 contributors (all time) y: 39 lines of code cxx/fbjni/ByteBuffer.h x: 2 contributors (all time) y: 31 lines of code cxx/fbjni/File.h x: 1 contributors (all time) y: 14 lines of code cxx/fbjni/NativeRunnable.h x: 1 contributors (all time) y: 25 lines of code cxx/fbjni/ReadableByteChannel.cpp x: 1 contributors (all time) y: 11 lines of code cxx/fbjni/detail/Hybrid.cpp x: 1 contributors (all time) y: 19 lines of code cxx/fbjni/detail/Log.h x: 1 contributors (all time) y: 41 lines of code cxx/fbjni/detail/ReferenceAllocators.h x: 1 contributors (all time) y: 24 lines of code cxx/fbjni/detail/TypeTraits.h x: 1 contributors (all time) y: 125 lines of code cxx/fbjni/detail/utf8.cpp x: 1 contributors (all time) y: 217 lines of code cxx/fbjni/fbjni.cpp x: 1 contributors (all time) y: 184 lines of code cxx/lyra/lyra.h x: 1 contributors (all time) y: 84 lines of code java/com/facebook/jni/DestructorThread.java x: 1 contributors (all time) y: 87 lines of code java/com/facebook/jni/HybridClassBase.java x: 1 contributors (all time) y: 4 lines of code java/com/facebook/jni/IteratorHelper.java x: 1 contributors (all time) y: 27 lines of code java/com/facebook/jni/ThreadScopeSupport.java x: 2 contributors (all time) y: 14 lines of code java/com/facebook/jni/annotations/DoNotStrip.java x: 1 contributors (all time) y: 8 lines of code
513.0
lines of code
  min: 4.0
  average: 94.74
  25th percentile: 18.0
  median: 41.0
  75th percentile: 130.5
  max: 513.0
0 6.0
contributors (all time)
min: 1.0 | average: 2.03 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 6.0

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

cxx/lyra/cxa_throw.cpp x: 1 commits (30d) y: 140 lines of code
140.0
lines of code
  min: 140.0
  average: 140.0
  25th percentile: 140.0
  median: 140.0
  75th percentile: 140.0
  max: 140.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

cxx/lyra/cxa_throw.cpp x: 1 contributors (30d) y: 140 lines of code
140.0
lines of code
  min: 140.0
  average: 140.0
  25th percentile: 140.0
  median: 140.0
  75th percentile: 140.0
  max: 140.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

cxx/lyra/cxa_throw.cpp x: 1 commits (90d) y: 140 lines of code cxx/fbjni/detail/Hybrid.h x: 1 commits (90d) y: 222 lines of code cxx/fbjni/detail/Registration-inl.h x: 1 commits (90d) y: 128 lines of code
222.0
lines of code
  min: 128.0
  average: 163.33
  25th percentile: 128.0
  median: 140.0
  75th percentile: 222.0
  max: 222.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

cxx/lyra/cxa_throw.cpp x: 1 contributors (90d) y: 140 lines of code cxx/fbjni/detail/Hybrid.h x: 1 contributors (90d) y: 222 lines of code cxx/fbjni/detail/Registration-inl.h x: 1 contributors (90d) y: 128 lines of code
222.0
lines of code
  min: 128.0
  average: 163.33
  25th percentile: 128.0
  median: 140.0
  75th percentile: 222.0
  max: 222.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