<commit_before># -*- encoding: utf-8 -*-
import itertools
import sys


class ResponseManager(object):
    r'''Handles OSC responses from scsynth.

    ::

        >>> from supriya import osctools
        >>> from supriya import responsetools
        >>> manager = responsetools.ResponseManager()

    ::

        >>> message = osctools.OscMessage(
        ...     '/status.reply', 1, 0, 0, 2, 4,
        ...     0.040679048746824265, 0.15118031203746796,
        ...     44100.0, 44100.00077873274,
        ...     )
        >>> manager(message)
        StatusResponse(
            ugen_count=0,
            synth_count=0,
            group_count=2,
            synth_definition_count=4,
            average_cpu_usage=0.040679048746824265,
            peak_cpu_usage=0.15118031203746796,
            target_sample_rate=44100.0,<commit_msg>SesponseManager now inherits from SupriyaObject.<commit_after># -*- encoding: utf-8 -*-
import itertools
import sys
from supriya.tools.systemtools.SupriyaObject import SupriyaObject


class ResponseManager(SupriyaObject):
    r'''Handles OSC responses from scsynth.

    ::

        >>> from supriya import osctools
        >>> from supriya import responsetools
        >>> manager = responsetools.ResponseManager()

    ::

        >>> message = osctools.OscMessage(
        ...     '/status.reply', 1, 0, 0, 2, 4,
        ...     0.040679048746824265, 0.15118031203746796,
        ...     44100.0, 44100.00077873274,
        ...     )
        >>> manager(message)
        StatusResponse(
            ugen_count=0,
            synth_count=0,
            group_count=2,
            synth_definition_count=4,
            average_cpu_usage=0.040679048746824265,
            peak_cpu_usage=0.15118031203746796,
            target_sample_rate=44100.0,
{'fraction_non_alphanumeric': 0.10974244120940649, 'fraction_numerical': 0.12541993281075028, 'mean_word_length': 2.0442930153321974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '1879710', 'n_tokens_mistral': 697, 'n_tokens_neox': 558, 'n_words': 97}