CloneSet163


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.973executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116230
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DemuxOutputStream.java
216121
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/LineOrientedOutputStream.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
230
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DemuxOutputStream.java

while (remaining > 0) {
  while (remaining > 0 && b[offset] != LF && b[offset] != CR) {
    offset++;
    remaining--;
  }
  // either end of buffer or a line separator char
  int blockLength = offset - blockStartOffset;
  if (blockLength > 0) {
    bufferInfo.buffer.write(b, blockStartOffset, blockLength);
  }
  while (remaining > 0 && (b[offset] == LF || b[offset] == CR)) {
    write(b[offset]);
    offset++;
    remaining--;
  }
  blockStartOffset = offset;
}


First
Previous
Clone Instance
2
Line Count
16
Source Line
121
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/LineOrientedOutputStream.java

while (remaining > 0) {
  while (remaining > 0 && b[offset] != LF && b[offset] != CR) {
    offset++;
    remaining--;
  }
  // either end of buffer or a line separator char
  int blockLength = offset - blockStartOffset;
  if (blockLength > 0) {
    buffer.write(b, blockStartOffset, blockLength);
  }
  while (remaining > 0 && (b[offset] == LF || b[offset] == CR)) {
    write(b[offset]);
    offset++;
    remaining--;
  }
  blockStartOffset = offset;
}


Clone AbstractionParameter Count: 1Parameter Bindings

while (remaining > 0) {
  while (remaining > 0 && b[offset] != LF && b[offset] != CR) {
    offset++;
    remaining--;
  }
  // either end of buffer or a line separator char
  int blockLength = offset - blockStartOffset;
  if (blockLength > 0) {
     [[#variable100b35a0]].write(b, blockStartOffset, blockLength);
  }
  while (remaining > 0 && (b[offset] == LF || b[offset] == CR)) {
    write(b[offset]);
    offset++;
    remaining--;
  }
  blockStartOffset = offset;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100b35a0]]
bufferInfo.buffer 
12[[#100b35a0]]
buffer