<commit_before>module RpgTools
  class Coin
    attr_accessor :value, :flips, :heads, :tails

    def initialize
      @value = nil
      @flips = 0
      @heads = 0
      @tails = 0
    end

    def flip
      @flips += 1
      @heads += 1 if @value == 'Heads'
      @tails += 1 if @value == 'Tails'
      @value = rand(2) == 1 ? 'Heads' : 'Tails'
    end
  end
end<commit_msg>fixed a bug on coin flip method<commit_after>module RpgTools
  class Coin
    attr_accessor :value, :flips, :heads, :tails

    def initialize
      @value = nil
      @flips = 0
      @heads = 0
      @tails = 0
    end

    def flip
      @flips += 1
      @value = rand(2) == 1 ? 'Heads' : 'Tails'
      @heads += 1 if @value == 'Heads'
      @tails += 1 if @value == 'Tails'
      @value
    end
  end
end
{'fraction_non_alphanumeric': 0.12579415501905972, 'fraction_numerical': 0.020330368487928845, 'mean_word_length': 1.9185185185185185, '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': '6679602', 'n_tokens_mistral': 305, 'n_tokens_neox': 278, 'n_words': 90}