def minify(tokens, options):
<EOL>remove_comments(tokens)<EOL>remove_docstrings(tokens)<EOL>result = token_utils.untokenize(tokens)<EOL>result = multiline_indicator.sub('<STR_LIT>', result)<EOL>result = fix_empty_methods(result)<EOL>result = join_multiline_pairs(result)<EOL>result = join_multiline_pairs(result, '<STR_LIT>')<EOL>result = join_multiline_pairs(result, '<STR_LIT:{}>')<EOL>result = remove_blank_lines(result)<EOL>result = reduce_operators(result)<EOL>result = dedent(result, use_tabs=options.tabs)<EOL>return result<EOL>
Performs minification on *tokens* according to the values in *options*