<commit_before># -*- coding: utf-8 -*-

from __future__ import unicode_literals, division
from django.core.management.base import BaseCommand
from django.core.cache import cache
from django.db import transaction
from django_zilla.utils import redis_utils


class Command(BaseCommand):
    help = 'Flush cache'

    @transaction.atomic()
    def handle(self, *args, **options):
        cache_default = cache.get_cache('default')
        cache_default.clear()
        redis_utils.reset_stats()
        self.stdout.write('Cleared cache.\n')<commit_msg>fix on clearcache<commit_after># -*- coding: utf-8 -*-

from __future__ import unicode_literals, division
from django.core.management.base import BaseCommand
from django.core import cache
from django.db import transaction
from django_zilla.utils import redis_utils


class Command(BaseCommand):
    help = 'Flush cache'

    @transaction.atomic()
    def handle(self, *args, **options):
        cache_default = cache.get_cache('default')
        cache_default.clear()
        redis_utils.reset_stats()
        self.stdout.write('Cleared cache.\n')
{'fraction_non_alphanumeric': 0.10492700729927007, 'fraction_numerical': 0.0018248175182481751, 'mean_word_length': 3.8973214285714284, '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': '3516455', 'n_tokens_mistral': 318, 'n_tokens_neox': 307, 'n_words': 81}