<commit_before>module MescalCli
  class Client
    def initialize(host)
      @base_url = "http://#{host}/"
    end

    def task
      TaskClient.new(@base_url)
    end
  end

  class TaskClient
    def initialize(base_url)
      @base_url = base_url + "tasks"
    end

    def create(image, cmd, user)
      RestClient.post @base_url, image: image, cmd: cmd, user: user
    end

    def get(id)
      RestClient.get "#{@base_url}/#{id}"
    end
  end
end<commit_msg>send a port for testing<commit_after>module MescalCli
  class Client
    def initialize(host)
      @base_url = "http://#{host}/"
    end

    def task
      TaskClient.new(@base_url)
    end
  end

  class TaskClient
    def initialize(base_url)
      @base_url = base_url + "tasks"
    end

    def create(image, cmd, user)
      RestClient.post @base_url, image: image, cmd: cmd, port: 22
    end

    def get(id)
      RestClient.get "#{@base_url}/#{id}"
    end
  end
end
{'fraction_non_alphanumeric': 0.11016949152542373, 'fraction_numerical': 0.00211864406779661, 'mean_word_length': 2.4870848708487086, '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': '5490747', 'n_tokens_mistral': 335, 'n_tokens_neox': 326, 'n_words': 87}