<commit_before>class JQueryUIWidgets::ProgressBar < PageObject::Elements::Div

  def minimum
    minimum = attribute('aria-valuemin')
    minimum = minimum.to_i if minimum
    minimum
  end

  def maximum
    maximum = attribute('aria-valuemax')
    maximum = maximum.to_i if maximum
    maximum
  end

  def current
    current = attribute('aria-valuenow')
    current = current.to_i if current
    current
  end
end<commit_msg>Removed duplication from progress_bar class<commit_after>class JQueryUIWidgets::ProgressBar < PageObject::Elements::Div

  def minimum
    convert_to_number attribute('aria-valuemin')
  end

  def maximum
    convert_to_number attribute('aria-valuemax')
  end

  def current
    convert_to_number attribute('aria-valuenow')
  end

  private
  def convert_to_number(value)
    value = value.to_i if value
    value
  end

end
{'fraction_non_alphanumeric': 0.0738569753810082, 'fraction_numerical': 0.0, 'mean_word_length': 3.797752808988764, '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': '2631537', 'n_tokens_mistral': 269, 'n_tokens_neox': 258, 'n_words': 65}