<commit_before>class MyAccountsController < ApplicationController
  before_filter :authenticate_user!

  def show
    @user = current_user

    if params[:filename]
      find_and_send_user_file
      return
    end

    session[:user_return_to] = nil
    unless @user.patron
      redirect_to new_user_patron_url(@user); return
    end
    #TODO
    if defined?(EnjuBookmark) 
      @tags = @user.bookmarks.tag_counts.sort{|a,b| a.count <=> b.count}.reverse
    end
    if defined?(EnjuEvent) 
      @events = Event.order('start_at DESC').limit(5)
    end
    @manifestation = Manifestation.pickup(@user.keyword_list.to_s.split.sort_by{rand}.first) rescue nil
    prepare_options
    
    # 敪
    get_manifestation_types
    <commit_msg>文字コード<commit_after>class MyAccountsController < ApplicationController
  before_filter :authenticate_user!

  def show
    @user = current_user

    if params[:filename]
      find_and_send_user_file
      return
    end

    session[:user_return_to] = nil
    unless @user.patron
      redirect_to new_user_patron_url(@user); return
    end
    #TODO
    if defined?(EnjuBookmark) 
      @tags = @user.bookmarks.tag_counts.sort{|a,b| a.count <=> b.count}.reverse
    end
    if defined?(EnjuEvent) 
      @events = Event.order('start_at DESC').limit(5)
    end
    @manifestation = Manifestation.pickup(@user.keyword_list.to_s.split.sort_by{rand}.first) rescue nil
    prepare_options
    
    # 資料区分
    get_manifestation_types
    
{'fraction_non_alphanumeric': 0.0938137321549966, 'fraction_numerical': 0.0013596193065941536, 'mean_word_length': 3.2177650429799427, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3618109', 'n_tokens_mistral': 510, 'n_tokens_neox': 496, 'n_words': 86}