Searched refs:orig (Results 1 - 11 of 11) sorted by relevance

/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/
H A DDiffAlgorithm.java82 public abstract Revision diff(Object[] orig, Object[] rev) argument
H A DSimpleDiff.java103 * indx[i] = eqs(orig[i]) and jndx[i] = eqs(rev[i]). The algorithm can
104 * now operate on indx and jndx instead of orig and rev. Thus, comparisons
116 * the orig sequence. This information is used to search efficiently for
122 * <p>Having identified common matching objects in the orig and revised
162 * @param orig The original sequence.
167 public Revision diff(Object[] orig, Object[] rev) argument
170 // create map eqs, such that for each item in both orig and rev
171 // eqs(item) = firstOccurrence(item, orig);
172 Map eqs = buildEqSet(orig, rev);
175 // indx[i] = NOT_FOUND_i if orig[
264 buildEqSet(Object[] orig, Object[] rev) argument
[all...]
H A DDiff.java110 protected final Object[] orig; field in class:Diff
138 this.orig = original;
153 * @param orig the original
157 public static Revision diff(Object[] orig, Object[] rev) argument
160 if (orig == null || rev == null)
165 return diff(orig, rev, null);
171 * @param orig the original
176 public static Revision diff(Object[] orig, Object[] rev, argument
180 if (orig == null || rev == null)
185 return new Diff(orig, algorith
209 compare(Object[] orig, Object[] rev) argument
[all...]
H A DDelta.java110 * @param orig the chunk in the original text.
113 public static Delta newDelta(Chunk orig, Chunk rev) argument
115 Class c = DeltaClass[orig.size() > 0 ? 1 : 0]
126 result.init(orig, rev);
141 protected Delta(Chunk orig, Chunk rev) argument
143 init(orig, rev);
150 protected void init(Chunk orig, Chunk rev) argument
152 original = orig;
H A DDeleteDelta.java80 public DeleteDelta(Chunk orig) argument
82 init(orig, null);
H A DChangeDelta.java79 public ChangeDelta(Chunk orig, Chunk rev) argument
81 init(orig, rev);
/opengrok/src/org/opensolaris/opengrok/history/
H A DRepositoryInfo.java54 public RepositoryInfo(RepositoryInfo orig) { argument
55 this.directoryName = orig.directoryName;
56 this.type = orig.type;
57 this.working = orig.isWorking();
58 this.remote = orig.isRemote();
59 this.datePattern = orig.datePattern;
60 this.parent = orig.parent;
61 this.branch = orig.branch;
62 this.currentVersion = orig.currentVersion;
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/tools/
H A DJRCS.java72 static Object[] orig; field in class:JRCS
97 orig = archive.getRevision("1.3");
98 System.out.println("*-orig-*********");
99 System.out.print(Diff.arrayToString(orig));
103 //System.out.println(Diff.diff(archive.removeKeywords(orig),
138 List editor = new ArrayList(Arrays.asList(orig));
143 Object[] rev = Diff.randomEdit(orig, n++);
H A DJDiff.java107 Object[] orig = loadFile(argv[0]);
110 Diff df = new Diff(orig);
119 Object[] reco = r.patch(orig);
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/myers/
H A DMyersDiff.java90 public Revision diff(Object[] orig, Object[] rev) argument
93 PathNode path = buildPath(orig, rev);
94 return buildRevision(path, orig, rev);
102 * @param orig The original sequence.
107 public static PathNode buildPath(Object[] orig, Object[] rev) argument
110 if (orig == null)
116 final int N = orig.length;
155 // orig and rev are zero-based
158 while (i < N && j < M && orig[i].equals(rev[j]))
184 * @param orig Th
190 buildRevision(PathNode path, Object[] orig, Object[] rev) argument
[all...]
/opengrok/src/org/opensolaris/opengrok/management/
H A DJMXConfiguration.java62 } catch (IOException orig) {
64 ioex.initCause(orig);

Completed in 26 milliseconds