<commit_before>#!/usr/bin/env python
'''
CREATED:2014-03-18 by <NAME> <<EMAIL>>

Compute melody extraction evaluation measures

Usage:

./melody_eval.py TRUTH.TXT PREDICTION.TXT

For a detailed explanation of the measures please refer to:

<NAME>, <NAME>, <NAME> and <NAME>, "Melody Extraction
from Polyphonic Music Signals: Approaches, Applications and Challenges",
IEEE Signal Processing Magazine, 31(2):118-134, Mar. 2014.
'''

import numpy as np
import scipy as sp<commit_msg>minor edit to description<commit_after>#!/usr/bin/env python
'''
CREATED:2014-03-18 by <NAME> <<EMAIL>>

Compute melody extraction evaluation measures

Usage:

./melody_eval.py TRUTH.TXT PREDICTION.TXT
(CSV files also accepted)

For a detailed explanation of the measures please refer to:

<NAME>, <NAME>, <NAME> and <NAME>, "Melody Extraction
from Polyphonic Music Signals: Approaches, Applications and Challenges",
IEEE Signal Processing Magazine, 31(2):118-134, Mar. 2014.
'''

import numpy as np
import scipy as sp
{'fraction_non_alphanumeric': 0.11022044088176353, 'fraction_numerical': 0.04208416833667335, 'mean_word_length': 5.322784810126582, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7428367', 'n_tokens_mistral': 365, 'n_tokens_neox': 315, 'n_words': 116}