This file is indexed.

/usr/share/doc/libosmium-dev/examples/osmium_debug.cpp is in libosmium-dev 0.0~20140910-9a069af-1+b1.

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
/*

  This is a small tool to dump the contents of the input file.

  If OSMIUM_DEBUG_WITH_ENDTIME is defined when compiling, the
  Osmium::Handler::EndTime is used.

  The code in this example file is released into the Public Domain.

*/

#include <iostream>

#define OSMIUM_WITH_PBF_INPUT
#define OSMIUM_WITH_XML_INPUT

#include <osmium.hpp>
#include <osmium/handler/debug.hpp>

#ifdef OSMIUM_DEBUG_WITH_ENDTIME
# include <osmium/handler/endtime.hpp>
#endif // OSMIUM_DEBUG_WITH_ENDTIME

int main(int argc, char* argv[]) {
    std::ios_base::sync_with_stdio(false);

    if (argc != 2) {
        std::cerr << "Usage: " << argv[0] << " OSMFILE\n";
        exit(1);
    }

    Osmium::OSMFile infile(argv[1]);
#ifdef OSMIUM_DEBUG_WITH_ENDTIME
    Osmium::Handler::Debug debug_handler(true);
    Osmium::Handler::EndTime<Osmium::Handler::Debug> handler(debug_handler);
#else
    Osmium::Handler::Debug handler;
#endif // OSMIUM_DEBUG_WITH_ENDTIME
    Osmium::Input::read(infile, handler);

    google::protobuf::ShutdownProtobufLibrary();
}