This file is indexed.

/usr/include/osl/eval/ml/weights.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
/* weights.h
 */
#ifndef OSL_EVAL_WEIGHTS_H
#define OSL_EVAL_WEIGHTS_H

#include "osl/eval/ml/midgame.h"
#include "osl/stl/vector.h"
#include <valarray>
#include <cassert>

namespace osl
{
  namespace eval
  {
    namespace ml
    {
      struct Weights
      {
      protected:
	std::valarray<signed short> values;
	size_t dim;
      public:
	explicit Weights(size_t dim=0);
	virtual ~Weights();

	void resetDimension(size_t new_dim);
	int value(size_t index) const { assert(index < dim); return values[index]; }
	void setRandom();
	size_t dimension() const { return dim; }

	void setValue(size_t index, int value) 
	{
	  assert(index < dim);
	  values[index] = value;
	  assert(values[index] == value);
	}
      };

      class MultiWeights
      {
      protected:
	std::vector<MultiInt> values;
	size_t one_dim;
      public:
	explicit MultiWeights(size_t one_dim=0);
	virtual ~MultiWeights();

	void resetDimension(size_t one_dim);
	const MultiInt& value(size_t index) const { assert(index < one_dim); return values[index]; }
	void setRandom();
	size_t oneDimension() const { return one_dim; }
	void setValue(size_t index, MultiInt value) 
	{
	  assert(index < one_dim);
	  values[index] = value;
	}
      };
    }
  }
}

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