apple / turicreate
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 1,637 files with 214,239 lines of code.
    • 17 very long files (29,628 lines of code)
    • 55 long files (37,024 lines of code)
    • 219 medium size files (67,812 lines of codeclsfd_ftr_w_mp_ins)
    • 275 small files (38,928 lines of code)
    • 1,071 very small files (40,847 lines of code)
13% | 17% | 31% | 18% | 19%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp12% | 22% | 37% | 14% | 12%
css75% | 19% | 3% | 0% | 2%
hpp9% | 12% | 24% | 24% | 29%
py11% | 21% | 34% | 18% | 14%
h33% | 0% | 29% | 13% | 23%
pyx39% | 0% | 39% | 9% | 11%
mm0% | 21% | 49% | 21% | 8%
m0% | 21% | 33% | 24% | 20%
js0% | 0% | 32% | 20% | 47%
cmake0% | 0% | 42% | 17% | 39%
swift0% | 0% | 58% | 0% | 41%
pxd0% | 0% | 0% | 42% | 57%
html0% | 0% | 0% | 62% | 37%
c0% | 0% | 0% | 96% | 3%
scss0% | 0% | 0% | 0% | 100%
proto0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
hh0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/core15% | 19% | 26% | 19% | 18%
src/toolkits12% | 16% | 39% | 15% | 15%
userguide/turi91% | 7% | 0% | 0% | <1%
src/python13% | 18% | 33% | 18% | 15%
src/ml4% | 12% | 36% | 26% | 20%
src/visualization0% | 16% | 25% | 14% | 43%
src/model_server0% | 20% | 28% | 20% | 30%
src/capi0% | 35% | 34% | 13% | 17%
src/deployment0% | 0% | 91% | 0% | 8%
cmake0% | 0% | 42% | 17% | 39%
scripts0% | 0% | 0% | 100% | 0%
userguide/supervised-learning0% | 0% | 0% | 44% | 55%
src/unsupported_python0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
userguide/_layouts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
graphene-theme.css
in userguide/turi/graphene-bootstrap-theme/css
6222 -
unity_sarray.cpp
in src/core/storage/sframe_interface
2420 71
remove_member_pointer.hpp
in src/core/generics
2418 -
sframe.py
in src/python/turicreate/data_structures
2107 93
boost_alt_winapi.h
in src/core/system/platform/shmipc
1827 77
unity_sframe.cpp
in src/core/storage/sframe_interface
1585 62
pyx
cy_flexible_type.pyx
in src/python/turicreate/_cython
1487 15
xgboost.cpp
in src/toolkits/supervised_learning
1325 55
recsys_model_base.cpp
in src/toolkits/recsys
1259 32
flexible_type.hpp
in src/core/data/flexible_type
1257 62
sgraph.cpp
in src/core/storage/sgraph_data
1227 48
evaluation_interface-inl.hpp
in src/toolkits/evaluation
1220 67
sarray.py
in src/python/turicreate/data_structures
1093 126
activity_classifier.cpp
in src/toolkits/activity_classification
1076 27
sparse_similarity_lookup_impl.hpp
in src/toolkits/sparse_similarity
1064 24
style_transfer_model_definition.cpp
in src/toolkits/style_transfer
1029 8
model_spec.cpp
in src/ml/neural_net
1012 60
capi_sframe.cpp
in src/capi/impl
953 27
gl_sframe.cpp
in src/core/data/sframe
942 95
mps_layers.mm
in src/ml/neural_net
921 37
groupby_aggregate_operators.hpp
in src/core/storage/sframe_data
909 153
supervised_learning.cpp
in src/toolkits/supervised_learning
909 25
parallel_csv_parser.cpp
in src/core/storage/sframe_data
864 20
object_detector.cpp
in src/toolkits/object_detection
847 35
gl_string.hpp
in src/core/generics
842 102
sarray_v2_type_encoding.cpp
in src/core/storage/sframe_data
837 22
gl_sarray.cpp
in src/core/data/sframe
812 87
util.py
in src/python/turicreate/toolkits/recommender
801 29
style_transfer.cpp
in src/toolkits/style_transfer
799 35
drawing_classifier.cpp
in src/toolkits/drawing_classifier
797 22
_cloudpickle_py27.py
in src/python/turicreate/util/_cloudpickle
781 62
timeseries.cpp
in src/model_server/extensions/timeseries
773 21
simple_instructions.py
in src/python/turicreate/meta/decompiler
773 69
_util.py
in src/python/turicreate/toolkits/text_analytics
758 11
factorization_model_sgd_interface.hpp
in src/toolkits/factorization
749 27
cityhash_tc.hpp
in src/core/util
727 61
unity_global.cpp
in src/model_server/lib
714 36
sound_classifier.py
in src/python/turicreate/toolkits/sound_classifier
692 39
TCVegaJSCanvas.m
in src/visualization/vega_renderer
675 -
unity_sgraph.cpp
in src/core/storage/sframe_interface
670 28
pysourcegen.py
in src/python/turicreate/meta/asttools/visitors
667 77
sgd_solver_base.cpp
in src/toolkits/sgd
666 8
sgraph_triple_apply.cpp
in src/core/storage/sgraph_data
658 26
control_flow_instructions.py
in src/python/turicreate/meta/decompiler
637 41
sframe.cpp
in src/core/storage/sframe_data
634 32
pthread_tools.hpp
in src/core/parallel
633 67
kmeans.cpp
in src/toolkits/clustering
624 29
itemcf.cpp
in src/toolkits/recsys/models
624 12
s3_api.cpp
in src/core/storage/fileio
615 17
flexible_type_detail.hpp
in src/core/data/flexible_type
614 219
Files With Most Units (Top 20)
File# lines# units
flexible_type_detail.hpp
in src/core/data/flexible_type
614 219
groupby_aggregate_operators.hpp
in src/core/storage/sframe_data
909 153
sarray.py
in src/python/turicreate/data_structures
1093 126
gl_string.hpp
in src/core/generics
842 102
gl_sframe.cpp
in src/core/data/sframe
942 95
sframe.py
in src/python/turicreate/data_structures
2107 93
gl_sarray.cpp
in src/core/data/sframe
812 87
boost_alt_winapi.h
in src/core/system/platform/shmipc
1827 77
pysourcegen.py
in src/python/turicreate/meta/asttools/visitors
667 77
unity_sarray.cpp
in src/core/storage/sframe_interface
2420 71
simple_instructions.py
in src/python/turicreate/meta/decompiler
773 69
pthread_tools.hpp
in src/core/parallel
633 67
evaluation_interface-inl.hpp
in src/toolkits/evaluation
1220 67
flexible_type_converter.hpp
in src/core/data/flexible_type
586 66
flexible_type.hpp
in src/core/data/flexible_type
1257 62
unity_sframe.cpp
in src/core/storage/sframe_interface
1585 62
_cloudpickle_py27.py
in src/python/turicreate/util/_cloudpickle
781 62
cityhash_tc.hpp
in src/core/util
727 61
model_spec.cpp
in src/ml/neural_net
1012 60
dense_bitset.hpp
in src/core/util
597 59
Files With Long Lines (Top 20)

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

