<commit_before>require_relative '../app'
require_relative 'univ_helpers'

module GuildBook
  class App
    get '/!univ' do
      all_users = user_repo.search(nil, false).sort_by {|u| u['uidNumber'].first }
      outdated_users, active_users = all_users.partition {|u| GuildBook::UnivHelper.outdated?(u) }
      users = active_users.to_a + outdated_users.to_a
      haml :univ, locals: {users: users}, layout: false
    end
  end
end<commit_msg>univ: UIDは数値としてソート<commit_after>require_relative '../app'
require_relative 'univ_helpers'

module GuildBook
  class App
    get '/!univ' do
      all_users = user_repo.search(nil, false).sort_by {|u| u['uidNumber'].first.to_i }
      outdated_users, active_users = all_users.partition {|u| GuildBook::UnivHelper.outdated?(u) }
      users = active_users.to_a + outdated_users.to_a
      haml :univ, locals: {users: users}, layout: false
    end
  end
end
{'fraction_non_alphanumeric': 0.12249443207126949, 'fraction_numerical': 0.0, 'mean_word_length': 4.0790960451977405, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2730038', 'n_tokens_mistral': 324, 'n_tokens_neox': 320, 'n_words': 68}