<commit_before># encoding: utf-8
# ---------------------------------------------------------------------------
#  Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc.
#  Distributed under the terms of the BSD License.  See COPYING.rst.
# ---------------------------------------------------------------------------
"""
`Context` objects contain the information required for distarrays to
communicate with localarrays.
"""

from __future__ import absolute_import

import uuid
import collections
import atexit

import numpy

from distarray import cleanup
from distarray.externals import six
from distarray.dist.distarray import DistArray
from distarray.dist.maps import Distribution

from distarray.ipython_utils import IPythonClient
from distarray import DISTARRAY_BASE_NAME

atexit.register(cleanup.cleanup_all, DISTARRAY_BASE_NAME)


class Context(object):
    """
    Context objects manage the setup and communication of the worker processes<commit_msg>Remove cruft from bad rebase.<commit_after># encoding: utf-8
# ---------------------------------------------------------------------------
#  Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc.
#  Distributed under the terms of the BSD License.  See COPYING.rst.
# ---------------------------------------------------------------------------
"""
`Context` objects contain the information required for distarrays to
communicate with localarrays.
"""

from __future__ import absolute_import

import uuid
import collections
import atexit

import numpy

from distarray import cleanup
from distarray.externals import six
from distarray.dist.distarray import DistArray
from distarray.dist.maps import Distribution

from distarray.ipython_utils import IPythonClient
from distarray import DISTARRAY_BASE_NAME


class Context(object):
    """
    Context objects manage the setup and communication of the worker processes
{'fraction_non_alphanumeric': 0.20305102577590742, 'fraction_numerical': 0.009468700683850605, 'mean_word_length': 2.427027027027027, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1327501', 'n_tokens_mistral': 456, 'n_tokens_neox': 426, 'n_words': 171}