<commit_before>.project-edit-container
  .project-edit-errors
  .project-edit-content
    %div
      %h3.page-title
        Project settings:
      %p.light Some settings, such as "Transfer Project", are hidden inside the danger area below.
      %hr
      .panel-body
        = form_for @project, remote: true, html: { class: "edit_project form-horizontal" } do |f|
          %fieldset
            .form-group.project_name_holder
              = f.label :name, class: 'control-label' do
                Project name
              .col-sm-10
                = f.text_field :name, placeholder: "Example Project", class: "form-control"


            .form-group
              = f.label :description, class: 'control-label' do
                Project description
                %span.light (optional)
              .col-sm-10
                = f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250

            - if @project.repository.exists? && @project.repository.branch_names.any?
              .form-group
                = f.label :default_branch, "Default Branch", class: 'control-label'
                .col-sm-10= f.select(:default_branch, @repository.branch_names, {}, {class: 'select2 select-wide'})


          = render "visibility_level", f: f, visibility_level: @project.visibility_level, can_change_visibility_level: can?(current_user, :change_visibility_level, @project)

          %fieldset.features
            %legend
              Tags:
            .form-group
              = f.label :tag_list, "Tags", class: 'control-label'
              .col-sm-10
                = f.text_field :tag_list, maxlength: 2000, class: "form-control"
                %p.hint Separate tags with commas.

          %fieldset.features
            %legend
              Features:
            .form-group
              = f.label :issues_enabled, "Issues", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :issues_enabled
                  %span.descr Lightweight issue tracking system for this project

            - if Project.issues_tracker.values.count > 1
              .form-group
                = f.label :issues_tracker, "Issues tracker", class: 'control-label'
                .col-sm-10= f.select(:issues_tracker, project_issues_trackers(@project.issues_tracker), {}, { disabled: !@project.issues_enabled })

              .form-group
                = f.label :issues_tracker_id, "Project name or id in issues tracker", class: 'control-label'
                .col-sm-10= f.text_field :issues_tracker_id, disabled: !@project.can_have_issues_tracker_id?, class: 'form-control'

            .form-group
              = f.label :merge_requests_enabled, "Merge Requests", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :merge_requests_enabled
                  %span.descr Submit changes to be merged upstream.

            .form-group
              = f.label :wiki_enabled, "Wiki", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :wiki_enabled
                  %span.descr Pages for project documentation

            .form-group
              = f.label :snippets_enabled, "Snippets", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :snippets_enabled
                  %span.descr Share code pastes with others out of git repository


          .form-actions
            = f.submit 'Save changes', class: "btn btn-save"



    .danger-settings.js-toggle-container
      .centered-light-block
        %h3
          %i.icon-warning-sign
          Dangerous settings

        %p Project settings below may result in data loss!
        = link_to '#', class: 'btn js-toggle-button' do
          Show them to me
          %i.icon-chevron-down

      .js-toggle-content.hide
        - if can? current_user, :archive_project, @project
          .panel.panel-default.panel.panel-warning
            .panel-heading
              - if @project.archived?
                Unarchive project
              - else
                Archive project
            .panel-body
              - if @project.archived?
                %p
                  Unarchiving the project will mark its repository as active.
                  %br
                  The project can be committed to.
                  %br
                  %strong Once active this project shows up in the search and on the dashboard.
                = link_to 'Unarchive', unarchive_project_path(@project),
                    data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be comitted to again." },
                    method: :post, class: "btn btn-remove"
              - else
                %p
                  Archiving the project will mark its repository as read-only.
                  %br
                  It is hidden from the dashboard and doesn't show up in searches.
                  %br
                  %strong Archived projects cannot be committed to!
                = link_to 'Archive', archive_project_path(@project),
                    data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." },
                    method: :post, class: "btn btn-warning"
        - else
          .nothing-here-block Only the project owner can archive a project

        .panel.panel-default.panel.panel-warning
          .panel-heading Rename repository
          .errors-holder
          .panel-body
            = form_for(@project, html: { class: 'form-horizontal' }) do |f|
              .form-group
                = f.label :path, class: 'control-label' do
                  %span Path
                .col-sm-9
                  .form-group
                    .input-group<commit_msg>Fix minor spelling error<commit_after>.project-edit-container
  .project-edit-errors
  .project-edit-content
    %div
      %h3.page-title
        Project settings:
      %p.light Some settings, such as "Transfer Project", are hidden inside the danger area below.
      %hr
      .panel-body
        = form_for @project, remote: true, html: { class: "edit_project form-horizontal" } do |f|
          %fieldset
            .form-group.project_name_holder
              = f.label :name, class: 'control-label' do
                Project name
              .col-sm-10
                = f.text_field :name, placeholder: "Example Project", class: "form-control"


            .form-group
              = f.label :description, class: 'control-label' do
                Project description
                %span.light (optional)
              .col-sm-10
                = f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250

            - if @project.repository.exists? && @project.repository.branch_names.any?
              .form-group
                = f.label :default_branch, "Default Branch", class: 'control-label'
                .col-sm-10= f.select(:default_branch, @repository.branch_names, {}, {class: 'select2 select-wide'})


          = render "visibility_level", f: f, visibility_level: @project.visibility_level, can_change_visibility_level: can?(current_user, :change_visibility_level, @project)

          %fieldset.features
            %legend
              Tags:
            .form-group
              = f.label :tag_list, "Tags", class: 'control-label'
              .col-sm-10
                = f.text_field :tag_list, maxlength: 2000, class: "form-control"
                %p.hint Separate tags with commas.

          %fieldset.features
            %legend
              Features:
            .form-group
              = f.label :issues_enabled, "Issues", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :issues_enabled
                  %span.descr Lightweight issue tracking system for this project

            - if Project.issues_tracker.values.count > 1
              .form-group
                = f.label :issues_tracker, "Issues tracker", class: 'control-label'
                .col-sm-10= f.select(:issues_tracker, project_issues_trackers(@project.issues_tracker), {}, { disabled: !@project.issues_enabled })

              .form-group
                = f.label :issues_tracker_id, "Project name or id in issues tracker", class: 'control-label'
                .col-sm-10= f.text_field :issues_tracker_id, disabled: !@project.can_have_issues_tracker_id?, class: 'form-control'

            .form-group
              = f.label :merge_requests_enabled, "Merge Requests", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :merge_requests_enabled
                  %span.descr Submit changes to be merged upstream.

            .form-group
              = f.label :wiki_enabled, "Wiki", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :wiki_enabled
                  %span.descr Pages for project documentation

            .form-group
              = f.label :snippets_enabled, "Snippets", class: 'control-label'
              .col-sm-10
                .checkbox
                  = f.check_box :snippets_enabled
                  %span.descr Share code pastes with others out of git repository


          .form-actions
            = f.submit 'Save changes', class: "btn btn-save"



    .danger-settings.js-toggle-container
      .centered-light-block
        %h3
          %i.icon-warning-sign
          Dangerous settings

        %p Project settings below may result in data loss!
        = link_to '#', class: 'btn js-toggle-button' do
          Show them to me
          %i.icon-chevron-down

      .js-toggle-content.hide
        - if can? current_user, :archive_project, @project
          .panel.panel-default.panel.panel-warning
            .panel-heading
              - if @project.archived?
                Unarchive project
              - else
                Archive project
            .panel-body
              - if @project.archived?
                %p
                  Unarchiving the project will mark its repository as active.
                  %br
                  The project can be committed to.
                  %br
                  %strong Once active this project shows up in the search and on the dashboard.
                = link_to 'Unarchive', unarchive_project_path(@project),
                    data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be committed to again." },
                    method: :post, class: "btn btn-remove"
              - else
                %p
                  Archiving the project will mark its repository as read-only.
                  %br
                  It is hidden from the dashboard and doesn't show up in searches.
                  %br
                  %strong Archived projects cannot be committed to!
                = link_to 'Archive', archive_project_path(@project),
                    data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." },
                    method: :post, class: "btn btn-warning"
        - else
          .nothing-here-block Only the project owner can archive a project

        .panel.panel-default.panel.panel-warning
          .panel-heading Rename repository
          .errors-holder
          .panel-body
            = form_for(@project, html: { class: 'form-horizontal' }) do |f|
              .form-group
                = f.label :path, class: 'control-label' do
                  %span Path
                .col-sm-9
                  .form-group
                    .input-group
{'fraction_non_alphanumeric': 0.09133489461358314, 'fraction_numerical': 0.005520240883238541, 'mean_word_length': 1.552732707087959, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5504445', 'n_tokens_mistral': 3270, 'n_tokens_neox': 3040, 'n_words': 872}