<commit_before>"""Minify Javascript and CSS with 
`YUI Compressor <http://developer.yahoo.com/yui/compressor/>`_.

This filter defaults to JS mode, but it is recommended that you explicitly 
specify ``yui_js`` instead. Use ``yui_css`` to compress CSS files.

YUI Compressor is an external tool written in Java, which needs to be 
available. You can define a ``YUI_COMPRESSOR_PATH`` setting that points to 
the ``.jar`` file. Otherwise, an environment variable by the same name is 
tried. The filter will also look for a ``JAVA_HOME`` environment variable 
to run the ``.jar`` file, or will otherwise assume that ``java`` is on the 
system path.
"""

from django_assets.filter import yui_js

def apply(_in, out):
    return yui.apply(_in, out, mode='js')<commit_msg>Fixed 'yui' filter.<commit_after>"""Minify Javascript and CSS with
`YUI Compressor <http://developer.yahoo.com/yui/compressor/>`_.

This filter defaults to JS mode, but it is recommended that you explicitly
specify ``yui_js`` instead. Use ``yui_css`` to compress CSS files.

YUI Compressor is an external tool written in Java, which needs to be
available. You can define a ``YUI_COMPRESSOR_PATH`` setting that points to
the ``.jar`` file. Otherwise, an environment variable by the same name is
tried. The filter will also look for a ``JAVA_HOME`` environment variable
to run the ``.jar`` file, or will otherwise assume that ``java`` is on the
system path.
"""

from django_assets.filter import yui_js

def apply(_in, out):
    return yui_js.apply(_in, out)
{'fraction_non_alphanumeric': 0.09796186719263643, 'fraction_numerical': 0.0, 'mean_word_length': 4.67910447761194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '7540473', 'n_tokens_mistral': 461, 'n_tokens_neox': 446, 'n_words': 206}