<commit_before>class Admin::GroupsController < Admin::AdminController
  PER_PAGE = 20
  

  # GET /groups
  # GET /groups.xml
  def index
    @groups = Group.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @groups }
    end
  end

  def show
    @group = Group.find(params[:id])
  end

  # GET /groups/new
  # GET /groups/new.xml
  def new
    @group = Group.new<commit_msg>demo of iteration bug<commit_after>class Admin::GroupsController < Admin::AdminController
  PER_PAGE = 20
  

  # GET /groups
  # GET /groups.xml
  def index
    @groups = Group.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @groups }
    end
  end

  def show
    @group = Group.find(params[:id])
    # debugger
    
    # TODO NOTE: the following iterator will not run.   You can't iterate this array in the view either.
    # however, loading a group in console, you can iterate @group.users... 
    @group.users.each { |u| puts u.login }
  end

  # GET /groups/new
  # GET /groups/new.xml
  def new
    @group = Group.new
{'fraction_non_alphanumeric': 0.10649819494584838, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 2.4440993788819876, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2261261', 'n_tokens_mistral': 376, 'n_tokens_neox': 359, 'n_words': 108}