<commit_before>module Uphold
  module Engines
    class Mysql < Engine

      def initialize(params)
        super(params)
        @docker_image ||= 'mysql'
        @docker_tag ||= '5.7.10'
        @docker_env ||= ['MYSQL_ALLOW_EMPTY_PASSWORD=yes', "MYSQL_DATABASE=#{@database}"]
        @port ||= 3306
        @sql_file ||= 'MySQL.sql'
      end

      def load_backup(path)
        Dir.chdir(path) do
          run_command("mysql -u root --host=#{container_ip_address} #{@database} < #{@sql_file}")
        end
      end
    end
  end
end<commit_msg>specify the port number<commit_after>module Uphold
  module Engines
    class Mysql < Engine

      def initialize(params)
        super(params)
        @docker_image ||= 'mysql'
        @docker_tag ||= '5.7.10'
        @docker_env ||= ['MYSQL_ALLOW_EMPTY_PASSWORD=yes', "MYSQL_DATABASE=#{@database}"]
        @port ||= 3306
        @sql_file ||= 'MySQL.sql'
      end

      def load_backup(path)
        Dir.chdir(path) do
          run_command("mysql -u root --host=#{container_ip_address} --port=#{@port} #{@database} < #{@sql_file}")
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.13893805309734514, 'fraction_numerical': 0.01415929203539823, 'mean_word_length': 2.416918429003021, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4292151', 'n_tokens_mistral': 406, 'n_tokens_neox': 393, 'n_words': 77}