This file is indexed.

/usr/share/doc/ruby-gsl/examples/histogram/rebin.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.

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
#!/usr/bin/env ruby
require("gsl")

h = GSL::Histogram.alloc(100, [-4, 4])

rng = GSL::Rng.alloc
for i in 0..10000 do
  h.increment(rng.gaussian)
end

h2 = h.rebin
h5 = h.rebin(5)
h7 = h.rebin(7)

printf("%d %d %d %d\n", h.n, h2.n, h5.n, h7.n)
printf("%f %f %f %f\n", h.sigma, h2.sigma, h5.sigma, h7.sigma)
GSL::graph(h, h2, h5, h7, "-T X -C -g 3 -x -4 4")