This file is indexed.

/usr/share/octave/packages/parallel-2.2.0/private/parcellfun_opts.m is in octave-parallel 2.2.0-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
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
## Copyright (C) 2010 VZLU Prague, a.s., Czech Republic
##
## This program is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation; either version 3 of the License, or (at your option) any later
## version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
## details.
##
## You should have received a copy of the GNU General Public License along with
## this program; if not, see <http://www.gnu.org/licenses/>.

## -*- texinfo -*-
## @deftypefn{Function File} {} parcellfun_opts (args)
## Undocumented internal function.
## @end deftypefn

function [nargs, uniform_output, error_handler, ...
  verbose_level, chunks_per_proc, vectorized] = parcellfun_opts (args)

  uniform_output = true;
  error_handler = [];
  verbose_level = 1; # default to normal output level
  chunks_per_proc = 0; # 0 means than size of chunk is 1
  vectorized = false;

  nargs = length (args);

  ## parse options
  while (nargs > 1)
    opt = args{nargs-1};
    if (! ischar (opt))
      break;
    else
      opt = tolower (opt);
      val = args{nargs};
    endif
    switch (opt)
    case "uniformoutput"
      uniform_output = logical (val);
      if (! isscalar (uniform_output))
        error ("parcellfun: UniformOutput must be a logical scalar");
      endif
    case "errorhandler"
      error_handler = val;
      if (! isa (error_handler, "function_handle"))
        error ("parcellfun: ErrorHandler must be a function handle");
      endif
    case "verboselevel"
      verbose_level = val;
      if (! isscalar (verbose_level))
        error ("parcellfun: VerboseLevel must be a numeric scalar");
      endif
    case "chunksperproc"
      chunks_per_proc = round (val);
      if (! isscalar (chunks_per_proc) || chunks_per_proc <= 0)
        error ("parcellfun: ChunksPerProc must be a positive scalar");
      endif
    case "vectorized"
      vectorized = logical (val);
      if (! isscalar (vectorized))
        error ("parcellfun: Vectorized must be a logical scalar");
      endif
    otherwise
      break;
    endswitch
    nargs -= 2;
  endwhile

  if (vectorized && chunks_per_proc <= 0)
    error ("parcellfun: the ""Vectorized"" option requires also ""ChunksPerProc""");
  endif

endfunction