original_docstring: Keeps every message in the log which contains a selected token.
docstring: Keeps every message in the log which contains a selected token.
docstring_tokens: Keeps every message in the log which contains a selected token .
code: def message(log):
          '''Keeps every message in the log which contains a selected token.'''
          for _, tokens in it.groupby(log, lambda x: (x['user'], x['message'])):
              tokens = list(tokens)  # need to pass through twice
              if any(map(common.is_selected, tokens)):
                  yield from tokens
code_tokens: def message ( log ) : for _ , tokens in it . groupby ( log , lambda x : ( x [ 'user' ] , x [ 'message' ] ) ) : tokens = list ( tokens ) if any ( map ( common . is_selected , tokens ) ) : yield from tokens
short_docstring: Keeps every message in the log which contains a selected token.
short_docstring_tokens: Keeps every message in the log which contains a selected token .
comment: '''Keeps every message in the log which contains a selected token.'''$SEP$# need to pass through twice