<commit_before>class HomeController < ApplicationController
  http_basic_authenticate_with name: "luedian_guest", password: "<PASSWORD>", only: [:list]
  def index
  end

  def list
    @kids = Kid.order(:group).all
    @count = @kids.count
  end

  def draw
    @name = params[:draw][:name].strip
    @phone = params[:draw][:phone].strip

    if @name.blank? || @phone.blank?
      flash[:alert] = "请检查您的输入信息，系统未找到您的报名信息~ "
      render :index
    end

    @kid = Kid.seek(@name, @phone)
    if @kid.present?<commit_msg>works<commit_after>class HomeController < ApplicationController
  http_basic_authenticate_with name: "luedian_guest", password: "<PASSWORD>", only: [:list]
  def index
  end

  def list
    @kids = Kid.order(:group).all
    @count = @kids.count
  end

  def draw
    @name = params[:draw][:name].strip
    @phone = params[:draw][:phone].strip

    if @name.blank? || @phone.blank?
      flash[:alert] = "请检查您的输入信息，系统未找到您的报名信息~ "
      redirect_to root_path
      return
    end

    @kid = Kid.seek(@name, @phone)
    if @kid.present?
{'fraction_non_alphanumeric': 0.14123222748815165, 'fraction_numerical': 0.0, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6119902', 'n_tokens_mistral': 397, 'n_tokens_neox': 394, 'n_words': 78}