<commit_before>#! /usr/bin/env python

"""
Module with a function for displaying numpy arrays on DS9 (wrapper of pyds9).
"""
from __future__ import print_function

__author__ = '<NAME>'
__all__ = ['ds9']

import pyds9


class ds9(object):
    """ Creates a DS9 window (named 'VIP_ds9') using pyDS9 functionality.

    The methods of this class allow interacting with the DS9 window. It uses
    XPA under the hood, which mean that using the ``set`` and ``get`` methods
    one can have fine control of the DS9 window. More info here:
    http://ds9.si.edu/doc/ref/xpa.html.

    """
    def __init__(self):
        """ __init__ method.<commit_msg>no message<commit_after>#! /usr/bin/env python

"""
Module with a function for displaying numpy arrays on DS9 (wrapper of pyds9).
"""
from __future__ import print_function

__author__ = '<NAME>'
__all__ = ['ds9']

import warnings
try:
    import pyds9
    no_opencv = False
except ImportError:
    msg = "Pyds9 not available."
    warnings.warn(msg, ImportWarning)
    no_pyds9 = True


class ds9(object):
    """ Creates a DS9 window (named 'VIP_ds9') using pyDS9 functionality.

    The methods of this class allow interacting with the DS9 window. It uses
    XPA under the hood, which mean that using the ``set`` and ``get`` methods
    one can have fine control of the DS9 window. More info here:
    http://ds9.si.edu/doc/ref/xpa.html.

    """
    def __init__(self):
        """ __init__ method.
{'fraction_non_alphanumeric': 0.1048999309868875, 'fraction_numerical': 0.016563146997929608, 'mean_word_length': 3.341317365269461, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '201071', 'n_tokens_mistral': 466, 'n_tokens_neox': 451, 'n_words': 175}