This file is indexed.

/usr/include/osl/rating/group/squareGroup.h is in libosl-dev 0.8.0-1.4.

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
/* squareGroup.h
 */
#ifndef _POSITIONGROUP_H
#define _POSITIONGROUP_H

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

namespace osl
{
  namespace rating
  {
    struct RelativeKingXGroup : public Group
    {
      bool attack;
      RelativeKingXGroup(bool a);
      void show(std::ostream& os, int name_width, const range_t& range, 
		const std::vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move move, const RatingEnv& env) const
      {
	const int progress8 = env.progress.value()/2;
	const int index = RelativeKingX::index(attack, state, move);
	return index*8 + progress8;
      }  
      bool effectiveInCheck() const { return true; }
    };

    struct RelativeKingYGroup : public Group
    {
      bool attack;
      RelativeKingYGroup(bool a);
      void show(std::ostream& os, int name_width, const range_t& range, 
		const std::vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& state, Move move, const RatingEnv& env) const
      {
	const int progress8 = env.progress.value()/2;
	const int index = RelativeKingY::index(attack, state, move);
	return index*8+progress8;
      }  
      bool effectiveInCheck() const { return true; }
    };

    struct SquareXGroup : public Group
    {
      SquareXGroup();
      void show(std::ostream& os, int name_width, const range_t& range, 
		const std::vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState& , Move move, const RatingEnv& env) const
      {
	const int progress8 = env.progress.value()/2;
	int index = DropPtype::UNIT*(SquareX::makeX(move)-1);
	index += DropPtype::index(move);
	return index*8+progress8;
      }
      bool effectiveInCheck() const { return true; }
    };

    struct SquareYGroup : public Group
    {
      SquareYGroup();
      void show(std::ostream& os, int name_width, const range_t& range, 
		const std::vector<double>& weights) const
      {
	showTopN(os, name_width, range, weights, 3);
      }
      int findMatch(const NumEffectState&, Move move, const RatingEnv& env) const
      {
	const int progress8 = env.progress.value()/2;
	int index = DropPtype::UNIT*(SquareY::makeY(move)-1);
	index += DropPtype::index(move);
	return index*8+progress8;
      }
      bool effectiveInCheck() const { return true; }
    };
  }
}


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