microsoft / cs_comments_service
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 92 files with 5,798 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (665 lines of code)
    • 4 medium size files (1,285 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,060 lines of code)
    • 72 very small files (1,788 lines of code)
0% | 11% | 22% | 35% | 30%
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
rb0% | 13% | 25% | 36% | 25%
rake0% | 0% | 0% | 46% | 53%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
ru0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
spec0% | 21% | 31% | 37% | 10%
lib0% | 0% | 36% | 27% | 35%
models0% | 0% | 0% | 57% | 42%
ROOT0% | 0% | 0% | 91% | 8%
presenters0% | 0% | 0% | 64% | 35%
api0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
edx_specs0% | 0% | 0% | 0% | 100%
locale0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
comment_thread_spec.rb
in spec/api
665 11
user_spec.rb
in spec/api
370 7
spec_helper.rb
in spec
340 21
helpers.rb
in lib
302 27
search_spec.rb
in spec/api
273 7
comment_spec.rb
in spec/api
198 4
thread_spec.rb
in spec/presenters
177 1
commentable_spec.rb
in spec/api
162 2
user.rb
in models
151 15
app_spec.rb
in spec
145 2
app.rb
in root
137 5
comment.rb
in models
136 13
vote_spec.rb
in spec/api
135 -
comment_thread.rb
in models
132 15
notifications_and_subscriptions_spec.rb
in spec/api
129 1
rake
search.rake
in lib/tasks
123 4
notifications_spec.rb
in spec/api
123 2
thread.rb
in presenters
105 5
comment_spec.rb
in spec/models
105 1
rake
kpis.rake
in lib/tasks
102 -
comment_thread_spec.rb
in spec/models
90 1
rake
db.rake
in lib/tasks
85 2
search.rb
in api
84 -
comment_threads.rb
in api
82 -
users.rb
in api
81 -
content.rb
in models
78 6
rake
benchmark.rake
in lib/tasks
73 -
at_user_observer.rb
in models/observers
73 5
comments.rb
in api
62 -
abuse_spec.rb
in spec/api
55 -
mongoid.yml
in config
52 -
rake
deep_search.rake
in lib/tasks
50 -
commentables.rb
in api
48 -
newrelic.yml
in config
46 -
migrate-001-sk-author_username.js
in scripts/db
46 -
thread_utils.rb
in presenters
42 2
discussion.rb
in edx_specs
41 -
factories.rb
in spec
35 -
thread_list_spec.rb
in spec/presenters
35 -
constants.rb
in models
32 -
post_reply_observer.rb
in models/observers
32 2
query_spec.rb
in spec/api
31 -
post_topic_observer.rb
in models/observers
30 2
task_helpers.rb
in lib
26 4
rake
flags.rake
in lib/tasks
26 -
elasticsearch.rb
in spec/support
24 3
notifications_and_subscriptions.rb
in api
23 -
subscription.rb
in models
23 3
unicode_shared_examples.rb
in spec
23 -
commentable.rb
in models
21 5
Files With Most Units (Top 20)
File# lines# units
helpers.rb
in lib
302 27
spec_helper.rb
in spec
340 21
comment_thread.rb
in models
132 15
user.rb
in models
151 15
comment.rb
in models
136 13
comment_thread_spec.rb
in spec/api
665 11
search_spec.rb
in spec/api
273 7
user_spec.rb
in spec/api
370 7
content.rb
in models
78 6
app.rb
in root
137 5
commentable.rb
in models
21 5
at_user_observer.rb
in models/observers
73 5
thread.rb
in presenters
105 5
task_helpers.rb
in lib
26 4
rake
search.rake
in lib/tasks
123 4
comment_spec.rb
in spec/api
198 4
helpers.rb
in edx_specs
13 3
subscription.rb
in models
23 3
elasticsearch.rb
in spec/support
24 3
rake
db.rake
in lib/tasks
85 2
Files With Long Lines (Top 20)

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

File# lines# units# long lines
thread_spec.rb
in spec/presenters
177 1 6
rake
db.rake
in lib/tasks
85 2 5
comment_thread_spec.rb
in spec/api
665 11 5
spec_helper.rb
in spec
340 21 4
rake
kpis.rake
in lib/tasks
102 - 3
notifications_spec.rb
in spec/api
123 2 3
comment_thread_spec.rb
in spec/models
90 1 3
rake
benchmark.rake
in lib/tasks
73 - 2
comment_thread.rb
in models
132 15 2
user.rb
in models
151 15 2
comment_threads.rb
in api
82 - 1
notifications.rb
in api
3 - 1
search.rb
in api
84 - 1
users.rb
in api
81 - 1
app.rb
in root
137 5 1
rake
flags.rake
in lib/tasks
26 - 1
rake
jobs.rake
in lib/tasks
10 - 1
comment.rb
in models
136 13 1
post_topic_observer.rb
in models/observers
30 2 1
thread.rb
in presenters
105 5 1