<commit_before>class Brocade_config_fixture

  attr_accessor :brocade_config, :provider

  def initialize
    @brocade_config = get_brocade_config	
	@provider = brocade_config.provider	
  end
  
  private 
  def  get_brocade_config
    Puppet::Type.type(:brocade_config).new(
    :configname => 'DemoConfig',
    :ensure => 'present',
    :member_zone => 'DemoZone',
	:configstate => 'disable',
    )
  end
  
  public
  def get_config_name
    brocade_config[:configname]
  end
  
  def set_configstate_enable
    brocade_config[:configstate] = 'enable'
  end
  
end<commit_msg>Added a method to set ensure as absent.<commit_after>class Brocade_config_fixture

  attr_accessor :brocade_config, :provider

  def initialize
    @brocade_config = get_brocade_config	
	@provider = brocade_config.provider	
  end
  
  private 
  def  get_brocade_config
    Puppet::Type.type(:brocade_config).new(
    :configname => 'DemoConfig',
    :ensure => 'present',
    :member_zone => 'DemoZone',
	:configstate => 'disable',
    )
  end
  
  public
  def get_config_name
    brocade_config[:configname]
  end
  
  def set_configstate_enable
    brocade_config[:configstate] = 'enable'
  end
  
  def set_config_ensure_absent
    brocade_config[:ensure] = 'absent'
  end
end
{'fraction_non_alphanumeric': 0.08968253968253968, 'fraction_numerical': 0.0, 'mean_word_length': 3.79467680608365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4047140', 'n_tokens_mistral': 465, 'n_tokens_neox': 454, 'n_words': 83}