parent[i] = -1;
nHeap++;
heap[nHeap] = i;
int zz = nHeap;
int tmp = heap[zz];
while (weight[tmp] < weight[heap[zz >> 1]]) {
heap[zz] = heap[zz >> 1];
zz >>= 1;
}
heap[zz] = tmp;
parent[i] = -1;
nHeap++;
heap[nHeap] = i;
int zz = nHeap;
int tmp = heap[zz];
while (weight[tmp] < weight[heap[zz >> 1]]) {
heap[zz] = heap[zz >> 1];
zz >>= 1;
}
heap[zz] = tmp;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | parent[i] = -1;↵ | | 1 | parent[i] = -1;↵
|
2 | nHeap++;↵ | | 2 | nHeap++;↵
|
3 | heap[nHeap] = i;↵ | | 3 | heap[nHeap] = i;↵
|
|
4 | int zz = nHeap;↵ | | 4 | int zz = nHeap;↵
|
5 | int tmp = heap[zz];↵ | | 5 | int tmp = heap[zz];↵
|
6 | while (weight[tmp] < weight[heap[zz >> 1]]) {↵ | | 6 | while (weight[tmp] < weight[heap[zz >> 1]]) {↵
|
7 | heap[zz] = heap[zz >> 1];↵ | | 7 | heap[zz] = heap[zz >> 1];↵
|
8 | zz >>= 1;↵ | | 8 | zz >>= 1;↵
|
9 | }↵ | | 9 | }↵
|
10 | heap[zz] = tmp;↵ | | 10 | heap[zz] = tmp;↵
|
11 | | | 11 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |