<commit_before>class Course::CoursesController < Course::Controller
  include Course::CoursesModulesConcern

  def show #:nodoc:
  end

  def new #:nodoc:
  end

  def create #:nodoc:
    @course.course_users.build(user: current_user, name: 'name', role: :owner)

    if @course.save
      redirect_to edit_course_path(@course), notice: t('.notice', title: @course.title)
    else
      render 'new'
    end
  end

  def edit #:nodoc:
  end

  def update #:nodoc:
    if @course.update_attributes(course_params)
      redirect_to course_path(@course), notice: t('.notice', title: @course.title)
    else
      render 'edit'
    end
  end

  def destroy #:nodoc:
  end

  private

  def course_params #:nodoc:
    params.require(:course).
      permit(:title, :description, :status, :start_at, :end_at)
  end
end<commit_msg>remove and fix old actions in courses<commit_after>class Course::CoursesController < Course::Controller
  include Course::CoursesModulesConcern

  def show #:nodoc:
  end

  def new #:nodoc:
  end

  def create #:nodoc:
    @course.course_users.build(user: current_user, name: 'name', role: :owner)

    if @course.save
      redirect_to course_settings_path(@course), notice: t('.notice', title: @course.title)
    else
      render 'new'
    end
  end

  def destroy #:nodoc:
  end

  private

  def course_params #:nodoc:
    params.require(:course).
      permit(:title, :description, :status, :start_at, :end_at)
  end
end
{'fraction_non_alphanumeric': 0.11724137931034483, 'fraction_numerical': 0.0, 'mean_word_length': 3.5628930817610063, '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': '863', 'n_tokens_mistral': 493, 'n_tokens_neox': 478, 'n_words': 127}