Skip to content

Commit 8d1e9b4

Browse files
committed
add concept count + tokens/line metrics, simplify homepage prose
1 parent 871d961 commit 8d1e9b4

115 files changed

Lines changed: 937 additions & 176 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

data/a1-two-sum-c.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 60,
66
"chars": 222,
77
"halsteadVolume": 310,
8-
"compressionRatio": 0.545
8+
"compressionRatio": 0.545,
9+
"tokensPerLine": 5
910
},
1011
"sigils": {
1112
"sigilsPerLine": 5.17,
@@ -17,5 +18,11 @@
1718
"maxNesting": 4,
1819
"avgIdentifierLength": 3.5,
1920
"visualDensity": 0.636
21+
},
22+
"concepts": {
23+
"keywords": 4,
24+
"syntaxPatterns": 3,
25+
"apiCalls": 0,
26+
"conceptCount": 7
2027
}
2128
}

data/a1-two-sum-cpp.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 54,
66
"chars": 331,
77
"halsteadVolume": 289,
8-
"compressionRatio": 0.577
8+
"compressionRatio": 0.577,
9+
"tokensPerLine": 3.6
910
},
1011
"sigils": {
1112
"sigilsPerLine": 5.6,
@@ -17,5 +18,11 @@
1718
"maxNesting": 3,
1819
"avgIdentifierLength": 4.4,
1920
"visualDensity": 0.732
21+
},
22+
"concepts": {
23+
"keywords": 4,
24+
"syntaxPatterns": 2,
25+
"apiCalls": 3,
26+
"conceptCount": 6
2027
}
2128
}

data/a1-two-sum-elixir.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 42,
66
"chars": 222,
77
"halsteadVolume": 215,
8-
"compressionRatio": 0.667
8+
"compressionRatio": 0.667,
9+
"tokensPerLine": 3.23
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.15,
@@ -17,5 +18,11 @@
1718
"maxNesting": 4,
1819
"avgIdentifierLength": 4,
1920
"visualDensity": 0.7
21+
},
22+
"concepts": {
23+
"keywords": 4,
24+
"syntaxPatterns": 2,
25+
"apiCalls": 2,
26+
"conceptCount": 6
2027
}
2128
}

data/a1-two-sum-go.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 44,
66
"chars": 173,
77
"halsteadVolume": 216,
8-
"compressionRatio": 0.755
8+
"compressionRatio": 0.755,
9+
"tokensPerLine": 3.67
910
},
1011
"sigils": {
1112
"sigilsPerLine": 3.25,
@@ -17,5 +18,11 @@
1718
"maxNesting": 3,
1819
"avgIdentifierLength": 3.7,
1920
"visualDensity": 0.749
21+
},
22+
"concepts": {
23+
"keywords": 6,
24+
"syntaxPatterns": 1,
25+
"apiCalls": 2,
26+
"conceptCount": 7
2027
}
2128
}

data/a1-two-sum-haskell.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 58,
66
"chars": 245,
77
"halsteadVolume": 320,
8-
"compressionRatio": 0.701
8+
"compressionRatio": 0.701,
9+
"tokensPerLine": 5.8
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.7,
@@ -17,5 +18,11 @@
1718
"maxNesting": 4,
1819
"avgIdentifierLength": 3.7,
1920
"visualDensity": 0.731
21+
},
22+
"concepts": {
23+
"keywords": 6,
24+
"syntaxPatterns": 5,
25+
"apiCalls": 2,
26+
"conceptCount": 11
2027
}
2128
}

data/a1-two-sum-java.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 53,
66
"chars": 337,
77
"halsteadVolume": 282,
8-
"compressionRatio": 0.556
8+
"compressionRatio": 0.556,
9+
"tokensPerLine": 3.53
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.67,
@@ -17,5 +18,11 @@
1718
"maxNesting": 4,
1819
"avgIdentifierLength": 4.8,
1920
"visualDensity": 0.684
21+
},
22+
"concepts": {
23+
"keywords": 8,
24+
"syntaxPatterns": 2,
25+
"apiCalls": 4,
26+
"conceptCount": 10
2027
}
2128
}

data/a1-two-sum-javascript.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 36,
66
"chars": 187,
77
"halsteadVolume": 173,
8-
"compressionRatio": 0.689
8+
"compressionRatio": 0.689,
9+
"tokensPerLine": 3.6
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.6,
@@ -17,5 +18,11 @@
1718
"maxNesting": 3,
1819
"avgIdentifierLength": 4.1,
1920
"visualDensity": 0.748
21+
},
22+
"concepts": {
23+
"keywords": 6,
24+
"syntaxPatterns": 0,
25+
"apiCalls": 4,
26+
"conceptCount": 6
2027
}
2128
}

data/a1-two-sum-kotlin.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 39,
66
"chars": 196,
77
"halsteadVolume": 193,
8-
"compressionRatio": 0.724
8+
"compressionRatio": 0.724,
9+
"tokensPerLine": 4.33
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.67,
@@ -17,5 +18,11 @@
1718
"maxNesting": 2,
1819
"avgIdentifierLength": 4.2,
1920
"visualDensity": 0.715
21+
},
22+
"concepts": {
23+
"keywords": 6,
24+
"syntaxPatterns": 1,
25+
"apiCalls": 3,
26+
"conceptCount": 7
2027
}
2128
}

data/a1-two-sum-milo.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 85,
66
"chars": 368,
77
"halsteadVolume": 482,
8-
"compressionRatio": 0.571
8+
"compressionRatio": 0.571,
9+
"tokensPerLine": 4.72
910
},
1011
"sigils": {
1112
"sigilsPerLine": 5,
@@ -17,5 +18,11 @@
1718
"maxNesting": 3,
1819
"avgIdentifierLength": 3.6,
1920
"visualDensity": 0.697
21+
},
22+
"concepts": {
23+
"keywords": 11,
24+
"syntaxPatterns": 4,
25+
"apiCalls": 4,
26+
"conceptCount": 15
2027
}
2128
}

data/a1-two-sum-python.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"tokens": 31,
66
"chars": 158,
77
"halsteadVolume": 146,
8-
"compressionRatio": 0.674
8+
"compressionRatio": 0.674,
9+
"tokensPerLine": 4.43
910
},
1011
"sigils": {
1112
"sigilsPerLine": 4.43,
@@ -17,5 +18,11 @@
1718
"maxNesting": 3,
1819
"avgIdentifierLength": 4.1,
1920
"visualDensity": 0.681
21+
},
22+
"concepts": {
23+
"keywords": 5,
24+
"syntaxPatterns": 1,
25+
"apiCalls": 1,
26+
"conceptCount": 6
2027
}
2128
}

0 commit comments

Comments
 (0)