<commit_before>class ImageTagBuilder
 
  attr_accessor :image_type
  attr_accessor :source_height, :source_width
  attr_accessor :window_device_pixel_ratio, :window_inner_width, :window_inner_height 

  def max_attribute_width
    800
  end

  def max_attribute_height
    600
  end

  def image_call_width
    attribute_width * window_device_pixel_ratio
  end

  def image_call_height
    attribute_height * window_device_pixel_ratio
  end

  def attribute_width
    if adjust_size(source_width / window_device_pixel_ratio) > max_attribute_width <commit_msg>Made max_attribute_width dynamic based on view port width.<commit_after>class ImageTagBuilder
 
  attr_accessor :image_type
  attr_accessor :source_height, :source_width
  attr_accessor :window_device_pixel_ratio, :window_inner_width, :window_inner_height 

  def max_attribute_width
    if window_inner_width > 900
    	800
    else
    	400
    end
  end

  def max_attribute_height
    600
  end

  def image_call_width
    attribute_width * window_device_pixel_ratio
  end

  def image_call_height
    attribute_height * window_device_pixel_ratio
  end

  def attribute_width
    if adjust_size(source_width / window_device_pixel_ratio) > max_attribute_width 
{'fraction_non_alphanumeric': 0.031096563011456628, 'fraction_numerical': 0.014729950900163666, 'mean_word_length': 4.610091743119266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1672430', 'n_tokens_mistral': 408, 'n_tokens_neox': 377, 'n_words': 83}