This file is indexed.

/usr/lib/ruby/vendor_ruby/typhoeus/hydra/runnable.rb is in ruby-typhoeus 0.6.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
module Typhoeus
  class Hydra

    # This module contains logic to run a hydra.
    module Runnable

      # Start the hydra run.
      #
      # @example Start hydra run.
      #   hydra.run
      #
      # @return [ Symbol ] Return value from multi.perform.
      def run
        number_requests = 0
        loop do
          break if number_requests == max_concurrency || queued_requests.empty?
          number_requests += queued_requests.pop(max_concurrency).map do |request|
            add(request)
          end.size
        end
        multi.perform
      end
    end
  end
end