def word_count(s, cache=None):
    cache = {}

    cleanup = map(lambda i : i.strip('":;,.-+=/\\|[]{}()*^&').lower(), s.replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').split(' '))

    for i in cleanup:
        if i == "":
            continue
        if i not in cache:
            cache[i] = 1
        else:
            cache[i] += 1

    print('cache return', cache)
    return cache


if __name__ == "__main__":
    print(word_count(""))
    print(word_count("Hello"))
    print(word_count('Hello, my cat. And my cat doesn\'t say "hello" back.'))
    print(word_count('This is a test of the emergency broadcast network. This is only a test.'))
ca3801aeabaf43d9b1578f28c5987a630e543c15
<mask token>

def word_count(s, cache=None):
    cache = {}
    cleanup = map(lambda i: i.strip('":;,.-+=/\\|[]{}()*^&').lower(), s.
        replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').split(' '))
    for i in cleanup:
        if i == '':
            continue
        if i not in cache:
            cache[i] = 1
        else:
            cache[i] += 1
    print('cache return', cache)
    return cache


<mask token>

def word_count(s, cache=None):
    cache = {}
    cleanup = map(lambda i: i.strip('":;,.-+=/\\|[]{}()*^&').lower(), s.
        replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').split(' '))
    for i in cleanup:
        if i == '':
            continue
        if i not in cache:
            cache[i] = 1
        else:
            cache[i] += 1
    print('cache return', cache)
    return cache


if __name__ == '__main__':
    print(word_count(''))
    print(word_count('Hello'))
    print(word_count('Hello, my cat. And my cat doesn\'t say "hello" back.'))
    print(word_count(
        'This is a test of the emergency broadcast network. This is only a test.'
        ))

def word_count(s, cache=None):
    cache = {}

    cleanup = map(lambda i : i.strip('":;,.-+=/\\|[]{}()*^&').lower(), s.replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').split(' '))

    for i in cleanup:
        if i == "":
            continue
        if i not in cache:
            cache[i] = 1
        else:
            cache[i] += 1

    print('cache return', cache)
    return cache


if __name__ == "__main__":
    print(word_count(""))
    print(word_count("Hello"))
    print(word_count('Hello, my cat. And my cat doesn\'t say "hello" back.'))
    print(word_count('This is a test of the emergency broadcast network. This is only a test.'))