<commit_before>from ckan.lib.base import render, c
from ..dictization import five_stars, broken_resource_links_by_dataset
from base import QAController

class QAPackageController(QAController):
    
    def index(self):                
        return render('ckanext/qa/dataset/index.html')

    def five_stars(self):
        c.datasets = five_stars()
        return render('ckanext/qa/dataset/five_stars/index.html')

    def broken_resource_links(self):
        c.datasets = broken_resource_links_by_dataset()
        return render('ckanext/qa/dataset/broken_resource_links/index.html')
<commit_msg>bug fix: python code in controller/template should still use 'package' for now<commit_after>from ckan.lib.base import render, c
from ..dictization import five_stars, broken_resource_links_by_dataset
from base import QAController

class QAPackageController(QAController):
    
    def index(self):                
        return render('ckanext/qa/dataset/index.html')

    def five_stars(self):
        c.packages = five_stars()
        return render('ckanext/qa/dataset/five_stars/index.html')

    def broken_resource_links(self):
        c.packages = broken_resource_links_by_dataset()
        return render('ckanext/qa/dataset/broken_resource_links/index.html')

{'fraction_non_alphanumeric': 0.08997632202052092, 'fraction_numerical': 0.0, 'mean_word_length': 3.6446886446886446, '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': '5919607', 'n_tokens_mistral': 385, 'n_tokens_neox': 372, 'n_words': 75}