<commit_before>import unittest
import os.path
import numpy
import pandas as pd
from pandas.util.testing import assert_frame_equal
import test_helper
import copy

from collections import defaultdict, OrderedDict
from quantipy.tests.test_batch import _get_batch
from quantipy.core.stack import Stack
from quantipy.core.chain import Chain
from quantipy.core.link import Link
from quantipy.core.view_generators.view_mapper import ViewMapper
from quantipy.core.view_generators.view_maps import QuantipyViews
from quantipy.core.view_generators.view_specs import (net, calc)
from quantipy.core.view import View
from quantipy.core.helpers import functions
from quantipy.core.helpers.functions import load_json
from quantipy.core.cache import Cache

CBASE = "x|f|x:|||cbase"
COUNTS = "x|f|:|||counts"
DEFAULT = "x|default|:|||default"

class TestStackObject(unittest.TestCase):<commit_msg>minor amendment to test_batch import<commit_after>import unittest
import os.path
import numpy
import pandas as pd
from pandas.util.testing import assert_frame_equal
import test_helper
import copy

from collections import defaultdict, OrderedDict
from test_batch import _get_batch
from quantipy.core.stack import Stack
from quantipy.core.chain import Chain
from quantipy.core.link import Link
from quantipy.core.view_generators.view_mapper import ViewMapper
from quantipy.core.view_generators.view_maps import QuantipyViews
from quantipy.core.view_generators.view_specs import (net, calc)
from quantipy.core.view import View
from quantipy.core.helpers import functions
from quantipy.core.helpers.functions import load_json
from quantipy.core.cache import Cache

CBASE = "x|f|x:|||cbase"
COUNTS = "x|f|:|||counts"
DEFAULT = "x|default|:|||default"

class TestStackObject(unittest.TestCase):
{'fraction_non_alphanumeric': 0.0746606334841629, 'fraction_numerical': 0.0, 'mean_word_length': 6.862222222222222, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5859077', 'n_tokens_mistral': 557, 'n_tokens_neox': 552, 'n_words': 155}