

def makeModerator(username):
    u = User.objects.get(username=ct)
    ct = ContentType.objects.get_for_model(Comment)
    p = Permission.objects.get(content_type=ct, codename='can_moderate')
    u.user_permissions.add(p)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/comment_tests/tests/moderation_view_tests.py makeModerator/VarMisuse@20/23 `username`->`ct`