<commit_before>- if current_user && can?(current_user, :download_code, @project)
  = render 'shared/no_ssh'
  = render 'shared/no_password'

= render "home_panel"

.center.light-well
  %h3.page-title
    The repository for this project is empty
  %p
    If you already have files you can push them using command line instructions below.
    %br
    Otherwise you can start with
    = link_to "adding README", new_readme_path, class: 'underlined-link'
    file to this project.

.prepend-top-20
%h3.page-title
  Command line instructions
%div.git-empty
  %fieldset
    %h5 Git global setup
    %pre.light-well
      :preserve
        git config --global user.name "#{git_user_name}"
        git config --global user.email "#{git_user_email}"

  %fieldset
    %h5 Create a new repository
    %pre.light-well
      :preserve
        git clone #{ content_tag(:span, default_url_to_repo, class: 'clone')}
        cd #{@project.path}
        touch README.md
        git add README.md
        git commit -m "add README"
        git push -u origin master

  %fieldset
    %h5 Existing folder or Git repository
    %pre.light-well
      :preserve
        cd existing_folder
        git init
        git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
        git push -u origin master

- if can? current_user, :remove_project, @project
  .prepend-top-20
    = link_to 'Remove project', [@project.namespace.becomes(Namespace), @project], data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"
<commit_msg>Fix instructions for empty repo + existing files<commit_after>- if current_user && can?(current_user, :download_code, @project)
  = render 'shared/no_ssh'
  = render 'shared/no_password'

= render "home_panel"

.center.light-well
  %h3.page-title
    The repository for this project is empty
  %p
    If you already have files you can push them using command line instructions below.
    %br
    Otherwise you can start with
    = link_to "adding README", new_readme_path, class: 'underlined-link'
    file to this project.

.prepend-top-20
%h3.page-title
  Command line instructions
%div.git-empty
  %fieldset
    %h5 Git global setup
    %pre.light-well
      :preserve
        git config --global user.name "#{git_user_name}"
        git config --global user.email "#{git_user_email}"

  %fieldset
    %h5 Create a new repository
    %pre.light-well
      :preserve
        git clone #{ content_tag(:span, default_url_to_repo, class: 'clone')}
        cd #{@project.path}
        touch README.md
        git add README.md
        git commit -m "add README"
        git push -u origin master

  %fieldset
    %h5 Existing folder or Git repository
    %pre.light-well
      :preserve
        cd existing_folder
        git init
        git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
        git add .
        git commit
        git push -u origin master

- if can? current_user, :remove_project, @project
  .prepend-top-20
    = link_to 'Remove project', [@project.namespace.becomes(Namespace), @project], data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"

{'fraction_non_alphanumeric': 0.09937888198757763, 'fraction_numerical': 0.0055900621118012426, 'mean_word_length': 2.9184914841849148, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4020987', 'n_tokens_mistral': 1003, 'n_tokens_neox': 984, 'n_words': 314}