<commit_before><%= dialog_tag('Select Template and Asset Type', {:icon => 'fa fa-upload', :class => "header-part"}) do %>	
	<%= simple_form_for(:template_proxy, :url => create_template_uploads_url, :method => "post", :html => {:id => 'template_form', :class => 'form-horizontal'}, :wrapper => :horizontal_form, :wrapper_mappings => {:check_boxes => :horizontal_radio_and_checkboxes}) do |f| %>
		<%= f.input :file_content_type_id, :collection => FileContentType.all, :include_blank => false, :label => "File Content Type" %>
		<div id="asset_type_input">	
			<%= f.input :asset_type, :collection => @asset_types, :label => "Asset Type" %>	
		</div>
		<div>
			<%= f.button :submit, 'Download Template', :class => 'btn btn-primary' %>
		</div>			
	<% end %>
<% end %>

<script type="text/javascript">

	$(document).ready(function() {
		// Hide the asset type div when the page is loaded
		$('#asset_type_input').hide();
		
		// Install a change handler to unhide the div if the user selects other than
		// the new inventory selector
		$('#template_proxy_file_content_type_id').change(function() {
			var val = this.value;
			if (val == 1) {<commit_msg>Force user to select an asset type when downloading templates [fixes #76541870]<commit_after><%= dialog_tag('Select Template and Asset Type', {:icon => 'fa fa-upload', :class => "header-part"}) do %>	
	<%= simple_form_for(:template_proxy, :url => create_template_uploads_url, :method => "post", :html => {:id => 'template_form', :class => 'form-horizontal'}, :wrapper => :horizontal_form, :wrapper_mappings => {:check_boxes => :horizontal_radio_and_checkboxes}) do |f| %>
		<%= f.input :file_content_type_id, :collection => FileContentType.all, :include_blank => false, :label => "File Content Type" %>
		<div id="asset_type_input">	
			<%= f.input :asset_type, :collection => @asset_types, :label => "Asset Type", :include_blank => false %>	
		</div>
		<div>
			<%= f.button :submit, 'Download Template', :class => 'btn btn-primary' %>
		</div>			
	<% end %>
<% end %>

<script type="text/javascript">

	$(document).ready(function() {
		// Hide the asset type div when the page is loaded
		$('#asset_type_input').hide();
		
		// Install a change handler to unhide the div if the user selects other than
		// the new inventory selector
		$('#template_proxy_file_content_type_id').change(function() {
			var val = this.value;
			if (val == 1) {
{'fraction_non_alphanumeric': 0.17661795407098121, 'fraction_numerical': 0.0041753653444676405, 'mean_word_length': 4.718377088305489, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '357664', 'n_tokens_mistral': 847, 'n_tokens_neox': 751, 'n_words': 211}