<commit_before>from __future__ import absolute_import, division, print_function, unicode_literals

from cechomesh.AudioPlayer import AudioPlayer

from echomesh.sound import PlayerSetter
from echomesh.util import Log

LOGGER = Log.logger(__name__)

class CPlayer(Runnable):
  def __init__(self, element, level=1, pan=0, loops=1, length=_INF, **kwds):
    super(CPlayer, self).__init__()
    PlayerSetter.evaluated_player(
      self, element, level=level, pan=pan, loops=loops, length=length, **kwds)
    player = AudioPlayer()
    self._on_run = player.run
    self._on_stop = player.stop
    self._on_stop = player.pause
    self.unload = player.unload
<commit_msg>Ooops - correctly construct cechomesh.AudioPlayer<commit_after>from __future__ import absolute_import, division, print_function, unicode_literals

from cechomesh.AudioPlayer import AudioPlayer

from echomesh.sound import PlayerSetter
from echomesh.util import Log

LOGGER = Log.logger(__name__)

class CPlayer(Runnable):
  def __init__(self, element, level=1, pan=0, loops=1, length=_INF, **kwds):
    super(CPlayer, self).__init__()
    PlayerSetter.evaluated_player(
      self, element, level=level, pan=pan, loops=loops, length=length, **kwds)
    player = AudioPlayer(self)
    self._on_run = player.run
    self._on_stop = player.stop
    self._on_stop = player.pause
    self.unload = player.unload

{'fraction_non_alphanumeric': 0.09912536443148688, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 4.995633187772926, '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': '655224', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 105}