<commit_before><% info_request = InfoRequest.find(info_request_id) %>

<h1><%= _("Great result!") %></h1>
<div class="request-sent-message__row">
  <div class="request-sent-message__column-1">

    <% if feature_enabled?(:annotations) %>
    <p>
      <%= _("Please come back and add annotations to update this page with any further news or links") %>
    </p>
    <% else %>
    <p>
      <%= _("We're glad you got all the information that you wanted.") %>
    </p>
    <% end %>
    <%= link_to image_tag("next-step-twitter.png",
                          :alt => _("Tweet it"),
                          :width => "120",
                          :height => "37"),
                          "https://twitter.com/intent/tweet?" << {
                            :url => request.url,
                            :via => AlaveteliConfiguration.twitter_username,
                            :text => "'#{ info_request.title }'",
                            :related => _('mySociety:Helping people set ' \
                                            'up sites like {{site_name}} ' \
                                            'all over the world',
                                          :site_name => site_name),
                          }.to_query, :class => 'share-link',
                                      :onclick => track_analytics_event(
                                        AnalyticsEvent::Category::OUTBOUND,
                                        AnalyticsEvent::Action::TWITTER_EXIT,
                                        :label => "Share Request") %>


    <%= link_to image_tag("next-step-facebook.png",
                          :alt => _("Share on Facebook"),
                          :width => "120",
                          :height => "37"),
                          "https://www.facebook.com/sharer/sharer.php?" << {
                            :u => request.url
                          }.to_query, :class => 'share-link',
                                      :onclick => track_analytics_event(
                                        AnalyticsEvent::Category::OUTBOUND,
                                        AnalyticsEvent::Action::FACEBOOK_EXIT,
                                        :label => "Share Request") %>

  </div>
  <div class="request-sent-message__column-2">
    <% if AlaveteliConfiguration::donation_url.present? %>
    <div class="what-next donate">
      <h2 class="what-next__heading"><%= _("Help keep this site running") %></h2>
      <p class="what-next__para"><%= _("Your donations help us make " \
                                       "Freedom of Information more " \
                                       "accessible, for everyone.") %></p>
      <% donation_url = AlaveteliConfiguration::donation_url + "?" <<
              { :utm_source => 'whatdotheyknow.com',
                :utm_campaign => 'donation_drive_2016',
                :utm_medium => 'link',
                :utm_content => 'successful+request+donate+now' }.to_query %>
      <%= _("<a class=\"button what-next__button\" href=\"{{donation_url}}\">" \
            "Donate now</a>",
            :donation_url => donation_url) %>
    </div>
    <% end %>
  </div>
</div>
<commit_msg>Use local variable rather than helper<commit_after><% info_request = InfoRequest.find(info_request_id) %>

<h1><%= _("Great result!") %></h1>
<div class="request-sent-message__row">
  <div class="request-sent-message__column-1">

    <% if annotations_enabled %>
    <p>
      <%= _("Please come back and add annotations to update this page with any further news or links") %>
    </p>
    <% else %>
    <p>
      <%= _("We're glad you got all the information that you wanted.") %>
    </p>
    <% end %>
    <%= link_to image_tag("next-step-twitter.png",
                          :alt => _("Tweet it"),
                          :width => "120",
                          :height => "37"),
                          "https://twitter.com/intent/tweet?" << {
                            :url => request.url,
                            :via => AlaveteliConfiguration.twitter_username,
                            :text => "'#{ info_request.title }'",
                            :related => _('mySociety:Helping people set ' \
                                            'up sites like {{site_name}} ' \
                                            'all over the world',
                                          :site_name => site_name),
                          }.to_query, :class => 'share-link',
                                      :onclick => track_analytics_event(
                                        AnalyticsEvent::Category::OUTBOUND,
                                        AnalyticsEvent::Action::TWITTER_EXIT,
                                        :label => "Share Request") %>


    <%= link_to image_tag("next-step-facebook.png",
                          :alt => _("Share on Facebook"),
                          :width => "120",
                          :height => "37"),
                          "https://www.facebook.com/sharer/sharer.php?" << {
                            :u => request.url
                          }.to_query, :class => 'share-link',
                                      :onclick => track_analytics_event(
                                        AnalyticsEvent::Category::OUTBOUND,
                                        AnalyticsEvent::Action::FACEBOOK_EXIT,
                                        :label => "Share Request") %>

  </div>
  <div class="request-sent-message__column-2">
    <% if AlaveteliConfiguration::donation_url.present? %>
    <div class="what-next donate">
      <h2 class="what-next__heading"><%= _("Help keep this site running") %></h2>
      <p class="what-next__para"><%= _("Your donations help us make " \
                                       "Freedom of Information more " \
                                       "accessible, for everyone.") %></p>
      <% donation_url = AlaveteliConfiguration::donation_url + "?" <<
              { :utm_source => 'whatdotheyknow.com',
                :utm_campaign => 'donation_drive_2016',
                :utm_medium => 'link',
                :utm_content => 'successful+request+donate+now' }.to_query %>
      <%= _("<a class=\"button what-next__button\" href=\"{{donation_url}}\">" \
            "Donate now</a>",
            :donation_url => donation_url) %>
    </div>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.13884143500543564, 'fraction_numerical': 0.006212144742972511, 'mean_word_length': 1.2901849217638692, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 119, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1367787', 'n_tokens_mistral': 1721, 'n_tokens_neox': 1599, 'n_words': 329}