<commit_before>from framework.controller import *
import giveaminute.location as mLocation

class Home(Controller):
    def GET(self, action=None):
        if (action and action != 'home'):
            return self.render(action)
        else:
            locations = self.json(mLocation.getSimpleLocationDictionary(self.db))
        
            return self.render('home',  {'locations':locations})<commit_msg>dummy user data and template_data variable<commit_after>from framework.controller import *
import giveaminute.location as mLocation
import giveaminute.user as mUser

class Home(Controller):
    def GET(self, action=None):
        self.template_data['user'] = dict(object = self.json(mUser.getDummyDictionary()),
                                            is_admin = True,
                                            is_moderator = True,
                                            is_leader = True)
        if (action and action != 'home'):
            return self.render(action)
        else:
            locations = self.json(mLocation.getSimpleLocationDictionary(self.db))
            
            self.template_data['locations'] = locations
            
            return self.render('home',  {'locations':locations})
{'fraction_non_alphanumeric': 0.09407948094079481, 'fraction_numerical': 0.0, 'mean_word_length': 2.062034739454094, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6916715', 'n_tokens_mistral': 294, 'n_tokens_neox': 287, 'n_words': 69}