<commit_before># encoding: utf-8
class RegistrationsController < ApplicationController

	def new
	end

	def create
	end

	def register
	  begin
		ActiveRecord::Base.transaction do
		  @given_course = GivenCourse.find(params[:course_id])
      @lab = @given_course.labs.find(params[:id])
			@lab_group = LabGroup.create!(
				given_course: @given_course
			)
			
			@lab_group.add_student(current_user.student)
			
			repository = Repository.create!()
			
      # @lab = @given_course.labs.find_by_number(params[:lab_id])
      
			LabHasGroup.create!(
				repository: repository, 
				lab: @lab,
				lab_group: @lab_group
			)
	  end
    rescue  
      logger.info("Shit!: #{$!}")
    end
    redirect_to root_path #course_lab_group_lab_path(current_role_name, @given_course, @lab_group, @lab)
	end

end<commit_msg>Remove tabs<commit_after># encoding: utf-8
class RegistrationsController < ApplicationController

  def new
  end

  def create
  end

  def register
    begin
      ActiveRecord::Base.transaction do
        @given_course = GivenCourse.find(params[:course_id])
        @lab = @given_course.labs.find(params[:id])
        @lab_group = LabGroup.create!(
        given_course: @given_course
        )

        @lab_group.add_student(current_user.student)

        repository = Repository.create!()

        # @lab = @given_course.labs.find_by_number(params[:lab_id])

        LabHasGroup.create!(
        repository: repository, 
        lab: @lab,
        lab_group: @lab_group
        )
      end
    rescue  
      logger.info("Shit!: #{$!}")
    end
    redirect_to root_path #course_lab_group_lab_path(current_role_name, @given_course, @lab_group, @lab)
  end

end
{'fraction_non_alphanumeric': 0.1058893515764426, 'fraction_numerical': 0.001189767995240928, 'mean_word_length': 3.072639225181598, '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': '1204092', 'n_tokens_mistral': 612, 'n_tokens_neox': 547, 'n_words': 98}