<commit_before>import os
import subprocess

from fureon import config


class StreamPlayer(object):
    def send_command(self, command, response=None):
        full_command = ['mpc'] + command
        with open(os.devnull, 'w') as null_device:
            proc = subprocess.Popen(full_command, stdout=null_device).wait()
        return response

    def currently_playing(self):
        proc = subprocess.Popen(['mpc'], stdout=subprocess.PIPE)
        line = proc.stdout.readline()
        if line.startswith('volume: n/a'):
            return 'No song is currently playing'
        else:
            return line.decode('utf-8')

    def play(self):
        return self.send_command(['play'], respone='Played player')
<commit_msg>Fix typo<commit_after>import os
import subprocess

from fureon import config


class StreamPlayer(object):
    def send_command(self, command, response=None):
        full_command = ['mpc'] + command
        with open(os.devnull, 'w') as null_device:
            proc = subprocess.Popen(full_command, stdout=null_device).wait()
        return response

    def currently_playing(self):
        proc = subprocess.Popen(['mpc'], stdout=subprocess.PIPE)
        line = proc.stdout.readline()
        if line.startswith('volume: n/a'):
            return 'No song is currently playing'
        else:
            return line.decode('utf-8')

    def play(self):
        return self.send_command(['play'], response='Played player')

{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.0013736263736263737, 'mean_word_length': 2.8957219251336896, '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': '5900655', 'n_tokens_mistral': 430, 'n_tokens_neox': 421, 'n_words': 105}