This file is indexed.

/usr/lib/python2.7/dist-packages/pyqi/interfaces/optparse/config/make_optparse.py is in pyqi 0.3.2+dfsg-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
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
#!/usr/bin/env python

#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

__credits__ = ["Daniel McDonald", "Greg Caporaso", "Doug Wendel",
               "Jai Ram Rideout"]

from pyqi.core.command import Command
from pyqi.core.interfaces.optparse import (OptparseOption, OptparseUsageExample,
    OptparseResult)
from pyqi.core.interfaces.optparse.input_handler import (command_handler,
                                                         string_list_handler)
from pyqi.core.interfaces.optparse.output_handler import write_list_of_strings
from pyqi.core.command import (make_command_in_collection_lookup_f,
    make_command_out_collection_lookup_f)
from pyqi.commands.make_optparse import CommandConstructor

cmdin_lookup = make_command_in_collection_lookup_f(CommandConstructor)
cmdout_lookup = make_command_out_collection_lookup_f(CommandConstructor)

usage_examples = [
    OptparseUsageExample(ShortDesc="Create an optparse config template",
                         LongDesc="Construct the beginning of an optparse configuration file based on the Parameters required by the Command.",
                         Ex='%prog -c pyqi.commands.make_optparse.MakeOptparse -m pyqi.commands.make_optparse -a "some author" --copyright "Copyright 2013, The pyqi project" -e "foo@bar.com" -l BSD --config-version "0.1" --credits "someone else","and another person" -o pyqi/interfaces/optparse/config/make_optparse.py'),
    OptparseUsageExample(ShortDesc="Create a different optparse config template",
                         LongDesc="Construct the beginning of an optparse configuration file based on the Parameters required by the Command. This command corresponds to the pyqi tutorial example where a sequence_collection_summarizer command line interface is created for a SequenceCollectionSummarizer Command.",
                         Ex='%prog -c sequence_collection_summarizer.SequenceCollectionSummarizer -m sequence_collection_summarizer -a "Greg Caporaso" --copyright "Copyright 2013, Greg Caporaso" -e "gregcaporaso@gmail.com" -l BSD --config-version 0.0.1 -o summarize_sequence_collection.py')
]

inputs = [
    OptparseOption(Parameter=cmdin_lookup('command'),
                   ShortName='c',
                   Handler=command_handler),
    OptparseOption(Parameter=cmdin_lookup('command_module'),
                   ShortName='m'),
    OptparseOption(Parameter=cmdin_lookup('author'),
                   ShortName='a'),
    OptparseOption(Parameter=cmdin_lookup('email'),
                   ShortName='e'),
    OptparseOption(Parameter=cmdin_lookup('license'),
                   ShortName='l'),
    OptparseOption(Parameter=cmdin_lookup('copyright')),
    OptparseOption(Parameter=cmdin_lookup('version'), Name='config-version'),
    OptparseOption(Parameter=cmdin_lookup('credits'),
                   Handler=string_list_handler,
                   Help='comma-separated list of other authors'),
    OptparseOption(Parameter=None,
                   Type='new_filepath',
                   ShortName='o',
                   Name='output-fp',
                   Required=True,
                   Help='output filepath to store generated optparse Python configuration file')
]

outputs = [
    OptparseResult(Parameter=cmdout_lookup('result'),
                   Handler=write_list_of_strings,
                   InputName='output-fp')
]