<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
// vim: ts=8 sw=2 smarttab
/*
 * Ceph - scalable distributed file system
 *
 * Copyright (C) 2004-2006 <NAME> <<EMAIL>>
 *
 * This 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.  See file COPYING.
 * 
 */


#ifndef __MOSDPGINFO_H
#define __MOSDPGINFO_H

#include "msg/Message.h"

class MOSDPGInfo : public Message {
  epoch_t epoch;

public:
  vector<PG::Info> pg_info;

  epoch_t get_epoch() { return epoch; }

  MOSDPGInfo() {}
  MOSDPGInfo(version_t mv) :
    Message(MSG_OSD_PG_INFO),
    epoch(mv) { }

  const char *get_type_name() { return "pg_info"; }
  void print(ostream& out) {
    out << "pg_info(" << pg_info.size() << " pgs e" << epoch << ")";
  }

  void encode_payload() {
    ::encode(epoch, payload);
    ::encode(pg_info, payload);
  }
  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    ::decode(epoch, p);
    ::decode(pg_info, p);
  }
};

#endif
<commit_msg>msg: MOSDPGInfo has a private destructor<commit_after>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
// vim: ts=8 sw=2 smarttab
/*
 * Ceph - scalable distributed file system
 *
 * Copyright (C) 2004-2006 <NAME> <<EMAIL>>
 *
 * This 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.  See file COPYING.
 * 
 */


#ifndef __MOSDPGINFO_H
#define __MOSDPGINFO_H

#include "msg/Message.h"

class MOSDPGInfo : public Message {
  epoch_t epoch;

public:
  vector<PG::Info> pg_info;

  epoch_t get_epoch() { return epoch; }

  MOSDPGInfo() {}
  MOSDPGInfo(version_t mv) :
    Message(MSG_OSD_PG_INFO),
    epoch(mv) { }
private:
  ~MOSDPGInfo() {}

public:
  const char *get_type_name() { return "pg_info"; }
  void print(ostream& out) {
    out << "pg_info(" << pg_info.size() << " pgs e" << epoch << ")";
  }

  void encode_payload() {
    ::encode(epoch, payload);
    ::encode(pg_info, payload);
  }
  void decode_payload() {
    bufferlist::iterator p = payload.begin();
    ::decode(epoch, p);
    ::decode(pg_info, p);
  }
};

#endif

{'fraction_non_alphanumeric': 0.15079707022834984, 'fraction_numerical': 0.012063765618267988, 'mean_word_length': 3.517509727626459, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 11, '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': '4195613', 'n_tokens_mistral': 868, 'n_tokens_neox': 845, 'n_words': 220}