<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3.  See
-#   the COPYRIGHT file.


:javascript
  function createUploader(){            
    var uploader = new qq.FileUploader({
        element: document.getElementById('file-upload'),
        params: {'album_id' : "#{@album.id}"},
        allowedExtensions: ['jpg', 'jpeg', 'png'],
        action: "#{photos_path}"
    });           
  }
  window.onload = createUploader;      

#file-upload<commit_msg>adding gif support<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3.  See
-#   the COPYRIGHT file.


:javascript
  function createUploader(){            
    var uploader = new qq.FileUploader({
        element: document.getElementById('file-upload'),
        params: {'album_id' : "#{@album.id}"},
        allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'],
        action: "#{photos_path}"
    });           
  }
  window.onload = createUploader;      

#file-upload
{'fraction_non_alphanumeric': 0.13585951940850277, 'fraction_numerical': 0.009242144177449169, 'mean_word_length': 2.634228187919463, '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': '2208480', 'n_tokens_mistral': 337, 'n_tokens_neox': 318, 'n_words': 88}