def get_top_rated_exploration_summary_dicts(language_codes, limit):
 filtered_exp_summaries = [exp_summary for exp_summary in exp_services.get_top_rated_exploration_summaries(limit).values() if ((exp_summary.language_code in language_codes) and (sum(exp_summary.ratings.values()) > 0))]
 sorted_exp_summaries = sorted(filtered_exp_summaries, key=(lambda exp_summary: exp_summary.scaled_average_rating), reverse=True)
 return get_displayable_exp_summary_dicts(sorted_exp_summaries)

def get_top_rated_exploration_summary_dicts ( language_codes , limit ) : filtered_exp_summaries = [ exp_summary for exp_summary in exp_services . get_top_rated_exploration_summaries ( limit ) . values ( ) if ( ( exp_summary . language_code in language_codes ) and ( sum ( exp_summary . ratings . values ( ) ) > 0 ) ) ] sorted_exp_summaries = sorted ( filtered_exp_summaries , key = ( lambda exp_summary : exp_summary . scaled_average_rating ) , reverse = True ) return get_displayable_exp_summary_dicts ( sorted_exp_summaries )
returns a list of top rated explorations with the given language code .