<commit_before># -*- encoding: utf-8 -*-
import datetime
import decimal
import struct
from supriya.tools.osctools.OscMixin import OscMixin


class OscBundle(OscMixin):
    r'''An OSC bundle.

    ::

        >>> from supriya.tools import osctools
        >>> message_one = osctools.OscMessage('/one', 1)
        >>> message_two = osctools.OscMessage('/two', 2)
        >>> message_three = osctools.OscMessage('/three', 3)

    ::

        >>> inner_bundle = osctools.OscBundle(
        ...     timestamp=1401557034.5,
        ...     contents=(message_one, message_two),
        ...     )
        >>> inner_bundle
        OscBundle(
            timestamp=1401557034.5,
            contents=(
                OscMessage(
                    '/one',
                    1
                    ),
                OscMessage(
                    '/two',
                    2
                    ),
                )
            )

    ::

        >>> outer_bundle = osctools.OscBundle(
        ...     contents=(inner_bundle, message_three),
        ...     )
        >>> outer_bundle
        OscBundle(
            contents=(
                OscBundle(
                    timestamp=1401557034.5,
                    contents=(
                        OscMessage(
                            '/one',
                            1
                            ),
                        OscMessage(
                            '/two',
                            2
                            ),
                        )
                    ),
                OscMessage(
                    '/three',
                    3
                    ),
                )
            )

    ::

        >>> datagram = outer_bundle.to_datagram()

    ::

        >>> decoded_bundle = osctools.OscBundle.from_datagram(datagram)
        >>> decoded_bundle
        OscBundle(
            contents=(
                OscBundle(
                    timestamp=1401557034.5,
                    contents=(
                        OscMessage(
                            '/one',
                            1
                            ),
                        OscMessage(
                            '/two',
                            2
                            ),
                        )
                    ),
                OscMessage(
                    '/three',
                    3
                    ),
                )
            )

    ::

        >>> decoded_bundle == outer_bundle
        True

    '''

    ### CLASS VARIABLES ###

    __slots__ = (<commit_msg>Improved OscBundle documentation.<commit_after># -*- encoding: utf-8 -*-
import datetime
import decimal
import struct
from supriya.tools.osctools.OscMixin import OscMixin


class OscBundle(OscMixin):
    r'''An OSC bundle.

    ::

        >>> from supriya.tools import osctools
        >>> message_one = osctools.OscMessage('/one', 1)
        >>> message_two = osctools.OscMessage('/two', 2)
        >>> message_three = osctools.OscMessage('/three', 3)

    ::

        >>> inner_bundle = osctools.OscBundle(
        ...     timestamp=1401557034.5,
        ...     contents=(message_one, message_two),
        ...     )
        >>> inner_bundle
        OscBundle(
            timestamp=1401557034.5,
            contents=(
                OscMessage('/one', 1),
                OscMessage('/two', 2),
                )
            )

    ::

        >>> outer_bundle = osctools.OscBundle(
        ...     contents=(inner_bundle, message_three),
        ...     )
        >>> outer_bundle
        OscBundle(
            contents=(
                OscBundle(
                    timestamp=1401557034.5,
                    contents=(
                        OscMessage('/one', 1),
                        OscMessage('/two', 2),
                        )
                    ),
                OscMessage('/three', 3),
                )
            )

    ::

        >>> datagram = outer_bundle.to_datagram()

    ::

        >>> decoded_bundle = osctools.OscBundle.from_datagram(datagram)
        >>> decoded_bundle
        OscBundle(
            contents=(
                OscBundle(
                    timestamp=1401557034.5,
                    contents=(
                        OscMessage('/one', 1),
                        OscMessage('/two', 2),
                        )
                    ),
                OscMessage('/three', 3),
                )
            )

    ::

        >>> decoded_bundle == outer_bundle
        True

    '''

    ### CLASS VARIABLES ###

    __slots__ = (
{'fraction_non_alphanumeric': 0.10753394656154183, 'fraction_numerical': 0.024529128339903637, 'mean_word_length': 0.8809719934102141, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 75, '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': '1194734', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1118, 'n_words': 174}