<commit_before>class SelectListElement < CoreElement
  def self.type
    :select_list
  end

  def assign_element_type
    @element_type = :input
  end

  def value
    assert_active
    watir_element.text
  end

  def fill(data)
    assert_active
    @world.logger.action "Filling [#{@name}] with [#{data}]"
    # manually_clear if @world.configuration["BROWSER"] == "internet_explorer"
    watir_element.select(data)

    begin
      Watir::Wait.until(1){watir_element.text == data}
    rescue
      raise "ERROR: Problem filling element [#{@name}] with [#{data}] value after fill was found as [#{watir_element.value}]"
    end
    @world.ledger.record_fill(@name, data)
  end

  def watir_element
    @watir_element ||= browser.select(@locator_hash)
  end
end<commit_msg>taking out unnecessary method<commit_after>class SelectListElement < CoreElement
  def self.type
    :select_list
  end

  def assign_element_type
    @element_type = :input
  end

  def fill(data)
    assert_active
    @world.logger.action "Filling [#{@name}] with [#{data}]"
    # manually_clear if @world.configuration["BROWSER"] == "internet_explorer"
    watir_element.select(data)

    begin
      Watir::Wait.until(1){watir_element.text == data}
    rescue
      raise "ERROR: Problem filling element [#{@name}] with [#{data}] value after fill was found as [#{watir_element.value}]"
    end
    @world.ledger.record_fill(@name, data)
  end

  def watir_element
    @watir_element ||= browser.select(@locator_hash)
  end
end
{'fraction_non_alphanumeric': 0.11502659574468085, 'fraction_numerical': 0.0013297872340425532, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7362907', 'n_tokens_mistral': 506, 'n_tokens_neox': 489, 'n_words': 115}