<commit_before>import json
from tornado import gen, httpclient as hc

from . import AbstractHandler, LOGGER


class HipChatHandler(AbstractHandler):

    name = 'hipchat'

    # Default options
    defaults = {
        'room': None,
        'key': None,
    }

    colors = {
        'critical': 'red',
        'warning': 'magenta',
        'normal': 'green',
    }

    def init_handler(self):<commit_msg>change warning handler to yellow, this is supported properly by the HipChat v2 API<commit_after>import json
from tornado import gen, httpclient as hc

from . import AbstractHandler, LOGGER


class HipChatHandler(AbstractHandler):

    name = 'hipchat'

    # Default options
    defaults = {
        'room': None,
        'key': None,
    }

    colors = {
        'critical': 'red',
        'warning': 'yellow',
        'normal': 'green',
    }

    def init_handler(self):
{'fraction_non_alphanumeric': 0.11022727272727273, 'fraction_numerical': 0.0011363636363636363, 'mean_word_length': 2.5524193548387095, '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': '4314285', 'n_tokens_mistral': 270, 'n_tokens_neox': 254, 'n_words': 78}