<commit_before>
module Gosu
  module Commands
    module Base

      def self.show_help
        puts "Usage: gosu_android [OPTION]"
        puts "Adds or deletes dependencies for Gosu in a Ruboto project."
        puts "If no argument is specified it adds the dependencies."  
        puts ""
        puts " -a, --add adds the files to the project"
        puts " -d, --delete deletes the files from the project"
        puts " -h, --help display this help and exit"
        puts ""
        puts "The options -a and -d can not be given together."
        puts ""
        puts "Exit status:"
        puts " 0 if everything went ok,"
        puts " 1 if there was some error."
      end 
      
      def self.add_files 
        root = Dir.pwd
        gem_root = File.expand_path(File.dirname(__FILE__))
        puts "añadiendo #{root} #{gem_root}"
        lib_files = FileList[ gem_root + 'gosu_android/lib/**/*'].to_a do |file|
          #FileUtils.mkdir_p(File.dirname(root + "/src"))
          #FileUtils.cp(file, dst)        
        end
      end
      
      def self.delete_files 
        root = Dir.pwd<commit_msg>File paths are now calculated accordingly to where the user called gosu_android<commit_after>require 'rake'

module Gosu
  module Commands
    module Base

      def self.show_help
        puts "Usage: gosu_android [OPTION]"
        puts "Adds or deletes dependencies for Gosu in a Ruboto project."
        puts "If no argument is specified it adds the dependencies."  
        puts ""
        puts " -a, --add adds the files to the project"
        puts " -d, --delete deletes the files from the project"
        puts " -h, --help display this help and exit"
        puts ""
        puts "The options -a and -d can not be given together."
        puts ""
        puts "Exit status:"
        puts " 0 if everything went ok,"
        puts " 1 if there was some error."
      end 
      
      def self.add_files 
        root = Dir.pwd
        gem_root = File.expand_path(File.dirname(__FILE__))
        gem_root.slice! "/commands"
        puts "root #{root}\n"
        gem_root_s = gem_root + "/*"
        gem_root_ss = gem_root + "/*/*"
        puts " gem_root #{gem_root_s}\n"
        lib_files = FileList[ gem_root_s, gem_root_ss ].to_a
        #puts "lib_files vale #{lib_files}"
        not_copy_files = ["commands", "description", "version"]
  
        not_copy_files.each do |not_copy|
          lib_files.delete_if do |element|
            element.include? not_copy 
          end
        end
        
        lib_files.each do |file|
          puts "Copiando file #{file}\n"
          file.slice!(gem_root) 
          puts "primera parte #{file}\n"
          
          puts "a root #{root + '/src/gosu_android' + file }\n\n"
          #FileUtils.mkdir_p(File.dirname(root + "/src"))
          #FileUtils.cp(file, dst)        
        end
        puts "antes " + gem_root
        gem_root = gem_root + "/"
        gem_root.slice! "/gosu_android/"
        puts "despues " + gem_root
        puts gem_root + "/gosu_android.rb\n"
        puts gem_root + "/gosu.java.jar.rb\n"
      end
      
      def self.delete_files 
        root = Dir.pwd
{'fraction_non_alphanumeric': 0.09870703248186692, 'fraction_numerical': 0.001261431725007884, 'mean_word_length': 1.8120567375886525, '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': '2249380', 'n_tokens_mistral': 971, 'n_tokens_neox': 988, 'n_words': 305}