<commit_before>from decimal import Decimal
from sweetter.contrib.followers.models import Follower
from django.template.loader import render_to_string

class FollowingList:      
    def __init__(self):
        pass
        
    def sidebar(self, context):
        if context['user'] and not context['user'].is_authenticated():
            return ''
        else:
            try:
                f_list = Follower.objects.filter(follower = context['user'])
            except:
                return ''
            return render_to_string('following.html', { 'following': f_list }, context_instance=context)
                
    def tools(self, context, post):
        return ''
        
    def parse(self, value):
        return ''

class FollowerList:      
    def __init__(self):
        pass
        
    def sidebar(self, context):
        if context['user'] and not context['user'].is_authenticated():
            return ''
        else:
            try:
                f_list = Follower.objects.filter(user = context['user'])
            except:
                return ''
            return render_to_string('follower.html', { 'followers': f_list }, context_instance=context)
                
    def tools(self, context, post):
        return ''
        
    def parse(self, value):
        return ''      <commit_msg>Fixed problem showing posts.<commit_after>from decimal import Decimal
from sweetter.contrib.followers.models import Follower
from django.template.loader import render_to_string

class FollowingList:      
    def __init__(self):
        pass
        
    def sidebar(self, context):
        if context['user'] and not context['user'].is_authenticated():
            return ''
        else:
            try:
                f_list = Follower.objects.filter(follower = context['user'])
            except:
                return ''
            return render_to_string('following.html', { 'following': f_list }, context_instance=context)
                
    def tools(self, context, post):
        return ''
        
    def parse(self, value):
        return value

class FollowerList:      
    def __init__(self):
        pass
        
    def sidebar(self, context):
        if context['user'] and not context['user'].is_authenticated():
            return ''
        else:
            try:
                f_list = Follower.objects.filter(user = context['user'])
            except:
                return ''
            return render_to_string('follower.html', { 'followers': f_list }, context_instance=context)
                
    def tools(self, context, post):
        return ''
        
    def parse(self, value):
        return value      
{'fraction_non_alphanumeric': 0.09891750653228817, 'fraction_numerical': 0.0, 'mean_word_length': 1.8240252897787144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1205804', 'n_tokens_mistral': 706, 'n_tokens_neox': 673, 'n_words': 169}