<commit_before>__author__ = 'sbel'


from django.core.management.base import BaseCommand, CommandError
from atlas.auth.voms import collector


class Command(BaseCommand):

    def handle(self, *args, **options):
        collector.run()


<commit_msg>Added simple output for the command execution results<commit_after>__author__ = 'sbel'


from django.core.management.base import BaseCommand, CommandError
from atlas.auth.voms import collector


class Command(BaseCommand):

    def handle(self, *args, **options):
        # TODO: add verbose and quiet mode
        info = collector.run()
        # TODO: use logging here
        print "Added records: %s" % (info['added'])
        print "Removed records: %s" % (info['removed'])

{'fraction_non_alphanumeric': 0.1083676268861454, 'fraction_numerical': 0.0, 'mean_word_length': 3.8026315789473686, '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': '5995429', 'n_tokens_mistral': 216, 'n_tokens_neox': 205, 'n_words': 64}