<commit_before>module Pecari

  module Player

    def self.launch(video)
      command = "#{Pecari::Env.display} && xterm -e 'xterm -fullscreen -fg black -bg black -e omxplayer -o hdmi #{video}' &"
      fork do
        exec command
      end
    end

    def self.play_pause
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key p`
    end

    def self.quit
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key q`
    end

    def self.increase_volume
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key plus`
    end

    def self.decrease_volume
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key minus`
    end<commit_msg>Rename volume up/down methods<commit_after>module Pecari

  module Player

    def self.launch(video)
      command = "#{Pecari::Env.display} && xterm -e 'xterm -fullscreen -fg black -bg black -e omxplayer -o hdmi #{video}' &"
      fork do
        exec command
      end
    end

    def self.play_pause
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key p`
    end

    def self.quit
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key q`
    end

    def self.volume_up
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key plus`
    end

    def self.volume_down
      `#{Pecari::Env.display} && xdotool windowactivate #{omx_window} && xdotool key minus`
    end
{'fraction_non_alphanumeric': 0.1228646517739816, 'fraction_numerical': 0.0, 'mean_word_length': 2.9354005167958657, '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': '1315978', 'n_tokens_mistral': 531, 'n_tokens_neox': 518, 'n_words': 136}