<commit_before>- i = params[:detail_index]
- url = url_for(:action => 'cb_rate_form_field_changed', :id => "#{@sb[:rate].id || "new"}")
- n = @sb[:num_tiers][i.to_i]
- n = params[:tier_row] if params[:tier_row]

%tr.rdetail{:id => "rate_detail_row_#{i}_#{n - 1}"}
  %td
    = text_field_tag("start_#{i}_#{n - 1}",  @edit[:new][:tiers][i.to_i][n - 1][:start],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td
    = text_field_tag("end_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:end],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td{:align => 'right'}
    = text_field_tag("fixed_rate_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:fixed_rate],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td{:align => 'right'}
    = text_field_tag("variable_rate_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:variable_rate],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td.action
    = button_tag(_("Delete"),
                 :class   => "btn btn-default",
                 :alt     => t = _("Remove the tier"),
                 :title   => t,
                 :onclick => "miqAjaxButton('#{url_for(:action => "cb_tier_remove",
                                                       :index  => i + "-#{n - 1}",
                                                       :button => "remove")}');")<commit_msg>Add fadein-fadeout effect to the action of adding tier (transferred from ManageIQ/manageiq@a43c665c7314fd6539653451793d6c96f356c1f0)<commit_after>- i = params[:detail_index]
- url = url_for(:action => 'cb_rate_form_field_changed', :id => "#{@sb[:rate].id || "new"}")
- n = @sb[:num_tiers][i.to_i]
- n = params[:tier_row] if params[:tier_row]

%tr.rdetail.new_tier{:id => "rate_detail_row_#{i}_#{n - 1}"}
  %td
    = text_field_tag("start_#{i}_#{n - 1}",  @edit[:new][:tiers][i.to_i][n - 1][:start],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td
    = text_field_tag("end_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:end],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td{:align => 'right'}
    = text_field_tag("fixed_rate_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:fixed_rate],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td{:align => 'right'}
    = text_field_tag("variable_rate_#{i}_#{n - 1}", @edit[:new][:tiers][i.to_i][n - 1][:variable_rate],
      :maxlength => MAX_NAME_LEN, "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
  %td.action
    = button_tag(_("Delete"),
                 :class   => "btn btn-default",
                 :alt     => t = _("Remove the tier"),
                 :title   => t,
                 :onclick => "miqAjaxButton('#{url_for(:action => "cb_tier_remove",
                                                       :index  => i + "-#{n - 1}",
                                                       :button => "remove")}');")
  :javascript
    $(document).ready(function () {
        $('.new_tier').fadeIn().fadeOut().fadeIn().fadeOut().fadeIn().fadeOut().fadeIn();
        $('.new_tier').addClass('new_tier_off').removeClass('new_tier');
    });
{'fraction_non_alphanumeric': 0.23072412782175314, 'fraction_numerical': 0.017003811199061858, 'mean_word_length': 2.7911111111111113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 59, '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': '6796675', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1276, 'n_words': 192}