File# lines# units# long lines
remove_member_pointer.hpp
in src/core/generics
2418 - 1254
graphene-theme.css
in userguide/turi/graphene-bootstrap-theme/css
6222 - 76
boost_alt_winapi.h
in src/core/system/platform/shmipc
1827 77 41
flexible_type_detail.hpp
in src/core/data/flexible_type
614 219 28
flexible_type.hpp
in src/core/data/flexible_type
1257 62 23
TuriCreate.h
in src/capi
458 - 21
pxd
cy_variant.pxd
in src/python/turicreate/_cython
54 - 19
mps_layers.mm
in src/ml/neural_net
921 37 15
mps_style_transfer_residual_node.mm
in src/ml/neural_net/style_transfer
153 - 14
TCVegaJSCanvas.m
in src/visualization/vega_renderer
675 - 12
capi_parameters.cpp
in src/capi/impl
369 32 10
AppDelegate.swift
in src/visualization/client/Turi Create Visualization/src
95 3 9
sampler.hpp
in src/core/data/image/numeric_extension
79 6 8
table.cpp
in src/visualization/server
237 4 8
mps_style_transfer_decoding_node.mm
in src/ml/neural_net/style_transfer
97 - 7
mps_style_transfer_encoding_node.mm
in src/ml/neural_net/style_transfer
92 - 7
recsys_model_base.cpp
in src/toolkits/recsys
1259 32 7
capi_sarray.cpp
in src/capi/impl
507 13 6
resample.hpp
in src/core/data/image/numeric_extension
68 7 6
mps_style_transfer.m
in src/ml/neural_net/style_transfer
371 - 6