<commit_before>import unittest
import sys

from linguine.ops.remove_caps import remove_caps

class remove_punct_test(unittest.TestCase):

    def setUp(self):
        self.op = remove_caps_greedy()

    def test_run_greedy(self):
        self.op = remove_caps_greedy()
        self.test_data = '''Removes all non-proper-noun capitals from a given text.
Removes capital letters from text, even for <NAME>.
Accepts as input a non-tokenized string.'''
        self.assertEqual(self.op.run(self.test_data), 
        '''removes all non-proper-noun capitals from a given text. removes capital letters from text, even for bill clinton. accepts as input a non-tokenized string.''')
    def test_run_preserve_nnp(self):
        self.op = remove_caps_preserve_nnp()
        self.test_data = '''Removes all non-proper-noun capitals from a given text.
Removes capital letters from text, even for <NAME>.
Accepts as input a non-tokenized string.'''
        self.assertEqual(self.op.run(self.test_data), <commit_msg>Updated the import in remove_caps_test to import two different types of remove_caps operations<commit_after>import unittest
import sys

from linguine.ops.remove_caps import remove_caps_greedy, remove_caps_preserve_nnp

class remove_punct_test(unittest.TestCase):

    def setUp(self):
        self.op = remove_caps_greedy()

    def test_run_greedy(self):
        self.op = remove_caps_greedy()
        self.test_data = '''Removes all non-proper-noun capitals from a given text.
Removes capital letters from text, even for Bill Clinton.
Accepts as input a non-tokenized string.'''
        self.assertEqual(self.op.run(self.test_data), 
        '''removes all non-proper-noun capitals from a given text. removes capital letters from text, even for bill clinton. accepts as input a non-tokenized string.''')
    def test_run_preserve_nnp(self):
        self.op = remove_caps_preserve_nnp()
        self.test_data = '''Removes all non-proper-noun capitals from a given text.
Removes capital letters from text, even for <NAME>.
Accepts as input a non-tokenized string.'''
        self.assertEqual(self.op.run(self.test_data), 
{'fraction_non_alphanumeric': 0.08804143126177025, 'fraction_numerical': 0.0, 'mean_word_length': 3.81859410430839, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6781652', 'n_tokens_mistral': 658, 'n_tokens_neox': 629, 'n_words': 200}