<commit_before>- if field.type == "DialogFieldDateControl"
  - if edit
    = datepicker_input_tag("miq_date__#{field.name}", field.value, date_tag_options(field, url, auto_refresh_options))
  - else
    = field.value

- if field.type == "DialogFieldDateTimeControl"
  - date_val = field.refresh_json_value
  - if edit
    = datepicker_input_tag("miq_date__#{field.name}", date_val[:date], date_tag_options(field, url, auto_refresh_options))
  - else
    = date_val[:date]

  &nbsp;at&nbsp;
  - if edit
    = select_tag("start_hour", hour_select_options(date_val[:hour]), time_tag_options(field, url, "hour", auto_refresh_options))
    = ':'
    = select_tag("start_min", minute_select_options(date_val[:min]), time_tag_options(field, url, "min", auto_refresh_options))

  - else
    = "#{date_val[:hour].rjust(2, '0')}:#{date_val[:min].rjust(2, '0')}"
  &nbsp;
  = session[:user_tz]

- if field.dynamic
  - if field.auto_refresh
    - javascript_locals = {:auto_refresh_options     => auto_refresh_options,
                           :refresh_field_parameters => {:type => field.type,
                                                         :name => field.name,
                                                         :id   => field.id}}

    = render(:partial => "shared/dialogs/auto_refresh_javascript", :locals => javascript_locals)
<commit_msg>Fix date/time display on request screen<commit_after>- if field.type == "DialogFieldDateControl"
  - if edit
    = datepicker_input_tag("miq_date__#{field.name}", field.value, date_tag_options(field, url, auto_refresh_options))
  - else
    = field.value

- if field.type == "DialogFieldDateTimeControl"
  - date_val, time_val = field.value.split(" ")
  - hour_val, minute_val = time_val.split(":")
  - if edit
    = datepicker_input_tag("miq_date__#{field.name}", date_val, date_tag_options(field, url, auto_refresh_options))
  - else
    = date_val

  &nbsp;at&nbsp;
  - if edit
    = select_tag("start_hour", hour_select_options(hour_val), time_tag_options(field, url, "hour", auto_refresh_options))
    = ':'
    = select_tag("start_min", minute_select_options(minute_val), time_tag_options(field, url, "min", auto_refresh_options))

  - else
    = "#{hour_val.rjust(2, '0')}:#{minute_val.rjust(2, '0')}"
  &nbsp;
  = session[:user_tz]

- if field.dynamic
  - if field.auto_refresh
    - javascript_locals = {:auto_refresh_options     => auto_refresh_options,
                           :refresh_field_parameters => {:type => field.type,
                                                         :name => field.name,
                                                         :id   => field.id}}

    = render(:partial => "shared/dialogs/auto_refresh_javascript", :locals => javascript_locals)

{'fraction_non_alphanumeric': 0.13697632058287795, 'fraction_numerical': 0.0029143897996357013, 'mean_word_length': 2.9172610556348073, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 17, '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': '7061752', 'n_tokens_mistral': 878, 'n_tokens_neox': 865, 'n_words': 141}