<commit_before>- @title = @tag.name
%h1= @title
- if @tag.full_name
  %h3(style="margin: 0 0 4px 0;")= @tag.full_name
- if @tag.description
  %p(style = "margin: 0 0 10px 0;")= auto_link @tag.description.html_safe

- if !@tag.kind_of?(TaskView) && task_view = TaskView.find_by_name(@tag.name)
  %p
    Be sure to also visit the #{@tag.name}
    #{link_to("Task View page", task_view)} for more packages.

%ul.cloud
  %li
    %strong(style = "line-height: 1em;")
      Packages:
  - for package in @tag.packages.uniq
    %li
      = link_to package.name, package

%h2
  Latest activity
- if @events.length == 0
  %p
    No recent activity for packages tagged with #{@tag.name}.
- else
  = render :partial => "timeline_events/events", :locals => { :events => @events }

- if logged_in? && params[:type].nil? && current_user.may_edit?(@tag)
  = link_to 'Edit', edit_tag_path(@tag)
<commit_msg>aegis -> cancan in view<commit_after>- @title = @tag.name
%h1= @title
- if @tag.full_name
  %h3(style="margin: 0 0 4px 0;")= @tag.full_name
- if @tag.description
  %p(style = "margin: 0 0 10px 0;")= auto_link @tag.description.html_safe

- if !@tag.kind_of?(TaskView) && task_view = TaskView.find_by_name(@tag.name)
  %p
    Be sure to also visit the #{@tag.name}
    #{link_to("Task View page", task_view)} for more packages.

%ul.cloud
  %li
    %strong(style = "line-height: 1em;")
      Packages:
  - for package in @tag.packages.uniq
    %li
      = link_to package.name, package

%h2
  Latest activity
- if @events.length == 0
  %p
    No recent activity for packages tagged with #{@tag.name}.
- else
  = render :partial => "timeline_events/events", :locals => { :events => @events }

- if logged_in? && params[:type].nil? && can?(:edit, @tag)
  = link_to 'Edit', edit_tag_path(@tag)

{'fraction_non_alphanumeric': 0.16469926925238898, 'fraction_numerical': 0.015739179314221474, 'mean_word_length': 3.5641025641025643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '3802965', 'n_tokens_mistral': 695, 'n_tokens_neox': 672, 'n_words': 174}