human
I wrote the below code

    def clean_text(content):
        u'\n                                Removes    tags,    newlines    and    spaces    from    content.\n                                Return    array    of    words.\n                                '
        content = striptags(content)
        content = content.replace(u'\n', u'    ').split(u'    ')
        return list(filter((lambda x: (x != u'')), content))
    max_words = int(max_words)
    pattern = re.compile((u'(?P<before>.*)%s(?P<after>.*)' % re.escape(keyword)), ((re.MULTILINE | re.IGNORECASE) | re.DOTALL))
    match = pattern.search(content)
    if match:
        words = clean_text(match.group(u'before'))
        before_words = words[((- max_words) // 2):]
        words = clean_text(match.group(u'after'))
        after = u'    '.join(words[:(max_words - len(before_words))])
        before = u'    '.join(before_words)
        html = (u'%s    %s    %s' % (before, striptags(keyword), after))
        kw_p = re.compile((u'(%s)' % keyword), re.IGNORECASE)
        html = kw_p.sub(u'<strong>\\1</strong>', html)
        return mark_safe(html)
    return u'    '.join(clean_text(content)[:max_words])

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

@register.filter
def get_content_snippet(content, keyword, max_words=30):