google / mozc
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,133 files with 170,256 lines of code.
    • 21 very long files (45,235 lines of code)
    • 44 long files (29,627 lines of code)
    • 127 medium size files (39,818 lines of codeclsfd_ftr_w_mp_ins)
    • 173 small files (24,716 lines of code)
    • 768 very small files (30,860 lines of code)
26% | 17% | 23% | 14% | 18%
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
cc19% | 22% | 33% | 14% | 9%
h34% | 0% | 5% | 13% | 46%
TXT97% | 0% | 2% | 0% | 0%
ui57% | 0% | 8% | 25% | 7%
el100% | 0% | 0% | 0% | 0%
gypi42% | 0% | 26% | 12% | 18%
gyp14% | 14% | 27% | 25% | 18%
proto38% | 0% | 21% | 18% | 20%
html100% | 0% | 0% | 0% | 0%
wxs0% | 100% | 0% | 0% | 0%
py0% | 24% | 0% | 24% | 50%
bzl0% | 66% | 15% | 6% | 11%
pkgproj0% | 100% | 0% | 0% | 0%
mm0% | 24% | 30% | 23% | 20%
inc0% | 100% | 0% | 0% | 0%
y0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
wxi0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/gui68% | 2% | 10% | 7% | 10%
src/data96% | 0% | 2% | 0% | <1%
src/base25% | 16% | 21% | 14% | 21%
src/session35% | 17% | 14% | 17% | 15%
src/prediction66% | 0% | 16% | 9% | 7%
src/win329% | 32% | 26% | 14% | 16%
src/renderer14% | 15% | 27% | 18% | 24%
src/unix28% | 0% | 37% | 11% | 22%
src/converter19% | 22% | 32% | 10% | 15%
src/rewriter10% | 17% | 23% | 25% | 22%
src/data_manager25% | 27% | 10% | 20% | 16%
src/protocol41% | 0% | 32% | 19% | 6%
src/dictionary0% | 23% | 28% | 21% | 26%
src/mac0% | 53% | 22% | 7% | 16%
src/android0% | 87% | 0% | 8% | 4%
src/composer0% | 34% | 28% | 16% | 20%
src/client0% | 30% | 14% | 41% | 13%
src/config0% | 48% | 37% | 0% | 14%
src/ipc0% | 17% | 50% | 14% | 17%
src0% | 60% | 34% | 0% | 5%
src/storage0% | 0% | 52% | 8% | 38%
src/server0% | 0% | 86% | 0% | 13%
src/net0% | 0% | 71% | 16% | 12%
src/gyp0% | 0% | 78% | 0% | 21%
src/ios0% | 0% | 56% | 28% | 14%
src/engine0% | 0% | 19% | 41% | 39%
src/testing0% | 0% | 0% | 57% | 42%
src/build_tools0% | 0% | 0% | 18% | 81%
src/protobuf0% | 0% | 0% | 78% | 21%
src/usage_stats0% | 0% | 0% | 31% | 68%
src/tools0% | 0% | 0% | 52% | 47%
src/request0% | 0% | 0% | 0% | 100%
src/transliteration0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sjis_to_ucs2_table.h
in src/gui/base
11287 -
TXT
JIS0208.TXT
in src/data/unicode
6952 -
session.cc
in src/session
2157 134
japanese_util_rule.cc
in src/base
1922 -
win32_renderer_util.cc
in src/renderer/win32
1838 75
ui
config_dialog.ui
in src/gui/config_dialog
1821 -
el
mozc.el
in src/unix/emacs
1729 -
dictionary_predictor.cc
in src/prediction
1684 68
immutable_converter.cc
in src/converter
1632 37
user_history_predictor.cc
in src/prediction
1541 66
tip_text_service.cc
in src/win32/tip
1370 87
session_converter.cc
in src/session
1304 76
dictionary_tool.cc
in src/gui/dictionary_tool
1244 46
keyboard.cc
in src/win32/base
1175 29
util.cc
in src/base
1147 81
date_rewriter.cc
in src/rewriter
1105 31
win_sandbox.cc
in src/base
1104 42
gypi
data_manager.gypi
in src/data_manager
1086 -
gyp
gui.gyp
in src/gui
1078 -
proto
commands.proto
in src/protocol
1035 -
credits_en.html
in src/data/installer
1024 -
pkgproj
Mozc_template.pkgproj
in src/mac/installer
997 -
composer.cc
in src/composer
920 69
system_dictionary.cc
in src/dictionary/system
870 31
gen_mozc_drawable.py
in src/android/vectorgraphics
855 50
ime_ui_window.cc
in src/win32/ime
853 40
user_segment_history_rewriter.cc
in src/rewriter
835 41
tip_edit_session.cc
in src/win32/tip
818 38
number_util.cc
in src/base
808 46
win32_image_util.cc
in src/renderer/win32
802 31
wxs
installer_64bit.wxs
in src/win32/installer
789 -
converter.cc
in src/converter
786 39
ime_impl_imm.cc
in src/win32/ime
779 26
uninstall_helper.cc
in src/win32/base
777 30
keyevent_handler.cc
in src/win32/base
772 10
GoogleJapaneseInputController.mm
in src/mac
757 2
ime_core.cc
in src/win32/ime
728 29
wxs
installer_32bit.wxs
in src/win32/installer
694 -
system_util.cc
in src/base
692 41
client.cc
in src/client
676 48
tip_lang_bar_menu.cc
in src/win32/tip
676 40
keymap.cc
in src/session/internal
668 35
PIC_FILES.bzl
in src/android/vectorgraphics
648 -
config_dialog.cc
in src/gui/config_dialog
645 25
mozc_data.bzl
in src/data_manager
643 -
file_util.cc
in src/base
625 40
candidate_window.cc
in src/renderer/win32
623 34
tip_ui_element_immersive.cc
in src/win32/tip
608 37
gyp
renderer.gyp
in src/renderer
590 -
character_form_manager.cc
in src/config
581 35
Files With Most Units (Top 20)
File# lines# units
session.cc
in src/session
2157 134
tip_text_service.cc
in src/win32/tip
1370 87
util.cc
in src/base
1147 81
session_converter.cc
in src/session
1304 76
win32_renderer_util.cc
in src/renderer/win32
1838 75
composer.cc
in src/composer
920 69
converter_mock.cc
in src/converter
533 68
dictionary_predictor.cc
in src/prediction
1684 68
user_history_predictor.cc
in src/prediction
1541 66
gen_mozc_drawable.py
in src/android/vectorgraphics
855 50
segments.cc
in src/converter
554 50
client.cc
in src/client
676 48
number_util.cc
in src/base
808 46
dictionary_tool.cc
in src/gui/dictionary_tool
1244 46
win_sandbox.cc
in src/base
1104 42
system_util.cc
in src/base
692 41
user_segment_history_rewriter.cc
in src/rewriter
835 41
file_util.cc
in src/base
625 40
ime_ui_window.cc
in src/win32/ime
853 40
tip_lang_bar_menu.cc
in src/win32/tip
676 40
Files With Long Lines (Top 9)

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

File# lines# units# long lines
wxs
installer_32bit.wxs
in src/win32/installer
694 - 41
wxs
installer_64bit.wxs
in src/win32/installer
789 - 41
credits_en.html
in src/data/installer
1024 - 6
pkgproj
Mozc_template.pkgproj
in src/mac/installer
997 - 3
gypi
wix.gypi
in src/win32/installer
172 - 3
ui
about_dialog.ui
in src/gui/about_dialog
273 - 2
ui
administration_dialog.ui
in src/gui/administration_dialog
153 - 1
ui
config_dialog.ui
in src/gui/config_dialog
1821 - 1
gypi
common.gypi
in src/gyp
381 - 1