This file is indexed.

/usr/include/dawgdic/ranked-completer-candidate.h is in libdawgdic-dev 0.4.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef DAWGDIC_RANKED_COMPLETER_CANDIDATE_H
#define DAWGDIC_RANKED_COMPLETER_CANDIDATE_H

#include "base-types.h"

namespace dawgdic {

class RankedCompleterCandidate {
 public:
  RankedCompleterCandidate() : node_index_(0), value_(-1) {}

  void set_node_index(BaseType node_index) {
    node_index_ = node_index;
  }
  void set_value(ValueType value) {
    value_ = value;
  }

  BaseType node_index() const {
    return node_index_;
  }
  ValueType value() const {
    return value_;
  }

  template <typename VALUE_COMPARER_TYPE>
  class Comparer {
   public:
    typedef VALUE_COMPARER_TYPE ValueComparerType;

    explicit Comparer(ValueComparerType value_comparer)
      : value_comparer_(value_comparer) {}

    bool operator()(const RankedCompleterCandidate &lhs,
                    const RankedCompleterCandidate &rhs) const {
      if (lhs.value() != rhs.value()) {
        return value_comparer_(lhs.value(), rhs.value());
      }
      return lhs.node_index() > rhs.node_index();
    }

   private:
    ValueComparerType value_comparer_;
  };

  template <typename VALUE_COMPARER_TYPE>
  static Comparer<VALUE_COMPARER_TYPE> MakeComparer(
      VALUE_COMPARER_TYPE value_comparer) {
    return Comparer<VALUE_COMPARER_TYPE>(value_comparer);
  }

 private:
  BaseType node_index_;
  ValueType value_;

  // Copyable.
};

}  // namespace dawgdic

#endif  // DAWGDIC_RANKED_COMPLETER_CANDIDATE_H