facebookresearch / asynchronousratchetingtree
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 447 units with 3,812 lines of code in units (73.2% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (231 lines of code)
    • 42 medium size units (1,341 lines of code)
    • 51 small units (734 lines of code)
    • 351 very small units (1,506 lines of code)
0% | 6% | 35% | 19% | 39%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 6% | 35% | 19% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
asynchronousratchetingtree/art/message/thrift0% | 6% | 39% | 16% | 37%
asynchronousratchetingtree0% | 26% | 12% | 22% | 38%
asynchronousratchetingtree/dhratchet/message/thrift0% | 0% | 42% | 23% | 34%
asynchronousratchetingtree/art0% | 0% | 40% | 25% | 34%
asynchronousratchetingtree/dhratchet0% | 0% | 43% | 11% | 44%
asynchronousratchetingtree/art/message0% | 0% | 21% | 11% | 66%
asynchronousratchetingtree/crypto0% | 0% | 0% | 48% | 51%
asynchronousratchetingtree/art/tree0% | 0% | 0% | 33% | 66%
asynchronousratchetingtree/dhratchet/message0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private static TestResult testRun()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/Main.java
93 25 5
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
81 15 2
public int compareTo()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
57 17 1
public void write()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
48 13 2
public boolean equals()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
47 36 1
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
45 8 2
public static void main()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/Main.java
45 9 1
public void write()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
44 7 2
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/NodeStruct.java
44 9 2
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/UpdateMessageStruct.java
44 8 2
public void setFieldValue()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java
43 12 2
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetSetupMessageStruct.java
42 9 2
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetMessageStruct.java
42 9 2
public int compareTo()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/NodeStruct.java
37 11 1
public int compareTo()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetSetupMessageStruct.java
37 11 1
public int compareTo()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetMessageStruct.java
37 11 1
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/CiphertextMessageStruct.java
35 7 2
public void read()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/AuthenticatedMessageStruct.java
34 7 2
private static Node updateTreeWithPublicPath()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/ART.java
33 6 4
public void setFieldValue()
in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetSetupMessageStruct.java
33 9 2