<commit_before><% content_for(:head) do %>
  <%# Basic styles for all devices, doesnt contain anything that could cause rendering issues such as positional info %>
    <%= stylesheet_link_tag 'mortgage_calculator_basic' %>

    <% if disable_responsiveness? %>
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_fixed', media: 'all' %>
    <% else %>
      <!--[if ( gte IE 7 ) & ( lte IE 8 ) & (!IEMobile) ]>
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_fixed', media: 'all' %>
      <![endif]-->

      <%# Responsive styles for all modern devices %>
      <!--[if ( !IE ) | ( gte IE 9 ) ]><!-->
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_responsive', media: 'only all' %>
      <!--<![endif]-->

      <%= stylesheet_link_tag 'mortgage_calculator_print', media: 'print' %>

      <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <% end %>

  <%= javascript_include_tag "mortgage_calculator/application" %>

  <%= csrf_meta_tags %>
<% end %>

<% content_for(:javascripts) do %>
  <% if Rails.env.production? || Rails.env.qa? %>
    <script
      src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js"
      data-apikey="<%= MortgageCalculator.bug_snag_key %>">
    </script>
  <% end %>
<% end %>

<% content_for(:analytics) do %>
  <script type='text/javascript'>
    var _gaq = _gaq || [];
  </script>

  <% if Rails.env.production? || Rails.env.qa? %>
    <script type='text/javascript'>
      _gaq.push(['_setAccount','<%= GA.tracker %>']);
      _gaq.push(['_setDomainName','moneyadviceservice.org.uk']);
      _gaq.push(['_setAllowLinker',true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
  <% end %>
<% end %>

<% content_for(:tool_content) do %>

  <div class="ns-mortgage-calc">
    <!--[if IE 7 ]> <div class="frontend-assets ie ie7"> <![endif]-->
    <!--[if IE 8 ]> <div class="frontend-assets ie ie8 gt-ie7"> <![endif]-->
    <!--[if IE 9 ]> <div class="frontend-assets ie ie9 gt-ie7 gt-ie8"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--><div class="frontend-assets gt-ie7 gt-ie8 gt-ie9"><!--<![endif]-->
      <div ng-app="mortgageCalculatorApp" class="mortgagecalc">
        <%= yield %>
      </div>
    </div>
  </div>
<% end %>

<%= render template: parent_template %><commit_msg>Moving print link outside of conditional<commit_after><% content_for(:head) do %>
  <%# Basic styles for all devices, doesnt contain anything that could cause rendering issues such as positional info %>
    <%= stylesheet_link_tag 'mortgage_calculator_basic' %>

    <% if disable_responsiveness? %>
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_fixed', media: 'all' %>
    <% else %>
      <!--[if ( gte IE 7 ) & ( lte IE 8 ) & (!IEMobile) ]>
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_fixed', media: 'all' %>
      <![endif]-->

      <%# Responsive styles for all modern devices %>
      <!--[if ( !IE ) | ( gte IE 9 ) ]><!-->
      <%= stylesheet_link_tag 'mortgage_calculator_enhanced_responsive', media: 'only all' %>
      <!--<![endif]-->
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <% end %>

    <%= stylesheet_link_tag 'mortgage_calculator_print', media: 'print' %>

  <%= javascript_include_tag "mortgage_calculator/application" %>

  <%= csrf_meta_tags %>
<% end %>

<% content_for(:javascripts) do %>
  <% if Rails.env.production? || Rails.env.qa? %>
    <script
      src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js"
      data-apikey="<%= MortgageCalculator.bug_snag_key %>">
    </script>
  <% end %>
<% end %>

<% content_for(:analytics) do %>
  <script type='text/javascript'>
    var _gaq = _gaq || [];
  </script>

  <% if Rails.env.production? || Rails.env.qa? %>
    <script type='text/javascript'>
      _gaq.push(['_setAccount','<%= GA.tracker %>']);
      _gaq.push(['_setDomainName','moneyadviceservice.org.uk']);
      _gaq.push(['_setAllowLinker',true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
  <% end %>
<% end %>

<% content_for(:tool_content) do %>
  <div class="ns-mortgage-calc">
    <!--[if IE 7 ]> <div class="frontend-assets ie ie7"> <![endif]-->
    <!--[if IE 8 ]> <div class="frontend-assets ie ie8 gt-ie7"> <![endif]-->
    <!--[if IE 9 ]> <div class="frontend-assets ie ie9 gt-ie7 gt-ie8"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--><div class="frontend-assets gt-ie7 gt-ie8 gt-ie9"><!--<![endif]-->
      <div ng-app="mortgageCalculatorApp" class="mortgagecalc">
        <%= yield %>
      </div>
    </div>
  </div>
<% end %>

<%= render template: parent_template %>
{'fraction_non_alphanumeric': 0.2045929018789144, 'fraction_numerical': 0.009109888024293035, 'mean_word_length': 3.377076411960133, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 119, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2493613', 'n_tokens_mistral': 1999, 'n_tokens_neox': 1801, 'n_words': 353}