<commit_before><%# wf					The workflow object currently in use %>
<%# dialog			The name (symbol) of the selected dialog %>

<% current_tab = @edit && @edit[:new] ? @edit[:new][:current_tab_key] : @options[:current_tab_key] %>
<% prefix = "/miq_request/" %>
<br/>

<% if dialog == current_tab %>
	<% case current_tab %>
	<% when :requester %>
		<% keys = [:owner_email, :owner_first_name, :owner_last_name, :owner_address, :owner_city, :owner_state, :owner_zip, :owner_country, :owner_title, :owner_company, :owner_department, :owner_office, :owner_phone, :owner_phone_mobile, :request_notes] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Request Information", :prefix=>prefix, :keys=>keys}) %>

		<% keys = [:owner_manager, :owner_manager_mail, :owner_manager_mail] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Manager", :prefix=>prefix, :keys=>keys}) %>
	<% when :purpose %>
		<% keys = [:vm_tags] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Select Tags to apply", :prefix=>prefix, :keys=>keys, :table_class=>"tagstable", :extra_table_attributes=>"cellspacing=1"}) %>
	<% when :service %>
		<% keys = wf.kind_of?(MiqProvisionRedhatWorkflow) ? [:src_vm_id, :provision_type, :linked_clone] : [:vm_filter, :src_vm_id, :provision_type, :linked_clone, :snapshot] %>
    <% label = wf.kind_of?(MiqProvisionRedhatWorkflow) ? "Selected VM" : "Select" %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% if wf.supports_pxe? %>
      <% keys = [:pxe_server_id, :pxe_image_id, :windows_image_id] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"PXE", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% end %>
    <% if wf.supports_iso? %>
      <% keys = [:iso_image_id] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"ISO", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% end %>

    <% keys = [:number_of_vms] %>
    <% label = wf.kind_of?(MiqProvisionCloudWorkflow) ? "Number of Instances" : "Number of VMs" %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys}) %>

		<% keys = [:vm_name, :vm_description, :vm_prefix] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Naming", :prefix=>prefix, :keys=>keys}) %>
	<% when :environment %>
		<% keys = [:placement_auto] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Placement", :prefix=>prefix, :keys=>keys}) %>

		<% if (@edit && @edit[:new] && @edit[:new][:placement_auto] && !@edit[:new][:placement_auto][0]) || (@options && !@options[:placement_auto][0]) %>
      <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:placement_dc_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datacenter", :prefix=>prefix, :keys=>keys}) %>

        <% keys = [:cluster_filter, :placement_cluster_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Cluster", :prefix=>prefix, :keys=>keys}) %>
      <% end %>
      <% if wf.kind_of?(MiqProvisionVmwareWorkflow) %>
			  <% keys = [:rp_filter, :placement_rp_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Resource Pool", :prefix=>prefix, :keys=>keys}) %>

        <% keys = [:placement_folder_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Folder", :prefix=>prefix, :keys=>keys}) %>
      <% end %>

      <% keys = [:host_filter, :placement_host_name] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Host", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>

      <% if wf.kind_of?(MiqProvisionVmwareWorkflow) %>
        <% keys = [:new_datastore_create, :new_datastore_storage_controller, :new_datastore_fs_type, :new_datastore_size, :new_datastore_name, :new_datastore_aggregate, :new_datastore_volume, :new_datastore_thin_provision, :new_datastore_autogrow, :new_datastore_grow_increment, :new_datastore_max_size] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datastore", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>

      <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:ds_filter, :placement_ds_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datastore", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>
      <% if wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:cloud_tenant, :availability_zone_filter, :placement_availability_zone, :cloud_network, :cloud_subnet, :security_groups, :floating_ip_address] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Placement - Options", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>
		<% end %>
	<% when :vdi %>
		<% keys = [:vdi_enabled, :vdi_farm, :vdi_desktop_pool_create, :vdi_desktop_pool, :vdi_new_desktop_pool_name, :vdi_new_desktop_pool_assignment, :vdi_desktop_pool_user_list] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VDI", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
	<% when :hardware %>
    <% keys = [:instance_type, :number_of_cpus, :number_of_sockets, :cores_per_socket, :vm_memory, :network_adapters, :disk_format, :guest_access_key_pair, :monitoring] %>
    <% label = wf.kind_of?(MiqProvisionCloudWorkflow) ? "Properties" : "Hardware" %>
    <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys}) %>
    <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
      <% keys = [:cpu_limit, :memory_limit] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VM Limits", :prefix=>prefix, :keys=>keys}) %>

      <% keys = [:cpu_reserve, :memory_reserve] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VM Reservations", :prefix=>prefix, :keys=>keys}) %>
    <% else %>
	  <%= render(:partial => "#{prefix}prov_dialog_cloud_quota", :locals => {:workflow => wf, :dialog => dialog, :prefix => prefix, :keys => keys}) %>
    <% end %>
	<% when :network %>
		<% keys = [:vlan, :mac_address] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Network Adapter Information", :prefix=>prefix, :keys=>keys}) %><commit_msg>Fix amazon provisioning by hiding cloud quota<commit_after><%# wf					The workflow object currently in use %>
<%# dialog			The name (symbol) of the selected dialog %>

<% current_tab = @edit && @edit[:new] ? @edit[:new][:current_tab_key] : @options[:current_tab_key] %>
<% prefix = "/miq_request/" %>
<br/>

