<commit_before>%td
  - tier_val = (@edit[:new][:tiers][detail_index][row_within_rate][:start].to_s.eql? 'Infinity') ? '' : @edit[:new][:tiers][detail_index][row_within_rate][:start]
  = text_field_tag("start_#{detail_index}_#{row_within_rate}", tier_val,
    :maxlength => MAX_NAME_LEN, :placeholder => _('Infinity'), "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%td
  - tier_val = (@edit[:new][:tiers][detail_index][row_within_rate][:finish].to_s.eql? 'Infinity') ? '' : @edit[:new][:tiers][detail_index][row_within_rate][:finish]
  = text_field_tag("finish_#{detail_index}_#{row_within_rate}", tier_val,
    :maxlength => MAX_NAME_LEN, :placeholder => _('Infinity'), "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%td{:align => 'right'}
  = text_field_tag("fixed_rate_#{detail_index}_#{row_within_rate}", @edit[:new][:tiers][detail_index][row_within_rate][:fixed_rate],
    :maxlength => MAX_NAME_LEN, 'data-miq_observe' => {:interval => '.5', :url => url}.to_json)
%td{:align => 'right'}
  = text_field_tag("variable_rate_#{detail_index}_#{row_within_rate}", @edit[:new][:tiers][detail_index][row_within_rate][:variable_rate],
    :maxlength => MAX_NAME_LEN, 'data-miq_observe' => {:interval => '.5', :url => url}.to_json)<commit_msg>Refactor: Extract variable: tier (transferred from ManageIQ/manageiq@6c12b3efe382314d935d3e9fb7e35c64d15c138c)<commit_after>- tier = @edit[:new][:tiers][detail_index][row_within_rate]
%td
  - tier_val = (tier[:start].to_s.eql? 'Infinity') ? '' : tier[:start]
  = text_field_tag("start_#{detail_index}_#{row_within_rate}", tier_val,
    :maxlength => MAX_NAME_LEN, :placeholder => _('Infinity'), "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%td
  - tier_val = (tier[:finish].to_s.eql? 'Infinity') ? '' : tier[:finish]
  = text_field_tag("finish_#{detail_index}_#{row_within_rate}", tier_val,
    :maxlength => MAX_NAME_LEN, :placeholder => _('Infinity'), "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%td{:align => 'right'}
  = text_field_tag("fixed_rate_#{detail_index}_#{row_within_rate}", tier[:fixed_rate],
    :maxlength => MAX_NAME_LEN, 'data-miq_observe' => {:interval => '.5', :url => url}.to_json)
%td{:align => 'right'}
  = text_field_tag("variable_rate_#{detail_index}_#{row_within_rate}", tier[:variable_rate],
    :maxlength => MAX_NAME_LEN, 'data-miq_observe' => {:interval => '.5', :url => url}.to_json)
{'fraction_non_alphanumeric': 0.21714050267820353, 'fraction_numerical': 0.013597033374536464, 'mean_word_length': 7.702508960573477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '3828097', 'n_tokens_mistral': 958, 'n_tokens_neox': 934, 'n_words': 116}