<commit_before>module Anyplayer
  class Player

    # Guess the player name
    def name
      self.class.to_s.gsub(/^.*::/, '')
    end

    # Method for voting to skip song
    def vote
      self.next
    end

    # Methods to override
    def launched?; false; end
    def playpause; end
    def next; end
    def prev; end
    def voldown; end
    def volup; end
    def volume; end
    def track; end
    def artist; end
    def album; end
<commit_msg>increment votes and skip as necessary<commit_after>module Anyplayer
  class Player
    @votes = 0

    # Guess the player name
    def name
      self.class.to_s.gsub(/^.*::/, '')
    end

    # Method for voting to skip song
    def vote(VOTES_TO_SKIP = 5)
      @votes += 1
      if @votes >= VOTES_TO_SKIP
        self.next
        @votes = 0
      end
    end

    # Methods to override
    def launched?; false; end
    def playpause; end
    def next; end
    def prev; end
    def voldown; end
    def volup; end
    def volume; end
    def track; end
    def artist; end
    def album; end

{'fraction_non_alphanumeric': 0.07670454545454546, 'fraction_numerical': 0.003787878787878788, 'mean_word_length': 1.952513966480447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6851687', 'n_tokens_mistral': 354, 'n_tokens_neox': 343, 'n_words': 128}