<% if dialog == current_tab %>
	<% case current_tab %>
	<% when :requester %>
		<% keys = [:owner_email, :owner_first_name, :owner_last_name, :owner_address, :owner_city, :owner_state, :owner_zip, :owner_country, :owner_title, :owner_company, :owner_department, :owner_office, :owner_phone, :owner_phone_mobile, :request_notes] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Request Information", :prefix=>prefix, :keys=>keys}) %>

		<% keys = [:owner_manager, :owner_manager_mail, :owner_manager_mail] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Manager", :prefix=>prefix, :keys=>keys}) %>
	<% when :purpose %>
		<% keys = [:vm_tags] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Select Tags to apply", :prefix=>prefix, :keys=>keys, :table_class=>"tagstable", :extra_table_attributes=>"cellspacing=1"}) %>
	<% when :service %>
		<% keys = wf.kind_of?(MiqProvisionRedhatWorkflow) ? [:src_vm_id, :provision_type, :linked_clone] : [:vm_filter, :src_vm_id, :provision_type, :linked_clone, :snapshot] %>
    <% label = wf.kind_of?(MiqProvisionRedhatWorkflow) ? "Selected VM" : "Select" %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% if wf.supports_pxe? %>
      <% keys = [:pxe_server_id, :pxe_image_id, :windows_image_id] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"PXE", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% end %>
    <% if wf.supports_iso? %>
      <% keys = [:iso_image_id] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"ISO", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
    <% end %>

    <% keys = [:number_of_vms] %>
    <% label = wf.kind_of?(MiqProvisionCloudWorkflow) ? "Number of Instances" : "Number of VMs" %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys}) %>

		<% keys = [:vm_name, :vm_description, :vm_prefix] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Naming", :prefix=>prefix, :keys=>keys}) %>
	<% when :environment %>
		<% keys = [:placement_auto] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Placement", :prefix=>prefix, :keys=>keys}) %>

		<% if (@edit && @edit[:new] && @edit[:new][:placement_auto] && !@edit[:new][:placement_auto][0]) || (@options && !@options[:placement_auto][0]) %>
      <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:placement_dc_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datacenter", :prefix=>prefix, :keys=>keys}) %>

        <% keys = [:cluster_filter, :placement_cluster_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Cluster", :prefix=>prefix, :keys=>keys}) %>
      <% end %>
      <% if wf.kind_of?(MiqProvisionVmwareWorkflow) %>
			  <% keys = [:rp_filter, :placement_rp_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Resource Pool", :prefix=>prefix, :keys=>keys}) %>

        <% keys = [:placement_folder_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Folder", :prefix=>prefix, :keys=>keys}) %>
      <% end %>

      <% keys = [:host_filter, :placement_host_name] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Host", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>

      <% if wf.kind_of?(MiqProvisionVmwareWorkflow) %>
        <% keys = [:new_datastore_create, :new_datastore_storage_controller, :new_datastore_fs_type, :new_datastore_size, :new_datastore_name, :new_datastore_aggregate, :new_datastore_volume, :new_datastore_thin_provision, :new_datastore_autogrow, :new_datastore_grow_increment, :new_datastore_max_size] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datastore", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>

      <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:ds_filter, :placement_ds_name] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Datastore", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>
      <% if wf.kind_of?(MiqProvisionCloudWorkflow) %>
        <% keys = [:cloud_tenant, :availability_zone_filter, :placement_availability_zone, :cloud_network, :cloud_subnet, :security_groups, :floating_ip_address] %>
        <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Placement - Options", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
      <% end %>
		<% end %>
	<% when :vdi %>
		<% keys = [:vdi_enabled, :vdi_farm, :vdi_desktop_pool_create, :vdi_desktop_pool, :vdi_new_desktop_pool_name, :vdi_new_desktop_pool_assignment, :vdi_desktop_pool_user_list] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VDI", :prefix=>prefix, :keys=>keys, :extra_table_attributes=>"width=100%"}) %>
	<% when :hardware %>
    <% keys = [:instance_type, :number_of_cpus, :number_of_sockets, :cores_per_socket, :vm_memory, :network_adapters, :disk_format, :guest_access_key_pair, :monitoring] %>
    <% label = wf.kind_of?(MiqProvisionCloudWorkflow) ? "Properties" : "Hardware" %>
    <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>label, :prefix=>prefix, :keys=>keys}) %>
    <% if !wf.kind_of?(MiqProvisionCloudWorkflow) %>
      <% keys = [:cpu_limit, :memory_limit] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VM Limits", :prefix=>prefix, :keys=>keys}) %>

      <% keys = [:cpu_reserve, :memory_reserve] %>
      <%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"VM Reservations", :prefix=>prefix, :keys=>keys}) %>
    <% end %>
    <% if wf.kind_of?(MiqProvisionOpenstackWorkflow) %>
      <%= render(:partial => "#{prefix}prov_dialog_cloud_quota", :locals => {:workflow => wf, :dialog => dialog, :prefix => prefix, :keys => keys}) %>
    <% end %>
	<% when :network %>
		<% keys = [:vlan, :mac_address] %>
		<%= render(:partial=>"#{prefix}prov_dialog_fieldset", :locals=>{:workflow=>wf, :dialog=>dialog, :label=>"Network Adapter Information", :prefix=>prefix, :keys=>keys}) %>
{'fraction_non_alphanumeric': 0.2193099759293929, 'fraction_numerical': 0.0036105910671302486, 'mean_word_length': 6.89287598944591, 'pattern_counts': {'":': 0, '<': 166, '<?xml version=': 0, '>': 506, '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': '6639987', 'n_tokens_mistral': 5779, 'n_tokens_neox': 5318, 'n_words': 738}