<commit_before>- ref = ref || nil
- btn_class = btn_class || ''
%span.btn-group{class: btn_class}
  .dropdown.inline
    %button.btn{ 'data-toggle' => 'dropdown' }
      = icon('download')
      %span.caret
      %span.sr-only
        Select Archive Format
    %ul.dropdown-menu.dropdown-menu-align-right{ role: 'menu' }
      %li.dropdown-header Source code
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download zip
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar.gz
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar.bz2
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar
      - artifacts = @project.latest_success_builds_for(@ref)
      - if artifacts.any?
        %li.dropdown-header Artifacts
        - artifacts.each do |job|
          %li
            = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, job), rel: 'nofollow' do
              %span Download '#{job.name}'<commit_msg>Fix links and add not latest notice<commit_after>- ref = ref || nil
- btn_class = btn_class || ''
%span.btn-group{class: btn_class}
  .dropdown.inline
    %button.btn{ 'data-toggle' => 'dropdown' }
      = icon('download')
      %span.caret
      %span.sr-only
        Select Archive Format
    %ul.dropdown-menu.dropdown-menu-align-right{ role: 'menu' }
      %li.dropdown-header Source code
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download zip
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar.gz
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar.bz2
      %li
        = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
          %i.fa.fa-download
          %span Download tar
      - pipeline = @project.latest_success_pipeline_for(ref).first
      - if pipeline
        - artifacts = pipeline.builds.latest_success_with_artifacts
        - if artifacts.any?
          %li.dropdown-header Artifacts
          - unless pipeline.latest?
            = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_tree_path(@project.namespace, @project, pipeline.sha))})"
          - artifacts.each do |job|
            %li
              = link_to search_namespace_project_artifacts_path(@project.namespace, @project, ref, 'download', job: job.name), rel: 'nofollow' do
                %span Download '#{job.name}'
{'fraction_non_alphanumeric': 0.12249114521841795, 'fraction_numerical': 0.0011806375442739079, 'mean_word_length': 2.7078774617067833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5009828', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1025, 'n_words': 229}