<commit_before>class AuthorsController < ApplicationController
  # GET /authors
  # GET /authors.xml
  def index
    @authors = @account.authors.find(:all)

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

  # GET /authors/1
  # GET /authors/1.xml
  def show
    @author = Author.find(params[:id])

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

  # GET /authors/new
  # GET /authors/new.xml
  def new
    @author = Author.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @author }
    end
  end
<commit_msg>Added support for article authors index.<commit_after>class AuthorsController < ApplicationController
  # GET /authors
  # GET /authors.xml
  def index
    if @article = find_article
      @authors = @article.authors
    else 
      @authors = @account.authors.find(:all)
    end
    
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @authors }
      format.json { render :json => @authors }
    end
  end

  # GET /authors/1
  # GET /authors/1.xml
  def show
    @author = Author.find(params[:id])

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

  # GET /authors/new
  # GET /authors/new.xml
  def new
    @author = Author.new

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

{'fraction_non_alphanumeric': 0.11268472906403941, 'fraction_numerical': 0.0024630541871921183, 'mean_word_length': 2.25, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '5379224', 'n_tokens_mistral': 560, 'n_tokens_neox': 527, 'n_words': 140}