openai / sparse_autoencoder
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 26 files with 2,726 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,053 lines of code)
    • 2 medium size files (483 lines of code)
    • 5 small files (636 lines of code)
    • 17 very small files (554 lines of code)
0% | 38% | 17% | 23% | 20%
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
py0% | 71% | 17% | 8% | 2%
css0% | 0% | 94% | 0% | 5%
tsx0% | 0% | 0% | 64% | 35%
ts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
sparse_autoencoder0% | 71% | 17% | 8% | 2%
sae-viewer0% | 0% | 18% | 41% | 40%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
train.py
in sparse_autoencoder
538 37
kernels.py
in sparse_autoencoder
515 19
explanations.py
in sparse_autoencoder
260 19
App.css
in sae-viewer/src
223 -
featureInfo.tsx
in sae-viewer/src/components
155 2
welcome.tsx
in sae-viewer/src
131 -
model.py
in sparse_autoencoder
125 17
featureSelect.tsx
in sae-viewer/src/components
124 1
tokenAblationmap.tsx
in sae-viewer/src/components
101 1
types.ts
in sae-viewer/src
100 3
autoencoder_registry.tsx
in sae-viewer/src
97 1
interpAPI.ts
in sae-viewer/src
46 3
tokenHeatmap.tsx
in sae-viewer/src/components
45 2
tooltip.tsx
in sae-viewer/src/components
36 2
feed.tsx
in sae-viewer/src
36 1
histogram.tsx
in sae-viewer/src/components
35 -
index.html
in sae-viewer/src
32 -
App.tsx
in sae-viewer/src
25 -
loss.py
in sparse_autoencoder
23 3
utils.ts
in sae-viewer/src
22 -
paths.py
in sparse_autoencoder
16 4
index.css
in sae-viewer/src
12 -
index.tsx
in sae-viewer/src
10 -
9 -
tailwind.config.js
in sae-viewer
7 -
__init__.py
in sparse_autoencoder
3 -
Files With Most Units (Top 15)
File# lines# units
train.py
in sparse_autoencoder
538 37
explanations.py
in sparse_autoencoder
260 19
kernels.py
in sparse_autoencoder
515 19
model.py
in sparse_autoencoder
125 17
paths.py
in sparse_autoencoder
16 4
loss.py
in sparse_autoencoder
23 3
types.ts
in sae-viewer/src
100 3
interpAPI.ts
in sae-viewer/src
46 3
tooltip.tsx
in sae-viewer/src/components
36 2
tokenHeatmap.tsx
in sae-viewer/src/components
45 2
featureInfo.tsx
in sae-viewer/src/components
155 2
autoencoder_registry.tsx
in sae-viewer/src
97 1
featureSelect.tsx
in sae-viewer/src/components
124 1
tokenAblationmap.tsx
in sae-viewer/src/components
101 1
feed.tsx
in sae-viewer/src
36 1
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 30 long lines.

File# lines# units# long lines
welcome.tsx
in sae-viewer/src
131 - 16
featureSelect.tsx
in sae-viewer/src/components
124 1 4
featureInfo.tsx
in sae-viewer/src/components
155 2 3
tokenHeatmap.tsx
in sae-viewer/src/components
45 2 2
kernels.py
in sparse_autoencoder
515 19 1
autoencoder_registry.tsx
in sae-viewer/src
97 1 1
tooltip.tsx
in sae-viewer/src/components
36 2 1
interpAPI.ts
in sae-viewer/src
46 3 1
App.tsx
in sae-viewer/src
25 - 1
Correlations

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

sparse_autoencoder/explanations.py x: 2 commits (all time) y: 260 lines of code sparse_autoencoder/train.py x: 2 commits (all time) y: 538 lines of code sparse_autoencoder/kernels.py x: 4 commits (all time) y: 515 lines of code sae-viewer/src/welcome.tsx x: 2 commits (all time) y: 131 lines of code sae-viewer/src/App.css x: 1 commits (all time) y: 223 lines of code sae-viewer/src/App.tsx x: 1 commits (all time) y: 25 lines of code sae-viewer/src/autoencoder_registry.tsx x: 1 commits (all time) y: 97 lines of code sae-viewer/src/components/featureInfo.tsx x: 1 commits (all time) y: 155 lines of code sae-viewer/src/components/featureSelect.tsx x: 1 commits (all time) y: 124 lines of code sae-viewer/src/components/histogram.tsx x: 1 commits (all time) y: 35 lines of code sae-viewer/src/components/tokenAblationmap.tsx x: 1 commits (all time) y: 101 lines of code sae-viewer/src/components/tokenHeatmap.tsx x: 1 commits (all time) y: 45 lines of code sae-viewer/src/index.css x: 1 commits (all time) y: 12 lines of code sae-viewer/src/index.html x: 1 commits (all time) y: 32 lines of code sae-viewer/src/index.tsx x: 1 commits (all time) y: 10 lines of code sae-viewer/src/utils.ts x: 1 commits (all time) y: 22 lines of code sae-viewer/tailwind.config.js x: 1 commits (all time) y: 7 lines of code sparse_autoencoder/__init__.py x: 1 commits (all time) y: 3 lines of code sparse_autoencoder/model.py x: 2 commits (all time) y: 125 lines of code sparse_autoencoder/paths.py x: 1 commits (all time) y: 16 lines of code
538.0
lines of code
  min: 3.0
  average: 112.25
  25th percentile: 22.75
  median: 45.5
  75th percentile: 129.5
  max: 538.0
0 4.0
commits (all time)
min: 1.0 | average: 1.29 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 4.0

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

sparse_autoencoder/explanations.py x: 2 contributors (all time) y: 260 lines of code sparse_autoencoder/train.py x: 2 contributors (all time) y: 538 lines of code sparse_autoencoder/kernels.py x: 1 contributors (all time) y: 515 lines of code sae-viewer/src/welcome.tsx x: 1 contributors (all time) y: 131 lines of code sae-viewer/src/App.css x: 1 contributors (all time) y: 223 lines of code sae-viewer/src/App.tsx x: 1 contributors (all time) y: 25 lines of code sae-viewer/src/autoencoder_registry.tsx x: 1 contributors (all time) y: 97 lines of code sae-viewer/src/components/featureInfo.tsx x: 1 contributors (all time) y: 155 lines of code sae-viewer/src/components/featureSelect.tsx x: 1 contributors (all time) y: 124 lines of code sae-viewer/src/components/histogram.tsx x: 1 contributors (all time) y: 35 lines of code sae-viewer/src/components/tokenAblationmap.tsx x: 1 contributors (all time) y: 101 lines of code sae-viewer/src/components/tokenHeatmap.tsx x: 1 contributors (all time) y: 45 lines of code sae-viewer/src/index.css x: 1 contributors (all time) y: 12 lines of code sae-viewer/src/index.html x: 1 contributors (all time) y: 32 lines of code sae-viewer/src/index.tsx x: 1 contributors (all time) y: 10 lines of code sae-viewer/src/utils.ts x: 1 contributors (all time) y: 22 lines of code sae-viewer/tailwind.config.js x: 1 contributors (all time) y: 7 lines of code sparse_autoencoder/__init__.py x: 1 contributors (all time) y: 3 lines of code sparse_autoencoder/model.py x: 2 contributors (all time) y: 125 lines of code sparse_autoencoder/paths.py x: 1 contributors (all time) y: 16 lines of code
538.0
lines of code
  min: 3.0
  average: 112.25
  25th percentile: 22.75
  median: 45.5
  75th percentile: 129.5
  max: 538.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.13 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.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".