<commit_before>class TasksController < ApplicationController
  respond_to :html, :json

  def index
    @all_tasks = Task.all
    p '#'*100
    p params
  end

  def show
    @task = Task.find(params[:id])
    p "?"*100
    if params["position_in_time"]
      @status = @task.statuses[params["position_in_time"].to_i]
      # respond_to do |format|
      # #   format.html { redirect_to @task}
      #   format.json { render json: @status }
      # end
      respond_with( @status )
    else
      @all_task_events = @task.statuses.length.to_s
      respond_with(@task)#{"num_of_all_task_events" => @all_task_events})
      # respond_to do |format|
      #   format.json { render json: {"num_of_all_task_events" => @all_task_events} }
      # end
    end

  end

  def create
  end

  def destroy
  end

  def edit
  end
end<commit_msg>Cleaned unused code and added comments<commit_after>class TasksController < ApplicationController
  # so that #respond_with can be used (gem 'responders' is needed)
  respond_to :html, :json

  def index
    @all_tasks = Task.all
  end

  def show
    @task = Task.find(params[:id])
    if params["position_in_time"]
      @status = @task.statuses[params["position_in_time"].to_i]
      respond_with( @status )
    else
      @all_task_events = @task.statuses.length.to_s
      respond_with(@task)
    end

  end

  def create
  end

  def destroy
  end

  def edit
  end
end
{'fraction_non_alphanumeric': 0.10276399716513111, 'fraction_numerical': 0.004252303330970942, 'mean_word_length': 2.8579234972677594, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4992842', 'n_tokens_mistral': 493, 'n_tokens_neox': 477, 'n_words': 115}