<commit_before><commit_msg>Manual spam method added<commit_after># command to set manual spams

from helpers.page_utils import delete
from django.core.management.base import BaseCommand, CommandError


class Command(BaseCommand):
    def handle(self, *args, **options):
        ids = options['id']
        delete(ids, False)
        print("Spam, " + str(ids))

    def add_arguments(self, parser):
        parser.add_argument('id')
{'fraction_non_alphanumeric': 0.11136890951276102, 'fraction_numerical': 0.0, 'mean_word_length': 4.023255813953488, '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': '4543385', 'n_tokens_mistral': 127, 'n_tokens_neox': 123, 'n_words': 34}