<commit_before>from __future__ import unicode_literals

import logging
import os
import threading

from mopidy import audio, backend
from mopidy.utils import process, versioning

from spotify.manager import SpotifySessionManager as PyspotifySessionManager

from mopidy_spotify import translator
from mopidy_spotify.container_manager import SpotifyContainerManager
from mopidy_spotify.playlist_manager import SpotifyPlaylistManager


logger = logging.getLogger(__name__)

BITRATES = {96: 2, 160: 0, 320: 1}


class SpotifySessionManager(process.BaseThread, PyspotifySessionManager):
    cache_location = None
    settings_location = None
    appkey_file = os.path.join(os.path.dirname(__file__), 'spotify_appkey.key')
    user_agent = 'Mopidy %s' % versioning.get_version()

    def __init__(self, config, audio, backend_ref):
<commit_msg>Stop using internal get_version() from Mopidy<commit_after>from __future__ import unicode_literals

import logging
import os
import threading

from mopidy import audio, backend
from mopidy.utils import process

from spotify.manager import SpotifySessionManager as PyspotifySessionManager

import mopidy_spotify
from mopidy_spotify import translator
from mopidy_spotify.container_manager import SpotifyContainerManager
from mopidy_spotify.playlist_manager import SpotifyPlaylistManager


logger = logging.getLogger(__name__)

BITRATES = {96: 2, 160: 0, 320: 1}


class SpotifySessionManager(process.BaseThread, PyspotifySessionManager):
    cache_location = None
    settings_location = None
    appkey_file = os.path.join(os.path.dirname(__file__), 'spotify_appkey.key')
    user_agent = 'Mopidy-Spotify %s' % mopidy_spotify.__version__

    def __init__(self, config, audio, backend_ref):

{'fraction_non_alphanumeric': 0.06365740740740741, 'fraction_numerical': 0.01273148148148148, 'mean_word_length': 6.264705882352941, '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': '1059377', 'n_tokens_mistral': 552, 'n_tokens_neox': 518, 'n_words': 138}