<commit_before><div id="md" layout-margin layout="row" layout-align="space-between">
  <div class="md-breadcrumb flat">
    <% if action_name == "index" %>
        <a class="active">
          <%= @resource_class.model_name.human(count: 2) %>
        </a>
    </div>
    <% else %>
        <%= link_to @resource_class.model_name.human(count: 2), @resource_class %>
        <a class="active">
          <% if @resource.new_record? %>
            <%= t("helpers.submit.create", model: @resource_class.model_name.human) %>
          <% else %>
            <%= @resource.to_s %>
          <% end %>
        </a>
    </div>
    <% if @resource.persisted? %>
      <md-menu md-position-mode="target-right target">
        <!-- Trigger element is a md-button with an icon -->
        <md-button ng-click="$mdOpenMenu($event)" class="md-primary">
          <%= translate_scoped("actions.label") %>
        </md-button>
        <md-menu-content width="2">
          <% if policy(@resource).show? && action_name != "show" %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.show"), @resource, class: 'md-button' %>
            </md-menu-item>
          <% end %>
          <% if policy(@resource).edit? && action_name != "edit" %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.edit"), [:edit, @resource], class: 'md-button'  %>
            </md-menu-item>
          <% end %>
          <% if policy(@resource).destroy? %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.destroy"), @resource, method: :delete,
                data: { confirm: translate_scoped("actions.confirm_message")}, class: 'md-button'  %>
            </md-menu-item>
          <% end %>
        </md-menu-content>
      </md-menu>
    <% end %>
  <% end %><commit_msg>added new button in breadcrumb actions<commit_after><div id="md" layout-margin layout="row" layout-align="space-between">
  <div class="md-breadcrumb flat">
    <% if action_name == "index" %>
        <a class="active">
          <%= @resource_class.model_name.human(count: 2) %>
        </a>
    </div>
    <% else %>
        <%= link_to @resource_class.model_name.human(count: 2), @resource_class %>
        <a class="active">
          <% if @resource.new_record? %>
            <%= t("helpers.submit.create", model: @resource_class.model_name.human) %>
          <% else %>
            <%= @resource.to_s %>
          <% end %>
        </a>
    </div>
    <% if @resource.persisted? %>
      <md-menu md-position-mode="target-right target">
        <!-- Trigger element is a md-button with an icon -->
        <md-button ng-click="$mdOpenMenu($event)" class="md-primary">
          <%= translate_scoped("actions.label") %>
        </md-button>
        <md-menu-content width="2">
          <% if policy(@resource).show? && action_name != "show" %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.show"), @resource, class: 'md-button' %>
            </md-menu-item>
          <% end %>
          <% if policy(@resource).edit? && action_name != "edit" %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.edit"), [:edit, @resource], class: 'md-button'  %>
            </md-menu-item>
          <% end %>
          <% if policy(@resource).destroy? %>
            <md-menu-item>
              <%= link_to translate_scoped("actions.destroy"), @resource, method: :delete,
                data: { confirm: translate_scoped("actions.confirm_message")}, class: 'md-button'  %>
            </md-menu-item>
          <% end %>
          <md-menu-item>
            <%= link_to t("helpers.submit.create", model: @resource.model_name.human), [:create, @resource], class: 'md-button'  %>
          </md-menu-item>
        </md-menu-content>
      </md-menu>
    <% end %>
  <% end %>
{'fraction_non_alphanumeric': 0.18672199170124482, 'fraction_numerical': 0.0015560165975103733, 'mean_word_length': 2.053840063341251, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '5099176', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1181, 'n_words': 211}