<commit_before>class ProjectsController < ApplicationController
  helper SnsHelper
  before_action :set_project, only: [:show, :edit, :update, :destroy]

  # GET /projects
  def index
    @projects = Project.all
  end

  # GET /projects/1
  def show
  end

  # GET /projects/new
  def new
    @project = Project.new
    @skills  = Skill.all
    @users   = User.all
  end

  # GET /projects/1/edit
  def edit
    @stages = Stage.all
    @users   = User.all
  end

  # POST /projects
  def create
      @project = Project.new(project_params)
      @project.user_id = @my_user.id
      @project.update_skill_ids_by_skill_names(params[:skill_names])<commit_msg>Close #47. 必要なスキル空欄をサポート。<commit_after># coding: utf-8
class ProjectsController < ApplicationController
  helper SnsHelper
  before_action :set_project, only: [:show, :edit, :update, :destroy]

  # GET /projects
  def index
    @projects = Project.all
  end

  # GET /projects/1
  def show
  end

  # GET /projects/new
  def new
    @project = Project.new
    @skills  = Skill.all
    @users   = User.all
  end

  # GET /projects/1/edit
  def edit
    @stages = Stage.all
    @users   = User.all
  end

  # POST /projects
  def create
      @project = Project.new(project_params)
      @project.user_id = @my_user.id
      @project.update_skill_ids_by_skill_names(params[:skill_names]) unless params[:skill_names].nil?
{'fraction_non_alphanumeric': 0.10254545454545455, 'fraction_numerical': 0.005090909090909091, 'mean_word_length': 2.9426934097421205, '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': '6186319', 'n_tokens_mistral': 492, 'n_tokens_neox': 482, 'n_words': 112}