<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 CEPH_MINODEFILECAPS_H
#define CEPH_MINODEFILECAPS_H

class MInodeFileCaps : public Message {
  inodeno_t ino;
  __s32     from;
  __u32     caps;

 public:
  inodeno_t get_ino() { return ino; }
  int       get_from() { return from; }
  int       get_caps() { return caps; }

  MInodeFileCaps() {}
  // from auth
  MInodeFileCaps(inodeno_t ino, int from, int caps) :
    Message(MSG_MDS_INODEFILECAPS) {
    this->ino = ino;
    this->from = from;
    this->caps = caps;
  }
private:
  ~MInodeFileCaps() {}

public:
  const char *get_type_name() { return "Icap";}
  
  void encode_payload(CephContext *cct) {
    ::encode(from, payload);
    ::encode(ino, payload);
    ::encode(caps, payload);
  }
  void decode_payload(CephContext *cct) {
    bufferlist::iterator p = payload.begin();<commit_msg>mds: improve print() for MInodeFileCaps<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 CEPH_MINODEFILECAPS_H
#define CEPH_MINODEFILECAPS_H

class MInodeFileCaps : public Message {
  inodeno_t ino;
  __s32     from;
  __u32     caps;

 public:
  inodeno_t get_ino() { return ino; }
  int       get_from() { return from; }
  int       get_caps() { return caps; }

  MInodeFileCaps() {}
  // from auth
  MInodeFileCaps(inodeno_t ino, int from, int caps) :
    Message(MSG_MDS_INODEFILECAPS) {
    this->ino = ino;
    this->from = from;
    this->caps = caps;
  }
private:
  ~MInodeFileCaps() {}

public:
  const char *get_type_name() { return "inode_file_caps";}
  void print(ostream& out) {
    out << "inode_file_caps(" << ino << " " << ccap_string(caps) << ")";
  }
  
  void encode_payload(CephContext *cct) {
    ::encode(from, payload);
    ::encode(ino, payload);
    ::encode(caps, payload);
  }
  void decode_payload(CephContext *cct) {
    bufferlist::iterator p = payload.begin();
{'fraction_non_alphanumeric': 0.13183034008406572, 'fraction_numerical': 0.013756209400076424, 'mean_word_length': 3.334437086092715, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '7633767', 'n_tokens_mistral': 977, 'n_tokens_neox': 942, 'n_words': 246}