<commit_before>= render 'clone_panel'

%div.git-empty
  %fieldset
    %legend Git global setup:
    %pre.dark
      = preserve do
        git config --global user.name "#{current_user.name}"
        git config --global user.email "#{current_user.email}"

  %fieldset
    %legend Create Repository
    %pre.dark
      = preserve do
        mkdir #{@project.path}
        cd #{@project.path}
        git init
        touch README
        git add README
        git commit -m 'first commit'
        git remote add origin #{@project.url_to_repo}
        git push -u origin master

  %fieldset
    %legend Existing Git Repo?
    %pre.dark
      = preserve do
        cd existing_git_repo
        git remote add origin #{@project.url_to_repo}
        git push -u origin master

  - if can? current_user, :admin_project, @project
    .prepend-top-20
      = link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right"
<commit_msg>Dont show remove project button if you have no permission<commit_after>= render 'clone_panel'

%div.git-empty
  %fieldset
    %legend Git global setup:
    %pre.dark
      = preserve do
        git config --global user.name "#{current_user.name}"
        git config --global user.email "#{current_user.email}"

  %fieldset
    %legend Create Repository
    %pre.dark
      = preserve do
        mkdir #{@project.path}
        cd #{@project.path}
        git init
        touch README
        git add README
        git commit -m 'first commit'
        git remote add origin #{@project.url_to_repo}
        git push -u origin master

  %fieldset
    %legend Existing Git Repo?
    %pre.dark
      = preserve do
        cd existing_git_repo
        git remote add origin #{@project.url_to_repo}
        git push -u origin master

  - if can? current_user, :remove_project, @project
    .prepend-top-20
      = link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right"

{'fraction_non_alphanumeric': 0.09591115598182735, 'fraction_numerical': 0.0020191822311963654, 'mean_word_length': 2.3367003367003365, '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': '5266721', 'n_tokens_mistral': 603, 'n_tokens_neox': 586, 'n_words': 199}