<commit_before><%= javascript_include_tag 'calendar_date_select/calendar_date_select' %>
<%= stylesheet_link_tag 'calendar_date_select/default' %>
<%
   if f ||= nil
     resource_type ||= f.object.class.name
     existing_attributions ||= try_block{f.object.attributions_objects.select &:can_view?}
	 existing_creators ||= f.object.try(:creators) | [current_user.person]
	 other_creators ||= f.object.try :other_creators
	 related_publications ||= try_block { f.object.related_publications }
   end
   existing_attributions||=[]
   existing_creators||=[current_user.person]
   related_publications||=[]
   other_creators||=nil
   show_publications=true if show_publications.nil?
   taggable = resource_type.constantize.respond_to?("is_taggable?") && resource_type.constantize.is_taggable?
   sharing_enable=true if sharing_enable.nil?
   attribution_enable=true if attribution_enable.nil?
   creators_enable=true if creators_enable.nil?
%>
<% if sharing_enable -%>
    <p>
      <%= render :partial => "assets/sharing_form" -%>
    </p>
<% end -%>

<% if taggable -%>
    <p>
      <%= render :partial=>"assets/select_tags" -%>
    </p>
<% end -%>
<% if attribution_enable %>
    <p>
      <%= render :partial => "assets/attribution_form", :locals => {:resource_type => resource_type, # this is only for presentation, not for any processing
                                                                    :existing_attributions => existing_attributions,
                                                                    :attribution_suggestions => resource_type.constantize.get_all_as_json(current_user) }   -%>
    </p>
<% end %><commit_msg>correct bug fixing :default creator is uploader<commit_after><%= javascript_include_tag 'calendar_date_select/calendar_date_select' %>
<%= stylesheet_link_tag 'calendar_date_select/default' %>
<%
   if f ||= nil
     resource_type ||= f.object.class.name
     existing_attributions ||= try_block{f.object.attributions_objects.select &:can_view?}
	 existing_creators ||= f.object.try(:creators)
     existing_creators =  [current_user.person] if existing_creators.blank?
	 other_creators ||= f.object.try :other_creators
	 related_publications ||= try_block { f.object.related_publications }
   end
   existing_attributions||=[]
   existing_creators||=[current_user.person]
   related_publications||=[]
   other_creators||=nil
   show_publications=true if show_publications.nil?
   taggable = resource_type.constantize.respond_to?("is_taggable?") && resource_type.constantize.is_taggable?
   sharing_enable=true if sharing_enable.nil?
   attribution_enable=true if attribution_enable.nil?
   creators_enable=true if creators_enable.nil?
%>
<% if sharing_enable -%>
    <p>
      <%= render :partial => "assets/sharing_form" -%>
    </p>
<% end -%>

<% if taggable -%>
    <p>
      <%= render :partial=>"assets/select_tags" -%>
    </p>
<% end -%>
<% if attribution_enable %>
    <p>
      <%= render :partial => "assets/attribution_form", :locals => {:resource_type => resource_type, # this is only for presentation, not for any processing
                                                                    :existing_attributions => existing_attributions,
                                                                    :attribution_suggestions => resource_type.constantize.get_all_as_json(current_user) }   -%>
    </p>
<% end %>
{'fraction_non_alphanumeric': 0.1279550827423168, 'fraction_numerical': 0.0, 'mean_word_length': 3.236545682102628, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '967428', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1021, 'n_words': 171}