

def get_template_names(self):
    templates = []
    domain_folder = self.get_template_folder()
    if (not self.long_slug):
        templates.append('{0}/none.json'.format(domain_folder))
        return templates
    list_name = 'list'
    if self.template_name_suffix:
        list_name = '{0}{1}'.format(list_name, self.template_name_suffix)
    if self.channel:
        if (self.channel.layout != 'default'):
            list_name = self.channel.layout
        if (self.channel.group and self.channel.parent):
            templates.append('{0}/{1}/{2}.json'.format(domain_folder, self.channel.parent.long_slug, self))
            if (self.request.GET.get('page') and (self.__class__.__name__ not in settings.OPPS_PAGINATE_NOT_APP)):
                templates.append('{0}/{1}/{2}_paginated.json'.format(domain_folder, self.channel.parent.long_slug, list_name))
        if (self.request.GET.get('page') and (self.__class__.__name__ not in settings.OPPS_PAGINATE_NOT_APP)):
            templates.append('{0}/{1}/{2}_paginated.json'.format(domain_folder, self.channel.long_slug, list_name))
        templates.append('{0}/{1}/{2}.json'.format(domain_folder, self.channel.long_slug, list_name))
        for t in self.channel.get_ancestors()[::(- 1)]:
            templates.append('{0}/{1}/{2}.json'.format(domain_folder, t.long_slug, list_name))
            if (self.request.GET.get('page') and (self.__class__.__name__ not in settings.OPPS_PAGINATE_NOT_APP)):
                templates.append('{0}/{1}/{2}_paginated.json'.format(domain_folder, t.long_slug, list_name))
    if (self.request.GET.get('page') and (self.__class__.__name__ not in settings.OPPS_PAGINATE_NOT_APP)):
        templates.append('{0}/{1}_paginated.json'.format(domain_folder, list_name))
    templates.append('{0}/{1}.json'.format(domain_folder, list_name))
    return templates

dataset/ETHPy150Open opps/opps/opps/contrib/notifications/views.py LongPullingServer.get_template_names/VarMisuse@138/186 `list_name`->`self`