<commit_before>class ProjectsController < ApplicationController
  
  def index
    
  end
  
  def new
    @project = Project.new
  end
  
  def create
    @project = current_user.projects.build(project_params)
    
    if @project.valid? && @project.save
      redirect_to projects_path, notice: "Project Created successfully."
    else
      render :new, alert: "Something went wrong."
    end
  end
  
  def show
    @project     = current_user.projects.find(params[:id])
    @requirement = []<commit_msg>- added ivar projects to index action of projects controller<commit_after>class ProjectsController < ApplicationController
  
  def index
    @projects = current_user.projects
  end
  
  def new
    @project = Project.new
  end
  
  def create
    @project = current_user.projects.build(project_params)
    
    if @project.valid? && @project.save
      redirect_to projects_path, notice: "Project Created successfully."
    else
      render :new, alert: "Something went wrong."
    end
  end
  
  def show
    @project     = current_user.projects.find(params[:id])
    @requirement = []
{'fraction_non_alphanumeric': 0.08394160583941605, 'fraction_numerical': 0.0, 'mean_word_length': 2.9178571428571427, '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': '510074', 'n_tokens_mistral': 319, 'n_tokens_neox': 315, 'n_words': 87}