<commit_before>class RestCore::MadMimi::AudienceList
  attr_reader :client
  attr_reader :id, :name, :display_name, :subscriber_count

  def initialize(client, values = {})
    @client = client
    values.each do |key, value|
      instance_variable_set("@#{key}", value)
    end
  end

  def mailer(options = {})
    @client.mailer_to_list(@name, options)
  end

  def name=(new_name)
    client.rename_audience_list(name, new_name)
    @name = new_name
  end

  def destroy
    client.destroy_audience_list(self.name)
  end

  def add_member(email)
    client.add_member_to_audience_list(self.name, email)
  end

  def remove_member(email)<commit_msg>always uses self.name<commit_after>class RestCore::MadMimi::AudienceList
  attr_reader :client
  attr_reader :id, :name, :display_name, :subscriber_count

  def initialize(client, values = {})
    @client = client
    values.each do |key, value|
      instance_variable_set("@#{key}", value)
    end
  end

  def mailer(options = {})
    @client.mailer_to_list(self.name, options)
  end

  def name=(new_name)
    client.rename_audience_list(self.name, new_name)
    @name = new_name
  end

  def destroy
    client.destroy_audience_list(self.name)
  end

  def add_member(email)
    client.add_member_to_audience_list(self.name, email)
  end

  def remove_member(email)
{'fraction_non_alphanumeric': 0.10582010582010581, 'fraction_numerical': 0.0, 'mean_word_length': 4.092307692307692, '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': '6193707', 'n_tokens_mistral': 467, 'n_tokens_neox': 461, 'n_words': 91}