<commit_before>require "testjour/commands/command"
require "cucumber"
require "uri"
require "daemons/daemonize"
require "testjour/cucumber_extensions/http_formatter"
require "testjour/mysql"
require "testjour/rsync"
require "stringio"

module Testjour
module Commands
    
  class RunRemote < RunSlave
    
    def execute
      configuration.parse!
      configuration.parse_uri!
      
      # raise configuration.rsync_uri.inspect
      
      Dir.chdir(configuration.in) do
        Testjour.setup_logger(configuration.in)
        Testjour.logger.info "Starting run:slave"
        
        rsync
        Testjour.logger.info "Setup"
        configuration.setup
        Testjour.logger.info "Requirign"
        require_files
        Testjour.logger.info "Working"
        work
      end
    end
    
    def rsync
      Rsync.copy_to_current_directory_from(configuration.rsync_uri)
    end
    
  end
  
end
end<commit_msg>Setup mysql on remote runners<commit_after>require "testjour/commands/command"
require "cucumber"
require "uri"
require "daemons/daemonize"
require "testjour/cucumber_extensions/http_formatter"
require "testjour/mysql"
require "testjour/rsync"
require "stringio"

module Testjour
module Commands
    
  class RunRemote < RunSlave
    
    def execute
      configuration.parse!
      configuration.parse_uri!
      
      # raise configuration.rsync_uri.inspect
      
      Dir.chdir(configuration.in) do
        Testjour.setup_logger(configuration.in)
        Testjour.logger.info "Starting run:slave"
        
        rsync
        Testjour.logger.info "Setup"
        configuration.setup
        configuration.setup_mysql
        Testjour.logger.info "Requirign"
        require_files
        Testjour.logger.info "Working"
        work
      end
    end
    
    def rsync
      Rsync.copy_to_current_directory_from(configuration.rsync_uri)
    end
    
  end
  
end
end
{'fraction_non_alphanumeric': 0.06789473684210526, 'fraction_numerical': 0.0, 'mean_word_length': 2.6072106261859584, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1539855', 'n_tokens_mistral': 575, 'n_tokens_neox': 569, 'n_words': 112}