<commit_before><% define_content :link do %>
  http://<%= HostUrl.context_host(asset.collaboration.context) %>/<%= asset.collaboration.context.class.base_ar_class.to_s.downcase.pluralize %>/<%= asset.collaboration.context_id %>/collaborations/<%= asset.collaboration.id %>
<% end %>

<%= t :body, <<-BODY, :document => '<b><a href="%{content(:link)}">%{h asset.collaboration.title}</a></b>'.html_safe, :course_or_group => asset.collaboration.context.name, :service => asset.collaboration.service_name unless asset.collaboration.user
You've been invited to collaborate on a document, %{document} for
%{course_or_group}.  The document was created in %{service}.
BODY
%>

<%= t :body_with_user, <<-BODY, :document => '<b><a href="%{content(:link)}">%{h asset.collaboration.title}</a></b>'.html_safe, :course_or_group => asset.collaboration.context.name, :user => asset.collaboration.user.short_name, :service => asset.collaboration.service_name if asset.collaboration.user
You've been invited to collaborate on a document, %{document} for
%{course_or_group}.  The document was created by %{user} in %{service}.
BODY
%><commit_msg>fixup collaboration_invitation message<commit_after><% define_content :link do %>
  http://<%= HostUrl.context_host(asset.collaboration.context) %>/<%= asset.collaboration.context.class.base_ar_class.to_s.downcase.pluralize %>/<%= asset.collaboration.context_id %>/collaborations/<%= asset.collaboration.id %>
<% end %>

<%= t :body, <<-BODY, :document => %{<b><a href="#{content(:link)}">#{h asset.collaboration.title}</a></b>}.html_safe, :course_or_group => asset.collaboration.context.name, :service => asset.collaboration.service_name unless asset.collaboration.user
You've been invited to collaborate on a document, %{document} for
%{course_or_group}.  The document was created in %{service}.
BODY
%>

<%= t :body_with_user, <<-BODY, :document => %{<b><a href="#{content(:link)}">#{h asset.collaboration.title}</a></b>}.html_safe, :course_or_group => asset.collaboration.context.name, :user => asset.collaboration.user.short_name, :service => asset.collaboration.service_name if asset.collaboration.user
You've been invited to collaborate on a document, %{document} for
%{course_or_group}.  The document was created by %{user} in %{service}.
BODY
%>
{'fraction_non_alphanumeric': 0.17886891714160455, 'fraction_numerical': 0.0, 'mean_word_length': 6.4332247557003255, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 49, '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': '7053012', 'n_tokens_mistral': 798, 'n_tokens_neox': 751, 'n_words': 156}