<commit_before>- render_region :asset_popups do |popups|
  - popups.upload_asset do
    #upload_asset.popup.textured{:style => "display: none; width: 28em"}
      #upload_asset_busy.busy{:style => "display: none"}= image('spinner.gif', :alt => "")
      
      .popup_title= t('assets_extension.upload_asset')
      
      - form_for([:admin, Asset.new], :html => {:method => 'post', :multipart => true, :class => 'upload_asset'}) do |f|
        = hidden_field_tag "for_attachment", 1
        = hidden_field_tag "page_id", @page.id
        
        %p
          = f.label :asset, t("assets_extension.choose_file")
          = f.file_field :asset, :class => 'file'
        
        %p
          = f.label :title, 'Alt-Text or Title <span class="hint">(optional)</span>'
          = f.text_field :title, :class => "textbox big"
        
        .buttons
          = f.submit t("assets_extension.upload"), :class => "button"
          = t('or')<commit_msg>missed a spot to i18n<commit_after>- render_region :asset_popups do |popups|
  - popups.upload_asset do
    #upload_asset.popup.textured{:style => "display: none; width: 28em"}
      #upload_asset_busy.busy{:style => "display: none"}= image('spinner.gif', :alt => "")
      
      .popup_title= t('assets_extension.upload_asset')
      
      - form_for([:admin, Asset.new], :html => {:method => 'post', :multipart => true, :class => 'upload_asset'}) do |f|
        = hidden_field_tag "for_attachment", 1
        = hidden_field_tag "page_id", @page.id
        
        %p
          = f.label :asset, t("assets_extension.choose_file")
          = f.file_field :asset, :class => 'file'
        
        %p
          = f.label :title, t("assets_extension.alt_text_or_title")
          = f.text_field :title, :class => "textbox big"
        
        .buttons
          = f.submit t("assets_extension.upload"), :class => "button"
          = t('or')
{'fraction_non_alphanumeric': 0.16130732735898787, 'fraction_numerical': 0.004217185028993147, 'mean_word_length': 2.5148148148148146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2757421', 'n_tokens_mistral': 638, 'n_tokens_neox': 622, 'n_words': 125}