<commit_before>module Eventful
  class Image
    include Resource

    URL_PATTERN = %r{^(https?://.*evcdn\.com/images/)(thumb|small|medium)}

    protected

    def self.deserialize_attributes(attrs = {})
      return attrs unless attrs[:url]
      attrs[:original] = {
        url: attrs[:url].gsub(URL_PATTERN, '\1original')
      }
      attrs
    end
  end
end<commit_msg>Add sizes to image URL pattern<commit_after>module Eventful
  class Image
    include Resource

    URL_PATTERN = %r{^(https?://.*evcdn\.com/images/)(thumb|small|medium|large|block)}

    protected

    def self.deserialize_attributes(attrs = {})
      return attrs unless attrs[:url]
      attrs[:original] = {
        url: attrs[:url].gsub(URL_PATTERN, '\1original')
      }
      attrs
    end
  end
end
{'fraction_non_alphanumeric': 0.13026819923371646, 'fraction_numerical': 0.002554278416347382, 'mean_word_length': 2.92, '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': '1739314', 'n_tokens_mistral': 254, 'n_tokens_neox': 247, 'n_words': 50}