<commit_before># -*- coding: utf-8 -*-
from cla_eventlog import event_registry
from cla_eventlog.constants import LOG_TYPES, LOG_LEVELS, LOG_ROLES
from cla_eventlog.events import BaseEvent
from cla_eventlog.models import ComplaintLog


class ComplaintEvent(BaseEvent):
    key = 'complaint'
    codes = {
        'COMPLAINT_CREATED': {
            'type': LOG_TYPES.EVENT,
            'level': LOG_LEVELS.HIGH,
            'selectable_by': [LOG_ROLES.OPERATOR],
            'description': 'Complaint created',
            'stops_timer': False
        },
        'OWNER_SET': {
            'type': LOG_TYPES.EVENT,
            'level': LOG_LEVELS.HIGH,
            'selectable_by': [LOG_ROLES.OPERATOR],
            'description': 'Owner set',
            'stops_timer': False
        },
        'HOLDING_LETTER_SENT': {
            'type': LOG_TYPES.EVENT,<commit_msg>change event type to moderate from high<commit_after># -*- coding: utf-8 -*-
from cla_eventlog import event_registry
from cla_eventlog.constants import LOG_TYPES, LOG_LEVELS, LOG_ROLES
from cla_eventlog.events import BaseEvent
from cla_eventlog.models import ComplaintLog


class ComplaintEvent(BaseEvent):
    key = 'complaint'
    codes = {
        'COMPLAINT_CREATED': {
            'type': LOG_TYPES.EVENT,
            'level': LOG_LEVELS.HIGH,
            'selectable_by': [LOG_ROLES.OPERATOR],
            'description': 'Complaint created',
            'stops_timer': False
        },
        'OWNER_SET': {
            'type': LOG_TYPES.EVENT,
            'level': LOG_LEVELS.MODERATE,
            'selectable_by': [LOG_ROLES.OPERATOR],
            'description': 'Owner set',
            'stops_timer': False
        },
        'HOLDING_LETTER_SENT': {
            'type': LOG_TYPES.EVENT,
{'fraction_non_alphanumeric': 0.11098527746319366, 'fraction_numerical': 0.0011325028312570782, 'mean_word_length': 2.3657142857142857, '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': '3295637', 'n_tokens_mistral': 561, 'n_tokens_neox': 567, 'n_words': 111}