<commit_before># coding: utf-8
import arrow
import datetime
import time
from logging import getLogger

# django classes
from django.conf import settings
from django.core.cache import caches

# django_th classes
from django_th.services.services import ServicesMgr
# th_rss classes
from th_rss.lib.feedsservice import Feeds

logger = getLogger('django_th.trigger_happy')

cache = caches['th_rss']


class ServiceRss(ServicesMgr):
    """
        Service RSS
    """
    def __init__(self, token=None, **kwargs):
        super(ServiceRss, self).__init__(token, **kwargs)

    def _get_published(self, entry):
        """
        get the 'published' attribute
        :param entry:
        :return:<commit_msg>Replaced cache variable<commit_after># coding: utf-8
import arrow
import datetime
import time
from logging import getLogger

# django classes
from django.conf import settings
from django.core.cache import caches

# django_th classes
from django_th.services.services import ServicesMgr
# th_rss classes
from th_rss.lib.feedsservice import Feeds

logger = getLogger('django_th.trigger_happy')

cache = caches['django_th']


class ServiceRss(ServicesMgr):
    """
        Service RSS
    """
    def __init__(self, token=None, **kwargs):
        super(ServiceRss, self).__init__(token, **kwargs)

    def _get_published(self, entry):
        """
        get the 'published' attribute
        :param entry:
        :return:
{'fraction_non_alphanumeric': 0.09263157894736843, 'fraction_numerical': 0.0014035087719298245, 'mean_word_length': 3.769230769230769, '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': '6135074', 'n_tokens_mistral': 419, 'n_tokens_neox': 413, 'n_words': 121}