<commit_before>class GithubRepositoriesController < ApplicationController
  def show
    @github_repository = GithubRepository.find_by_full_name([params[:owner], params[:name]].join('/'))
    @contributors = @github_repository.github_contributions.order('count DESC').limit(20).includes(:github_user)
    @projects = @github_repository.projects.includes(:versions)
  end
end<commit_msg>Handle missing github repos better<commit_after>class GithubRepositoriesController < ApplicationController
  def show
    @github_repository = GithubRepository.find_by_full_name([params[:owner], params[:name]].join('/'))
    raise ActiveRecord::RecordNotFound if @github_repository.nil?
    @contributors = @github_repository.github_contributions.order('count DESC').limit(20).includes(:github_user)
    @projects = @github_repository.projects.includes(:versions)
  end
end
{'fraction_non_alphanumeric': 0.11757857974388825, 'fraction_numerical': 0.004656577415599534, 'mean_word_length': 7.6, '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': '5556629', 'n_tokens_mistral': 241, 'n_tokens_neox': 232, 'n_words': 37}