<commit_before>package org.safehaus.kiskis.mgmt.server.broker.impl;

import java.util.HashSet;
import org.safehaus.kiskismgmt.protocol.Agent;
import org.safehaus.kiskismgmt.protocol.Response;
import org.safehaus.kiskis.mgmt.shared.protocol.interfaces.server.RegisteredHostInterface;

import java.util.Set;
import org.safehaus.kiskis.mgmt.server.broker.Activator;
import org.safehaus.kiskis.mgmt.shared.protocol.commands.CommandEnum;
import org.safehaus.kiskismgmt.protocol.Command;
import org.safehaus.kiskismgmt.protocol.Request;
import org.safehaus.kiskismgmt.protocol.RequestType;

/**
 * Created with IntelliJ IDEA. User: daralbaev Date: 10/10/13 Time: 4:48 PM To
 * change this template use File | Settings | File Templates.
 */
public class ResponseStorage implements RegisteredHostInterface {

    Set<Agent> agents;
    CommandEnum commands;

    public CommandEnum getCommands() {
        return commands;
    }

    public ResponseStorage() {
        agents = new HashSet<Agent>();
    }

    @Override
    public Set<Agent> getRegisteredHosts() {
        //To change body of implemented methods use File | Settings | File Templates.
        return agents;
    }

    @Override
    public Request sendAgentResponse(Response response) {<commit_msg>No need for command enum in Broker<commit_after>package org.safehaus.kiskis.mgmt.server.broker.impl;

import java.util.HashSet;
import org.safehaus.kiskismgmt.protocol.Agent;
import org.safehaus.kiskismgmt.protocol.Response;
import org.safehaus.kiskis.mgmt.shared.protocol.interfaces.server.RegisteredHostInterface;

import java.util.Set;
import org.safehaus.kiskis.mgmt.server.broker.Activator;
import org.safehaus.kiskis.mgmt.shared.protocol.commands.CommandEnum;
import org.safehaus.kiskismgmt.protocol.Command;
import org.safehaus.kiskismgmt.protocol.Request;
import org.safehaus.kiskismgmt.protocol.RequestType;

/**
 * Created with IntelliJ IDEA. User: daralbaev Date: 10/10/13 Time: 4:48 PM To
 * change this template use File | Settings | File Templates.
 */
public class ResponseStorage implements RegisteredHostInterface {

    Set<Agent> agents;

    public ResponseStorage() {
        agents = new HashSet<Agent>();
    }

    @Override
    public Set<Agent> getRegisteredHosts() {
        //To change body of implemented methods use File | Settings | File Templates.
        return agents;
    }

    @Override
    public Request sendAgentResponse(Response response) {
{'fraction_non_alphanumeric': 0.0951599671862182, 'fraction_numerical': 0.007383100902378999, 'mean_word_length': 4.20042643923241, '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': '7255753', 'n_tokens_mistral': 762, 'n_tokens_neox': 739, 'n_words': 165}