This file is indexed.

/usr/include/magics/BinningObject.h is in libmagics++-dev 2.22.7.dfsg.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
93
/*! \file BinningObject.h
    \brief Definition of the Template class BinningObject.
    
    Magics Team - ECMWF 2011
    
    Started: Thu 7-Apr-2011
    
    Changes:
    
*/

#ifndef BinningObject_H
#define BinningObject_H

#include "magics.h"
#include "Matrix.h"
#include "BinningObjectAttributes.h"
#include "BasePointsHandler.h"
#include "IntervalMap.h"
#include "Factory.h"
#include "MagTranslator.h"

namespace magics {

  
class BinningObject: public BinningObjectAttributes {

public:
	BinningObject();
	~BinningObject();

	virtual BinningObject* clone() const { return new BinningObject(); }

	Matrix* operator()(PointsList& points);



protected:
     //! Method to print string about this class on to a stream of type ostream (virtual).
	 void print(ostream&) const;
	 typedef void (BinningObject::*binner)(vector<double>&, double, double);
	 		 map<string,  binner> binners_x_;
	 		 map<string,  binner> binners_y_;

	 	void build(vector<double>& vals, IntervalMap<int>& binns);
	 	 void countx(vector<double>&, double, double);
	 	 void listx(vector<double>&, double, double);
	 	 void intervalx(vector<double>&, double, double);

	 	 void county(vector<double>&, double, double);
	 	 void listy(vector<double>&, double, double);
	 	 void intervaly(vector<double>&, double, double);
private:
    //! Copy constructor - No copy allowed
	BinningObject(const BinningObject&);
    //! Overloaded << operator to copy - No copy allowed
	BinningObject& operator=(const BinningObject&);

// -- Friends
    //! Overloaded << operator to call print().
	friend ostream& operator<<(ostream& s,const BinningObject& p)
		{ p.print(s); return s; }

};


class NoBinningObject: public BinningObject {

public:
	NoBinningObject() {}
	~NoBinningObject() {}
	BinningObject* clone() const { return new NoBinningObject(); }
};


template <>
class MagTranslator<string, BinningObject> {
public:
	BinningObject* operator()(const string& val )
	{
		return SimpleObjectMaker<BinningObject>::create(val);
	}

	BinningObject* magics(const string& param)
	{
		string val;
		ParameterManager::get(param, val);
		return (*this)(val);
	}

};
} // namespace magics
#endif