<commit_before>module Rglossa
  class HomeController < ApplicationController
    layout 'application'

    def index
      if Rails.env == 'development' && params.has_key?(:user)
        session[:current_username] = params[:user]
      end
    end
<commit_msg>Redirect to the front page if corpus is not specified<commit_after>module Rglossa
  class HomeController < ApplicationController
    layout 'application'

    def index
      if Rails.env == 'development' && params.has_key?(:user)
        session[:current_username] = params[:user]
      end
      unless params[:corpus].present?
        redirect_to front_url
      end
    end
{'fraction_non_alphanumeric': 0.08634222919937205, 'fraction_numerical': 0.0, 'mean_word_length': 3.225165562913907, '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': '6876627', 'n_tokens_mistral': 179, 'n_tokens_neox': 169, 'n_words': 48}