This file is indexed.

/usr/include/osl/rating/group/patternGroup.h is in libosl-dev 0.6.0-3.1.

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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* patternGroup.h
 */
#ifndef _PATTERNGROUP_H
#define _PATTERNGROUP_H

#include "osl/rating/group.h"
#include "osl/rating/feature/pattern.h"

namespace osl
{
  namespace rating
  {
    struct PatternGroup : public Group
    {
      static std::string name(Direction direction, Direction direction2);
      Direction direction, direction2;
      CArray2d<unsigned char, 2, Square::SIZE> target_table;
      explicit PatternGroup(Direction d, Direction d2 = Pattern::INVALID);
      void show(std::ostream& os, int name_width, const range_t& range, 
		const vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move m, const RatingEnv&) const;
      bool effectiveInCheck() const { return true; }
    };


    class PatternLongGroup : public Group
    {
    public:
      static const CArray<Direction,4> rook_direction4;
      static const CArray<Direction,4> bishop_direction4;
    private:
      static std::string name(int direction_id);
      int direction_id;
    public:
      explicit PatternLongGroup(int d);

      Direction makeDirection(Ptype ptype) const 
      {
	return (unpromote(ptype) == BISHOP) ? bishop_direction4[direction_id] : rook_direction4[direction_id];
      }
      void show(std::ostream& os, int name_width, const range_t& range, 
		const vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move m, const RatingEnv& env) const;
      bool effectiveInCheck() const { return true; }
    };


    class PatternLongGroup2 : public Group
    {
      static std::string name(int direction_id);
      int direction_id;
    public:
      PatternLongGroup2(int d);

      Direction makeDirection(Ptype ptype) const 
      {
	return (unpromote(ptype) == BISHOP) 
	  ? PatternLongGroup::bishop_direction4[direction_id] 
	  : PatternLongGroup::rook_direction4[direction_id];
      }
      void show(std::ostream& os, int name_width, const range_t& range, 
		const vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move m, const RatingEnv& env) const;
      bool effectiveInCheck() const { return true; }
    };

    class PatternBlockGroup : public Group
    {
      Ptype attacker;
    public:
      explicit PatternBlockGroup(Ptype attacker);
      void show(std::ostream& os, int name_width, const range_t& range, 
		const vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move m, const RatingEnv& env) const;
    };
  }
}

#endif /* _PATTERNGROUP_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: