<commit_before><div class="tier"> 
    <h3><%= tier.name %></h3>
    <p><strong>Cost:</strong>
    <% if tier.monthly_cost %>
        <%= tier.monthly_cost %> / month 
        <% if tier.annual_cost %>
        or <%= tier.annual_cost %> / year
        <% end %>
    <% else %>
        <%= tier.annual_cost %> / year
    <% end %>
    </p>

    <p>
        <%= raw markdown.render(tier.description) %>
    </p>

    <% if tier.regions.any? %>
        <p><strong class="text-danger">Available in:</strong>
        <% tier.regions.each do |region| %>
        <%= link_to region.name, region, class: 'label label-default' %>
        <% end %>
    <% end %>

    <% if tier.channels.any? %>
        <p><strong>Live channels:</strong>
        <% tier.channels.each do |channel| %>
        <%= link_to channel.name, channel, class: 'label label-default' %>
        <% end %>
        </p>
    <% end %>

    <% if tier.locks.any? %>
        <h4>Regional channels</h4>
        <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                    <th>Regions</th>
                    <th>Channels</th>
            </tr>
            </thead>

            <tbody>
            <%= content_tag_for(:tr, tier.locks) do |lock| %>
                <td>
                <% if lock.regions.count > 7 %>
                    <%= lock.summary %>
                    <button class="btn btn-small btn-primary" type="button" data-toggle="collapse" data-target="#lock<%= lock.id %>regions" aria-expanded="false" aria-controls="lock<%= lock.id %>regions">
                    Show all markets
                    </button>
                    <div class="collapse" id="lock<%= lock.id %>regions">
                    <% lock.regions.each do |region| %>
                        <%= link_to region.name, region, class: 'label label-default' %>
                    <% end %>
                    </div>
                <% else %>
                    <% lock.regions.each do |region| %>
                        <%= link_to region.name, region, class: 'label label-default' %>
                    <% end %>
                <% end %>
                </td>
                <td>
                <% lock.channels.each do |channel| %>
                    <%= link_to channel.name, channel, class: 'label label-default' %>
                <% end %>
                </td>
            <% end %>
            </tbody>
        </table>
        </div>

    <% end %>

    <% if current_user %>
    <%= link_to edit_tier_path(tier), class: 'btn btn-primary' do %>
        <span class="glyphicon glyphicon-pencil"></span><commit_msg>Fixing button size<commit_after><div class="tier"> 
    <h3><%= tier.name %></h3>
    <p><strong>Cost:</strong>
    <% if tier.monthly_cost %>
        <%= tier.monthly_cost %> / month 
        <% if tier.annual_cost %>
        or <%= tier.annual_cost %> / year
        <% end %>
    <% else %>
        <%= tier.annual_cost %> / year
    <% end %>
    </p>

    <p>
        <%= raw markdown.render(tier.description) %>
    </p>

    <% if tier.regions.any? %>
        <p><strong class="text-danger">Available in:</strong>
        <% tier.regions.each do |region| %>
        <%= link_to region.name, region, class: 'label label-default' %>
        <% end %>
    <% end %>

    <% if tier.channels.any? %>
        <p><strong>Live channels:</strong>
        <% tier.channels.each do |channel| %>
        <%= link_to channel.name, channel, class: 'label label-default' %>
        <% end %>
        </p>
    <% end %>

    <% if tier.locks.any? %>
        <h4>Regional channels</h4>
        <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                    <th>Regions</th>
                    <th>Channels</th>
            </tr>
            </thead>

            <tbody>
            <%= content_tag_for(:tr, tier.locks) do |lock| %>
                <td>
                <% if lock.regions.count > 7 %>
                    <%= lock.summary %>
                    <button class="btn btn-xs btn-primary" type="button" data-toggle="collapse" data-target="#lock<%= lock.id %>regions" aria-expanded="false" aria-controls="lock<%= lock.id %>regions">
                    Show all markets
                    </button>
                    <div class="collapse" id="lock<%= lock.id %>regions">
                    <% lock.regions.each do |region| %>
                        <%= link_to region.name, region, class: 'label label-default' %>
                    <% end %>
                    </div>
                <% else %>
                    <% lock.regions.each do |region| %>
                        <%= link_to region.name, region, class: 'label label-default' %>
                    <% end %>
                <% end %>
                </td>
                <td>
                <% lock.channels.each do |channel| %>
                    <%= link_to channel.name, channel, class: 'label label-default' %>
                <% end %>
                </td>
            <% end %>
            </tbody>
        </table>
        </div>

    <% end %>

    <% if current_user %>
    <%= link_to edit_tier_path(tier), class: 'btn btn-primary' do %>
        <span class="glyphicon glyphicon-pencil"></span>
{'fraction_non_alphanumeric': 0.16591928251121077, 'fraction_numerical': 0.0018684603886397607, 'mean_word_length': 1.4232684472612043, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 173, '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': '3719962', 'n_tokens_mistral': 1769, 'n_tokens_neox': 1492, 'n_words': 317}