<commit_before># pylint: disable-msg=W0611, W0612, W0511,R0201
"""Tests suite for mrecarray.

:author: <NAME> & <NAME>
:contact: pierregm_at_uga_dot_edu  & mattknox_ca_at_hotmail_dot_com
:version: $Id$
"""
__author__ = "<NAME> & <NAME> ($Author$)"
__version__ = '1.0'
__revision__ = "$Revision$"
__date__     = '$Date$'

import types

import numpy as N
import numpy.core.fromnumeric  as fromnumeric
from numpy.testing import NumpyTest, NumpyTestCase
from numpy.testing.utils import build_err_msg

import maskedarray.testutils
#reload(maskedarray.testutils)
from maskedarray.testutils import assert_equal, assert_array_equal

import maskedarray.core as MA
import maskedarray.mrecords as MR

from maskedarray.core import getmaskarray, nomask

##reload(MA)
#import maskedarray.mrecords
##reload(maskedarray.mrecords)
#from maskedarray.mrecords import mrecarray, fromarrays, fromtextfile, fromrecords
import multitimeseries
reload(multitimeseries)
from multitimeseries import MultiTimeSeries, TimeSeries,\
    fromarrays, fromtextfile, fromrecords, \
    date_array, time_series

#from timeseries.tseries import time_series, TimeSeries

#..............................................................................
class test_mrecords(NumpyTestCase):
    "Base test class for MaskedArrays."
    def __init__(self, *args, **kwds):
        NumpyTestCase.__init__(self, *args, **kwds)
        self.setup()
        
    def setup(self):       
        "Generic setup" 
        d = N.arange(5)
        m = MA.make_mask([1,0,0,1,1])
        base_d = N.r_[d,d[::-1]].reshape(2,-1).T<commit_msg>fixed problems with this<commit_after># pylint: disable-msg=W0611, W0612, W0511,R0201
"""Tests suite for mrecarray.

:author: <NAME> & <NAME>
:contact: pierregm_at_uga_dot_edu  & mattknox_ca_at_hotmail_dot_com
:version: $Id$
"""
__author__ = "<NAME> & <NAME> ($Author$)"
__version__ = '1.0'
__revision__ = "$Revision$"
__date__     = '$Date$'

import types

import numpy as N
import numpy.core.fromnumeric  as fromnumeric
from numpy.testing import NumpyTest, NumpyTestCase
from numpy.testing.utils import build_err_msg

import maskedarray.testutils
#reload(maskedarray.testutils)
from maskedarray.testutils import assert_equal, assert_array_equal

import maskedarray.core as MA
import maskedarray.mrecords as MR

from maskedarray.core import getmaskarray, nomask, masked_array

##reload(MA)
#import maskedarray.mrecords
##reload(maskedarray.mrecords)
#from maskedarray.mrecords import mrecarray, fromarrays, fromtextfile, fromrecords
from timeseries import tmulti
reload(tmulti)
from timeseries.tmulti import MultiTimeSeries, TimeSeries,\
    fromarrays, fromtextfile, fromrecords, \
    date_array, time_series

#from timeseries.tseries import time_series, TimeSeries

#..............................................................................
class test_mrecords(NumpyTestCase):
    "Base test class for MaskedArrays."
    def __init__(self, *args, **kwds):
        NumpyTestCase.__init__(self, *args, **kwds)
        self.setup()
        
    def setup(self):       
        "Generic setup" 
        d = N.arange(5)
        m = MA.make_mask([1,0,0,1,1])
        base_d = N.r_[d,d[::-1]].reshape(2,-1).T
{'fraction_non_alphanumeric': 0.15211267605633802, 'fraction_numerical': 0.016901408450704224, 'mean_word_length': 3.6318840579710145, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7386303', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1019, 'n_words': 247}