guardian/australian-federal-election-polling-places-voronoi
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 114 files with 11,136 lines of code.
- 1 very long files (1,036 lines of code)
- 1 long files (577 lines of code)
- 12 medium size files (3,283 lines of code)
- 23 small files (3,190 lines of code)
- 77 very small files (3,050 lines of code)
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
File Size per Logical Decomposition
primary
Longest Files (Top 50)
| File | # lines | # units |
|---|---|---|
| 1036 | 104 | |
| 577 | 50 | |
| 332 | - | |
| 328 | 30 | |
| 316 | 24 | |
| 316 | 24 | |
| 298 | 25 | |
| 264 | 23 | |
| 263 | 6 | |
| 260 | 16 | |
| 245 | 26 | |
| 237 | 19 | |
| 216 | 24 | |
| 208 | 28 | |
| 198 | 19 | |
| 189 | 18 | |
| 185 | - | |
| 171 | 11 | |
| 168 | 12 | |
| 159 | 10 | |
| 158 | 20 | |
| 154 | 12 | |
| 149 | 11 | |
| 138 | 16 | |
| 136 | 19 | |
| 132 | 16 | |
| 129 | 19 | |
| 127 | 11 | |
| 125 | 8 | |
| 122 | 14 | |
| 119 | 25 | |
| 109 | - | |
| 109 | 12 | |
| 105 | - | |
| 103 | 12 | |
| 103 | 10 | |
| 102 | - | |
| 100 | 9 | |
| 96 | 8 | |
| 94 | 13 | |
| 91 | 11 | |
| 90 | 13 | |
| 89 | - | |
| 88 | 5 | |
| 88 | 11 | |
| 87 | 7 | |
| 87 | 9 | |
| 82 | - | |
| 78 | 9 | |
| 77 | 7 |
Files With Most Units (Top 50)
| File | # lines | # units |
|---|---|---|
| 1036 | 104 | |
| 577 | 50 | |
| 328 | 30 | |
| 208 | 28 | |
| 245 | 26 | |
| 298 | 25 | |
| 119 | 25 | |
| 316 | 24 | |
| 316 | 24 | |
| 216 | 24 | |
| 264 | 23 | |
| 158 | 20 | |
| 136 | 19 | |
| 129 | 19 | |
| 237 | 19 | |
| 198 | 19 | |
| 189 | 18 | |
| 132 | 16 | |
| 138 | 16 | |
| 260 | 16 | |
| 122 | 14 | |
| 76 | 14 | |
| 64 | 13 | |
| 90 | 13 | |
| 94 | 13 | |
| 109 | 12 | |
| 154 | 12 | |
| 103 | 12 | |
| 168 | 12 | |
| 171 | 11 | |
| 127 | 11 | |
| 88 | 11 | |
| 91 | 11 | |
| 149 | 11 | |
| 159 | 10 | |
| 103 | 10 | |
| 72 | 9 | |
| 57 | 9 | |
| 100 | 9 | |
| 64 | 9 | |
| 87 | 9 | |
| 78 | 9 | |
| 61 | 8 | |
| 96 | 8 | |
| 125 | 8 | |
| 52 | 7 | |
| 87 | 7 | |
| 43 | 7 | |
| 57 | 7 | |
| 77 | 7 |
Files With Long Lines (Top 16)
There are 16 files with lines longer than 120 characters. In total, there are 38 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 260 | 16 | 7 | |
| 171 | 11 | 5 | |
| 71 | - | 5 | |
| 54 | - | 4 | |
| 263 | 6 | 3 | |
| 245 | 26 | 3 | |
| 102 | - | 2 | |
| 59 | - | 1 | |
| 70 | 5 | 1 | |
| 72 | 1 | 1 | |
| 136 | 19 | 1 | |
| 1036 | 104 | 1 | |
| 20 | - | 1 | |
| 237 | 19 | 1 | |
| 29 | 3 | 1 | |
| 16 | 1 | 1 |
Correlations
File Size vs. Commits (all time): 10 points
|
|
332.0 | lines of code min: 1.0average: 125.7 25th percentile: 12.0 median: 62.5 75th percentile: 274.0 max: 332.0 |
|
| 0 | 15.0 | ||
|
commits (all time) min: 1.0 | average: 3.8 | 25th percentile: 1.75 | median: 2.0 | 75th percentile: 4.5 | max: 15.0
|
|||
File Size vs. Contributors (all time): 10 points
|
|
332.0 | lines of code min: 1.0average: 125.7 25th percentile: 12.0 median: 62.5 75th percentile: 274.0 max: 332.0 |
|
| 0 | 2.0 | ||
|
contributors (all time) min: 1.0 | average: 1.3 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.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".
About This Analysis
- 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...
- To learn more about bloaters and how to deal with long code structures, Sokrates recommends the following resources:
- Refactoring bloaters, sourcemaking.com
- The Blob Software Development Anti-Pattern, sourcemaking.com