def index(request, template_name="<STR_LIT>", min_size=<NUM_LIT:0>,limit=<NUM_LIT:10>):
query = """<STR_LIT>"""<EOL>cursor = connection.cursor()<EOL>cursor.execute(query, [min_size, limit])<EOL>results = []<EOL>for row in cursor.fetchall():<EOL><INDENT>try:<EOL><INDENT>tag=Tag.objects.get(id=row[<NUM_LIT:0>])<EOL><DEDENT>except ObjectDoesNotExist:<EOL><INDENT>continue<EOL><DEDENT>if '<STR_LIT:U+0020>' in tag.name:<EOL><INDENT>continue<EOL><DEDENT>record = dict(<EOL>tag=tag,<EOL>count=row[<NUM_LIT:1>]<EOL>)<EOL>results.append(record)    <EOL><DEDENT>dictionary = {<EOL>'<STR_LIT>':results<EOL>}<EOL>return render_to_response(template_name, dictionary,<EOL>context_instance=RequestContext(request))<EOL>
min_size: Smallest size count accepted for a tag
order_by: asc or desc by count
limit: maximum number of tags to display 

TODO: convert the hand-written query to an ORM call. Right now I know
        this works with Sqlite3 and PostGreSQL.