<commit_before>from __future__ import absolute_import, unicode_literals

import argparse
import unittest

from streamparse.cli.worker_uptime import subparser_hook

from nose.tools import ok_


class WorkerUptimeTestCase(unittest.TestCase):

    def test_subparser_hook(self):
        parser = argparse.ArgumentParser()
        subparsers = parser.add_subparsers()
        subparser_hook(subparsers)

        subcommands = parser._optionals._actions[1].choices.keys()
        ok_('worker-uptime' in subcommands)


if __name__ == '__main__':
    unittest.main()<commit_msg>Fix unit test after worker-uptime changed to worker_uptime<commit_after>from __future__ import absolute_import, unicode_literals

import argparse
import unittest

from streamparse.cli.worker_uptime import subparser_hook

from nose.tools import ok_


class WorkerUptimeTestCase(unittest.TestCase):

    def test_subparser_hook(self):
        parser = argparse.ArgumentParser()
        subparsers = parser.add_subparsers()
        subparser_hook(subparsers)

        subcommands = parser._optionals._actions[1].choices.keys()
        ok_('worker_uptime' in subcommands)


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.07750631844987363, 'fraction_numerical': 0.0016849199663016006, 'mean_word_length': 4.351351351351352, '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': '4218278', 'n_tokens_mistral': 366, 'n_tokens_neox': 353, 'n_words': 76}