This file is indexed.

/usr/include/osl/eval/endgame/defenseKing.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
/**
 * defenseKing.h
 */
#ifndef EVAL_ENDGAME_DEFENSEKING_H
#define EVAL_ENDGAME_DEFENSEKING_H

#include "osl/eval/endgame/kingPieceTable.h"
#include "osl/numEffectState.h"

namespace osl
{
  namespace eval
  {
    namespace endgame
    {
      /**
       * 玉の位置*守備駒の位置*ptype
       */
      class DefenseKing
      {
	struct Table : public KingPieceTable
	{
	  void init();
	};
	static Table table;
      public:
	static int valueOf(const Piece king, const Piece defender)
	{
	  return valueOf(king, defender.ptypeO(), defender.square());
	}
	static int valueOf(Piece king, PtypeO ptypeo, Square position)
	{
	  assert(king.ptype() == KING);
	  if (getOwner(ptypeo) != king.owner())
	    return 0;
	  return table.valueOf(king.square(), king.owner(), 
			       position, getPtype(ptypeo));
	}
	static void saveText(const char *filename) { table.saveText(filename); }
	static void loadText(const char *filename) { table.loadText(filename); }
	static void resetWeights(const int *w) { table.resetWeights(w); }
	static void init() { table.init(); }
      };
    } // namespace endgame
  } // namespace endgame
} // namespace osl

#endif /* EVAL_ENDGAME_DEFENSEKING_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End: