CloneSet24


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40230.983statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1463722
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
2404467
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
Next
Last
Clone Instance
1
Line Count
46
Source Line
3722
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java

int start = 0, end = buffer.getLength();
loop:
  for (int i = caretLine - 1; i >= 0; i--) {
    //if(!displayManager.isLineVisible(i))
    //      continue loop;
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    start = getLineStartOffset(i);
    break loop;
  }
loop:
  for (int i = caretLine + 1; i < getLineCount(); i++) {
    //if(!displayManager.isLineVisible(i))
    //      continue loop;
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    end = getLineEndOffset(i) - 1;
    break loop;
  }


First
Previous
Clone Instance
2
Line Count
40
Source Line
4467
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java

int start = 0, end = buffer.getLength();
loop:
  for (int i = lineNo - 1; i >= 0; i--) {
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    start = getLineEndOffset(i);
    break loop;
  }
loop:
  for (int i = lineNo + 1; i < getLineCount(); i++) {
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    end = getLineStartOffset(i) - 1;
    break loop;
  }


Clone AbstractionParameter Count: 3Parameter Bindings

int start = 0, end = buffer.getLength();
loop:
  for (int i = [[#variableae2c220]] - 1; i >= 0; i--) {
    //if(!displayManager.isLineVisible(i))
    //      continue loop;
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    start = [[#variableae2e660]](i);
    break loop;
  }
loop:
  for (int i = [[#variableae2c220]] + 1; i < getLineCount(); i++) {
    //if(!displayManager.isLineVisible(i))
    //      continue loop;
    getLineText(i, lineSegment);
    for (int j = 0; j < lineSegment.count; j++) {
      switch (lineSegment.array[lineSegment.offset + j]) {
        case ' ':
        case '\t':
          break;
        default:
          continue loop;
      }
    }
    end = [[#variableae2c280]](i) - 1;
    break loop;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ae2c220]]
caretLine 
12[[#ae2c220]]
lineNo 
21[[#ae2e660]]
getLineStartOffset 
22[[#ae2e660]]
getLineEndOffset 
31[[#ae2c280]]
getLineEndOffset 
32[[#ae2c280]]
getLineStartOffset