<commit_before>import superdesk
from liveblog.advertisements.advertisements import AdvertisementsResource, AdvertisementsService
from liveblog.advertisements.collections import CollectionsResource, CollectionsService
from liveblog.advertisements.outputs import OutputsResource, OutputsService

def init_app(app):
    endpoint_name = 'advertisements'
    service = AdvertisementsService(endpoint_name, backend=superdesk.get_backend())
    AdvertisementsResource(endpoint_name, app=app, service=service)

    endpoint_name = 'collections'
    service = CollectionsService(endpoint_name, backend=superdesk.get_backend())
    CollectionsResource(endpoint_name, app=app, service=service)

    endpoint_name = 'outputs'
    service = OutputsService(endpoint_name, backend=superdesk.get_backend())
    OutputsResource(endpoint_name, app=app, service=service)<commit_msg>fix: added needed privilege.<commit_after>import superdesk
from liveblog.advertisements.advertisements import AdvertisementsResource, AdvertisementsService
from liveblog.advertisements.collections import CollectionsResource, CollectionsService
from liveblog.advertisements.outputs import OutputsResource, OutputsService

def init_app(app):
    endpoint_name = 'advertisements'
    service = AdvertisementsService(endpoint_name, backend=superdesk.get_backend())
    AdvertisementsResource(endpoint_name, app=app, service=service)

    endpoint_name = 'collections'
    service = CollectionsService(endpoint_name, backend=superdesk.get_backend())
    CollectionsResource(endpoint_name, app=app, service=service)

    endpoint_name = 'outputs'
    service = OutputsService(endpoint_name, backend=superdesk.get_backend())
    OutputsResource(endpoint_name, app=app, service=service)

superdesk.privilege(name='advertisements', label='Advertisements Management', description='User can manage advertisements')
superdesk.privilege(name='collections', label='Collections Management', description='User can manage collections')
superdesk.privilege(name='outputs', label='Outputs Management', description='User can manage outputs')
{'fraction_non_alphanumeric': 0.08445297504798464, 'fraction_numerical': 0.0, 'mean_word_length': 8.391891891891891, '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': '6529326', 'n_tokens_mistral': 568, 'n_tokens_neox': 541, 'n_words': 109}