<commit_before>class Image
  
  attr_accessor :call_width, :device_pixel_ratio, :source_width, :source_height

  def attribute_height
    call_height / device_pixel_ratio
  end

  def attribute_width
    call_width / device_pixel_ratio
  end

  def call_height
    source_width * ratio 
  end

  def ratio<commit_msg>Added note about the design philosiphy.<commit_after>class Image

  # The approach is to base everything off the call width. 
  # Even when a height is requested, it's translated into a
  # base call_width so the rest of the math only has
  # to be done in one way.

  attr_accessor :call_width, :device_pixel_ratio, :source_width, :source_height

  def attribute_height
    call_height / device_pixel_ratio
  end

  def attribute_width
    call_width / device_pixel_ratio
  end

  def call_height
    source_width * ratio 
  end

  def ratio
{'fraction_non_alphanumeric': 0.04074505238649592, 'fraction_numerical': 0.0, 'mean_word_length': 3.6486486486486487, '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': '5598060', 'n_tokens_mistral': 272, 'n_tokens_neox': 257, 'n_words': 88}