<commit_before>module Wafflemix
  class Asset < ActiveRecord::Base

    image_accessor :asset

    attr_accessible :asset_name, :asset_mime_type, :asset_uid, :asset_size, :asset_origin, :asset

    attr_accessor :path

    #one convenient method to pass jq_upload the necessary information
    def to_jq_upload
      {
        "name" => read_attribute(:asset_name),
        "size" => asset_size,
        "url" => asset_url,
        "thumbnail_url" => asset.thumb('80x80#').url,
        "delete_url" => Wafflemix::Engine::routes.url_helpers.admin_asset_path(:id => id),
        "delete_type" => "DELETE"
      }
    end
  end
end<commit_msg>Update for jquery 1.9.1<commit_after>module Wafflemix
  class Asset < ActiveRecord::Base

    image_accessor :asset

    attr_accessible :asset_name, :asset_mime_type, :asset_uid, :asset_size, :asset_origin, :asset

    attr_accessor :path

    #one convenient method to pass jq_upload the necessary information
    def to_jq_upload
      {
        :files => [
          {
            :name => read_attribute(:asset_name),
            :size => asset_size,
            :url => asset_url,
            :thumbnail_url => asset.thumb('80x80#').url,
            :delete_url => Wafflemix::Engine::routes.url_helpers.admin_asset_path(:id => id),
            :delete_type => 'DELETE'
          }
        ]
      }
    end

  end
end
{'fraction_non_alphanumeric': 0.1107850330154072, 'fraction_numerical': 0.008070432868672046, 'mean_word_length': 2.696476964769648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3718244', 'n_tokens_mistral': 450, 'n_tokens_neox': 430, 'n_words': 89}