<commit_before>module Cms::UsersHelper
  def format_date(date)
    if date.nil?
      '--'
    else
      date.strftime('%b %d, %Y')
    end
  end

  def complete_sales_stage_link(stage)
    link_to(
      'Mark Complete',
      complete_sales_stage_cms_user_path(sales_stage_id: stage.id),
      method: :post
    )
  end

  def action_column(stage)<commit_msg>Add confirmation alert when marking stage complete<commit_after>module Cms::UsersHelper
  def format_date(date)
    if date.nil?
      '--'
    else
      date.strftime('%b %d, %Y')
    end
  end

  def complete_sales_stage_link(stage)
    link_to(
      'Mark Complete',
      complete_sales_stage_cms_user_path(sales_stage_id: stage.id),
      { method: :post, data: { confirm: 'Mark stage as completed?' } }
    )
  end

  def action_column(stage)
{'fraction_non_alphanumeric': 0.10591133004926108, 'fraction_numerical': 0.0, 'mean_word_length': 3.044776119402985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6320889', 'n_tokens_mistral': 295, 'n_tokens_neox': 278, 'n_words': 59}