<commit_before>import pytest
import tpfd
import logging

logging.basicConfig(level=logging.DEBUG)
logging.debug('test')

p  = tpfd.Parser()
p.debug = True

@p.on_recognize('{Animal} are cool')
def main(kwargs):
    animal = kwargs.get('animal')
    return 'sloths'

def test_string_parse():
    assert p.parse_string('Sloths are cool') == 'sloths'

if __name__ == '__main__':
    pytest.main()<commit_msg>added a simple test case that tests successfully<commit_after>import pytest
import tpfd
import logging

logging.basicConfig(level=logging.DEBUG)
logging.debug('test')

p = tpfd.Parser()
p.debug = True


@p.on_recognize('{Animal} are cool')
def main(kwargs):
    animal = kwargs.get('animal')
    return animal

def test_string_parse():
    assert p.parse_string('Sloths are cool') == 'sloths'
    assert p.parse_string('Turtles are cool') == 'turtles'
    assert p.parse_string('Bears beats Battle Star Galactica') == None

if __name__ == '__main__':
    pytest.main()
{'fraction_non_alphanumeric': 0.13360739979445016, 'fraction_numerical': 0.0, 'mean_word_length': 4.867469879518072, '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': '5344423', 'n_tokens_mistral': 336, 'n_tokens_neox': 334, 'n_words': 82}