<commit_before>module CardsLib
  class Ranker
    include Comparable
    attr :rank, :ranks, :rank_lookup
    def initialize(
        rank = nil,
        ranks: "A23456789TJQK".split(''),
        rank_lookup: ->rank_face{
          @ranks.index(rank_face).to_i + 1
        })
      @rank = rank
      @ranks = ranks
      @rank_lookup = rank_lookup
    end

    def <=>(item)
      @rank_lookup[self.rank] <=> @rank_lookup[item.rank]
    end

    def inspect
      @rank
    end

    def sequential(item)
      (@rank_lookup[self.rank] - @rank_lookup[item.rank]).abs == 1
    end
  end
end<commit_msg>Removed unused inspect method<commit_after>module CardsLib
  class Ranker
    include Comparable
    attr :rank, :ranks, :rank_lookup
    def initialize(
        rank = nil,
        ranks: "A23456789TJQK".split(''),
        rank_lookup: ->rank_face{
          @ranks.index(rank_face).to_i + 1
        })
      @rank = rank
      @ranks = ranks
      @rank_lookup = rank_lookup
    end

    def <=>(item)
      @rank_lookup[self.rank] <=> @rank_lookup[item.rank]
    end

    def sequential(item)
      (@rank_lookup[self.rank] - @rank_lookup[item.rank]).abs == 1
    end
  end
end
{'fraction_non_alphanumeric': 0.11939034716342083, 'fraction_numerical': 0.01693480101608806, 'mean_word_length': 2.2924791086350975, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '320277', 'n_tokens_mistral': 421, 'n_tokens_neox': 399, 'n_words': 86}