<commit_before>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 <NAME> <<EMAIL>>
#
# Distributed under terms of the MIT license.

"""
Contains the main logic for getting the files, beautify them, and log the info.
"""

import os
import re
import sys
import logging
import subprocess
from titlecase import titlecase
from shutil import copyfile
from omnitagger.metatagger import tagger
import acoustid

class OmniTagger:

    def __init__(self, args):
        self.package_name = __name__.split('.', 1)[0]
        self.destination = self.package_name
        self.exceptions = args.exceptions or []
        self.recursive = args.recursive
        self.titlecase_articles = args.titlecase_articles
        self.files_to_skip = args.skip
        self.fingerprint_lookup = args.fingerprint_lookup
        self.clear = args.clear
        self.remove_original = args.remove_original
        self.filetypes = args.filetypes or ['.mp3', '.ogg', '.flac']
<commit_msg>removed unnecessary subprocess import;<commit_after>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 <NAME> <<EMAIL>>
#
# Distributed under terms of the MIT license.

"""
Contains the main logic for getting the files, beautify them, and log the info.
"""

import os
import re
import sys
import logging
from titlecase import titlecase
from shutil import copyfile
from omnitagger.metatagger import tagger
import acoustid

class OmniTagger:

    def __init__(self, args):
        self.package_name = __name__.split('.', 1)[0]
        self.destination = self.package_name
        self.exceptions = args.exceptions or []
        self.recursive = args.recursive
        self.titlecase_articles = args.titlecase_articles
        self.files_to_skip = args.skip
        self.fingerprint_lookup = args.fingerprint_lookup
        self.clear = args.clear
        self.remove_original = args.remove_original
        self.filetypes = args.filetypes or ['.mp3', '.ogg', '.flac']

{'fraction_non_alphanumeric': 0.10175438596491228, 'fraction_numerical': 0.010025062656641603, 'mean_word_length': 3.2832618025751072, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6019234', 'n_tokens_mistral': 622, 'n_tokens_neox': 595, 'n_words': 175}