<commit_before>#!/usr/bin/python -tt

"""Solves problem B from Google Code Jam Qualification Round Africa 2010
(https://code.google.com/codejam/contest/351101/dashboard#s=p1)
"Reverse Words"
"""

import sys

def main():
    """Reads problem data from stdin and prints answers to stdout.

    Args:
        None

    Returns:
        Nothing
    """

    lines = sys.stdin.read().splitlines()
    num_test_cases = int(lines[0])
    test_cases = lines[1:]
    assert len(test_cases) == num_test_cases
    i = 1
    for test_case in test_cases:
        words = test_case.split()
        words.reverse()
        print 'Case #%d:' % (i,), ' '.join(words)
        i += 1


if __name__ == '__main__':
    main()<commit_msg>Add description of assertions raised<commit_after>#!/usr/bin/python -tt

"""Solves problem B from Google Code Jam Qualification Round Africa 2010
(https://code.google.com/codejam/contest/351101/dashboard#s=p1)
"Reverse Words"
"""

import sys

def main():
    """Reads problem data from stdin and prints answers to stdout.

    Args:
        None

    Returns:
        Nothing

    Raises:
        AssertionError: on invalid input (claimed number of test cases
                        does not match actual number)
    """

    lines = sys.stdin.read().splitlines()
    num_test_cases = int(lines[0])
    test_cases = lines[1:]
    assert len(test_cases) == num_test_cases
    i = 1
    for test_case in test_cases:
        words = test_case.split()
        words.reverse()
        print 'Case #%d:' % (i,), ' '.join(words)
        i += 1


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.12303829252981795, 'fraction_numerical': 0.018832391713747645, 'mean_word_length': 2.598194130925508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4333033', 'n_tokens_mistral': 546, 'n_tokens_neox': 506, 'n_words': 144}