<commit_before>class OrganizationsController < ApplicationController
  def index
    redirect_to root_path
  end

  def show

  end

  def new
    @organization = Organization.new
  end

  def create
    @organization = Organization.new(params[:organization])

    if @organization.save then
      @organization.users.create(user: current_user, admin: true)
      redirect_to root_path
    else<commit_msg>The organization creator should be pre-verified as well as admin<commit_after>class OrganizationsController < ApplicationController
  def index
    redirect_to root_path
  end

  def show

  end

  def new
    @organization = Organization.new
  end

  def create
    @organization = Organization.new(params[:organization])

    if @organization.save then
      @organization.users.create(user: current_user, admin: true, verified: true)
      redirect_to root_path
    else
{'fraction_non_alphanumeric': 0.06029579067121729, 'fraction_numerical': 0.0, 'mean_word_length': 3.6560846560846563, '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': '2356076', 'n_tokens_mistral': 251, 'n_tokens_neox': 230, 'n_words': 70}