nodes: 0, module; 1, function_definition; 2, function_name:merge; 3, parameters; 4, block; 5, identifier:self; 6, identifier:elements; 7, expression_statement; 8, import_from_statement; 9, import_from_statement; 10, comment:# The list2tuple conversion is necessary because mutable objects (e.g. lists) are not hashable; 11, expression_statement; 12, return_statement; 13, string; 14, dotted_name; 15, dotted_name; 16, dotted_name; 17, dotted_name; 18, dotted_name; 19, assignment; 20, identifier:merged; 21, string_content:Merges all scraping results to a list sorted by frequency of occurrence.; 22, identifier:collections; 23, identifier:Counter; 24, identifier:lltk; 25, identifier:utils; 26, identifier:list2tuple; 27, identifier:tuple2list; 28, identifier:merged; 29, call; 30, identifier:tuple2list; 31, argument_list; 32, list_comprehension; 33, identifier:value; 34, for_in_clause; 35, pattern_list; 36, call; 37, identifier:value; 38, identifier:count; 39, attribute; 40, argument_list; 41, call; 42, identifier:most_common; 43, identifier:Counter; 44, argument_list; 45, call; 46, identifier:list2tuple; 47, argument_list; 48, call; 49, identifier:list; 50, argument_list; 51, identifier:elements
code: def merge(self, elements):
  		''' Merges all scraping results to a list sorted by frequency of occurrence. '''
  
  		from collections import Counter
  		from lltk.utils import list2tuple, tuple2list
  		# The list2tuple conversion is necessary because mutable objects (e.g. lists) are not hashable
  		merged = tuple2list([value for value, count in Counter(list2tuple(list(elements))).most_common()])
  		return merged