<commit_before>class ProjectsController < ApplicationController

  before_action :set_project, only: [:show, :edit]
  before_action :authenticate_user!, except: :index

  def index
    unless user_signed_in?
      redirect_to about_path
    end
    @projects = Project.matching_user_skills(current_user)
  end<commit_msg>fixes wrong redirect bug<commit_after>class ProjectsController < ApplicationController

  before_action :set_project, only: [:show, :edit]
  before_action :authenticate_user!, except: :index

  def index
    if user_signed_in?
      @projects = Project.matching_user_skills(current_user)
    else
      redirect_to about_path
    end
  end
{'fraction_non_alphanumeric': 0.0696969696969697, 'fraction_numerical': 0.0, 'mean_word_length': 4.747826086956522, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4425239', 'n_tokens_mistral': 206, 'n_tokens_neox': 193, 'n_words': 47}