<commit_before>/******************************************************************************
 *                       ____    _    _____                                   *
 *                      / ___|  / \  |  ___|    C++                           *
 *                     | |     / _ \ | |_       Actor                         *
 *                     | |___ / ___ \|  _|      Framework                     *
 *                      \____/_/   \_|_|                                      *
 *                                                                            *
 * Copyright (C) 2011 - 2014                                                  *
 * <NAME> <<EMAIL>.charousset (at) haw-hamburg.de>                *
 *                                                                            *
 * Distributed under the terms and conditions of the BSD 3-Clause License or  *
 * (at your option) under the terms and conditions of the Boost Software      *
 * License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE.       *
 *                                                                            *
 * If you did not receive a copy of the license files, see                    *
 * http://opensource.org/licenses/BSD-3-Clause and                            *
 * http://www.boost.org/LICENSE_1_0.txt.                                      *
 ******************************************************************************/

#ifndef CAF_IO_PUBLISH_HPP
#define CAF_IO_PUBLISH_HPP

#include <cstdint>

#include "caf/actor.hpp"
#include "caf/actor_cast.hpp"
#include "caf/typed_actor.hpp"

namespace caf {
namespace io {

void publish_impl(abstract_actor_ptr whom, uint16_t port, const char* in);

/**
 * Publishes `whom` at `port`. The connection is managed by the middleman.
 * @param whom Actor that should be published at `port`.
 * @param port Unused TCP port.
 * @param addr The IP address to listen to or `INADDR_ANY` if `in == nullptr`.
 * @throws bind_failure
 */
inline void publish(caf::actor whom, uint16_t port, const char* in = nullptr) {
  if (!whom) {
    return;
  }
  publish_impl(actor_cast<abstract_actor_ptr>(whom), port, in);
}
<commit_msg>Fix parameter name in Doxygen comment<commit_after>/******************************************************************************
 *                       ____    _    _____                                   *
 *                      / ___|  / \  |  ___|    C++                           *
 *                     | |     / _ \ | |_       Actor                         *
 *                     | |___ / ___ \|  _|      Framework                     *
 *                      \____/_/   \_|_|                                      *
 *                                                                            *
 * Copyright (C) 2011 - 2014                                                  *
 * <NAME> <<EMAIL>inik.charousset (at) haw-hamburg.de>                *
 *                                                                            *
 * Distributed under the terms and conditions of the BSD 3-Clause License or  *
 * (at your option) under the terms and conditions of the Boost Software      *
 * License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE.       *
 *                                                                            *
 * If you did not receive a copy of the license files, see                    *
 * http://opensource.org/licenses/BSD-3-Clause and                            *
 * http://www.boost.org/LICENSE_1_0.txt.                                      *
 ******************************************************************************/

#ifndef CAF_IO_PUBLISH_HPP
#define CAF_IO_PUBLISH_HPP

#include <cstdint>

#include "caf/actor.hpp"
#include "caf/actor_cast.hpp"
#include "caf/typed_actor.hpp"

namespace caf {
namespace io {

void publish_impl(abstract_actor_ptr whom, uint16_t port, const char* in);

/**
 * Publishes `whom` at `port`. The connection is managed by the middleman.
 * @param whom Actor that should be published at `port`.
 * @param port Unused TCP port.
 * @param in The IP address to listen to or `INADDR_ANY` if `in == nullptr`.
 * @throws bind_failure
 */
inline void publish(caf::actor whom, uint16_t port, const char* in = nullptr) {
  if (!whom) {
    return;
  }
  publish_impl(actor_cast<abstract_actor_ptr>(whom), port, in);
}

{'fraction_non_alphanumeric': 0.1551094890510949, 'fraction_numerical': 0.008211678832116789, 'mean_word_length': 1.281477627471384, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6316954', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1025, 'n_words': 283}