def get_displayable_exp_summary_dicts(exploration_summaries):
 exploration_ids = [exploration_summary.id for exploration_summary in exploration_summaries]
 view_counts = stats_jobs_continuous.StatisticsAggregator.get_views_multi(exploration_ids)
 displayable_exp_summaries = []
 for (ind, exploration_summary) in enumerate(exploration_summaries):
  if (not exploration_summary):
   continue
  summary_dict = {'id': exploration_summary.id, 'title': exploration_summary.title, 'activity_type': feconf.ACTIVITY_TYPE_EXPLORATION, 'category': exploration_summary.category, 'created_on_msec': utils.get_time_in_millisecs(exploration_summary.exploration_model_created_on), 'objective': exploration_summary.objective, 'language_code': exploration_summary.language_code, 'last_updated_msec': utils.get_time_in_millisecs(exploration_summary.exploration_model_last_updated), 'human_readable_contributors_summary': get_human_readable_contributors_summary(exploration_summary.contributors_summary), 'status': exploration_summary.status, 'ratings': exploration_summary.ratings, 'community_owned': exploration_summary.community_owned, 'tags': exploration_summary.tags, 'thumbnail_icon_url': utils.get_thumbnail_icon_url_for_category(exploration_summary.category), 'thumbnail_bg_color': utils.get_hex_color_for_category(exploration_summary.category), 'num_views': view_counts[ind]}
  displayable_exp_summaries.append(summary_dict)
 return displayable_exp_summaries

def get_displayable_exp_summary_dicts ( exploration_summaries ) : exploration_ids = [ exploration_summary . id for exploration_summary in exploration_summaries ] view_counts = stats_jobs_continuous . StatisticsAggregator . get_views_multi ( exploration_ids ) displayable_exp_summaries = [ ] for ( ind , exploration_summary ) in enumerate ( exploration_summaries ) : if ( not exploration_summary ) : continue summary_dict = { 'id' : exploration_summary . id , 'title' : exploration_summary . title , 'activity_type' : feconf . ACTIVITY_TYPE_EXPLORATION , 'category' : exploration_summary . category , 'created_on_msec' : utils . get_time_in_millisecs ( exploration_summary . exploration_model_created_on ) , 'objective' : exploration_summary . objective , 'language_code' : exploration_summary . language_code , 'last_updated_msec' : utils . get_time_in_millisecs ( exploration_summary . exploration_model_last_updated ) , 'human_readable_contributors_summary' : get_human_readable_contributors_summary ( exploration_summary . contributors_summary ) , 'status' : exploration_summary . status , 'ratings' : exploration_summary . ratings , 'community_owned' : exploration_summary . community_owned , 'tags' : exploration_summary . tags , 'thumbnail_icon_url' : utils . get_thumbnail_icon_url_for_category ( exploration_summary . category ) , 'thumbnail_bg_color' : utils . get_hex_color_for_category ( exploration_summary . category ) , 'num_views' : view_counts [ ind ] } displayable_exp_summaries . append ( summary_dict ) return displayable_exp_summaries
given a list of exploration summary domain objects .