<commit_before>- content_for :before_title, "Recent Activity — "

#react_root{"data-current_user" => user_signed_in? ? current_user.roles(@course).to_json : '{ "admin": false, "id": null }'}
<commit_msg>Fix error calling User#role without a course.<commit_after>- content_for :before_title, "Recent Activity — "

#react_root{"data-current_user" => false ? { admin: current_user.admin?, id: current_user.id }.to_json : '{ "admin": false, "id": null }'}

{'fraction_non_alphanumeric': 0.17035398230088494, 'fraction_numerical': 0.0, 'mean_word_length': 6.306451612903226, 'pattern_counts': {'":': 4, '<': 3, '<?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': '239140', 'n_tokens_mistral': 153, 'n_tokens_neox': 148, 'n_words': 36}