Merge lp:~zorba-coders/zorba/xqdoc_fixes_data_cleaning into lp:zorba/data-cleaning-module

Proposed by Sorin Marian Nasoi
Status: Merged
Merged at revision: 50
Proposed branch: lp:~zorba-coders/zorba/xqdoc_fixes_data_cleaning
Merge into: lp:zorba/data-cleaning-module
Diff against target: 719 lines (+116/-116)
6 files modified
src/character-based-string-similarity.xq (+10/-10)
src/consolidation.xq (+54/-54)
src/hybrid-string-similarity.xq (+12/-12)
src/phonetic-string-similarity.xq (+8/-8)
src/set-similarity.xq (+12/-12)
src/token-based-string-similarity.xq (+20/-20)
To merge this branch: bzr merge lp:~zorba-coders/zorba/xqdoc_fixes_data_cleaning
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Sorin Marian Nasoi Approve
Review via email: mp+187904@code.launchpad.net

Commit message

XQDoc fixes.

To post a comment you must log in.
50. By sorin.marian.nasoi <email address hidden>

- xqdoc fixes

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue succeeded - proposal merged!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/character-based-string-similarity.xq'
2--- src/character-based-string-similarity.xq 2013-08-09 09:37:05 +0000
3+++ src/character-based-string-similarity.xq 2013-09-26 20:27:53 +0000
4@@ -40,9 +40,9 @@
5 : of edits needed to transform one string into the other, with the allowable edit operations
6 : being insertion, deletion, or substitution of a single character.</p>
7 : <p/>
8- : <p>Example usage : <code>edit-distance("FLWOR", "FLOWER")</code></p>
9+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">edit-distance("FLWOR", "FLOWER")</pre></p>
10 : <p/>
11- : <p>The function invocation in the example above returns : <code>2</code></p>
12+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">2</pre></p>
13 :
14 : @param $s1 The first string.
15 : @param $s2 The second string.
16@@ -67,9 +67,9 @@
17 : the Jaro-Winkler value is, the more similar the strings are. The coefficient is
18 : normalized such that 0 equates to no similarity and 1 is an exact match.</p>
19 : <p/>
20- : <p>Example usage : <code>jaro("FLWOR Found.", "FLWOR Foundation")</code></p>
21+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">jaro("FLWOR Found.", "FLWOR Foundation")</pre></p>
22 : <p/>
23- : <p>The function invocation in the example above returns : <code>0.5853174603174603</code></p>
24+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">0.5853174603174603</pre></p>
25 :
26 : @param $s1 The first string.
27 : @param $s2 The second string.
28@@ -98,9 +98,9 @@
29 : <p>This similarity coefficient corresponds to an extension of the Jaro similarity coefficient that weights or
30 : penalizes strings based on their similarity at the beginning of the string, up to a given prefix size.</p>
31 : <p/>
32- : <p>Example usage : <code>jaro-winkler("DWAYNE", "DUANE", 4, 0.1 )</code></p>
33+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">jaro-winkler("DWAYNE", "DUANE", 4, 0.1 )</pre></p>
34 : <p/>
35- : <p>The function invocation in the example above returns : <code>0.8577777777777778</code></p>
36+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">0.8577777777777778</pre></p>
37 :
38 : @param $s1 The first string.
39 : @param $s2 The second string.
40@@ -123,9 +123,9 @@
41 : variable cost adjustment to the cost of a gap (i.e., an insertion or deletion) in the
42 : distance metric.</p>
43 : <p/>
44- : <p>Example usage : <code>needleman-wunsch("KAK", "KQRK", 1, 1)</code></p>
45+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">needleman-wunsch("KAK", "KQRK", 1, 1)</pre></p>
46 : <p/>
47- : <p>The function invocation in the example above returns : <code>0</code></p>
48+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">0</pre></p>
49 :
50 : @param $s1 The first string.
51 : @param $s2 The second string.
52@@ -148,9 +148,9 @@
53 (:~
54 : <p>Returns the Smith-Waterman distance between two strings.</p>
55 : <p/>
56- : <p>Example usage : <code>smith-waterman("ACACACTA", "AGCACACA", 2, 1)</code></p>
57+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">smith-waterman("ACACACTA", "AGCACACA", 2, 1)</pre></p>
58 : <p/>
59- : <p>The function invocation in the example above returns : <code>12</code></p>
60+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">12</pre></p>
61 :
62 : @param $s1 The first string.
63 : @param $s2 The second string.
64
65=== modified file 'src/consolidation.xq'
66--- src/consolidation.xq 2013-08-09 09:37:05 +0000
67+++ src/consolidation.xq 2013-09-26 20:27:53 +0000
68@@ -41,9 +41,9 @@
69 : <p>If more then one answer is possible, returns the first node according to the order of the input sequence.</p>
70 : <p/>
71 :
72- : <p>Example usage : <code>most-frequent( ( "a", "a", "b") )</code></p>
73+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-frequent( ( "a", "a", "b") )</pre></p>
74 : <p/>
75- : <p>The function invocation in the example above returns : <code>("a")</code></p>
76+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("a")</pre></p>
77 :
78 : @param $s A sequence of nodes.
79 : @return The most frequent node in the input sequence.
80@@ -58,9 +58,9 @@
81 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
82 : <p/>
83 :
84- : <p>Example usage : <code>least-frequent( ( "a", "a", "b") )</code></p>
85+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-frequent( ( "a", "a", "b") )</pre></p>
86 : <p/>
87- : <p>The function invocation in the example above returns : <code>("b")</code></p>
88+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("b")</pre></p>
89 :
90 : @param $s A sequence of nodes.
91 : @return The least frequent node in the input sequence.
92@@ -76,9 +76,9 @@
93 : <p>If more then one answer is possible, return the first string according to the order of the input sequence.</p>
94 : <p/>
95 :
96- : <p>Example usage : <code>con:longest( ( "a", "aa", "aaa") )</code></p>
97+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">con:longest( ( "a", "aa", "aaa") )</pre></p>
98 : <p/>
99- : <p>The function invocation in the example above returns : <code>("aaa")</code></p>
100+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("aaa")</pre></p>
101 :
102 : @param $s A sequence of strings.
103 : @return The longest string in the input sequence.
104@@ -94,9 +94,9 @@
105 : <p>If more then one answer is possible, return the first string according to the order of the input sequence.</p>
106 : <p/>
107 :
108- : <p>Example usage : <code>shortest( ( "a", "aa", "aaa") )</code></p>
109+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">shortest( ( "a", "aa", "aaa") )</pre></p>
110 : <p/>
111- : <p>The function invocation in the example above returns : <code>("a")</code></p>
112+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("a")</pre></p>
113 :
114 : @param $s A sequence of strings.
115 : @return The shortest string in the input sequence.
116@@ -112,9 +112,9 @@
117 : <p>If more then one answer is possible, return the first string according to the order of the input sequence.</p>
118 : <p/>
119 :
120- : <p>Example usage : <code>most-tokens( ( "a b c", "a b", "a"), " +" )</code></p>
121+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-tokens( ( "a b c", "a b", "a"), " +" )</pre></p>
122 : <p/>
123- : <p>The function invocation in the example above returns : <code>("a b c")</code></p>
124+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("a b c")</pre></p>
125 :
126 : @param $s A sequence of strings.
127 : @param $r A regular expression forming the delimiter character(s) which mark the boundaries between adjacent tokens.
128@@ -131,9 +131,9 @@
129 : <p>If more then one answer is possible, return the first string according to the order of the input sequence.</p>
130 : <p/>
131 :
132- : <p>Example usage : <code>least-tokens( ( "a b c", "a b", "a"), " +" )</code></p>
133+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-tokens( ( "a b c", "a b", "a"), " +" )</pre></p>
134 : <p/>
135- : <p>The function invocation in the example above returns : <code>("a")</code></p>
136+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">("a")</pre></p>
137 :
138 : @param $s A sequence of strings.
139 : @param $r A regular expression forming the delimiter character(s) which mark the boundaries between adjacent tokens.
140@@ -149,9 +149,9 @@
141 : <p>Returns the strings from an input sequence of strings that match a particular regular expression.</p>
142 : <p/>
143 :
144- : <p>Example usage : <code>matching( ( "a A b", "c AAA d", "e BB f"), "A+" )</code></p>
145+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">matching( ( "a A b", "c AAA d", "e BB f"), "A+" )</pre></p>
146 : <p/>
147- : <p>The function invocation in the example above returns : <code>( "a A b", "c AAA d")</code></p>
148+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">( "a A b", "c AAA d")</pre></p>
149 :
150 : @param $s A sequence of strings.
151 : @param $r The regular expression to be used in the matching.
152@@ -168,9 +168,9 @@
153 : <p>If more then one answer is possible, the function returns the first string according to the order of the input sequence.</p>
154 : <p/>
155 :
156- : <p>Example usage : <code>super-string( ( "aaa bbb ccc", "aaa bbb", "aaa ddd", "eee fff" ) )</code></p>
157+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">super-string( ( "aaa bbb ccc", "aaa bbb", "aaa ddd", "eee fff" ) )</pre></p>
158 : <p/>
159- : <p>The function invocation in the example above returns : <code>( "aaa bbb" )</code></p>
160+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">( "aaa bbb" )</pre></p>
161 :
162 : @param $s A sequence of strings.
163 : @return The string that appears more frequently as part of the other strings in the sequence.
164@@ -193,9 +193,9 @@
165 : input sequence.</p>
166 : <p/>
167 :
168- : <p>Example usage : <code>most-similar-edit-distance( ( "aaabbbccc", "aaabbb", "eeefff" ), "aaab" )</code></p>
169+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-similar-edit-distance( ( "aaabbbccc", "aaabbb", "eeefff" ), "aaab" )</pre></p>
170 : <p/>
171- : <p>The function invocation in the example above returns : <code>( "aaabbb" )</code></p>
172+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">( "aaabbb" )</pre></p>
173 :
174 : @param $s A sequence of strings.
175 : @param $m The string towards which we want to measure the edit distance.
176@@ -213,9 +213,9 @@
177 : value for the edit distance metric), return the first string according to the order of the input sequence.</p>
178 : <p/>
179 :
180- : <p>Example usage : <code>least-similar-edit-distance( ( "aaabbbccc", "aaabbb", "eeefff" ), "aaab" )</code></p>
181+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-similar-edit-distance( ( "aaabbbccc", "aaabbb", "eeefff" ), "aaab" )</pre></p>
182 : <p/>
183- : <p>The function invocation in the example above returns : <code>( "eeefff" )</code></p>
184+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">( "eeefff" )</pre></p>
185 :
186 : @param $s A sequence of strings.
187 : @param $m The string towards which we want to measure the edit distance.
188@@ -233,9 +233,9 @@
189 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
190 : <p/>
191 :
192- : <p>Example usage : <code>most-elements( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;a/&gt;, &lt;b/&gt;) )</code></p>
193+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-elements( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;a/&gt;, &lt;b/&gt;) )</pre></p>
194 : <p/>
195- : <p>The function invocation in the example above returns : <code>(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</code></p>
196+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</pre></p>
197 :
198 : @param $s A sequence of nodes.
199 : @return The node having the largest number of descending elements in the input sequence.
200@@ -251,9 +251,9 @@
201 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
202 : <p/>
203 :
204- : <p>Example usage : <code>most-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) )</code></p>
205+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) )</pre></p>
206 : <p/>
207- : <p>The function invocation in the example above returns : <code>(&lt;a att1="a1" att2="a2"/&gt;)</code></p>
208+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a att1="a1" att2="a2"/&gt;)</pre></p>
209 :
210 : @param $s A sequence of nodes.
211 : @return The node having the largest number of descending attributes in the input sequence.
212@@ -269,9 +269,9 @@
213 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
214 : <p/>
215 :
216- : <p>Example usage : <code>most-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;a/&gt;, &lt;b/&gt;) )</code></p>
217+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;a/&gt;, &lt;b/&gt;) )</pre></p>
218 : <p/>
219- : <p>The function invocation in the example above returns : <code>(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</code></p>
220+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</pre></p>
221 :
222 : @param $s A sequence of nodes.
223 : @return The node having the largest number of descending nodes in the input sequence.
224@@ -287,9 +287,9 @@
225 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
226 : <p/>
227 :
228- : <p>Example usage : <code>least-elements( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) )</code></p>
229+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-elements( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) )</pre></p>
230 : <p/>
231- : <p>The function invocation in the example above returns : <code>(&lt;d/&gt;)</code></p>
232+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;d/&gt;)</pre></p>
233 :
234 : @param $s A sequence of nodes.
235 : @return The node having the smallest number of descending elements in the input sequence.
236@@ -305,9 +305,9 @@
237 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
238 : <p/>
239 :
240- : <p>Example usage : <code>least-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) )</code></p>
241+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) )</pre></p>
242 : <p/>
243- : <p>The function invocation in the example above returns : <code>(&lt;c/&gt;)</code></p>
244+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;c/&gt;)</pre></p>
245 :
246 : @param $s A sequence of nodes.
247 : @return The node having the smallest number of descending attributes in the input sequence.
248@@ -323,9 +323,9 @@
249 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
250 : <p/>
251 :
252- : <p>Example usage : <code>least-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) )</code></p>
253+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">least-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) )</pre></p>
254 : <p/>
255- : <p>The function invocation in the example above returns : <code>(&lt;d/&gt;)</code></p>
256+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;d/&gt;)</pre></p>
257 :
258 : @param $s A sequence of nodes.
259 : @return The node having the smallest number of descending nodes in the input sequence.
260@@ -341,9 +341,9 @@
261 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
262 : <p/>
263 :
264- : <p>Example usage : <code>most-distinct-elements( ( &lt;a&gt;&lt;b/&gt;&lt;c/&gt;&lt;d/&gt;&lt;/a&gt;, &lt;a&gt;&lt;b/&gt;&lt;b/&gt;&lt;c/&gt;&lt;/a&gt;, &lt;a/&gt; ) )</code></p>
265+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-distinct-elements( ( &lt;a&gt;&lt;b/&gt;&lt;c/&gt;&lt;d/&gt;&lt;/a&gt;, &lt;a&gt;&lt;b/&gt;&lt;b/&gt;&lt;c/&gt;&lt;/a&gt;, &lt;a/&gt; ) )</pre></p>
266 : <p/>
267- : <p>The function invocation in the example above returns : <code>(&lt;a&gt;&lt;b/&gt;&lt;c/&gt;&lt;d/&gt;&lt;/a&gt;)</code></p>
268+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a&gt;&lt;b/&gt;&lt;c/&gt;&lt;d/&gt;&lt;/a&gt;)</pre></p>
269 :
270 : @param $s A sequence of nodes.
271 : @return The node having the largest number of distinct descending elements in the input sequence.
272@@ -359,9 +359,9 @@
273 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
274 : <p/>
275 :
276- : <p>Example usage : <code>most-distinct-attributes( ( &lt;a att1="a1" att2="a2" att3="a3"/&gt;, &lt;a att1="a1" att2="a2"&gt;&lt;b att2="a2" /&gt;&lt;/a&gt;, &lt;c/&gt; ) )</code></p>
277+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-distinct-attributes( ( &lt;a att1="a1" att2="a2" att3="a3"/&gt;, &lt;a att1="a1" att2="a2"&gt;&lt;b att2="a2" /&gt;&lt;/a&gt;, &lt;c/&gt; ) )</pre></p>
278 : <p/>
279- : <p>The function invocation in the example above returns : <code>(&lt;a att1="a1" att2="a2" att3="a3"/&gt;)</code></p>
280+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a att1="a1" att2="a2" att3="a3"/&gt;)</pre></p>
281 :
282 : @param $s A sequence of nodes.
283 : @return The node having the largest number of distinct descending attributes in the input sequence.
284@@ -377,9 +377,9 @@
285 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
286 : <p/>
287 :
288- : <p>Example usage : <code>most-distinct-nodes( ( &lt;a>&lt;b/>&lt;/a&gt;, &lt;a>&lt;a/&gt;&lt;/a&gt;, &lt;b/&gt;) )</code></p>
289+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">most-distinct-nodes( ( &lt;a>&lt;b/>&lt;/a&gt;, &lt;a>&lt;a/&gt;&lt;/a&gt;, &lt;b/&gt;) )</pre></p>
290 : <p/>
291- : <p>The function invocation in the example above returns : <code>(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</code></p>
292+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">(&lt;a&gt;&lt;b/&gt;&lt;/a&gt;)</pre></p>
293 :
294 : @param $s A sequence of nodes.
295 : @return The node having the largest number of distinct descending nodes in the input sequence.
296@@ -395,9 +395,9 @@
297 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
298 : <p/>
299 :
300- : <p>Example usage : <code> least-distinct-elements( ( &lt;a>&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) ) </code></p>
301+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> least-distinct-elements( ( &lt;a>&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) ) </pre></p>
302 : <p/>
303- : <p>The function invocation in the example above returns : <code> (&lt;d/&gt;) </code></p>
304+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> (&lt;d/&gt;) </pre></p>
305 :
306 : @param $s A sequence of nodes.
307 : @return The node having the smallest number of distinct descending elements in the input sequence.
308@@ -413,9 +413,9 @@
309 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
310 : <p/>
311 :
312- : <p>Example usage : <code> least-distinct-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) ) </code></p>
313+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> least-distinct-attributes( ( &lt;a att1="a1" att2="a2"/&gt;, &lt;b att1="a1" /&gt;, &lt;c/&gt; ) ) </pre></p>
314 : <p/>
315- : <p>The function invocation in the example above returns : <code> (&lt;c/&gt;) </code></p>
316+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> (&lt;c/&gt;) </pre></p>
317 :
318 : @param $s A sequence of nodes.
319 : @return The node having the smallest number of distinct descending attributes in the input sequence.
320@@ -431,9 +431,9 @@
321 : <p>If more then one answer is possible, return the first node according to the order of the input sequence.</p>
322 : <p/>
323 :
324- : <p>Example usage : <code> least-distinct-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) ) </code></p>
325+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> least-distinct-nodes( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;b&gt;&lt;c/&gt;&lt;/b&gt;, &lt;d/&gt;) ) </pre></p>
326 : <p/>
327- : <p>The function invocation in the example above returns : <code> (&lt;d/&gt;) </code></p>
328+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> (&lt;d/&gt;) </pre></p>
329 :
330 : @param $s A sequence of nodes.
331 : @return The node having the smallest number of distinct descending nodes in the input sequence.
332@@ -448,9 +448,9 @@
333 : produce a non-empty set of nodes in all the cases.</p>
334 : <p/>
335 :
336- : <p>Example usage : <code> all-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;c&gt;&lt;d/&gt;&lt;/c&gt;, &lt;d/&gt;), (".//b") ) </code></p>
337+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> all-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;c&gt;&lt;d/&gt;&lt;/c&gt;, &lt;d/&gt;), (".//b") ) </pre></p>
338 : <p/>
339- : <p>The function invocation in the example above returns : <code> (&lt;a&gt;&lt;b/&gt;&lt;/a&gt;) </code></p>
340+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> (&lt;a&gt;&lt;b/&gt;&lt;/a&gt;) </pre></p>
341 :
342 : @param $s A sequence of elements.
343 : @param $paths A sequence of strings denoting XPath expressions.
344@@ -474,9 +474,9 @@
345 : produce a non-empty set of nodes for some of the cases.</p>
346 : <p/>
347 :
348- : <p>Example usage : <code> some-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;/d&gt;, &lt;d/&gt;), (".//b", ".//c") ) </code></p>
349+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> some-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;/d&gt;, &lt;d/&gt;), (".//b", ".//c") ) </pre></p>
350 : <p/>
351- : <p>The function invocation in the example above returns : <code> ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt; , &lt;d&gt;&lt;c/&gt;&lt;/d&gt; ) </code></p>
352+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt; , &lt;d&gt;&lt;c/&gt;&lt;/d&gt; ) </pre></p>
353 :
354 : @param $s A sequence of elements.
355 : @param $paths A sequence of strings denoting XPath expressions.
356@@ -502,9 +502,9 @@
357 : <p>If more then one answer is possible, return the first element according to the order of the input sequence.</p>
358 : <p/>
359 :
360- : <p>Example usage : <code> most-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt;, &lt;d/&gt;) , (".//b", ".//c") ) </code></p>
361+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> most-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt;, &lt;d/&gt;) , (".//b", ".//c") ) </pre></p>
362 : <p/>
363- : <p>The function invocation in the example above returns : <code> ( &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt; ) </code></p>
364+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ( &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt; ) </pre></p>
365 :
366 : @param $s A sequence of elements.
367 : @param $paths A sequence of strings denoting XPath expressions.
368@@ -533,9 +533,9 @@
369 : <p>If more then one answer is possible, return the first element according to the order of the input sequence.</p>
370 : <p/>
371 :
372- : <p>Example usage : <code> least-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt;, &lt;d/&gt;) , (".//b", ".//c") ) </code></p>
373+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> least-xpaths( ( &lt;a&gt;&lt;b/&gt;&lt;/a&gt;, &lt;d&gt;&lt;c/&gt;&lt;b/&gt;&lt;/d&gt;, &lt;d/&gt;) , (".//b", ".//c") ) </pre></p>
374 : <p/>
375- : <p>The function invocation in the example above returns : <code> ( $lt;d/&gt; ) </code></p>
376+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ( $lt;d/&gt; ) </pre></p>
377 :
378 : @param $s A sequence of elements.
379 : @param $paths A sequence of strings denoting XPath expressions.
380@@ -562,9 +562,9 @@
381 : <p>Returns the nodes from an input sequence of nodes that validate against a given XML Schema.</p>
382 : <p/>
383 :
384- : <p>Example usage : <code> validating-schema ( ( &lt;a/&gt; , &lt;b/&gt; ), &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;&lt;xs:element name="a" /&gt;&lt;/xs:schema&gt; ) </code></p>
385+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> validating-schema ( ( &lt;a/&gt; , &lt;b/&gt; ), &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;&lt;xs:element name="a" /&gt;&lt;/xs:schema&gt; ) </pre></p>
386 : <p/>
387- : <p>The function invocation in the example above returns : <code> ( &lt;a/&gt; ) </code></p>
388+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ( &lt;a/&gt; ) </pre></p>
389 :
390 : @param $s A sequence of elements.
391 : @param $schema An element encoding an XML Schema.
392
393=== modified file 'src/hybrid-string-similarity.xq'
394--- src/hybrid-string-similarity.xq 2013-08-09 09:37:05 +0000
395+++ src/hybrid-string-similarity.xq 2013-09-26 20:27:53 +0000
396@@ -51,9 +51,9 @@
397 : this function returns the cosine similarity coefficient between sets of Soundex keys.</p>
398 : <p/>
399 :
400- : <p>Example usage : <code> soft-cosine-tokens-soundex("ALEKSANDER SMITH", "ALEXANDER SMYTH", " +") </code></p>
401+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> soft-cosine-tokens-soundex("ALEKSANDER SMITH", "ALEXANDER SMYTH", " +") </pre></p>
402 : <p/>
403- : <p>The function invocation in the example above returns : <code> 1.0 </code></p>
404+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 1.0 </pre></p>
405 :
406 : @param $s1 The first string.
407 : @param $s2 The second string.
408@@ -75,9 +75,9 @@
409 : this function returns the cosine similarity coefficient between sets of Metaphone keys.</p>
410 : <p/>
411 :
412- : <p>Example usage : <code> soft-cosine-tokens-metaphone("ALEKSANDER SMITH", "ALEXANDER SMYTH", " +" ) </code></p>
413+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> soft-cosine-tokens-metaphone("ALEKSANDER SMITH", "ALEXANDER SMYTH", " +" ) </pre></p>
414 : <p/>
415- : <p>The function invocation in the example above returns : <code> 1.0 </code></p>
416+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 1.0 </pre></p>
417 :
418 : @param $s1 The first string.
419 : @param $s2 The second string.
420@@ -99,9 +99,9 @@
421 : bellow a given threshold are considered as matching tokens.</p>
422 : <p/>
423 :
424- : <p>Example usage : <code> soft-cosine-tokens-edit-distance("The FLWOR Foundation", "FLWOR Found.", " +", 0 ) </code></p>
425+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> soft-cosine-tokens-edit-distance("The FLWOR Foundation", "FLWOR Found.", " +", 0 ) </pre></p>
426 : <p/>
427- : <p>The function invocation in the example above returns : <code> 0.408248290463863 </code></p>
428+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.408248290463863 </pre></p>
429 :
430 : @param $s1 The first string.
431 : @param $s2 The second string.
432@@ -135,9 +135,9 @@
433 : a given threshold are considered as matching tokens.</p>
434 : <p/>
435 :
436- : <p>Example usage : <code> soft-cosine-tokens-jaro("The FLWOR Foundation", "FLWOR Found.", " +", 1 ) </code></p>
437+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> soft-cosine-tokens-jaro("The FLWOR Foundation", "FLWOR Found.", " +", 1 ) </pre></p>
438 : <p/>
439- : <p>The function invocation in the example above returns : <code> 0.5 </code></p>
440+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.5 </pre></p>
441 :
442 : @param $s1 The first string.
443 : @param $s2 The second string.
444@@ -169,9 +169,9 @@
445 : similarity above a given threshold are considered as matching tokens.</p>
446 : <p/>
447 :
448- : <p>Example usage : <code> soft-cosine-tokens-jaro-winkler("The FLWOR Foundation", "FLWOR Found.", " +", 1, 4, 0.1 ) </code></p>
449+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> soft-cosine-tokens-jaro-winkler("The FLWOR Foundation", "FLWOR Found.", " +", 1, 4, 0.1 ) </pre></p>
450 : <p/>
451- : <p>The function invocation in the example above returns : <code> 0.45 </code></p>
452+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.45 </pre></p>
453 :
454 : @param $s1 The first string.
455 : @param $s2 The second string.
456@@ -202,9 +202,9 @@
457 : <p>similarity function to discover token identity.</p>
458 : <p/>
459 :
460- : <p>Example usage : <code> monge-elkan-jaro-winkler("Comput. Sci. and Eng. Dept., University of California, San Diego", "Department of Computer Scinece, Univ. Calif., San Diego", 4, 0.1) </code></p>
461+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> monge-elkan-jaro-winkler("Comput. Sci. and Eng. Dept., University of California, San Diego", "Department of Computer Scinece, Univ. Calif., San Diego", 4, 0.1) </pre></p>
462 : <p/>
463- : <p>The function invocation in the example above returns : <code> 0.992 </code></p>
464+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.992 </pre></p>
465 :
466 : @param $s1 The first string.
467 : @param $s2 The second string.
468
469=== modified file 'src/phonetic-string-similarity.xq'
470--- src/phonetic-string-similarity.xq 2013-08-09 09:37:05 +0000
471+++ src/phonetic-string-similarity.xq 2013-09-26 20:27:53 +0000
472@@ -37,9 +37,9 @@
473 : <p>Returns the Soundex key for a given string.</p>
474 : <p/>
475 :
476- : <p>Example usage : <code>soundex-key("Robert")</code></p>
477+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">soundex-key("Robert")</pre></p>
478 : <p/>
479- : <p>The function invocation in the example above returns : <code>"R163"</code></p>
480+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">"R163"</pre></p>
481 :
482 : @param $s1 The string.
483 : @return The Soundex key for the given input string.
484@@ -58,9 +58,9 @@
485 : <p>Checks if two strings have the same Soundex key.</p>
486 : <p/>
487 :
488- : <p>Example usage : <code>soundex( "Robert" , "Rupert" )</code></p>
489+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">soundex( "Robert" , "Rupert" )</pre></p>
490 : <p/>
491- : <p>The function invocation in the example above returns : <code>true</code></p>
492+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">true</pre></p>
493 :
494 : @param $s1 The first string.
495 : @param $s2 The second string.
496@@ -76,9 +76,9 @@
497 : <p>The Metaphone algorithm produces variable length keys as its output, as opposed to Soundex's fixed-length keys.</p>
498 : <p/>
499 :
500- : <p>Example usage : <code>metaphone-key("ALEKSANDER")</code></p>
501+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">metaphone-key("ALEKSANDER")</pre></p>
502 : <p/>
503- : <p>The function invocation in the example above returns : <code>"ALKSNTR"</code></p>
504+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">"ALKSNTR"</pre></p>
505 :
506 : @param $s1 The string.
507 : @return The Metaphone key for the given input string.
508@@ -102,9 +102,9 @@
509 : <p>Checks if two strings have the same Metaphone key.</p>
510 : <p/>
511 :
512- : <p>Example usage : <code>metaphone("ALEKSANDER", "ALEXANDRE")</code></p>
513+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery">metaphone("ALEKSANDER", "ALEXANDRE")</pre></p>
514 : <p/>
515- : <p>The function invocation in the example above returns : <code>true</code></p>
516+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery">true</pre></p>
517 :
518 : @param $s1 The first string.
519 : @param $s2 The second string.
520
521=== modified file 'src/set-similarity.xq'
522--- src/set-similarity.xq 2013-08-09 09:37:05 +0000
523+++ src/set-similarity.xq 2013-09-26 20:27:53 +0000
524@@ -37,9 +37,9 @@
525 : <p>Returns the union between two sets, using the deep-equal() function to compare the XML nodes from the sets.</p>
526 : <p/>
527 :
528- : <p>Example usage : <code> deep-union ( ( "a", "b", "c") , ( "a", "a", <d/> ) ) </code></p>
529+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> deep-union ( ( "a", "b", "c") , ( "a", "a", <d/> ) ) </pre></p>
530 : <p/>
531- : <p>The function invocation in the example above returns : <code> ("a", "b", "c", <d/> ) </code></p>
532+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ("a", "b", "c", <d/> ) </pre></p>
533 :
534 : @param $s1 The first set.
535 : @param $s2 The second set.
536@@ -57,9 +57,9 @@
537 : <p>Returns the intersection between two sets, using the deep-equal() function to compare the XML nodes from the sets.</p>
538 : <p/>
539 :
540- : <p>Example usage : <code> deep-intersect ( ( "a", "b", "c") , ( "a", "a", <d/> ) ) </code></p>
541+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> deep-intersect ( ( "a", "b", "c") , ( "a", "a", <d/> ) ) </pre></p>
542 : <p/>
543- : <p>The function invocation in the example above returns : <code> ("a") </code></p>
544+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ("a") </pre></p>
545 :
546 : @param $s1 The first set.
547 : @param $s2 The second set.
548@@ -78,9 +78,9 @@
549 : <p>Removes exact duplicates from a set, using the deep-equal() function to compare the XML nodes from the sets.</p>
550 : <p/>
551 :
552- : <p>Example usage : <code> distinct ( ( "a", "a", <b/> ) ) </code></p>
553+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> distinct ( ( "a", "a", <b/> ) ) </pre></p>
554 : <p/>
555- : <p>The function invocation in the example above returns : <code> ("a", <b/> ) </code></p>
556+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ("a", <b/> ) </pre></p>
557 :
558 : @param $s A set.
559 : @return The set provided as input without the exact duplicates (i.e., returns the distinct nodes from the set provided as input).
560@@ -98,9 +98,9 @@
561 : (i.e., the size of the intersection) over the size of the smallest input set.</p>
562 : <p/>
563 :
564- : <p>Example usage : <code> overlap ( ( "a", "b", <c/> ) , ( "a", "a", "b" ) ) </code></p>
565+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> overlap ( ( "a", "b", <c/> ) , ( "a", "a", "b" ) ) </pre></p>
566 : <p/>
567- : <p>The function invocation in the example above returns : <code> 1.0 </code></p>
568+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 1.0 </pre></p>
569 :
570 : @param $s1 The first set.
571 : @param $s2 The second set.
572@@ -117,9 +117,9 @@
573 : (i.e., the size of the intersection) over the sum of the cardinalities for the input sets.</p>
574 : <p/>
575 :
576- : <p>Example usage : <code> dice ( ( "a", "b", <c/> ) , ( "a", "a", "d") ) </code></p>
577+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> dice ( ( "a", "b", <c/> ) , ( "a", "a", "d") ) </pre></p>
578 : <p/>
579- : <p>The function invocation in the example above returns : <code> 0.4 </code></p>
580+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.4 </pre></p>
581 :
582 : @param $s1 The first set.
583 : @param $s2 The second set.
584@@ -136,9 +136,9 @@
585 : union of the input sets.</p>
586 : <p/>
587 :
588- : <p>Example usage : <code> jaccard ( ( "a", "b", <c/> ) , ( "a", "a", "d") ) </code></p>
589+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> jaccard ( ( "a", "b", <c/> ) , ( "a", "a", "d") ) </pre></p>
590 : <p/>
591- : <p>The function invocation in the example above returns : <code> 0.25 </code></p>
592+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.25 </pre></p>
593 :
594 : @param $s1 The first set.
595 : @param $s2 The second set.
596
597=== modified file 'src/token-based-string-similarity.xq'
598--- src/token-based-string-similarity.xq 2013-08-09 09:37:05 +0000
599+++ src/token-based-string-similarity.xq 2013-09-26 20:27:53 +0000
600@@ -48,9 +48,9 @@
601 : <p>Returns the individual character n-grams forming a string.</p>
602 : <p/>
603 :
604- : <p>Example usage : <code> ngrams("FLWOR", 2 ) </code></p>
605+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> ngrams("FLWOR", 2 ) </pre></p>
606 : <p/>
607- : <p>The function invocation in the example above returns : <code> ("_F" , "FL" , "LW" , "WO" , "LW" , "WO" , "OR" , "R_") </code></p>
608+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> ("_F" , "FL" , "LW" , "WO" , "LW" , "WO" , "OR" , "R_") </pre></p>
609 :
610 : @param $s The input string.
611 : @param $n The number of characters to consider when extracting n-grams.
612@@ -77,9 +77,9 @@
613 : using stringdescriptors based on sets of character n-grams or sets of tokens extracted from two strings.</p>
614 : <p/>
615 :
616- : <p>Example usage : <code> cosine( ("aa","bb") , ("bb","aa")) </code></p>
617+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> cosine( ("aa","bb") , ("bb","aa")) </pre></p>
618 : <p/>
619- : <p>The function invocation in the example above returns : <code> 1.0 </code></p>
620+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 1.0 </pre></p>
621 :
622 : @param $desc1 The descriptor for the first string.
623 : @param $desc2 The descriptor for the second string.
624@@ -100,9 +100,9 @@
625 : <p>Returns the Dice similarity coefficient between sets of character n-grams extracted from two strings.</p>
626 : <p/>
627 :
628- : <p>Example usage : <code> dice-ngrams("DWAYNE", "DUANE", 2 ) </code></p>
629+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> dice-ngrams("DWAYNE", "DUANE", 2 ) </pre></p>
630 : <p/>
631- : <p>The function invocation in the example above returns : <code> 0.4615384615384616 </code></p>
632+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.4615384615384616 </pre></p>
633 :
634 : @param $s1 The first string.
635 : @param $s2 The second string.
636@@ -118,9 +118,9 @@
637 : <p>Returns the overlap similarity coefficient between sets of character n-grams extracted from two strings.</p>
638 : <p/>
639 :
640- : <p>Example usage : <code> overlap-ngrams("DWAYNE", "DUANE", 2 ) </code></p>
641+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> overlap-ngrams("DWAYNE", "DUANE", 2 ) </pre></p>
642 : <p/>
643- : <p>The function invocation in the example above returns : <code> 0.5 </code></p>
644+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.5 </pre></p>
645 :
646 : @param $s1 The first string.
647 : @param $s2 The second string.
648@@ -136,9 +136,9 @@
649 : <p>Returns the Jaccard similarity coefficient between sets of character n-grams extracted from two strings.</p>
650 : <p/>
651 :
652- : <p>Example usage : <code> jaccard-ngrams("DWAYNE", "DUANE", 2 ) </code></p>
653+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> jaccard-ngrams("DWAYNE", "DUANE", 2 ) </pre></p>
654 : <p/>
655- : <p>The function invocation in the example above returns : <code> 0.3 </code></p>
656+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.3 </pre></p>
657 :
658 : @param $s1 The first string.
659 : @param $s2 The second string.
660@@ -156,9 +156,9 @@
661 : the term-frequency heuristic from Information Retrieval).</p>
662 : <p/>
663 :
664- : <p>Example usage : <code> cosine-ngrams("DWAYNE", "DUANE", 2 ) </code></p>
665+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> cosine-ngrams("DWAYNE", "DUANE", 2 ) </pre></p>
666 : <p/>
667- : <p>The function invocation in the example above returns : <code> 0.2401922307076307 </code></p>
668+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.2401922307076307 </pre></p>
669 :
670 : @param $s1 The first string.
671 : @param $s2 The second string.
672@@ -176,9 +176,9 @@
673 : <p>Returns the Dice similarity coefficient between sets of tokens extracted from two strings.</p>
674 : <p/>
675 :
676- : <p>Example usage : <code> dice-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </code></p>
677+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> dice-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </pre></p>
678 : <p/>
679- : <p>The function invocation in the example above returns : <code> 0.4 </code></p>
680+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.4 </pre></p>
681 :
682 : @param $s1 The first string.
683 : @param $s2 The second string.
684@@ -194,9 +194,9 @@
685 : <p>Returns the overlap similarity coefficient between sets of tokens extracted from two strings.</p>
686 : <p/>
687 :
688- : <p>Example usage : <code> overlap-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </code></p>
689+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> overlap-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </pre></p>
690 : <p/>
691- : <p>The function invocation in the example above returns : <code> 0.5 </code></p>
692+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.5 </pre></p>
693 :
694 : @param $s1 The first string.
695 : @param $s2 The second string.
696@@ -212,9 +212,9 @@
697 : <p>Returns the Jaccard similarity coefficient between sets of tokens extracted from two strings.</p>
698 : <p/>
699 :
700- : <p>Example usage : <code> jaccard-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </code></p>
701+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> jaccard-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </pre></p>
702 : <p/>
703- : <p>The function invocation in the example above returns : <code> 0.25 </code></p>
704+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.25 </pre></p>
705 :
706 : @param $s1 The first string.
707 : @param $s2 The second string.
708@@ -232,9 +232,9 @@
709 : term-frequency heuristic from Information Retrieval).</p>
710 : <p/>
711 :
712- : <p>Example usage : <code> cosine-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </code></p>
713+ : <p>Example usage : <pre class="ace-static" ace-mode="xquery"> cosine-tokens("The FLWOR Foundation", "FLWOR Found.", " +" ) </pre></p>
714 : <p/>
715- : <p>The function invocation in the example above returns : <code> 0.408248290463863 </code></p>
716+ : <p>The function invocation in the example above returns : <pre class="ace-static" ace-mode="xquery"> 0.408248290463863 </pre></p>
717 :
718 : @param $s1 The first string.
719 : @param $s2 The second string.

Subscribers

People subscribed via source and target branches

to all changes: