Searched refs:diff (Results 1 - 20 of 20) sorted by relevance

/lucene-3.6.0/dev-tools/scripts/
H A DLUCENE-3753.patch.hack.pl67 my $diff;
72 &fixup_paths if ($diff);
73 $diff = $next_diff;
75 $diff .= $_;
79 &fixup_paths; # Handle the final diff
85 if ($diff =~ /^Index: \Q$source\E/) {
86 $diff =~ s/^Index: \Q$source\E/Index: $target/;
87 $diff =~ s/\n--- \Q$source\E/\n--- $target/;
88 $diff =~ s/\n\+\+\+ \Q$source\E/\n+++ $target/;
89 $diff
[all...]
H A DSOLR-2452.patch.hack.pl189 my $diff;
194 &fixup_paths if ($diff);
195 $diff = $next_diff;
197 $diff .= $_;
201 &fixup_paths; # Handle the final diff
207 if ($diff =~ /^Index: \Q$source\E/) {
208 $diff =~ s/^Index: \Q$source\E/Index: $target/;
209 $diff =~ s/\n--- \Q$source\E/\n--- $target/;
210 $diff =~ s/\n\+\+\+ \Q$source\E/\n+++ $target/;
211 $diff
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DSortedVIntList.java113 int diff = nextInt - lastInt;
114 if (diff < 0) {
125 while ((diff & ~VB1) != 0) { // The high bit of the next byte needs to be set.
126 bytes[lastBytePos++] = (byte) ((diff & VB1) | ~VB1);
127 diff >>>= BIT_SHIFT;
129 bytes[lastBytePos++] = (byte) diff; // Last byte, high bit not set.
H A DSorterTemplate.java73 final int diff = hi - lo;
74 if (diff <= QUICKSORT_THRESHOLD) {
85 final int mid = lo + (diff >>> 1);
124 final int diff = hi - lo;
125 if (diff <= MERGESORT_THRESHOLD) {
130 final int mid = lo + (diff >>> 1);
H A DBytesRef.java279 int diff = aByte - bByte;
280 if (diff != 0) {
281 return diff;
H A DNumericUtils.java366 final long diff = 1L << (shift+precisionStep),
372 nextMinBound = (hasLower ? (minBound + diff) : minBound) & ~mask,
373 nextMaxBound = (hasUpper ? (maxBound - diff) : maxBound) & ~mask;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DNormalizeCharMap.java31 int diff; field in class:NormalizeCharMap
59 currMap.diff = singleMatch.length() - replacement.length();
H A DMappingCharFilter.java66 if (result.diff != 0) {
68 if (result.diff < 0) {
69 for(int i = 0; i < -result.diff ; i++)
72 addOffCorrectMap(nextCharCounter - result.diff - prevCumulativeDiff, prevCumulativeDiff + result.diff);
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/
H A DDiffIt.java96 Diff diff = new Diff(ins, del, rep, nop);
108 System.out.println(stem + " " + diff.exec(token, stem));
H A DDiff.java100 * Apply the given patch string <tt>diff</tt> to the given string <tt>
104 * @param diff Patch string
106 public static void apply(StringBuilder dest, CharSequence diff) { argument
109 if (diff == null) {
118 for (int i = 0; i < diff.length() / 2; i++) {
119 char cmd = diff.charAt(2 * i);
120 char param = diff.charAt(2 * i + 1);
H A DCompile.java118 Diff diff = new Diff();
140 trie.add(token, diff.exec(token, stem));
/lucene-3.6.0/solr/scripts/
H A Dscripts-util130 diff=`expr $end - $start`
131 echo "$(timeStamp) $1 (elapsed time: $diff sec)">>$log
H A Dsnapshooter99 differences=`diff -q ${data_dir}/index ${previous} | wc -l`
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/
H A DDirContentSource.java62 int diff = a.length() - b.length();
64 if (diff > 0) {
65 while (diff-- > 0) {
68 } else if (diff < 0) {
69 diff = -diff;
70 while (diff-- > 0) {
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/
H A DLookup.java73 int diff = o1.charAt(i) - o2.charAt(i);
74 if (diff != 0) {
75 return diff;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/tartarus/snowball/
H A DSnowballProgram.java304 int diff = 0;
310 diff = -1;
313 diff = current[c + common] - w.s[i2];
314 if (diff != 0) break;
317 if (diff < 0) {
376 int diff = 0;
382 diff = -1;
385 diff = current[c - 1 - common] - w.s[i2];
386 if (diff != 0) break;
389 if (diff <
[all...]
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/
H A DTestSort.java101 int diff = (left[i] & 0xff) - (right[j] & 0xff);
102 if (diff != 0)
103 return diff;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DCompoundFileWriter.java241 // Verify that the output length diff is equal to original file
243 long diff = endPtr - startPtr;
244 if (diff != length)
245 throw new IOException("Difference in the output file offsets " + diff
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/
H A DAnalysisRequestHandlerBase.java238 int diff = a[p] - b[p];
239 if (diff != 0) return diff;
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/jaspell/
H A DJaspellTernarySearchTrie.java538 * Keys returned will have exactly diff characters that do not match the
539 * target key, where diff is equal to the last value passed in as an argument
544 * then diff = 0.
556 * Keys returned will have exactly diff characters that do not match the
557 * target key, where diff is equal to the last value passed in as an argument
562 * then diff = 0.
779 *@param diff
783 public void setMatchAlmostDiff(int diff) { argument
784 if (diff < 0) {
786 } else if (diff >
[all...]

Completed in 43 milliseconds