<commit_before>package com.containersol.minimesos.mesos;

import com.containersol.minimesos.container.AbstractContainer;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command.CreateContainerCmd;
import com.github.dockerjava.api.model.ExposedPort;

import java.util.TreeMap;

/**
 * Base, unmolested Mesos master class
 */
public class Consul extends AbstractContainer {

    public static final String CONSUL_IMAGE_NAME = "containersol/consul-agent";
    public static final String CONSUL_TAG_NAME = "0.6";

    private int exposedHostPort = 8300;

    public Consul(DockerClient dockerClient) {
        super(dockerClient);
    }

    @Override
    protected void pullImage() {
        pullImage(CONSUL_IMAGE_NAME, CONSUL_TAG_NAME);
    }

    @Override
    public void start(int timeout) {
        super.start(timeout);
    }

    @Override
    protected CreateContainerCmd dockerCommand() {
        return dockerClient.createContainerCmd(CONSUL_IMAGE_NAME + ":" + CONSUL_TAG_NAME)
                .withName("minimesos-consul-" + getClusterId() + "-" + getRandomId())
                .withExposedPorts(new ExposedPort(exposedHostPort));
    }
}
<commit_msg>Starting consul server not agent<commit_after>package com.containersol.minimesos.mesos;

import com.containersol.minimesos.container.AbstractContainer;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command.CreateContainerCmd;
import com.github.dockerjava.api.model.ExposedPort;

import java.util.TreeMap;

/**
 * Base, unmolested Mesos master class
 */
public class Consul extends AbstractContainer {

    public static final String CONSUL_IMAGE_NAME = "containersol/consul-server";
    public static final String CONSUL_TAG_NAME = "0.6";

    private int exposedHostPort = 8300;

    public Consul(DockerClient dockerClient) {
        super(dockerClient);
    }

    @Override
    protected void pullImage() {
        pullImage(CONSUL_IMAGE_NAME, CONSUL_TAG_NAME);
    }

    @Override
    public void start(int timeout) {
        super.start(timeout);
    }

    @Override
    protected CreateContainerCmd dockerCommand() {
        return dockerClient.createContainerCmd(CONSUL_IMAGE_NAME + ":" + CONSUL_TAG_NAME)
                .withName("minimesos-consul-" + getClusterId() + "-" + getRandomId())
                .withExposedPorts(new ExposedPort(exposedHostPort));
    }
}

{'fraction_non_alphanumeric': 0.09559434746467166, 'fraction_numerical': 0.004987531172069825, 'mean_word_length': 3.67378640776699, 'pattern_counts': {'":': 2, '<': 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': '6541794', 'n_tokens_mistral': 757, 'n_tokens_neox': 715, 'n_words': 136}