<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011-2013 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License version 2.1 as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

#ifndef JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_
#define JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_

#include <vector>
#include "jubatus/core/framework/mixable.hpp"
#include "mixer.hpp"

namespace jubatus {
namespace server {
namespace framework {
namespace mixer {

class dummy_mixer : public mixer {
 public:
  void register_api(rpc_server_t& server) {
  }
  void set_mixable_holder(
      jubatus::util::lang::shared_ptr<core::framework::mixable_holder>) {
  }

  void start() {
  }
  void stop() {
  }

  void updated() {
  }

  void get_status(server_base::status_t& status) const {
  }
};

}  // namespace mixer
}  // namespace framework
}  // namespace server
}  // namespace jubatus

#endif  // JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_<commit_msg>add type() interface to dummy_mixer (refs #754)<commit_after>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011-2013 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License version 2.1 as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

#ifndef JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_
#define JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_

#include <vector>
#include "jubatus/core/framework/mixable.hpp"
#include "mixer.hpp"

namespace jubatus {
namespace server {
namespace framework {
namespace mixer {

class dummy_mixer : public mixer {
 public:
  void register_api(rpc_server_t& server) {
  }
  void set_mixable_holder(
      jubatus::util::lang::shared_ptr<core::framework::mixable_holder>) {
  }

  void start() {
  }
  void stop() {
  }

  void updated() {
  }

  void get_status(server_base::status_t& status) const {
  }

  std::string type() const {
    return "dummy_mixer";
  }
};

}  // namespace mixer
}  // namespace framework
}  // namespace server
}  // namespace jubatus

#endif  // JUBATUS_SERVER_FRAMEWORK_MIXER_DUMMY_MIXER_HPP_
{'fraction_non_alphanumeric': 0.08402366863905325, 'fraction_numerical': 0.013313609467455622, 'mean_word_length': 4.146118721461187, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7383089', 'n_tokens_mistral': 1049, 'n_tokens_neox': 983, 'n_words': 358}