<commit_before><% description = local_assigns.fetch(:description, '') %>
<% description = truncate(ActionView::Base.full_sanitizer.sanitize(description), length: 140) %>
<% if local_assigns[:share_title].present? %>
  <div id="social-share" class="sidebar-divider"></div>
  <p class="sidebar-title"><%= share_title %></p>
<% end %>
<div class="social-share-full">
  <%= social_share_button_tag("#{title} #{setting['twitter_hashtag']} #{setting['twitter_handle']}",
                              url: local_assigns[:url],
                              image: local_assigns.fetch(:image_url, ''),
                              desc: description,
                              'data-twitter-title': local_assigns[:mobile],
                              'data-telegram-title': local_assigns[:mobile])%>
  <a href="whatsapp://send?text=<%= local_assigns[:mobile]%>&nbsp;<%= url %>"
     class="show-for-small-only" data-action="share/whatsapp/share">
    <span class="icon-whatsapp whatsapp"></span>
    <span class="show-for-sr"><%= t("social.whatsapp") %></span>
  </a>
</div><commit_msg>Replace spaces to %20 on whatsapp share url<commit_after><% description = local_assigns.fetch(:description, '') %>
<% description = truncate(ActionView::Base.full_sanitizer.sanitize(description), length: 140) %>
<% mobile = local_assigns[:mobile] %>
<% mobile_url = mobile.present? ? "#{mobile.gsub(/\s+/, '%20')}%20" : "" %>

<% if local_assigns[:share_title].present? %>
  <div id="social-share" class="sidebar-divider"></div>
  <p class="sidebar-title"><%= share_title %></p>
<% end %>
<div class="social-share-full">
  <%= social_share_button_tag("#{title} #{setting['twitter_hashtag']} #{setting['twitter_handle']}",
                              url: local_assigns[:url],
                              image: local_assigns.fetch(:image_url, ''),
                              desc: description,
                              'data-twitter-title': local_assigns[:mobile],
                              'data-telegram-title': local_assigns[:mobile])%>
  <a href="whatsapp://send?text=<%= mobile_url %><%= url %>"
     class="show-for-small-only" data-action="share/whatsapp/share">
    <span class="icon-whatsapp whatsapp"></span>
    <span class="show-for-sr"><%= t("social.whatsapp") %></span>
  </a>
</div>
{'fraction_non_alphanumeric': 0.195822454308094, 'fraction_numerical': 0.005221932114882507, 'mean_word_length': 3.120071684587814, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '917465', 'n_tokens_mistral': 747, 'n_tokens_neox': 707, 'n_words': 106}