<commit_before>class UsersController < ApplicationController
  before_filter :authenticate_user!

  # GET /user
  def index
    @user = current_user
    respond_to do |format|
      format.html { render :layout => false }
      format.json { render :json => current_user }
    end
  end

  # GET /user/:name
  def show
    @user = User.find_by_name params[:name]
    @friendship = Friendship.new
    respond_to do |format|
      format.js { render :layout => false }
      format.json { render :json => user }
    end
  end
<commit_msg>fix show in UsersController for json<commit_after>class UsersController < ApplicationController
  before_filter :authenticate_user!

  # GET /user
  def index
    @user = current_user
    respond_to do |format|
      format.html { render :layout => false }
      format.json { render :json => current_user }
    end
  end

  # GET /user/:name
  def show
    @user = User.find_by_name params[:name]
    @friendship = Friendship.new
    respond_to do |format|
      format.js { render :layout => false }
      format.json { render :json => @user }
    end
  end

{'fraction_non_alphanumeric': 0.09397810218978102, 'fraction_numerical': 0.0, 'mean_word_length': 2.8090277777777777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3812526', 'n_tokens_mistral': 338, 'n_tokens_neox': 333, 'n_words': 97}