id: 1 unit: handle_threads_query file: lib/helpers.rb start line: 130 end line: 238 size: 85 LOC McCabe index: 14 number of parameters: 0 id: 2 unit: init_without_subscriptions file: spec/spec_helper.rb start line: 75 end line: 157 size: 70 LOC McCabe index: 3 number of parameters: 0 id: 3 unit: check_thread_result file: spec/spec_helper.rb start line: 160 end line: 228 size: 64 LOC McCabe index: 6 number of parameters: 4 id: 4 unit: to_hash file: models/user.rb start line: 37 end line: 111 size: 58 LOC McCabe index: 4 number of parameters: 1 id: 5 unit: notifications_by_date_range_and_user_ids file: lib/helpers.rb start line: 290 end line: 361 size: 48 LOC McCabe index: 7 number of parameters: 3 id: 6 unit: to_hash file: presenters/thread.rb start line: 25 end line: 70 size: 45 LOC McCabe index: 11 number of parameters: 4 id: 7 unit: generate_comments_for file: lib/tasks/db.rake start line: 29 end line: 82 size: 38 LOC McCabe index: 2 number of parameters: 4 id: 8 unit: self.process_at_notifications file: models/observers/at_user_observer.rb start line: 9 end line: 55 size: 38 LOC McCabe index: 5 number of parameters: 1 id: 9 unit: do_reindex file: lib/tasks/search.rake start line: 46 end line: 105 size: 30 LOC McCabe index: 6 number of parameters: 2 id: 10 unit: to_hash file: models/comment.rb start line: 78 end line: 108 size: 29 LOC McCabe index: 3 number of parameters: 1 id: 11 unit: self.generate_activity_and_notifications file: models/observers/post_reply_observer.rb start line: 7 end line: 35 size: 26 LOC McCabe index: 4 number of parameters: 1 id: 12 unit: merge_response_content file: presenters/thread.rb start line: 95 end line: 121 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 13 unit: self.summary what file: models/content.rb start line: 71 end line: 106 size: 25 LOC McCabe index: 3 number of parameters: 0 id: 14 unit: test_paged_order file: spec/api/comment_thread_spec.rb start line: 359 end line: 388 size: 25 LOC McCabe index: 2 number of parameters: 4 id: 15 unit: get_thread_notification file: spec/api/notifications_spec.rb start line: 31 end line: 68 size: 25 LOC McCabe index: 1 number of parameters: 2 id: 16 unit: self.generate_notifications file: models/observers/post_topic_observer.rb start line: 7 end line: 33 size: 24 LOC McCabe index: 4 number of parameters: 1 id: 17 unit: check_question_response_paging file: spec/spec_helper.rb start line: 286 end line: 313 size: 24 LOC McCabe index: 2 number of parameters: 6 id: 18 unit: self.get_read_states file: presenters/thread_utils.rb start line: 18 end line: 42 size: 23 LOC McCabe index: 4 number of parameters: 3 id: 19 unit: move_alias_to file: lib/tasks/search.rake start line: 21 end line: 45 size: 19 LOC McCabe index: 4 number of parameters: 2 id: 20 unit: get_sort_criteria file: lib/helpers.rb start line: 241 end line: 262 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 21 unit: setup_10_threads file: spec/spec_helper.rb start line: 378 end line: 397 size: 18 LOC McCabe index: 1 number of parameters: 0 id: 22 unit: import_from_cursor file: lib/tasks/search.rake start line: 3 end line: 20 size: 17 LOC McCabe index: 2 number of parameters: 3 id: 23 unit: test_update_endorsed file: spec/api/comment_spec.rb start line: 85 end line: 102 size: 17 LOC McCabe index: 1 number of parameters: 2 id: 24 unit: test_es_check file: spec/app_spec.rb start line: 89 end line: 109 size: 17 LOC McCabe index: 2 number of parameters: 2 id: 25 unit: check_discussion_response_paging file: spec/spec_helper.rb start line: 266 end line: 285 size: 17 LOC McCabe index: 2 number of parameters: 6 id: 26 unit: test_db_check file: spec/app_spec.rb start line: 45 end line: 61 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 27 unit: check_comment file: spec/spec_helper.rb start line: 248 end line: 264 size: 16 LOC McCabe index: 2 number of parameters: 4 id: 28 unit: create_thread file: spec/api/notifications_spec.rb start line: 10 end line: 30 size: 15 LOC McCabe index: 2 number of parameters: 2 id: 29 unit: make_comment file: spec/spec_helper.rb start line: 328 end line: 343 size: 15 LOC McCabe index: 2 number of parameters: 3 id: 30 unit: to_hash file: models/comment_thread.rb start line: 121 end line: 135 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 31 unit: make_standalone_thread_with_comments file: spec/spec_helper.rb start line: 359 end line: 375 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 32 unit: get_group_id_criteria file: lib/helpers.rb start line: 276 end line: 289 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 33 unit: filter_blocked_content body file: lib/helpers.rb start line: 362 end line: 376 size: 13 LOC McCabe index: 3 number of parameters: 0 id: 34 unit: get_paged_merged_responses file: presenters/thread.rb start line: 78 end line: 91 size: 13 LOC McCabe index: 2 number of parameters: 5 id: 35 unit: source file: lib/helpers.rb start line: 30 end line: 42 size: 12 LOC McCabe index: 5 number of parameters: 0 id: 36 unit: un_flag_as_abuse file: lib/helpers.rb start line: 58 end line: 71 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 37 unit: get_group_ids_from_params file: lib/helpers.rb start line: 263 end line: 275 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 38 unit: self.create_index file: lib/task_helpers.rb start line: 2 end line: 17 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 39 unit: self.get_at_position_list file: models/observers/at_user_observer.rb start line: 68 end line: 80 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: test_unicode_data file: spec/api/search_spec.rb start line: 315 end line: 331 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: self.prolific_metric what, count file: models/content.rb start line: 48 end line: 70 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 42 unit: self.get_endorsed file: presenters/thread_utils.rb start line: 4 end line: 17 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 43 unit: initialize file: presenters/thread_list.rb start line: 5 end line: 15 size: 10 LOC McCabe index: 1 number of parameters: 3 id: 44 unit: test_unicode_data file: spec/api/commentable_spec.rb start line: 105 end line: 116 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 45 unit: check_pagination file: spec/api/search_spec.rb start line: 193 end line: 203 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 46 unit: make_standalone_thread file: spec/spec_helper.rb start line: 344 end line: 354 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 47 unit: self.flatten_subtree file: models/comment.rb start line: 68 end line: 77 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 48 unit: test_unicode_data file: spec/api/comment_thread_spec.rb start line: 530 end line: 541 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: test_unicode_data file: spec/api/user_spec.rb start line: 374 end line: 383 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 50 unit: block_post_body file: spec/spec_helper.rb start line: 62 end line: 74 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 51 unit: verify_or_fix_cached_comment_count file: lib/helpers.rb start line: 20 end line: 29 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 52 unit: clear_endorsements file: models/comment_thread.rb start line: 147 end line: 158 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 53 unit: retire_comment file: models/user.rb start line: 150 end line: 159 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 54 unit: test_unicode_data file: spec/api/comment_thread_spec.rb start line: 655 end line: 663 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: check_sort file: spec/api/search_spec.rb start line: 156 end line: 164 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 56 unit: create_thread_and_comment_in_specific_group file: spec/api/user_spec.rb start line: 86 end line: 96 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 57 unit: verify_counts file: spec/api/user_spec.rb start line: 97 end line: 105 size: 8 LOC McCabe index: 2 number of parameters: 4 id: 58 unit: check_thread_response_paging file: spec/spec_helper.rb start line: 239 end line: 247 size: 8 LOC McCabe index: 3 number of parameters: 6 id: 59 unit: make_thread file: spec/spec_helper.rb start line: 319 end line: 327 size: 8 LOC McCabe index: 1 number of parameters: 6 id: 60 unit: log_in file: edx_specs/helpers.rb start line: 0 end line: 7 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 61 unit: vote_for file: lib/helpers.rb start line: 43 end line: 50 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 62 unit: undo_vote_for file: lib/helpers.rb start line: 72 end line: 79 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 63 unit: activity_since file: models/comment_thread.rb start line: 77 end line: 84 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: self.put_search_index_mapping file: models/content.rb start line: 20 end line: 27 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 65 unit: author_with_anonymity file: models/content.rb start line: 31 end line: 38 size: 7 LOC McCabe index: 4 number of parameters: 2 id: 66 unit: self.flagged file: models/content.rb start line: 39 end line: 47 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 67 unit: self.get_marked_text file: models/observers/at_user_observer.rb start line: 60 end line: 67 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 68 unit: self.get_valid_at_position_list file: models/observers/at_user_observer.rb start line: 81 end line: 88 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 69 unit: subscribe file: models/user.rb start line: 124 end line: 131 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 70 unit: self.factory file: presenters/thread.rb start line: 5 end line: 14 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: initialize file: presenters/thread.rb start line: 15 end line: 24 size: 7 LOC McCabe index: 1 number of parameters: 5 id: 72 unit: test_unicode_data file: spec/api/comment_spec.rb start line: 145 end line: 152 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 73 unit: test_unicode_data file: spec/api/comment_thread_spec.rb start line: 417 end line: 424 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: assert_response_contains file: spec/api/search_spec.rb start line: 62 end line: 69 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: check_correction file: spec/api/search_spec.rb start line: 220 end line: 227 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 76 unit: make_comment file: spec/presenters/thread_spec.rb start line: 161 end line: 168 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: create_comment_thread_and_comments file: spec/spec_helper.rb start line: 400 end line: 411 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 78 unit: create_es_index file: spec/support/elasticsearch.rb start line: 6 end line: 13 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 79 unit: flag_as_abuse file: lib/helpers.rb start line: 51 end line: 57 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 80 unit: pin file: lib/helpers.rb start line: 80 end line: 86 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 81 unit: unpin file: lib/helpers.rb start line: 87 end line: 93 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 82 unit: commentable_id file: models/comment.rb start line: 119 end line: 125 size: 6 LOC McCabe index: 3 number of parameters: 0 id: 83 unit: group_id file: models/comment.rb start line: 126 end line: 132 size: 6 LOC McCabe index: 3 number of parameters: 0 id: 84 unit: context file: models/comment.rb start line: 133 end line: 139 size: 6 LOC McCabe index: 3 number of parameters: 0 id: 85 unit: test_unicode_data file: spec/api/comment_spec.rb start line: 74 end line: 80 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: test_unicode_data file: spec/api/comment_spec.rb start line: 194 end line: 200 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 87 unit: move_to_end file: spec/api/comment_thread_spec.rb start line: 236 end line: 242 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 88 unit: move_to_front file: spec/api/comment_thread_spec.rb start line: 243 end line: 249 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 89 unit: test_unicode_data file: spec/api/comment_thread_spec.rb start line: 720 end line: 726 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 90 unit: test_unicode_data file: spec/api/commentable_spec.rb start line: 196 end line: 202 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: test_unicode_data file: spec/models/comment_thread_spec.rb start line: 106 end line: 112 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 92 unit: test_thread_marked_as_read file: spec/spec_helper.rb start line: 412 end line: 419 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 93 unit: refresh_es_index file: spec/support/elasticsearch.rb start line: 14 end line: 20 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 94 unit: batch_opts file: lib/tasks/search.rake start line: 119 end line: 124 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: set_sk file: models/comment.rb start line: 161 end line: 167 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 96 unit: to_hash file: models/notification.rb start line: 17 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: to_hash file: models/subscription.rb start line: 15 end line: 20 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 98 unit: unsubscribe file: models/user.rb start line: 132 end line: 137 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 99 unit: mark_as_read file: models/user.rb start line: 166 end line: 171 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: thread_result file: spec/api/comment_thread_spec.rb start line: 12 end line: 17 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: thread_result_order file: spec/api/comment_thread_spec.rb start line: 230 end line: 235 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: thread_result_page file: spec/api/comment_thread_spec.rb start line: 318 end line: 323 size: 5 LOC McCabe index: 1 number of parameters: 6 id: 103 unit: thread_result file: spec/api/comment_thread_spec.rb start line: 579 end line: 584 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 104 unit: thread_result file: spec/api/notifications_and_subscriptions_spec.rb start line: 15 end line: 20 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: assert_empty_response file: spec/api/search_spec.rb start line: 17 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 106 unit: parse_response_and_verify_counts file: spec/api/user_spec.rb start line: 111 end line: 116 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 107 unit: thread_result file: spec/api/user_spec.rb start line: 193 end line: 198 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 108 unit: thread_result_page file: spec/api/user_spec.rb start line: 309 end line: 314 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 109 unit: test_unicode_data file: spec/models/comment_spec.rb start line: 16 end line: 21 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: delete_es_index file: spec/support/elasticsearch.rb start line: 0 end line: 5 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 111 unit: get_es_status file: app.rb start line: 146 end line: 150 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 112 unit: user file: lib/helpers.rb start line: 7 end line: 11 size: 4 LOC McCabe index: 4 number of parameters: 0 id: 113 unit: self.get_index_shard_count file: lib/task_helpers.rb start line: 26 end line: 30 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 114 unit: get_cached_child_count file: models/comment.rb start line: 109 end line: 113 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 115 unit: update_cached_child_count file: models/comment.rb start line: 114 end line: 118 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 116 unit: self.by_date_range_and_thread_ids from_when, to_when, thread_ids file: models/comment.rb start line: 148 end line: 154 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 117 unit: initialize file: models/commentable.rb start line: 7 end line: 11 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: unsubscribe_all file: models/user.rb start line: 138 end line: 143 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 119 unit: all_comments file: models/user.rb start line: 144 end line: 149 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 120 unit: retire_all_comments file: models/user.rb start line: 160 end line: 165 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 121 unit: verify_counts_multiple_groups file: spec/api/user_spec.rb start line: 106 end line: 110 size: 4 LOC McCabe index: 1 number of parameters: 4 id: 122 unit: t file: app.rb start line: 45 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: as_json file: app.rb start line: 90 end line: 93 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: as_json file: app.rb start line: 102 end line: 105 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: get_db_is_master file: app.rb start line: 142 end line: 145 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: goto_course file: edx_specs/helpers.rb start line: 8 end line: 11 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: fill_in_wmd_body file: edx_specs/helpers.rb start line: 12 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 128 unit: commentable file: lib/helpers.rb start line: 3 end line: 6 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 129 unit: thread file: lib/helpers.rb start line: 12 end line: 15 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 130 unit: comment file: lib/helpers.rb start line: 16 end line: 19 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 131 unit: value_to_boolean file: lib/helpers.rb start line: 94 end line: 97 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 132 unit: bool_recursive file: lib/helpers.rb start line: 98 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 133 unit: bool_with_responses file: lib/helpers.rb start line: 102 end line: 105 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 134 unit: bool_mark_as_read file: lib/helpers.rb start line: 106 end line: 109 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 135 unit: bool_complete file: lib/helpers.rb start line: 110 end line: 113 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 136 unit: bool_auto_subscribe file: lib/helpers.rb start line: 114 end line: 117 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 137 unit: bool_anonymous file: lib/helpers.rb start line: 118 end line: 121 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 138 unit: bool_anonymous_to_peers file: lib/helpers.rb start line: 122 end line: 125 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 139 unit: self.delete_index file: lib/task_helpers.rb start line: 18 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 140 unit: self.get_index file: lib/task_helpers.rb start line: 22 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 141 unit: create_test_user file: lib/tasks/db.rake start line: 5 end line: 8 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 142 unit: to_hash file: lib/utils.rb start line: 1 end line: 4 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 143 unit: self.hash_tree file: models/comment.rb start line: 58 end line: 61 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 144 unit: course_context? file: models/comment.rb start line: 140 end line: 143 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 145 unit: standalone_context? file: models/comment.rb start line: 144 end line: 147 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 146 unit: set_thread_last_activity_at file: models/comment.rb start line: 157 end line: 160 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 147 unit: activity_today file: models/comment_thread.rb start line: 85 end line: 88 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 148 unit: activity_this_week file: models/comment_thread.rb start line: 89 end line: 92 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 149 unit: activity_this_month file: models/comment_thread.rb start line: 93 end line: 96 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 150 unit: activity_overall file: models/comment_thread.rb start line: 97 end line: 100 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 151 unit: root_comments file: models/comment_thread.rb start line: 101 end line: 104 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 152 unit: commentable file: models/comment_thread.rb start line: 105 end line: 108 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 153 unit: subscriptions file: models/comment_thread.rb start line: 109 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 154 unit: subscribers file: models/comment_thread.rb start line: 113 end line: 116 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 155 unit: endorsed? file: models/comment_thread.rb start line: 117 end line: 120 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 156 unit: comment_thread_id file: models/comment_thread.rb start line: 136 end line: 140 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 157 unit: set_last_activity_at file: models/comment_thread.rb start line: 143 end line: 146 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 158 unit: destroy_subscriptions file: models/comment_thread.rb start line: 159 end line: 162 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 159 unit: self.where file: models/commentable.rb start line: 12 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 160 unit: comment_threads file: models/commentable.rb start line: 16 end line: 19 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 161 unit: subscriptions file: models/commentable.rb start line: 20 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 162 unit: subscribers file: models/commentable.rb start line: 24 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 163 unit: set_username file: models/content.rb start line: 109 end line: 113 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 164 unit: after_create file: models/observers/at_user_observer.rb start line: 5 end line: 8 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 165 unit: after_create file: models/observers/post_reply_observer.rb start line: 3 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 166 unit: after_create file: models/observers/post_topic_observer.rb start line: 3 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 167 unit: subscriber file: models/subscription.rb start line: 21 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 168 unit: source file: models/subscription.rb start line: 25 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 169 unit: subscriptions_as_source file: models/user.rb start line: 25 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 170 unit: subscribed_thread_ids file: models/user.rb start line: 29 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 171 unit: subscribed_threads file: models/user.rb start line: 33 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 172 unit: upvoted_ids file: models/user.rb start line: 112 end line: 115 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 173 unit: downvoted_ids file: models/user.rb start line: 116 end line: 119 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 174 unit: followers file: models/user.rb start line: 120 end line: 123 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 175 unit: to_hash file: models/user.rb start line: 191 end line: 194 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 176 unit: to_hash file: presenters/thread_list.rb start line: 16 end line: 19 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 177 unit: get_result_ids file: spec/api/search_spec.rb start line: 12 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 178 unit: app file: spec/spec_helper.rb start line: 30 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 179 unit: set_api_key_header file: spec/spec_helper.rb start line: 37 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 180 unit: parse file: spec/spec_helper.rb start line: 53 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 181 unit: create_test_user file: spec/spec_helper.rb start line: 57 end line: 60 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 182 unit: check_thread_result_json file: spec/spec_helper.rb start line: 229 end line: 232 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 183 unit: check_unread_thread_result_json file: spec/spec_helper.rb start line: 233 end line: 238 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 184 unit: check_thread_response_paging_json file: spec/spec_helper.rb start line: 314 end line: 317 size: 3 LOC McCabe index: 1 number of parameters: 5 id: 185 unit: handle_paged_threads_query file: lib/helpers.rb start line: 126 end line: 129 size: 2 LOC McCabe index: 1 number of parameters: 1