<commit_before>import cProfile

from pqhelper import capture


def main():
    cProfile.run('test_solution(catapult)')


def test_solution(board_string):
    print capture.capture(board_string)

skeleton = '''
..*..*..
.gm..mg.
.ms..sm.
.rs..sr.
.ggmmgg.
.rsggsr.
.rsrrsr.
ssgssgss'''

giant_rat = '''
...mm...
..mrym..<commit_msg>Update capture profiler to new spec of providing board instead of string.<commit_after>import cProfile

from pqhelper import capture


def main():
    cProfile.run('test_solution(catapult)')


def test_solution(board_string):
    board = capture.Board(board_string)
    print capture.capture(board)

skeleton = '''
..*..*..
.gm..mg.
.ms..sm.
.rs..sr.
.ggmmgg.
.rsggsr.
.rsrrsr.
ssgssgss'''

giant_rat = '''
...mm...
..mrym..
{'fraction_non_alphanumeric': 0.1814569536423841, 'fraction_numerical': 0.0, 'mean_word_length': 3.223463687150838, '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': '7476870', 'n_tokens_mistral': 303, 'n_tokens_neox': 292, 'n_words': 60}