<commit_before>class ChapterImageUploader < BasePictureUploader

  version :huge do
    process :resize_to_fit => [320, nil]
  end

  version :big, :from_version => :huge do
    process :resize_to_fit => [160, nil]
  end
  
end
<commit_msg>Add medium size for chapter image uploader<commit_after>class ChapterImageUploader < BasePictureUploader

  version :huge do
    process :resize_to_fit => [320, nil]
  end

  version :big, :from_version => :huge do
    process :resize_to_fit => [160, nil]
  end
  
  version :medium, :from_version => :huge do
    process :resize_to_fill => [128, 128]
  end

end

{'fraction_non_alphanumeric': 0.09618573797678276, 'fraction_numerical': 0.029850746268656716, 'mean_word_length': 3.9508196721311477, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '917419', 'n_tokens_mistral': 223, 'n_tokens_neox': 203, 'n_words': 60}