<commit_before>class TrainingController < ApplicationController
  layout 'training'
  add_breadcrumb 'Training Library', :training_path, only: :slide_view

  def index
    @libraries = TrainingLibrary.all
  end

  def show<commit_msg>Sort training libraries in controller (closes #487)<commit_after>class TrainingController < ApplicationController
  layout 'training'
  add_breadcrumb 'Training Library', :training_path, only: :slide_view

  def index
    @libraries = TrainingLibrary.all.sort { |a, b| a.name <=> b.name }
  end

  def show
{'fraction_non_alphanumeric': 0.08518518518518518, 'fraction_numerical': 0.005555555555555556, 'mean_word_length': 5.078651685393258, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '3816564', 'n_tokens_mistral': 162, 'n_tokens_neox': 152, 'n_words': 45}