<commit_before># encoding : utf-8
class UsersController < ApplicationController
  include SessionsHelper
  layout "account",       only: [:show]
  before_filter :user_login,    only: [:edit, :update, :show]
  before_filter :is_admin,  only: [:edit, :update, :index]
  def index
    @users = User.page(params[:page]).per(10)# .padding(1)
  end

  def show
    @user       = User.find(params[:id])
    @blogs      = @user.blogs.published.page(params[:page]).per(2)

    @love_blogs = Blog.published.loved_by_user(current_user.id).page(params[:page]).per(10)
  end

  def new
    @user = User.new<commit_msg>fix a bug<commit_after># encoding : utf-8
class UsersController < ApplicationController
  include SessionsHelper
  layout "account",       only: [:show]
  before_filter :user_login,    only: [:edit, :update, :show]
  before_filter :is_admin,  only: [:edit, :update, :index]
  def index
    @users = User.page(params[:page]).per(10)# .padding(1)
  end

  def show
    @user       = User.find(params[:id])
    @blogs      = @user.blogs.published.page(params[:page]).per(2)

    @love_blogs = Blog.published.loved_by_user(params[:id]).page(params[:page]).per(10)
  end

  def new
    @user = User.new
{'fraction_non_alphanumeric': 0.15141430948419302, 'fraction_numerical': 0.011647254575707155, 'mean_word_length': 3.736220472440945, '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': '1990415', 'n_tokens_mistral': 429, 'n_tokens_neox': 410, 'n_words': 87}