<commit_before>#!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess

HANDLES=['flac','fla']

def decode(inF, outF):
    st = subprocess.call(["flac",
            "--totally-silent", #No output
            "--force", #Overwrite files
            "-o", outF, #Output
            inF #input
    ])

    if st == 0:
        return outF
    else:
        return False
<commit_msg>Read metadata for flacs (from exiftool)<commit_after>#!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config

HANDLES=['flac','fla']

def decode(inF, outF):
    st = subprocess.call(["flac",
            "--totally-silent", #No output
            "--force", #Overwrite files
            "-o", outF, #Output
            inF #input
    ])

    if st == 0:
        return outF
    else:
        return False

getMetadata = config.readExiftoolMetadata

{'fraction_non_alphanumeric': 0.13942857142857143, 'fraction_numerical': 0.002285714285714286, 'mean_word_length': 2.2324723247232474, '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': '4070608', 'n_tokens_mistral': 286, 'n_tokens_neox': 276, 'n_words': 75}