<commit_before>class DealerInfosController < ApplicationController
  # GET /dealer_infos/new
  # GET /dealer_infos/new.xml
  def new
    @dealer_info = DealerInfo.new
    @dealer_info.start_time = "01-01-0000 09:00".to_time
    @dealer_info.end_time = "01-01-0000 21:00".to_time
    @dealer_info.destination_website = "http://"

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @dealer_info }
    end
  end

  # POST /dealer_infos
  # POST /dealer_infos.xml
  def create
    @dealer_info = DealerInfo.new(params[:dealer_info])

    respond_to do |format|
      if @dealer_info.save
        format.html { redirect_to(:action => 'thank_you', :notice => 'Dealer info was successfully created.') }
        format.xml  { render :xml => @dealer_info, :status => :created, :location => @dealer_info }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @dealer_info.errors, :status => :unprocessable_entity }
      end
    end
  end
end<commit_msg>Fix for dealer info time stamps<commit_after>class DealerInfosController < ApplicationController
  # GET /dealer_infos/new
  # GET /dealer_infos/new.xml
  def new
    @dealer_info = DealerInfo.new
    @dealer_info.start_time = "0001-01-01 09:00".to_time
    @dealer_info.end_time = "0001-01-01 21:00".to_time
    @dealer_info.destination_website = "http://"

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @dealer_info }
    end
  end

  # POST /dealer_infos
  # POST /dealer_infos.xml
  def create
    @dealer_info = DealerInfo.new(params[:dealer_info])

    respond_to do |format|
      if @dealer_info.save
        format.html { redirect_to(:action => 'thank_you', :notice => 'Dealer info was successfully created.') }
        format.xml  { render :xml => @dealer_info, :status => :created, :location => @dealer_info }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @dealer_info.errors, :status => :unprocessable_entity }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1201923076923077, 'fraction_numerical': 0.023076923076923078, 'mean_word_length': 3.0173745173745172, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '3301425', 'n_tokens_mistral': 763, 'n_tokens_neox': 715, 'n_words': 154}