<commit_before>class Admin::UserGroupsController < ApplicationController
  
  def index
    respond_to do |format|
      format.html
      format.json {
        render :json => { :root => UserGroup.json_data }
      }
    end
  end
  
  def new
    @user_group = UserGroup.new
    render :update do |page|
      page['middle_col'].replace_html :partial => "new"
    end
  end
  
  def create
    @user_group = UserGroup.new(params[:user_group])
    if @user_group.save
      flash.now[:notice] = 'added_succesfully'
      render :update do |page|
        page['middle_col'].replace_html :partial => "/admin/users/index"
        page['right_col'].replace_html render_right_col
      end
    else
      flash.now[:error] = 'check_your_input'
      render :update do |page|
        page['middle_col'].replace_html :partial => "new"
      end
    end
  end
  <commit_msg>don't show admin usergroup<commit_after>class Admin::UserGroupsController < ApplicationController
  
  def index
    respond_to do |format|
      format.html
      format.json {
        render :json => { :root => UserGroup.active.json_data }
      }
    end
  end
  
  def new
    @user_group = UserGroup.new
    render :update do |page|
      page['middle_col'].replace_html :partial => "new"
    end
  end
  
  def create
    @user_group = UserGroup.new(params[:user_group])
    if @user_group.save
      flash.now[:notice] = 'added_succesfully'
      render :update do |page|
        page['middle_col'].replace_html :partial => "/admin/users/index"
        page['right_col'].replace_html render_right_col
      end
    else
      flash.now[:error] = 'check_your_input'
      render :update do |page|
        page['middle_col'].replace_html :partial => "new"
      end
    end
  end
  
{'fraction_non_alphanumeric': 0.10946408209806158, 'fraction_numerical': 0.0, 'mean_word_length': 2.618556701030928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6807725', 'n_tokens_mistral': 555, 'n_tokens_neox': 551, 'n_words': 123}