<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-

"""Entry point.
"""


# Python-native imports
import logging.config

# Third-party imports
# noinspection PyPackageRequirements
from pq.api import PulsarQueue


# prepare logging, i.e. load config and get the root logger
logging.config.fileConfig('./logging.conf')
L = logging.getLogger()


# sonar-queue config
task_paths = ['pyCrow.crowlib.*', 'pq.jobs']
data_store = 'redis://127.0.0.1:6379/7'
worker = 2


# build pulsar-queue app
def app():
    L.info('Starting PulsarQueue application.')
    return PulsarQueue(config=__file__)<commit_msg>add return type and fixed a comment<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-

"""Entry point.
"""


# Python-native imports
import logging.config

# Third-party imports
# noinspection PyPackageRequirements
from pq.api import PulsarQueue


# prepare logging, i.e. load config and get the root logger
logging.config.fileConfig('./logging.conf')
L = logging.getLogger()


# pulsar-queue config
task_paths = ['pyCrow.crowlib.*', 'pq.jobs']
data_store = 'redis://127.0.0.1:6379/7'
worker = 2


# build pulsar-queue app
def app() -> PulsarQueue:
    L.info('Starting PulsarQueue application.')
    return PulsarQueue(config=__file__)
{'fraction_non_alphanumeric': 0.14308681672025725, 'fraction_numerical': 0.02090032154340836, 'mean_word_length': 4.23109243697479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5742106', 'n_tokens_mistral': 443, 'n_tokens_neox': 414, 'n_words': 104}