Flog Results
Flog measures code complexity.
Total Flog score for all methods: 2122.8
Average Flog score for all methods: 9.0
/lib/achoo/awake.rb
Awake#sessions
Total Score: 90.7
Score | Operator |
---|---|
13.0 | time |
12.5 | branch |
9.7 | assignment |
9.4 | [] |
8.3 | << |
7.8 | new |
7.4 | length |
6.5 | last |
6.3 | first |
5.3 | event |
4.9 | == |
4.6 | + |
3.2 | raise |
2.8 | lit_fixnum |
2.0 | - |
1.8 | < |
1.7 | unshift |
1.5 | even? |
1.5 | group |
1.3 | each |
Awake#group
Total Score: 19.8
Score | Operator |
---|---|
9.0 | assignment |
7.3 | branch |
5.2 | event |
4.6 | == |
3.4 | << |
1.6 | nil? |
1.3 | each |
Awake#print_session
Total Score: 18.4
Score | Operator |
---|---|
4.1 | branch |
3.6 | to_s |
3.4 | [] |
3.2 | << |
2.8 | puts |
2.7 | assignment |
1.5 | overlaps? |
1.5 | nil? |
1.3 | each |
0.4 | lit_fixnum |
Awake#wtmp
Total Score: 17.0
Score | Operator |
---|---|
4.8 | new |
4.2 | branch |
4.0 | assignment |
3.9 | time |
3.1 | << |
1.5 | halt_event? |
1.4 | boot_event? |
1.3 | each |
Awake#initialize
Total Score: 12.3
Score | Operator |
---|---|
2.6 | assignment |
1.7 | suspend |
1.7 | wtmp |
1.7 | now |
1.5 | merge! |
1.5 | new |
1.3 | unshift |
1.3 | reverse |
1.3 | sessions |
Awake#at
Total Score: 9.8
Score | Operator |
---|---|
2.7 | branch |
2.7 | assignment |
1.6 | [] |
1.5 | print_session |
1.5 | + |
1.4 | overlaps? |
1.3 | new |
1.3 | each |
0.4 | lit_fixnum |
main#none
Total Score: 4.4
Score | Operator |
---|---|
4.4 | require |
Awake#all
Total Score: 3.3
Score | Operator |
---|---|
1.4 | assignment |
1.4 | print_session |
1.3 | each |
1.3 | branch |
Awake#suspend
Total Score: 1.3
Score | Operator |
---|---|
1.3 | new |
Awake#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
/lib/achoo/achievo/date_field.rb
Achievo#DateField
Total Score: 80.9
Score | Operator |
---|---|
31.5 | send |
30.0 | define_method |
10.3 | branch |
8.2 | assignment |
3.6 | field_with |
3.6 | strftime |
2.7 | new |
1.8 | to_i |
1.8 | year |
1.7 | value |
1.7 | collect |
1.4 | each |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/term/table.rb
Table#print
Total Score: 51.6
Score | Operator |
---|---|
16.4 | << |
9.7 | join |
9.3 | assignment |
6.7 | |
5.2 | branch |
2.9 | printf |
1.6 | + |
1.6 | length |
1.4 | == |
1.4 | nil? |
1.4 | * |
1.3 | map |
1.3 | center_table_headers |
1.3 | build_format |
1.3 | each |
1.3 | calculate_table_cell_widths |
0.9 | lit_fixnum |
Table#build_format
Total Score: 26.6
Score | Operator |
---|---|
12.3 | assignment |
8.9 | branch |
3.8 | [] |
3.0 | + |
1.8 | strip |
1.7 | shift |
1.6 | empty? |
1.6 | match |
1.5 | reduce |
1.5 | count |
1.4 | each_index |
1.3 | each |
1.3 | fill |
1.3 | new |
Table#calculate_table_cell_widths
Total Score: 18.1
Score | Operator |
---|---|
14.3 | assignment |
4.0 | branch |
3.1 | length |
2.7 | each_with_index |
1.7 | [] |
1.5 | max |
1.3 | each |
Table#center_table_headers
Total Score: 9.0
Score | Operator |
---|---|
6.9 | assignment |
1.6 | [] |
1.4 | center |
1.3 | dup |
1.3 | branch |
1.3 | each_with_index |
Table#initialize
Total Score: 5.2
Score | Operator |
---|---|
5.2 | assignment |
Table#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/ical.rb
ICal#print_events
Total Score: 49.6
Score | Operator |
---|---|
16.0 | branch |
8.6 | assignment |
4.4 | x_properties |
4.2 | dtend |
4.2 | dtstart |
4.0 | [] |
3.8 | >= |
3.8 | <= |
3.6 | print_event |
3.0 | each |
2.0 | first |
1.9 | occurrences |
1.8 | value |
1.6 | == |
1.6 | recurs? |
1.6 | empty? |
1.5 | handle_exception |
1.5 | events |
1.3 | + |
0.4 | lit_fixnum |
ICal#from_http_request
Total Score: 23.5
Score | Operator |
---|---|
10.9 | assignment |
10.8 | [] |
4.1 | new |
2.6 | branch |
1.5 | basic_auth |
1.5 | request |
1.5 | body |
1.3 | start |
ICal#print_event
Total Score: 10.6
Score | Operator |
---|---|
3.0 | to_s |
1.7 | dtend |
1.7 | dtstart |
1.5 | summary |
1.3 | new |
1.3 | assignment |
1.3 | printf |
main#none
Total Score: 5.5
Score | Operator |
---|---|
5.5 | require |
ICal#none
Total Score: 3.6
Score | Operator |
---|---|
2.4 | include |
1.2 | private |
ICal#initialize
Total Score: 3.1
Score | Operator |
---|---|
1.5 | parse_string |
1.3 | first |
1.3 | assignment |
/lib/achoo/ui/date_chooser.rb
DateChooser#parse_date
Total Score: 49.2
Score | Operator |
---|---|
16.4 | branch |
5.6 | [] |
4.6 | civil |
4.0 | assignment |
3.4 | Integer |
3.4 | year |
3.1 | new |
2.7 | raise |
2.7 | today |
2.0 | lit_fixnum |
1.7 | month |
1.6 | < |
1.5 | + |
1.5 | - |
1.5 | split |
1.5 | chars |
1.4 | to_i |
1.4 | empty? |
1.4 | == |
1.3 | collect |
1.3 | length |
1.3 | first |
1.3 | nil? |
DateChooser#choose
Total Score: 9.0
Score | Operator |
---|---|
4.8 | assignment |
4.5 | branch |
1.7 | handle_answer |
1.6 | puts |
1.5 | ask |
1.3 | loop |
DateChooser#print_help_message
Total Score: 6.7
Score | Operator |
---|---|
3.9 | puts |
1.5 | date_format_help_string |
1.3 | system |
DateChooser#handle_answer
Total Score: 4.4
Score | Operator |
---|---|
1.5 | print_help_message |
1.4 | parse_date |
1.3 | branch |
1.3 | == |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
DateChooser#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
/lib/achoo/ui/commands.rb
Commands#view_report
Total Score: 39.3
Score | Operator |
---|---|
11.4 | [] |
7.9 | assignment |
3.4 | - |
2.8 | new |
2.1 | length |
1.7 | first |
1.7 | to_i |
1.7 | last |
1.5 | + |
1.5 | search |
1.4 | lit_fixnum |
1.4 | include? |
1.3 | branch |
1.3 | |
1.3 | choose |
1.3 | keys |
1.3 | puts |
1.3 | select_columns |
1.3 | get |
Commands#lock_month
Total Score: 9.7
Score | Operator |
---|---|
2.6 | assignment |
1.4 | puts |
1.4 | submit |
1.3 | branch |
1.3 | confirm |
1.3 | lock_month |
1.3 | print_values |
1.3 | month_chooser |
1.3 | new |
Commands#show_holiday_report
Total Score: 8.5
Score | Operator |
---|---|
1.5 | [] |
1.5 | body |
1.5 | underline |
1.3 | get |
1.3 | match |
1.3 | puts |
1.3 | assignment |
Commands#show_flexi_time
Total Score: 7.8
Score | Operator |
---|---|
3.9 | assignment |
1.5 | underline |
1.3 | date_chooser |
1.3 | flexi_time |
1.3 | puts |
1.3 | new |
Commands#none
Total Score: 4.8
Score | Operator |
---|---|
4.8 | include |
Commands#show_registered_hours_for_week
Total Score: 4.7
Score | Operator |
---|---|
2.6 | assignment |
1.3 | show_registered_hours_for_week |
1.3 | date_chooser |
1.3 | new |
Commands#show_registered_hours_for_day
Total Score: 4.7
Score | Operator |
---|---|
2.6 | assignment |
1.3 | show_registered_hours_for_day |
1.3 | date_chooser |
1.3 | new |
main#none
Total Score: 3.3
Score | Operator |
---|---|
3.3 | require |
/lib/achoo/ui/register_hours.rb
RegisterHours#register_hours
Total Score: 37.9
Score | Operator |
---|---|
13.4 | assignment |
6.7 | branch |
5.4 | == |
4.7 | class |
4.2 | puts |
1.5 | workperiod_chooser |
1.5 | billing_chooser |
1.5 | submit |
1.5 | ask |
1.4 | print_remark_help |
1.4 | print_hours_help |
1.3 | phase_chooser |
1.3 | hours_chooser |
1.3 | confirm |
1.3 | project_chooser |
1.3 | print_values |
1.3 | optionally_ranged_date_chooser |
1.3 | remark_chooser |
1.3 | downcase |
1.3 | new |
RegisterHours#print_remark_help
Total Score: 23.1
Score | Operator |
---|---|
8.0 | puts |
4.3 | assignment |
4.0 | branch |
3.2 | handle_exception |
3.2 | [] |
1.7 | from_http_request |
1.5 | print_events |
1.5 | * |
1.4 | each |
1.4 | print_logs_for |
0.4 | lit_fixnum |
RegisterHours#project_chooser
Total Score: 20.7
Score | Operator |
---|---|
7.8 | [] |
5.6 | branch |
4.2 | assignment |
2.0 | to_i |
1.8 | - |
1.5 | all_projects_chooser |
1.5 | collect |
1.3 | choose |
1.3 | recent_projects |
1.3 | puts |
1.0 | lit_fixnum |
RegisterHours#chooser_helper
Total Score: 16.4
Score | Operator |
---|---|
6.9 | assignment |
4.4 | [] |
4.1 | branch |
1.9 | to_i |
1.7 | - |
1.5 | collect |
1.3 | choose |
1.3 | empty? |
1.3 | puts |
0.9 | lit_fixnum |
RegisterHours#print_hours_help
Total Score: 9.4
Score | Operator |
---|---|
2.9 | assignment |
2.8 | puts |
1.6 | handle_exception |
1.5 | at |
1.5 | new |
1.4 | |
1.3 | branch |
main#none
Total Score: 6.6
Score | Operator |
---|---|
6.6 | require |
RegisterHours#none
Total Score: 4.8
Score | Operator |
---|---|
4.8 | include |
RegisterHours#hours_chooser
Total Score: 3.2
Score | Operator |
---|---|
1.3 | assignment |
1.3 | branch |
1.3 | ask |
1.3 | == |
RegisterHours#all_projects_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | all_projects |
1.3 | chooser_helper |
RegisterHours#phase_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | phases_for_selected_project |
1.3 | chooser_helper |
RegisterHours#workperiod_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | worktime_periods |
1.3 | chooser_helper |
RegisterHours#billing_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | billing_options |
1.3 | chooser_helper |
RegisterHours#remark_chooser
Total Score: 1.3
Score | Operator |
---|---|
1.3 | ask |
/lib/achoo/achievo/hour_registration_form.rb
HourRegistrationForm#print_values
Total Score: 34.4
Score | Operator |
---|---|
9.1 | printf |
4.2 | field_with |
3.8 | options |
3.4 | first |
3.0 | text |
3.0 | [] |
1.7 | phase |
1.7 | project |
1.5 | remark |
1.5 | date_to_s |
1.5 | time |
1.3 | assignment |
HourRegistrationForm#phases_for_selected_project
Total Score: 32.7
Score | Operator |
---|---|
9.5 | assignment |
4.0 | branch |
3.8 | value |
3.4 | extract_number_from_phaseid |
3.0 | << |
2.8 | [] |
2.7 | each |
1.7 | text |
1.7 | body |
1.7 | forms |
1.6 | options |
1.5 | match |
1.5 | first |
1.3 | respond_to? |
1.3 | field_with |
1.3 | create_page_from_partial |
1.3 | retrieve_project_phases_page |
0.4 | lit_fixnum |
HourRegistrationForm#initialize
Total Score: 32.2
Score | Operator |
---|---|
11.0 | assignment |
4.5 | send |
3.8 | field_with |
3.4 | options |
3.0 | first |
2.8 | form |
2.6 | select |
2.6 | branch |
2.6 | nil? |
1.7 | today |
1.5 | new |
1.5 | [] |
1.4 | raise |
1.3 | get |
HourRegistrationForm#scrape_projects
Total Score: 30.3
Score | Operator |
---|---|
7.8 | [] |
5.7 | assignment |
3.4 | text |
3.0 | strip |
3.0 | search |
2.8 | branch |
2.3 | at_css |
2.1 | attribute |
1.9 | to_s |
1.7 | match |
1.6 | lit_fixnum |
1.5 | empty? |
1.3 | each |
HourRegistrationForm#all_projects
Total Score: 30.2
Score | Operator |
---|---|
14.2 | assignment |
6.4 | [] |
3.0 | scrape_projects |
2.8 | puts |
2.6 | branch |
1.7 | keys |
1.5 | click |
1.5 | + |
1.5 | merge! |
1.5 | projects_url |
1.5 | sort |
1.4 | link_with |
1.3 | get |
1.3 | collect |
1.2 | lit_fixnum |
HourRegistrationForm#recent_projects
Total Score: 19.0
Score | Operator |
---|---|
7.0 | assignment |
4.3 | [] |
2.6 | each |
2.6 | branch |
1.7 | length |
1.7 | text |
1.7 | value |
1.7 | field_with |
1.5 | << |
1.5 | options |
0.8 | lit_fixnum |
HourRegistrationForm#atk_submit_to_url
Total Score: 12.9
Score | Operator |
---|---|
5.2 | gsub! |
3.0 | [] |
2.8 | + |
1.5 | length |
1.3 | assignment |
0.4 | lit_fixnum |
HourRegistrationForm#billing_options
Total Score: 12.5
Score | Operator |
---|---|
1.8 | value |
1.7 | field_with |
1.6 | match |
1.5 | options |
1.4 | assignment |
1.4 | text |
1.4 | [] |
1.3 | branch |
1.3 | collect |
1.3 | collect_options |
0.4 | lit_fixnum |
HourRegistrationForm#retrieve_project_phases_page
Total Score: 12.1
Score | Operator |
---|---|
7.8 | assignment |
4.1 | [] |
1.3 | atkaction |
1.3 | submit |
1.3 | action |
1.3 | + |
HourRegistrationForm#collect_options
Total Score: 11.3
Score | Operator |
---|---|
1.8 | value |
1.7 | field_with |
1.6 | match |
1.5 | options |
1.4 | [] |
1.4 | text |
1.4 | assignment |
1.3 | collect |
1.3 | branch |
0.4 | lit_fixnum |
HourRegistrationForm#none
Total Score: 5.0
Score | Operator |
---|---|
2.4 | include |
1.4 | DateField |
1.2 | private |
HourRegistrationForm#phase
Total Score: 4.9
Score | Operator |
---|---|
1.7 | phaseid |
1.5 | match |
1.3 | [] |
0.4 | lit_fixnum |
HourRegistrationForm#projects_url
Total Score: 4.5
Score | Operator |
---|---|
1.7 | link_with |
1.5 | href |
1.3 | atk_submit_to_url |
HourRegistrationForm#create_page_from_partial
Total Score: 3.7
Score | Operator |
---|---|
2.6 | assignment |
1.3 | body |
1.3 | new |
HourRegistrationForm#extract_number_from_projectid
Total Score: 3.2
Score | Operator |
---|---|
1.5 | match |
1.3 | [] |
0.4 | lit_fixnum |
HourRegistrationForm#extract_number_from_phaseid
Total Score: 3.2
Score | Operator |
---|---|
1.5 | match |
1.3 | [] |
0.4 | lit_fixnum |
HourRegistrationForm#date_to_s
Total Score: 2.8
Score | Operator |
---|---|
1.5 | date |
1.3 | strftime |
HourRegistrationForm#project
Total Score: 2.8
Score | Operator |
---|---|
1.5 | projectid |
1.3 | extract_number_from_projectid |
HourRegistrationForm#submit
Total Score: 1.3
Score | Operator |
---|---|
1.3 | submit |
HourRegistrationForm#billing=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
HourRegistrationForm#project=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
HourRegistrationForm#hours=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
HourRegistrationForm#worktime_periods
Total Score: 1.3
Score | Operator |
---|---|
1.3 | collect_options |
HourRegistrationForm#workperiod=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
HourRegistrationForm#phase=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
HourRegistrationForm#remark=
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/achievo/hour_administration_form.rb
HourAdministrationForm#show_registered_hours
Total Score: 32.8
Score | Operator |
---|---|
6.7 | branch |
5.6 | assignment |
3.6 | length |
3.4 | [] |
3.3 | first |
2.8 | new |
2.6 | == |
1.9 | - |
1.5 | include? |
1.5 | gsub! |
1.5 | search |
1.4 | last |
1.4 | select_columns |
1.4 | each |
1.4 | lit_fixnum |
1.3 | > |
1.3 | set_page_to_view_for_date |
1.3 |
HourAdministrationForm#set_page_to_view_for_date
Total Score: 21.1
Score | Operator |
---|---|
9.9 | assignment |
4.3 | form |
2.6 | branch |
1.5 | click |
1.5 | puts |
1.5 | get_page_for |
1.5 | capitalize |
1.5 | date |
1.5 | [] |
1.3 | link_with |
1.3 | get |
1.3 | == |
1.3 | nil? |
HourAdministrationForm#flexi_time
Total Score: 6.2
Score | Operator |
---|---|
1.7 | body |
1.5 | match |
1.3 | set_page_to_view_for_date |
1.3 | [] |
0.4 | lit_fixnum |
HourAdministrationForm#none
Total Score: 5.0
Score | Operator |
---|---|
2.4 | include |
1.4 | DateField |
1.2 | private |
HourAdministrationForm#get_page_for
Total Score: 3.7
Score | Operator |
---|---|
2.6 | assignment |
1.3 | submit |
1.3 | puts |
HourAdministrationForm#initialize
Total Score: 2.6
Score | Operator |
---|---|
2.6 | assignment |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
HourAdministrationForm#show_registered_hours_for_week
Total Score: 1.3
Score | Operator |
---|---|
1.3 | show_registered_hours |
HourAdministrationForm#show_registered_hours_for_day
Total Score: 1.3
Score | Operator |
---|---|
1.3 | show_registered_hours |
/lib/achoo/temporal/timespan.rb
Timespan#to_time
Total Score: 30.3
Score | Operator |
---|---|
6.9 | branch |
3.4 | year |
3.4 | day |
3.4 | month |
3.0 | local |
1.9 | class |
1.7 | new |
1.7 | hour |
1.7 | to_s |
1.7 | minute |
1.7 | second |
1.5 | raise |
1.5 | parse |
1.5 | clone |
1.4 | respond_to? |
Timespan#duration
Total Score: 25.3
Score | Operator |
---|---|
7.8 | assignment |
4.5 | to_i |
3.9 | - |
3.9 | / |
1.5 | hours |
1.5 | hour |
1.5 | days |
1.5 | minute |
1.5 | day |
1.5 | last |
1.5 | first |
1.3 | lit_fixnum |
Timespan#to_as_string
Total Score: 22.5
Score | Operator |
---|---|
7.5 | == |
7.3 | branch |
7.2 | year |
3.6 | month |
2.6 | assignment |
1.5 | last |
1.3 | strftime |
Timespan#from_as_string
Total Score: 21.2
Score | Operator |
---|---|
6.8 | year |
5.8 | == |
5.6 | branch |
3.4 | month |
2.6 | assignment |
1.5 | first |
1.5 | << |
1.3 | strftime |
Timespan#from_to_string
Total Score: 16.9
Score | Operator |
---|---|
7.8 | send |
3.9 | assignment |
1.5 | last |
1.5 | to_as_string |
1.5 | from_as_string |
1.5 | first |
1.3 | % |
1.3 | today |
Timespan#contains?
Total Score: 11.5
Score | Operator |
---|---|
4.6 | include? |
2.8 | branch |
1.8 | last |
1.8 | first |
1.6 | to_time |
1.5 | assignment |
1.3 | is_a? |
Timespan#initialize
Total Score: 10.0
Score | Operator |
---|---|
2.8 | nil? |
2.6 | to_time |
2.6 | branch |
1.6 | new |
1.4 | raise |
1.3 | super |
Timespan#overlaps?
Total Score: 8.2
Score | Operator |
---|---|
2.9 | include? |
2.7 | branch |
1.7 | last |
1.6 | first |
1.5 | contains? |
Timespan#to_s
Total Score: 4.3
Score | Operator |
---|---|
1.5 | from_to_string |
1.5 | duration_string |
1.3 | % |
Timespan#duration_string
Total Score: 2.8
Score | Operator |
---|---|
1.5 | duration |
1.3 | % |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
Timespan#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
/lib/achoo/system/cstruct.rb
CStruct#add_type
Total Score: 30.3
Score | Operator |
---|---|
11.4 | send |
9.7 | assignment |
5.7 | branch |
4.3 | template |
3.9 | << |
2.2 | to_s |
2.0 | [] |
1.9 | + |
1.9 | == |
0.5 | lit_fixnum |
CStruct#bin_size
Total Score: 21.5
Score | Operator |
---|---|
7.2 | branch |
6.9 | assignment |
5.2 | template |
2.7 | split |
2.5 | select |
2.4 | == |
2.3 | map |
2.1 | pack |
1.9 | length |
CStruct#none
Total Score: 9.6
Score | Operator |
---|---|
6.0 | sclass |
1.8 | private |
1.8 | attr |
CStruct#pack
Total Score: 5.9
Score | Operator |
---|---|
1.7 | class |
1.5 | template |
1.3 | assignment |
1.3 | tr |
1.3 | pack |
CStruct#unpack
Total Score: 4.7
Score | Operator |
---|---|
1.7 | class |
1.5 | template |
1.3 | unpack |
1.3 | assignment |
CStruct#initialize
Total Score: 4.0
Score | Operator |
---|---|
2.6 | assignment |
1.4 | unpack |
1.3 | branch |
1.3 | nil? |
CStruct#inherited
Total Score: 3.8
Score | Operator |
---|---|
3.8 | instance_variable_set |
CStruct#char
Total Score: 1.9
Score | Operator |
---|---|
1.9 | add_type |
CStruct#quad
Total Score: 1.9
Score | Operator |
---|---|
1.9 | add_type |
CStruct#string
Total Score: 1.9
Score | Operator |
---|---|
1.9 | add_type |
CStruct#long
Total Score: 1.9
Score | Operator |
---|---|
1.9 | add_type |
CStruct#short
Total Score: 1.9
Score | Operator |
---|---|
1.9 | add_type |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/system/pm_suspend.rb
PMSuspend#initialize
Total Score: 27.4
Score | Operator |
---|---|
12.4 | assignment |
9.3 | branch |
2.7 | each |
2.1 | == |
1.9 | new |
1.8 | glob |
1.7 | << |
1.7 | parse |
1.7 | split |
1.7 | chop! |
1.7 | readlines |
1.6 | sort |
1.4 | open |
1.4 | reverse |
1.2 | super |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
/lib/achoo/vcs/subversion.rb
Subversion#log_for
Total Score: 22.2
Score | Operator |
---|---|
6.6 | assignment |
4.1 | css |
3.7 | text |
3.2 | << |
2.7 | branch |
1.9 | strip |
1.5 | [] |
1.4 | start_with? |
1.3 | each |
1.3 | xpath |
1.3 | XML |
1.3 | strftime |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
Subversion#repository?
Total Score: 1.3
Score | Operator |
---|---|
1.3 | exist? |
Subversion#initialize
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
/lib/achoo/term.rb
Term#ask
Total Score: 21.8
Score | Operator |
---|---|
7.3 | branch |
4.1 | assignment |
3.3 | puts |
3.0 | nil? |
1.7 | exit |
1.7 | bold |
1.6 | strip! |
1.5 | a_little_something |
1.5 | |
1.5 | gets |
1.5 | flush |
1.5 | tty? |
1.3 | loop |
Term#shadowbox
Total Score: 7.7
Score | Operator |
---|---|
5.4 | << |
1.7 | center |
1.3 | assignment |
0.5 | lit_fixnum |
Term#a_little_something
Total Score: 5.8
Score | Operator |
---|---|
4.0 | branch |
1.6 | puts |
1.3 | downcase |
1.3 | nil? |
Term#none
Total Score: 4.8
Score | Operator |
---|---|
2.4 | autoload |
1.2 | private |
1.2 | lit_fixnum |
Term#choose
Total Score: 4.7
Score | Operator |
---|---|
3.9 | assignment |
1.3 | print_ask_and_validate |
1.3 | new |
Term#password
Total Score: 1.8
Score | Operator |
---|---|
1.3 | assignment |
1.3 | ask |
Term#bold
Total Score: 1.3
Score | Operator |
---|---|
1.3 | effect |
Term#underline
Total Score: 1.3
Score | Operator |
---|---|
1.3 | effect |
Term#warn
Total Score: 1.3
Score | Operator |
---|---|
1.3 | effect |
Term#fatal
Total Score: 1.3
Score | Operator |
---|---|
1.3 | effect |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/achievo/login_form.rb
LoginForm#login
Total Score: 21.7
Score | Operator |
---|---|
6.0 | assignment |
3.8 | [] |
2.8 | forms |
2.6 | first |
2.4 | branch |
2.4 | puts |
1.6 | buttons |
1.4 | body |
1.3 | raise |
1.2 | get |
1.2 | match |
1.2 | empty? |
1.2 | submit |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/app.rb
App#scrape_urls
Total Score: 21.2
Score | Operator |
---|---|
9.6 | assignment |
3.9 | menu_link_to_url |
2.1 | current_page |
2.0 | name |
1.9 | frames |
1.8 | == |
1.7 | find |
1.7 | branch |
1.5 | href |
1.3 | [] |
1.3 | get |
1.3 | search |
App#menu_link_to_url
Total Score: 19.1
Score | Operator |
---|---|
4.0 | assignment |
2.6 | [] |
2.6 | branch |
1.9 | attribute |
1.8 | text |
1.7 | value |
1.6 | strip |
1.6 | new |
1.5 | match |
1.4 | == |
1.4 | raise |
1.3 | find |
1.3 | nil? |
0.4 | lit_fixnum |
App#dispatch
Total Score: 17.3
Score | Operator |
---|---|
12.5 | branch |
1.5 | show_flexi_time |
1.5 | exit |
1.5 | view_report |
1.5 | register_hours |
1.5 | show_registered_hours_for_day |
1.5 | lock_month |
1.5 | show_registered_hours_for_week |
1.5 | show_holiday_report |
App#command_loop
Total Score: 11.0
Score | Operator |
---|---|
4.3 | branch |
3.2 | assignment |
1.7 | << |
1.6 | trap |
1.6 | choose |
1.6 | dispatch |
1.6 | [] |
1.5 | puts |
App#start
Total Score: 10.8
Score | Operator |
---|---|
2.8 | assignment |
1.5 | command_loop |
1.5 | login |
1.5 | print_welcome |
1.5 | warm_up_ical_cache |
1.5 | scrape_urls |
1.4 | raise |
1.4 | handle_fatal_exception |
1.3 | branch |
App#none
Total Score: 8.4
Score | Operator |
---|---|
7.2 | include |
1.2 | private |
App#warm_up_ical_cache
Total Score: 7.9
Score | Operator |
---|---|
4.2 | branch |
3.1 | assignment |
1.6 | from_http_request |
1.6 | [] |
1.4 | each |
1.3 | new |
main#none
Total Score: 6.6
Score | Operator |
---|---|
6.6 | require |
App#load_cookies
Total Score: 5.9
Score | Operator |
---|---|
1.6 | cookie_jar |
1.4 | load |
1.3 | exists? |
1.3 | branch |
1.3 | assignment |
1.3 | [] |
App#initialize
Total Score: 5.0
Score | Operator |
---|---|
4.0 | assignment |
2.7 | new |
1.3 | branch |
App#save_cookies
Total Score: 4.3
Score | Operator |
---|---|
1.5 | cookie_jar |
1.5 | [] |
1.3 | save_as |
App#login
Total Score: 3.9
Score | Operator |
---|---|
1.3 | save_cookies |
1.3 | login |
1.3 | load_cookies |
App#print_welcome
Total Score: 2.8
Score | Operator |
---|---|
1.5 | shadowbox |
1.3 | puts |
/lib/achoo/system/utmp_record.rb
UTMPRecord#none
Total Score: 21.0
Score | Operator |
---|---|
10.8 | long |
6.0 | string |
2.4 | short |
1.8 | lit_fixnum |
UTMPRecord#to_s
Total Score: 9.0
Score | Operator |
---|---|
1.7 | time |
1.5 | record_type_symbol |
1.5 | username |
1.5 | device_name |
1.5 | strftime |
1.3 | sprintf |
UTMPRecord#time
Total Score: 7.3
Score | Operator |
---|---|
3.0 | seconds |
1.5 | milliseconds |
1.3 | at |
1.3 | assignment |
1.3 | branch |
1.3 | nil? |
UTMPRecord#halt_event?
Total Score: 6.1
Score | Operator |
---|---|
2.8 | == |
1.6 | device_name |
1.6 | record_type_symbol |
1.3 | branch |
UTMPRecord#record_type_symbol
Total Score: 2.8
Score | Operator |
---|---|
1.5 | record_type |
1.3 | [] |
UTMPRecord#boot_event?
Total Score: 2.8
Score | Operator |
---|---|
1.5 | record_type_symbol |
1.3 | == |
UTMPRecord#record_type_symbol=
Total Score: 1.8
Score | Operator |
---|---|
1.3 | assignment |
1.3 | find_index |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/rc_loader.rb
RCLoader#verify_rc_contents
Total Score: 20.7
Score | Operator |
---|---|
5.4 | branch |
4.4 | assignment |
3.2 | puts |
3.2 | to_sym |
2.8 | has_key? |
2.6 | each |
2.0 | + |
1.8 | fatal |
1.8 | warn |
1.6 | exit |
0.5 | lit_fixnum |
RCLoader#load_rc
Total Score: 11.1
Score | Operator |
---|---|
1.5 | class |
1.5 | load_file |
1.4 | abort |
1.3 | is_a? |
1.3 | file_permissions_secure? |
1.3 | assignment |
1.3 | const_set |
1.3 | branch |
1.3 | verify_rc_contents |
1.3 | [] |
RCLoader#file_permissions_secure?
Total Score: 10.1
Score | Operator |
---|---|
1.7 | fatal |
1.7 | stat |
1.5 | exit |
1.5 | puts |
1.5 | mode |
1.3 | branch |
1.3 | == |
0.8 | lit_fixnum |
RCLoader#create_empty_rc_if_not_exists
Total Score: 4.5
Score | Operator |
---|---|
1.3 | chmod |
1.3 | branch |
1.3 | touch |
1.3 | exist? |
0.4 | lit_fixnum |
main#none
Total Score: 3.3
Score | Operator |
---|---|
3.3 | require |
RCLoader#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
/lib/achoo/achievo/lock_month_form.rb
LockMonthForm#lock_month
Total Score: 19.4
Score | Operator |
---|---|
5.4 | assignment |
4.2 | branch |
3.3 | user_select |
3.2 | [] |
1.7 | text |
1.6 | select |
1.6 | options |
1.5 | match |
1.4 | each |
1.3 | get |
1.3 | nil? |
1.3 | form |
LockMonthForm#print_values
Total Score: 10.5
Score | Operator |
---|---|
3.3 | user_select |
2.7 | puts |
1.6 | value |
1.5 | period |
1.3 | branch |
1.3 | nil? |
LockMonthForm#submit
Total Score: 1.3
Score | Operator |
---|---|
1.3 | submit |
LockMonthForm#user_select
Total Score: 1.3
Score | Operator |
---|---|
1.3 | field_with |
LockMonthForm#initialize
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
LockMonthForm#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/term/menu.rb
Menu#print_ask_and_validate
Total Score: 19.0
Score | Operator |
---|---|
5.4 | branch |
2.4 | keys |
2.2 | sort |
2.0 | join |
1.8 | << |
1.6 | puts |
1.5 | [] |
1.5 | assignment |
1.5 | ask |
1.3 | print_menu |
1.3 | only_one_option? |
1.3 | empty? |
1.3 | loop |
Menu#initialize
Total Score: 17.7
Score | Operator |
---|---|
14.8 | assignment |
3.9 | branch |
2.6 | each |
1.7 | length |
1.5 | upto |
1.4 | to_s |
1.3 | nil? |
0.4 | lit_fixnum |
Menu#print_menu
Total Score: 10.7
Score | Operator |
---|---|
5.5 | assignment |
2.8 | printf |
2.6 | branch |
1.6 | + |
1.3 | menu_item_format |
1.3 | nil? |
1.3 | each_with_index |
0.5 | lit_fixnum |
Menu#menu_item_format
Total Score: 6.9
Score | Operator |
---|---|
1.9 | length |
1.7 | log10 |
1.5 | floor |
1.3 | assignment |
1.3 | + |
0.4 | lit_fixnum |
Menu#only_one_option?
Total Score: 5.0
Score | Operator |
---|---|
1.6 | length |
1.4 | == |
1.4 | nil? |
1.3 | branch |
0.4 | lit_fixnum |
Menu#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/extensions.rb
Array#merge!
Total Score: 17.3
Score | Operator |
---|---|
4.1 | branch |
3.4 | shift |
3.2 | first |
3.0 | empty? |
3.0 | << |
2.8 | concat |
1.4 | <= |
1.3 | assignment |
Integer#none
Total Score: 14.3
Score | Operator |
---|---|
7.2 | alias |
2.6 | method_defined? |
2.5 | branch |
1.6 | name |
1.4 | raise |
1.3 | assignment |
1.2 | each |
Array#none
Total Score: 7.4
Score | Operator |
---|---|
2.6 | method_defined? |
2.5 | branch |
1.6 | name |
1.4 | raise |
1.3 | assignment |
1.2 | each |
Integer#hour
Total Score: 1.7
Score | Operator |
---|---|
1.3 | * |
0.4 | lit_fixnum |
Integer#day
Total Score: 1.7
Score | Operator |
---|---|
1.3 | * |
0.4 | lit_fixnum |
Integer#minute
Total Score: 1.7
Score | Operator |
---|---|
1.3 | * |
0.4 | lit_fixnum |
/lib/achoo/ui/month_chooser.rb
MonthChooser#one_month_ago
Total Score: 17.1
Score | Operator |
---|---|
5.3 | assignment |
3.4 | month |
3.1 | - |
1.7 | lit_fixnum |
1.5 | % |
1.3 | sprintf |
1.3 | year |
1.3 | now |
1.3 | branch |
1.3 | > |
1.3 | + |
MonthChooser#choose
Total Score: 8.8
Score | Operator |
---|---|
3.1 | assignment |
2.8 | branch |
1.7 | one_month_ago |
1.6 | puts |
1.6 | handle_answer |
1.5 | ask |
1.3 | loop |
MonthChooser#handle_answer
Total Score: 7.1
Score | Operator |
---|---|
3.9 | branch |
1.6 | new |
1.4 | empty? |
1.4 | one_month_ago |
1.4 | raise |
1.3 | assignment |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
/lib/achoo/system/wtmp.rb
Wtmp#initialize
Total Score: 16.3
Score | Operator |
---|---|
6.6 | assignment |
3.9 | branch |
1.8 | glob |
1.7 | new |
1.6 | sort |
1.5 | << |
1.5 | read |
1.4 | reverse |
1.3 | open |
1.2 | each |
1.2 | bin_size |
1.2 | super |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/achievo/table.rb
Table#initialize
Total Score: 13.9
Score | Operator |
---|---|
6.0 | assignment |
2.8 | branch |
1.8 | content |
1.7 | fix_empty_cells |
1.6 | strip |
1.5 | << |
1.5 | css |
1.5 | collect |
1.3 | super |
1.3 | each |
Table#select_columns
Total Score: 7.4
Score | Operator |
---|---|
2.8 | transpose |
2.6 | assignment |
1.5 | block_pass |
1.3 | replace |
1.3 | select |
Table#fix_empty_cells
Total Score: 4.1
Score | Operator |
---|---|
2.7 | branch |
1.4 | assignment |
1.4 | == |
1.3 | collect |
Table#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/vcs.rb
VCS#print_logs_for
Total Score: 13.7
Score | Operator |
---|---|
7.4 | assignment |
4.3 | branch |
2.7 | each |
1.6 | log_for |
1.6 | print_log |
1.6 | factory |
1.6 | nil? |
1.6 | glob |
VCS#header
Total Score: 12.7
Score | Operator |
---|---|
2.8 | + |
2.6 | assignment |
1.9 | length |
1.7 | - |
1.5 | / |
1.5 | basename |
1.3 | upcase |
1.3 | * |
0.4 | lit_fixnum |
VCS#print_log
Total Score: 7.0
Score | Operator |
---|---|
2.6 | puts |
1.5 | chomp |
1.5 | header |
1.3 | branch |
1.3 | empty? |
VCS#factory
Total Score: 6.5
Score | Operator |
---|---|
2.7 | assignment |
2.6 | branch |
1.4 | repository? |
1.3 | new |
1.3 | find |
1.3 | nil? |
VCS#none
Total Score: 3.9
Score | Operator |
---|---|
2.4 | autoload |
1.2 | private |
0.3 | lit_fixnum |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/ui/optionally_ranged_date_chooser.rb
OptionallyRangedDateChooser#parse_date_range
Total Score: 13.0
Score | Operator |
---|---|
6.5 | assignment |
3.0 | strip |
2.6 | parse_date |
1.6 | new |
1.4 | raise |
1.3 | >= |
1.3 | split |
1.3 | branch |
OptionallyRangedDateChooser#handle_answer
Total Score: 3.0
Score | Operator |
---|---|
1.4 | parse_date_range |
1.3 | include? |
1.3 | branch |
OptionallyRangedDateChooser#date_format_help_string
Total Score: 2.8
Score | Operator |
---|---|
2.8 | << |
OptionallyRangedDateChooser#none
Total Score: 1.2
Score | Operator |
---|---|
1.2 | private |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/ui/exception_handling.rb
ExceptionHandling#get_exception_reason
Total Score: 11.7
Score | Operator |
---|---|
4.5 | + |
2.1 | message |
1.9 | gsub |
1.7 | backtrace |
1.5 | join |
ExceptionHandling#handle_fatal_exception
Total Score: 6.2
Score | Operator |
---|---|
1.7 | get_exception_reason |
1.7 | fatal |
1.5 | + |
1.3 | abort |
ExceptionHandling#handle_exception
Total Score: 4.3
Score | Operator |
---|---|
1.5 | get_exception_reason |
1.5 | warn |
1.3 | + |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
/lib/achoo/ui.rb
UI#none
Total Score: 9.6
Score | Operator |
---|---|
9.6 | autoload |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/achievo/hour_registration_form_ranged.rb
HourRegistrationFormRanged#initialize
Total Score: 8.1
Score | Operator |
---|---|
2.6 | assignment |
1.9 | link_with |
1.7 | href |
1.5 | atk_submit_to_url |
1.3 | form |
1.3 | get |
HourRegistrationFormRanged#date_to_s
Total Score: 6.5
Score | Operator |
---|---|
1.7 | date |
1.6 | assignment |
1.6 | strftime |
1.5 | branch |
1.5 | map |
1.3 | join |
HourRegistrationFormRanged#none
Total Score: 5.0
Score | Operator |
---|---|
2.4 | include |
1.4 | DateField |
1.2 | private |
HourRegistrationFormRanged#date=
Total Score: 4.5
Score | Operator |
---|---|
2.6 | [] |
1.3 | assignment |
1.3 | super |
0.4 | lit_fixnum |
HourRegistrationFormRanged#date
Total Score: 1.3
Score | Operator |
---|---|
1.3 | to_date |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/achievo.rb
Achievo#none
Total Score: 7.2
Score | Operator |
---|---|
7.2 | autoload |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
/lib/achoo/system.rb
System#none
Total Score: 6.0
Score | Operator |
---|---|
6.0 | autoload |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/vcs/git.rb
Git#log_for
Total Score: 6.0
Score | Operator |
---|---|
2.6 | assignment |
2.6 | strftime |
1.5 | next |
1.3 | [] |
Git#initialize
Total Score: 1.3
Score | Operator |
---|---|
1.3 | assignment |
Git#repository?
Total Score: 1.3
Score | Operator |
---|---|
1.3 | exists? |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/ui/common.rb
Common#confirm
Total Score: 5.3
Score | Operator |
---|---|
2.6 | == |
1.2 | branch |
1.2 | downcase! |
1.2 | ask |
1.2 | assignment |
main#none
Total Score: 2.2
Score | Operator |
---|---|
2.2 | require |
/lib/achoo/system/log_entry.rb
LogEntry#none
Total Score: 4.8
Score | Operator |
---|---|
2.4 | attr |
2.4 | include |
LogEntry#<=>
Total Score: 4.3
Score | Operator |
---|---|
3.0 | time |
1.3 | <=> |
LogEntry#initialize
Total Score: 2.6
Score | Operator |
---|---|
2.6 | assignment |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/ui/date_choosers.rb
DateChoosers#optionally_ranged_date_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | new |
1.3 | choose |
DateChoosers#month_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | new |
1.3 | choose |
DateChoosers#date_chooser
Total Score: 2.8
Score | Operator |
---|---|
1.5 | new |
1.3 | choose |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/temporal/open_timespan.rb
OpenTimespan#to_s
Total Score: 2.7
Score | Operator |
---|---|
2.4 | sub! |
1.2 | assignment |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
/lib/achoo/temporal.rb
Temporal#none
Total Score: 2.4
Score | Operator |
---|---|
2.4 | autoload |
main#none
Total Score: 1.1
Score | Operator |
---|---|
1.1 | require |
Generated on Tue May 04 19:54:00 +0000 2010