<commit_before><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" lang='en'>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=9">
  <%- @current_tab_name = "admin" -%>
  <%- @view_title = @view_title || "Administration" -%>
  <%= render :partial => "shared/head" %>
</head>
<body id="<%= page_name %>" class="<%= page_name %>" <%= render "shared/body_data_attrs" %>>
<div class="page-wrap">
  <div id="body_bg">
    <%= render :partial => "shared/header" %>

    <div id='body_content'>
      <div class="messaging_wrapper" id="messaging_wrapper">
        <%= render :partial => "shared/flash_message" %>
        <%= render :partial => "shared/config_save_actions", :locals => {:scope => {}} -%>
      </div>

      <% if @in_pipeline_group_edit %>
          <div class="page_header">
            <div class="row">
              <h1 id="page-title" class="entity_title">
                <%= link_to 'Administration', spark_url_for({url_builder: controller}, SparkRoutes::AdminPipelines::SPA_BASE) -%>&nbsp;&raquo;
                <%= link_to 'Pipeline Groups', spark_url_for({url_builder: controller}, SparkRoutes::AdminPipelines::SPA_BASE) -%>&nbsp;&raquo;
                <%= @group.getGroup() -%>
              </h1>
            </div>
          </div>
      <% else %>
          <div class="page_header">
            <div class="row">
              <h1 id="page-title" class="entity_title">Administration</h1>
            </div>
          </div>
      <%- end -%>

      <% unless @config_valid %>
          <%== flash_message_pane_start("config_error", false) %>
          <p class="warning">Invalid config on disk. Displaying the last known valid config (Editing config through Go will overwrite the invalid copy. Edit it on disk to fix this problem).</p>
          <%== flash_message_pane_end %>
      <% end %>

      <%== content_wrapper_tag %>
      <div class="row">
        <div class="bd-container rounded-corner-for-pipeline admin-rounded-container">
          <div class="sub_tab_container rounded-corner-for-tab-container">
            <div class="sub_tabs_container">
              <ul>
                <% if is_user_an_admin? || is_user_a_group_admin? %>
                    <li id="pipeline-groups-tab-button" class="<%= "current_tab" if @tab_name == "pipeline-groups" %>">
                      <a id="tab-link-of-pipeline-groups" href="<%= spark_url_for({url_builder: controller}, SparkRoutes::AdminPipelines::SPA_BASE) -%>">Pipelines</a>
                    </li>
                <% end %>
                <% if is_user_an_admin? || is_user_authorized_to_view_templates? -%>
                    <li id="templates-tab-button" class="<%= "current_tab" if @tab_name == "templates" %>">
                      <a id="tab-link-of-templates" href="<%= spark_url_for({url_builder: controller}, SparkRoutes::AdminTemplates::SPA_BASE) -%>">Templates</a>
                    </li>
                <%- end -%>
                <% if !is_user_an_admin? && is_user_a_group_admin? %>
                    <li id="tab-content-of-pipelines-snippet" class="<%= "current_tab" if @tab_name == "pipelines-snippet" %>">
                      <%= link_to 'Config XML', pipelines_snippet_path, :id => "tab-link-of-pipelines-snippet" -%>
                    </li>
                    <li id="package-repositories-tab-button" class="<%= @tab_name == "package-repositories" ? "current_tab" : "" -%>">
                      <%= link_to 'Package Repositories', package_repositories_list_path, :id => "tab-link-of-package-repositories" %><commit_msg>Remove unused code from legacy Rails admin page<commit_after><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" lang='en'>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=9">
  <%- @current_tab_name = "admin" -%>
  <%- @view_title = @view_title || "Administration" -%>
  <%= render :partial => "shared/head" %>
</head>
<body id="<%= page_name %>" class="<%= page_name %>" <%= render "shared/body_data_attrs" %>>
<div class="page-wrap">
  <div id="body_bg">
    <%= render :partial => "shared/header" %>

    <div id='body_content'>
      <div class="messaging_wrapper" id="messaging_wrapper">
        <%= render :partial => "shared/flash_message" %>
        <%= render :partial => "shared/config_save_actions", :locals => {:scope => {}} -%>
      </div>

      <div class="page_header">
        <div class="row">
          <h1 id="page-title" class="entity_title">Administration</h1>
        </div>
      </div>

      <% unless @config_valid %>
          <%== flash_message_pane_start("config_error", false) %>
          <p class="warning">Invalid config on disk. Displaying the last known valid config (Editing config through Go will overwrite the invalid copy. Edit it on disk to fix this problem).</p>
          <%== flash_message_pane_end %>
      <% end %>

      <%== content_wrapper_tag %>
      <div class="row">
        <div class="bd-container rounded-corner-for-pipeline admin-rounded-container">
          <div class="sub_tab_container rounded-corner-for-tab-container">
            <div class="sub_tabs_container">
              <ul>
                <% if is_user_an_admin? || is_user_a_group_admin? %>
                    <li id="pipeline-groups-tab-button" class="<%= "current_tab" if @tab_name == "pipeline-groups" %>">
                      <a id="tab-link-of-pipeline-groups" href="<%= spark_url_for({url_builder: controller}, SparkRoutes::AdminPipelines::SPA_BASE) -%>">Pipelines</a>
                    </li>
                <% end %>
                <% if is_user_an_admin? || is_user_authorized_to_view_templates? -%>
                    <li id="templates-tab-button" class="<%= "current_tab" if @tab_name == "templates" %>">
                      <a id="tab-link-of-templates" href="<%= spark_url_for({url_builder: controller}, SparkRoutes::AdminTemplates::SPA_BASE) -%>">Templates</a>
                    </li>
                <%- end -%>
                <% if !is_user_an_admin? && is_user_a_group_admin? %>
                    <li id="tab-content-of-pipelines-snippet" class="<%= "current_tab" if @tab_name == "pipelines-snippet" %>">
                      <%= link_to 'Config XML', pipelines_snippet_path, :id => "tab-link-of-pipelines-snippet" -%>
                    </li>
                    <li id="package-repositories-tab-button" class="<%= @tab_name == "package-repositories" ? "current_tab" : "" -%>">
                      <%= link_to 'Package Repositories', package_repositories_list_path, :id => "tab-link-of-package-repositories" %>
{'fraction_non_alphanumeric': 0.173414820473644, 'fraction_numerical': 0.0027501909854851033, 'mean_word_length': 2.565359477124183, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3141291', 'n_tokens_mistral': 2225, 'n_tokens_neox': 2038, 'n_words': 373}