<commit_before>class Lalala::Uploaders::Image < CarrierWave::Uploader::Base

  include CarrierWave::MiniMagick
  include Sprockets::Helpers::RailsHelper
  include Sprockets::Helpers::IsolatedHelper

  def store_dir
    if Rails.env.production? or Rails.env.staging?
      "#{model.class.to_s.underscore}/#{model.id}"
    else
      "uploads/#{model.class.to_s.underscore}/#{model.id}"
    end
  end

  def url(*)
    if Rails.env.production? or Rails.env.staging?
      File.join("/store/assets", super)
    else
      super
    end
  end

  def extension_white_list
    %w(jpg jpeg gif png)<commit_msg>Fixed storage path<commit_after>class Lalala::Uploaders::Image < CarrierWave::Uploader::Base

  include CarrierWave::MiniMagick
  include Sprockets::Helpers::RailsHelper
  include Sprockets::Helpers::IsolatedHelper

  def store_dir
    if Rails.env.production? or Rails.env.staging?
      "#{model.class.to_s.underscore}/#{model.id}"
    else
      "uploads/#{model.class.to_s.underscore}/#{model.id}"
    end
  end

  def url(*)
    if Rails.env.production? or Rails.env.staging?
      File.join("/storage/assets", super)
    else
      super
    end
  end

  def extension_white_list
    %w(jpg jpeg gif png)
{'fraction_non_alphanumeric': 0.1236603462489695, 'fraction_numerical': 0.0, 'mean_word_length': 3.546816479400749, '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': '3076528', 'n_tokens_mistral': 441, 'n_tokens_neox': 417, 'n_words': 77}