<commit_before>package org.safehaus.subutai.common.protocol;


import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.UUID;

import com.google.common.base.Preconditions;
import com.google.common.base.Strings;


/**
 * Used to define a physical host on the whole network. It could be management server or the agent. It just defines a
 * host in the network.
 */
public class Agent implements Serializable, Comparable<Agent> {

    private UUID uuid;
    private String macAddress;
    private String hostname;
    private List<String> listIP;
    private boolean isLXC;
    private String parentHostName;
    private String transportId;
    private UUID hostId;
    private UUID ownerId;


    public Agent( UUID uuid, String hostname, String parentHostName, String macAddress, List<String> listIP,
                  boolean isLXC, String transportId, UUID hostId, UUID ownerId ) {
        Preconditions.checkNotNull( uuid, "UUID is null" );
        Preconditions.checkArgument( !Strings.isNullOrEmpty( hostname ), "Hostname is null or empty" );

        this.uuid = uuid;
        this.macAddress = macAddress;
        this.hostname = hostname;
        this.listIP = listIP;
        this.isLXC = isLXC;
        this.parentHostName = parentHostName;
        this.transportId = transportId;
        this.hostId = hostId;
        this.ownerId = ownerId;
    }


    public UUID getHostId() {
        return hostId;
    }


    public UUID getOwnerId() {
        return ownerId;
    }


    public String getTransportId() {
        return transportId;<commit_msg>Added Command Dispatcher Module<commit_after>package org.safehaus.subutai.common.protocol;


import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.UUID;

import com.google.common.base.Preconditions;
import com.google.common.base.Strings;


/**
 * Used to define a physical host on the whole network. It could be management server or the agent. It just defines a
 * host in the network.
 */
public class Agent implements Serializable, Comparable<Agent> {

    private UUID uuid;
    private String macAddress;
    private String hostname;
    private List<String> listIP;
    private boolean isLXC;
    private String parentHostName;
    private String transportId;
    private UUID hostId;
    private UUID ownerId;


    public Agent( UUID uuid, String hostname, String parentHostName, String macAddress, List<String> listIP,
                  boolean isLXC, String transportId, UUID hostId, UUID ownerId ) {
        Preconditions.checkNotNull( uuid, "UUID is null" );
        Preconditions.checkArgument( !Strings.isNullOrEmpty( hostname ), "Hostname is null or empty" );
        //TODO uncomment checks when agent supplies host id and owner id
        //        Preconditions.checkNotNull( hostId, "Host id is null" );
        //        Preconditions.checkNotNull( ownerId, "Owner id is null" );

        this.uuid = uuid;
        this.macAddress = macAddress;
        this.hostname = hostname;
        this.listIP = listIP;
        this.isLXC = isLXC;
        this.parentHostName = parentHostName;
        this.transportId = transportId;
        this.hostId = hostId;
        this.ownerId = ownerId;
    }


    public UUID getHostId() {
        return hostId;
    }


    public UUID getOwnerId() {
        return ownerId;
    }


    public String getTransportId() {
        return transportId;
{'fraction_non_alphanumeric': 0.08006962576153177, 'fraction_numerical': 0.0, 'mean_word_length': 2.8268590455049947, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6127121', 'n_tokens_mistral': 988, 'n_tokens_neox': 973, 'n_words': 303}