<commit_before>= form_for [:admin, project] do |f|
  -if project.errors.any?
    .alert-message.block-message.error
      %ul
        - project.errors.full_messages.each do |msg|
          %li= msg

  .clearfix.project_name_holder
    = f.label :name do
      Project name is
    .input
      = f.text_field :name, placeholder: "Example Project", class: "xxlarge"
      = f.submit project.new_record? ? 'Create project' : 'Save Project', class: "btn primary"

  %hr
  .adv_settings
    %h6 Advanced settings:
    .clearfix
      = f.label :path do
        Git Clone
      .input
        .input-prepend
          %span.add-on= Gitlab.config.ssh_path
          = f.text_field :path, placeholder: "example_project", disabled: !!project.id
          %span.add-on= ".git"
    .clearfix
      = f.label :code do
        URL
      .input
        .input-prepend
          %span.add-on= web_app_url
          = f.text_field :code, placeholder: "example"

    - unless project.new_record?
      .clearfix
        = f.label :owner_id
        .input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }

      - if project.repo_exists?
        .clearfix
          = f.label :default_branch, "Default Branch"
          .input= f.select(:default_branch, project.heads.map(&:name), {}, style: "width:210px;")

  - unless project.new_record?
    %hr
    .adv_settings
      %h6 Features:

      .clearfix
        = f.label :issues_enabled, "Issues"<commit_msg>Freeze project path in admin area<commit_after>= form_for [:admin, project] do |f|
  -if project.errors.any?
    .alert-message.block-message.error
      %ul
        - project.errors.full_messages.each do |msg|
          %li= msg

  .clearfix.project_name_holder
    = f.label :name do
      Project name is
    .input
      = f.text_field :name, placeholder: "Example Project", class: "xxlarge"

  %hr
  .adv_settings
    %h6 Advanced settings:
    .clearfix
      = f.label :path do
        Path
      .input
        .input-prepend
          %strong
            = text_field_tag :ppath, @admin_project.path_to_repo, class: "xlarge", disabled: true
    .clearfix
      = f.label :code do
        URL
      .input
        .input-prepend
          %span.add-on= web_app_url
          = f.text_field :code, placeholder: "example"

    - unless project.new_record?
      .clearfix
        = f.label :owner_id
        .input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }

      - if project.repo_exists?
        .clearfix
          = f.label :default_branch, "Default Branch"
          .input= f.select(:default_branch, project.heads.map(&:name), {}, style: "width:210px;")

  - unless project.new_record?
    %hr
    .adv_settings
      %h6 Features:

      .clearfix
        = f.label :issues_enabled, "Issues"
{'fraction_non_alphanumeric': 0.12100538599640934, 'fraction_numerical': 0.003590664272890485, 'mean_word_length': 2.0852713178294575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6527054', 'n_tokens_mistral': 925, 'n_tokens_neox': 907, 'n_words': 210}