<commit_before>/*
 * Copyright (c) 2014 by <NAME>, Zuse Institute Berlin
 *
 * Licensed under the BSD License, see LICENSE file for details.
 *
 */

#ifndef CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_
#define CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_

namespace xtreemfs {

namespace pbrpc {
class XLocSet;
}  // namespace pbrpc

/** An interface which allows to retrieve the latest XLocSet and renew it if required. */
class XLocSetHandler {
 public:
  virtual ~XLocSetHandler() {}

  /** Get the current xLocSet and update the given one. */
  virtual void GetXLocSet(xtreemfs::pbrpc::XLocSet* xlocset) = 0;

  /** Renew the xLocSet synchronously. */
  virtual void RenewXLocSet() = 0;
};

}  // namespace xtreemfs

#endif  // CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_<commit_msg>client: Add pointer ownership information.<commit_after>/*
 * Copyright (c) 2014 by <NAME>, Zuse Institute Berlin
 *
 * Licensed under the BSD License, see LICENSE file for details.
 *
 */

#ifndef CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_
#define CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_

namespace xtreemfs {

namespace pbrpc {
class XLocSet;
}  // namespace pbrpc

/** An interface which allows to retrieve the latest XLocSet and renew it if required. */
class XLocSetHandler {
 public:
  virtual ~XLocSetHandler() {}

  /**
   * Get the current xLocSet and update the given one.
   *
   * @remark   Ownership is not transferred.
   **/
  virtual void GetXLocSet(xtreemfs::pbrpc::XLocSet* xlocset) = 0;

  /** Renew the xLocSet synchronously. */
  virtual void RenewXLocSet() = 0;
};

}  // namespace xtreemfs

#endif  // CPP_INCLUDE_LIBXTREEMFS_XLOCSET_HANDLER_H_
{'fraction_non_alphanumeric': 0.09200968523002422, 'fraction_numerical': 0.007263922518159807, 'mean_word_length': 4.247619047619048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1998812', 'n_tokens_mistral': 605, 'n_tokens_neox': 572, 'n_words': 160}