<commit_before>class Party
  attr_accessor :name

  def initialize(params)
    @name = params[:name]
  end

  def long_name
    case name
    when "SPK"
      "Speaker"
    when "CWM"
      "Deputy Speaker"
    when "PRES"
      "President"
    when "DPRES"
      "Deputy President"
    else
      name
    end
  end

  # Does this party not have a whip?
  def whipless?
    name == "XB" ||
    name == "Other" ||
    name[0..2] == "Ind" ||
    name == "None" ||
    name == "SPK" ||
    name == "CWM" ||
    name == "DCWM" ||
    name == "PRES" ||
    name == "DPRES"
  end

  # TODO Inline
  def self.long_name(name)
    Party.new(name: name).long_name
  end

  # TODO Inline
  def self.whipless?(party)
    Party.new(name: name).whipless?
  end
end
<commit_msg>Fix typo<commit_after>class Party
  attr_accessor :name

  def initialize(params)
    @name = params[:name]
  end

  def long_name
    case name
    when "SPK"
      "Speaker"
    when "CWM"
      "Deputy Speaker"
    when "PRES"
      "President"
    when "DPRES"
      "Deputy President"
    else
      name
    end
  end

  # Does this party not have a whip?
  def whipless?
    name == "XB" ||
    name == "Other" ||
    name[0..2] == "Ind" ||
    name == "None" ||
    name == "SPK" ||
    name == "CWM" ||
    name == "DCWM" ||
    name == "PRES" ||
    name == "DPRES"
  end

  # TODO Inline
  def self.long_name(name)
    Party.new(name: name).long_name
  end

  # TODO Inline
  def self.whipless?(name)
    Party.new(name: name).whipless?
  end
end

{'fraction_non_alphanumeric': 0.1392904073587385, 'fraction_numerical': 0.002628120893561104, 'mean_word_length': 2.133744855967078, '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': '2533706', 'n_tokens_mistral': 593, 'n_tokens_neox': 570, 'n_words': 149}