<commit_before># frozen_string_literal: true

class SiteFigureUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick

  def store_dir
    'uploads' \
      "/#{model.class.to_s.underscore}" \
      "/#{mounted_as}/#{model.id}"
  end

  def default_url(*)
    ActionController::Base
      .helpers
      .asset_path('about/about-img.jpg')
  end

  process resize_to_fill: [570, 360]

  def extension_whitelist
    %w[png]
  end

  def filename
    'about.png' if original_filename
  end
end<commit_msg>Fix site figure file extension constraint incorrect<commit_after># frozen_string_literal: true

class SiteFigureUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick

  def store_dir
    'uploads' \
      "/#{model.class.to_s.underscore}" \
      "/#{mounted_as}/#{model.id}"
  end

  def default_url(*)
    ActionController::Base
      .helpers
      .asset_path('about/about-img.jpg')
  end

  process resize_to_fill: [570, 360]

  def extension_whitelist
    %w[png jpg jpeg]
  end

  def filename
    'about.png' if original_filename
  end
end
{'fraction_non_alphanumeric': 0.11059907834101383, 'fraction_numerical': 0.011059907834101382, 'mean_word_length': 3.4326530612244897, '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': '3207635', 'n_tokens_mistral': 393, 'n_tokens_neox': 368, 'n_words': 77}