<commit_before>from django.core.management.base import BaseCommand
from twiggy_goodies.django import LogMixin
from allmychanges.models import Package
from allmychanges.tasks import update_changelog_task

class Command(LogMixin, BaseCommand):
    help = u"""Tests crawler on selected projects."""

    def handle(self, *args, **options):
        name = args[0]
        package = Package.objects.filter(name=name)[0]
        
        if len(args) > 1 and args[1] == 'full':
            package.changelog.versions.all().delete()

        update_changelog_task(package.changelog.source)<commit_msg>Drop 'problem' field on manual update_package execution.<commit_after>from django.core.management.base import BaseCommand
from twiggy_goodies.django import LogMixin
from allmychanges.models import Package
from allmychanges.tasks import update_changelog_task

class Command(LogMixin, BaseCommand):
    help = u"""Tests crawler on selected projects."""

    def handle(self, *args, **options):
        name = args[0]
        package = Package.objects.filter(name=name)[0]
        changelog = package.changelog
        
        if len(args) > 1 and args[1] == 'full':
            changelog.versions.all().delete()

        changelog.problem = None
        changelog.save()
        update_changelog_task(changelog.source)
{'fraction_non_alphanumeric': 0.10068649885583524, 'fraction_numerical': 0.006102212051868803, 'mean_word_length': 3.5555555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '523571', 'n_tokens_mistral': 385, 'n_tokens_neox': 375, 'n_words': 92}