

def tag_index(request, template_name='tagging_ext/index.html', *args, **kw):
    query = '\n        SELECT tag.name as name, COUNT(tag_item.tag_id) as counter, tag_item.tag_id as tag_id\n        FROM tagging_taggeditem as tag_item\n        INNER JOIN tagging_tag as tag ON (tag.id = tag_item.tag_id)\n        GROUP BY tag.name, tag_id\n        ORDER BY tag.name\n    '
    cursor = connection.cursor()
    cursor.execute(query)
    tags = calculate_cloud([TagInTheCloud(*row) for row in cursor], steps=5, distribution=LOGARITHMIC)
    return render_to_response(kw, {
        'tags': tags,
    }, context_instance=RequestContext(request))

dataset/ETHPy150Open amarandon/smeuhsocial/apps/smeuhoverride/views.py tag_index/VarMisuse@67/210 `template_name`->`kw`