File Size Overall
  • There are 59 files with 8,949 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (644 lines of code)
    • 18 medium size files (5,936 lines of code)
    • 9 small files (1,402 lines of code)
    • 31 very small files (967 lines of code)
0% | 7% | 66% | 15% | 10%
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% | 7% | 66% | 15% | 10%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 7% | 67% | 15% | 9%
scripts0% | 0% | 0% | 0% | 100%
conf0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
transformer.py
in src/open_clip
644 38
__main__.py
in src/training
490 5
pretrained.py
in src/open_clip
480 15
data.py
in src/training
425 39
factory.py
in src/open_clip
420 15
coca_model.py
in src/open_clip
370 12
transform.py
in src/open_clip
358 23
zero_shot.py
in src/training
349 23
loss.py
in src/open_clip
315 25
zero_shot_metadata.py
in src/training
308 -
train.py
in src/training
305 7
model.py
in src/open_clip
301 16
data_utils.py
in src/training
299 28
text_negatives_data.py
in src/training
295 23
push_to_hf_hub.py
in src/open_clip
267 5
aro_datasets.py
in src/training
262 20
params.py
in src/training
250 4
video_datasets.py
in src/training
224 24
clip_model.py
in src/open_clip
218 18
hf_model.py
in src/open_clip
198 13
profiler.py
in src/training
194 9
hydra.py
in src/training
175 6
tokenizer.py
in src/open_clip
173 12
spacy_parser.py
in src/training
161 3
timm_model.py
in src/open_clip
142 6
modified_resnet.py
in src/open_clip
134 11
big_vision.py
in src/open_clip
119 1
distributed.py
in src/training
106 9
utils.py
in src/training
83 10
utils.py
in src/open_clip
80 7
collate.py
in src/training
78 9
62 2
file_utils.py
in src/training
62 6
s3_utils.py
in src/training
53 4
scheduler.py
in src/training
51 6
openai.py
in src/open_clip
51 2
video_reader.py
in src/training
50 10
frame_sampler.py
in src/training
47 5
pos_embed.py
in src/open_clip
47 4
41 2
metric_utils.py
in src/training
30 2
29 3
video_utils.py
in src/training
25 3
logger.py
in src/training
21 1
ray.yaml
in conf/launch_on
17 -
decode_utils.py
in src/training
17 4
iter_utils.py
in src/open_clip
17 3
optuna.yaml
in conf/hparam_search
16 -
__init__.py
in src/open_clip
16 -
14 1
Files With Most Units (Top 48)
File# lines# units
data.py
in src/training
425 39
transformer.py
in src/open_clip
644 38
data_utils.py
in src/training
299 28
loss.py
in src/open_clip
315 25
video_datasets.py
in src/training
224 24
zero_shot.py
in src/training
349 23
text_negatives_data.py
in src/training
295 23
transform.py
in src/open_clip
358 23
aro_datasets.py
in src/training
262 20
clip_model.py
in src/open_clip
218 18
model.py
in src/open_clip
301 16
pretrained.py
in src/open_clip
480 15
factory.py
in src/open_clip
420 15
hf_model.py
in src/open_clip
198 13
coca_model.py
in src/open_clip
370 12
tokenizer.py
in src/open_clip
173 12
modified_resnet.py
in src/open_clip
134 11
video_reader.py
in src/training
50 10
utils.py
in src/training
83 10
collate.py
in src/training
78 9
distributed.py
in src/training
106 9
profiler.py
in src/training
194 9
train.py
in src/training
305 7
utils.py
in src/open_clip
80 7
hydra.py
in src/training
175 6
file_utils.py
in src/training
62 6
scheduler.py
in src/training
51 6
timm_model.py
in src/open_clip
142 6
frame_sampler.py
in src/training
47 5
__main__.py
in src/training
490 5
push_to_hf_hub.py
in src/open_clip
267 5
decode_utils.py
in src/training
17 4
params.py
in src/training
250 4
s3_utils.py
in src/training
53 4
pos_embed.py
in src/open_clip
47 4
29 3
video_utils.py
in src/training
25 3
spacy_parser.py
in src/training
161 3
iter_utils.py
in src/open_clip
17 3
62 2
41 2
metric_utils.py
in src/training
30 2
12 2
openai.py
in src/open_clip
51 2
14 1
logger.py
in src/training
21 1
big_vision.py
in src/open_clip
119 1
precision.py
in src/open_clip
14 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

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

src/training/video_reader.py x: 2 commits (all time) y: 50 lines of code src/open_clip/pretrained.py x: 1 commits (all time) y: 480 lines of code src/training/aro_datasets.py x: 1 commits (all time) y: 262 lines of code src/training/zero_shot.py x: 2 commits (all time) y: 349 lines of code src/training/data.py x: 1 commits (all time) y: 425 lines of code
480.0
lines of code
  min: 50.0
  average: 313.2
  25th percentile: 156.0
  median: 349.0
  75th percentile: 452.5
  max: 480.0
0 2.0
commits (all time)
min: 1.0 | average: 1.4 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0

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

src/training/video_reader.py x: 1 contributors (all time) y: 50 lines of code src/open_clip/pretrained.py x: 1 contributors (all time) y: 480 lines of code src/training/aro_datasets.py x: 1 contributors (all time) y: 262 lines of code src/training/zero_shot.py x: 1 contributors (all time) y: 349 lines of code src/training/data.py x: 1 contributors (all time) y: 425 lines of code
480.0
lines of code
  min: 50.0
  average: 313.2
  25th percentile: 156.0
  median: 349.0
  75th percentile: 452.5
  max: 480.0
0 1.0
contributors (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.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...