This file is indexed.

/etc/presage.xml is in libpresage-data 0.9.1-2.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
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Presage>
    <PredictorRegistry>
        <LOGGER>ERROR</LOGGER>
        <!-- PREDICTORS
	     Space separated list of predictors to use to generate predictions
        -->
        <PREDICTORS>DefaultAbbreviationExpansionPredictor DefaultSmoothedNgramPredictor UserSmoothedNgramPredictor DefaultRecencyPredictor</PREDICTORS>
    </PredictorRegistry>
    <ContextTracker>
        <LOGGER>ERROR</LOGGER>
        <!-- SLIDING_WINDOW_SIZE
	     Size of buffer used by context tracker to detect context changes
        -->
        <SLIDING_WINDOW_SIZE>80</SLIDING_WINDOW_SIZE>
        <!-- LOWERCASE_MODE
	     Instruct context tracker to track text as lowercase
        -->
	<LOWERCASE_MODE>yes</LOWERCASE_MODE>
	<!-- ONLINE_LEARNING
	     Controls presage online machine learning feature.
	     Presage is context-aware and capable of dynamic online learning.
	     Setting this to yes/true will enable online learning mode.
	     Setting this to no/false will disable online learning mode.

             When online learning mode is disabled, it is still
             possible to instruct presage to learn through its API.
	-->
	<ONLINE_LEARNING>yes</ONLINE_LEARNING>
    </ContextTracker>
    <Selector>
        <LOGGER>ERROR</LOGGER>
        <!-- SUGGESTIONS
	     Controls how many suggestions are returned in each prediction.
        -->
        <SUGGESTIONS>6</SUGGESTIONS>
        <!-- REPEAT_SUGGESTIONS
	     Allow the same suggestion to be offered in subsequent
	     predictions, even if no context change has been detected.
        -->
        <REPEAT_SUGGESTIONS>no</REPEAT_SUGGESTIONS>
        <!-- GREEDY_SUGGESTION_THRESHOLD
	     Select only tokens whose completion length is greater than
	     the specified greedy suggestion threshold.
	     i.e. If this option is set to 2 and the current prefix is
               "cu", then the word "cub" will not offered as a
               suggestion, because the completion's length is only one
               character long. Tokens "curb" or "cube" or "cubicle" or
               "cucumber" will however be offered, because these
               words' completions are at least 2 characters long.
        -->
        <GREEDY_SUGGESTION_THRESHOLD>0</GREEDY_SUGGESTION_THRESHOLD>
    </Selector>
    <PredictorActivator>
        <LOGGER>ERROR</LOGGER>
        <!-- PREDICT_TIME
	     Maximum time allowed for predictors to return their prediction.
        -->
        <PREDICT_TIME>1000</PREDICT_TIME>
        <!-- MAX_PARTIAL_PREDICTION_SIZE
	     Desired size of each prediction prior to combination phase.
        -->
        <MAX_PARTIAL_PREDICTION_SIZE>60</MAX_PARTIAL_PREDICTION_SIZE>
        <!-- COMBINATION_POLICY
	     policy used by predictor to combine predictions returned
	     by the active predictors into one prediction.
        -->
        <COMBINATION_POLICY>Meritocracy</COMBINATION_POLICY>
    </PredictorActivator>
    <ProfileManager>
        <LOGGER>ERROR</LOGGER>
        <!-- AUTOPERSIST
             Automatically saves configuration to active profile.
          -->
        <AUTOPERSIST>false</AUTOPERSIST>
    </ProfileManager>
    <Predictors>
        <DefaultSmoothedNgramPredictor>
            <PREDICTOR>SmoothedNgramPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <DBFILENAME>/usr/share/presage/database_en.db</DBFILENAME>
            <!-- delta_0, delta_1, ..., delta_{n-1}
		 Deltas also control the value of n in the n-gram model.
	    -->
            <DELTAS>0.01 0.1 0.89</DELTAS>
            <LEARN>false</LEARN>
            <DatabaseConnector>
                <LOGGER>ERROR</LOGGER>
            </DatabaseConnector>
        </DefaultSmoothedNgramPredictor>
        <UserSmoothedNgramPredictor>
            <PREDICTOR>SmoothedNgramPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
	    <!-- ${HOME} is special. It expands to:
	          - $HOME on Unix
                  - %USERPROFILE% on Windows
	      -->
            <DBFILENAME>${HOME}/.presage/lm.db</DBFILENAME>
            <!-- delta_0, delta_1, ..., delta_{n-1}
		 Deltas also control the value of n in the n-gram model.
	    -->
            <DELTAS>0.01 0.1 0.89</DELTAS>
            <LEARN>true</LEARN>
            <DatabaseConnector>
                <LOGGER>ERROR</LOGGER>
            </DatabaseConnector>
        </UserSmoothedNgramPredictor>
        <DefaultRecencyPredictor>
            <PREDICTOR>RecencyPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <LAMBDA>1</LAMBDA>
            <N_0>1</N_0>
            <CUTOFF_THRESHOLD>20</CUTOFF_THRESHOLD>
        </DefaultRecencyPredictor>
        <DefaultDictionaryPredictor>
            <PREDICTOR>DictionaryPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <DICTIONARY>/usr/share/dict/words</DICTIONARY>
            <!-- fixed probability assigned to prediction -->
            <PROBABILITY>0.000001</PROBABILITY>
        </DefaultDictionaryPredictor>
        <DefaultAbbreviationExpansionPredictor>
            <PREDICTOR>AbbreviationExpansionPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <ABBREVIATIONS>/usr/share/presage/abbreviations_en.txt</ABBREVIATIONS>
        </DefaultAbbreviationExpansionPredictor>
        <DefaultDejavuPredictor>
            <PREDICTOR>DejavuPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <MEMORY>/usr/share/presage/dejavu_memory_en.txt</MEMORY>
            <TRIGGER>3</TRIGGER>
        </DefaultDejavuPredictor>
        <DefaultARPAPredictor>
            <PREDICTOR>ARPAPredictor</PREDICTOR>
            <LOGGER>ERROR</LOGGER>
            <ARPAFILENAME>/usr/share/presage/arpa_en.arpa</ARPAFILENAME>
            <VOCABFILENAME>/usr/share/presage/arpa_en.vocab</VOCABFILENAME>
            <TIMEOUT>100</TIMEOUT>
        </DefaultARPAPredictor>
    </Predictors>
</Presage>