<commit_before>import urllib

from playa import app

@app.template_filter('duration')
def duration(seconds):
    return '%s:%s' % (int(seconds / 60), ('0' + str(int(seconds % 60)))[-2:])

@app.template_filter('song_title')
def song_title(metadata):
    if 'artist' in metadata:
        return '%s - %s' % (metdata['artist'], metadata['title'])
    return metadata['title']

app.template_filter('urlquote')(urllib.quote)<commit_msg>Correct bug with metadata ref<commit_after>import urllib

from playa import app

@app.template_filter('duration')
def duration(seconds):
    return '%s:%s' % (int(seconds / 60), ('0' + str(int(seconds % 60)))[-2:])

@app.template_filter('song_title')
def song_title(metadata):
    if 'artist' in metadata:
        return '%s - %s' % (metadata['artist'], metadata['title'])
    return metadata['title']

app.template_filter('urlquote')(urllib.quote)
{'fraction_non_alphanumeric': 0.17974971558589306, 'fraction_numerical': 0.013651877133105802, 'mean_word_length': 5.330935251798561, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3483554', 'n_tokens_mistral': 305, 'n_tokens_neox': 294, 'n_words': 65}