<commit_before>import hashlib
import uuid
from datetime import datetime
from time import mktime

from django.core.management.base import BaseCommand, CommandError
from django.db import transaction, DataError
import feedparser
import pytz

from huonotuutiset.models import Site, NewsItem


class Command(BaseCommand):
    help = 'Fetch new news items from the RSS feeds'

    def fetch(self, url):
        feed = feedparser.parse(url)

        data = []

        for entry in feed.entries:
            item = {}

            item['']

        feed

    @transaction.atomic
    def handle(self, *args, **options):
        for site in Site.objects.all():
            self.stdout.write('Updating %s' % site.name)
<commit_msg>Remove dead code<commit_after>import hashlib
import uuid
from datetime import datetime
from time import mktime

from django.core.management.base import BaseCommand, CommandError
from django.db import transaction, DataError
import feedparser
import pytz

from huonotuutiset.models import Site, NewsItem


class Command(BaseCommand):
    help = 'Fetch new news items from the RSS feeds'

    @transaction.atomic
    def handle(self, *args, **options):
        for site in Site.objects.all():
            self.stdout.write('Updating %s' % site.name)

{'fraction_non_alphanumeric': 0.0804416403785489, 'fraction_numerical': 0.0, 'mean_word_length': 3.2871621621621623, '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': '3094906', 'n_tokens_mistral': 361, 'n_tokens_neox': 345, 'n_words': 123}