def most_commented(self, num=5):
        qn = connection.ops.quote_name
        
        comment_opts = comments.get_model()._meta
        ctype = ContentType.objects.get_for_model(self.model)
        
        subquery = """SELECT COUNT(*)
        FROM %(comment_table)s
        WHERE %(comment_table)s.%(content_type_id)s = %%s
        AND %(comment_table)s.%(object_pk)s = %(self_table)s.%(pk)s
        AND %(comment_table)s.%(is_public)s = %%s
        """ % { 'comment_table': qn(comment_opts.db_table),
                'content_type_id': qn('content_type_id'),
                'object_pk': qn('object_pk'),
                'self_table': qn(self.model._meta.db_table),
                'pk': qn(self.model._meta.pk.name),
                'is_public': qn('is_public'),
                }
        
        return self.extra(select=SortedDict({ 'comment_count': subquery }), select_params=(ctype.id, True,), order_by=['-comment_count'])[:num]
Try to start a user interface for the libvlc instance.
dataset/ETHPy150Open jezdez-archive/django-comment-utils/comment_utils/managers.py/CommentedObjectManager.most_commented--crossover with--dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/Instance.add_intf