<commit_before>require 'fileutils'
Capistrano::Configuration.instance(:must_exist).load do
 
  namespace :localrepo do
     
    desc "Setup directory structure and initialize git repository on remote server"
    task :setup, :roles => :scm do
      dir =  "#{deploy_to}/repos"
      run   "mkdir -p #{dir}"
      sudo  "chown -R #{user}:#{user} #{dir}"
      run   "cd #{dir} && git --bare init"
      run   "chmod 770 #{dir}"
    end

    desc "Import code into remote git repository."
    task :import  do
      puts    "Initializing local git repository"
      system  "git init"

      puts    "Adding remote server pointing to #{repository}"
      system  "git remote add origin #{repository}"

      puts "Adding .gitignore file"
      system "echo 'log/*'>> .gitignore"
      system "echo 'tmp/*'>> .gitignore"
      system "echo '.DS_Store'>> .gitignore"
      system "echo 'public/cache/**/*'>> .gitignore"
      system "git add .gitignore"

      puts "Committing application locally"
      system "git add *"
      system 'git commit -a -v -m "initial import of site"'

      puts "Pushing application to the remote server.  The name of the branch is:"
      system  "git remote"
      system  "git push origin master"
      puts "git setup complete"
      puts "You can clone this repository with git clone #{repository} #{application}"
    end
 
  end
 
end<commit_msg>added back in edge creation<commit_after>require 'fileutils'
Capistrano::Configuration.instance(:must_exist).load do
 
  namespace :localrepo do
     
    desc "Setup directory structure and initialize git repository on remote server"
    task :setup, :roles => :scm do
      dir =  "#{deploy_to}/repos"
      run   "mkdir -p #{dir}"
      sudo  "chown -R #{user}:#{user} #{dir}"
      run   "cd #{dir} && git --bare init"
      run   "chmod 770 #{dir}"
    end

    desc "Import code into remote git repository."
    task :import  do
      puts    "Initializing local git repository"
      system  "git init"

      puts    "Adding remote server pointing to #{repository}"
      system  "git remote add origin #{repository}"

      puts "Adding .gitignore file"
      system "echo 'log/*'>> .gitignore"
      system "echo 'tmp/*'>> .gitignore"
      system "echo '.DS_Store'>> .gitignore"
      system "echo 'public/cache/**/*'>> .gitignore"
      system "git add .gitignore"

      puts "Committing application locally"
      system "git add *"
      system 'git commit -a -v -m "initial import of site"'

      puts "Pushing application to the remote server.  The name of the branch is:"
      system  "git remote"
      system  "git push origin master"
      
      puts "Creating edge branch on remote"
      system "git push origin master:refs/heads/edge"
      puts "create a local tracking edge branch"
      system "git branch --track edge origin/edge"
      puts "checking out edge repository"
      system "git checkout master"
      
      puts "git setup complete"
      puts "You can clone this repository with git clone #{repository} #{application}"
    end
 
  end
 
end
{'fraction_non_alphanumeric': 0.10622352557836429, 'fraction_numerical': 0.0019550342130987292, 'mean_word_length': 2.5491329479768785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '4759348', 'n_tokens_mistral': 893, 'n_tokens_neox': 869, 'n_words': 348}