CloneSet642


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.959method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19138
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java
29159
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
138
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java

/**
 * Returns a formatted representation of the specified number.
 * 
 * @param number  the number.
 * @param toAppendTo  the string buffer to append to.
 * @param pos  the position.
 * 
 * @return A string buffer containing the formatted value.
 */
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos) {
  StringBuffer result = new StringBuffer();
  if (this.showBase) {
    result.append(this.baseLabel);
    result.append(this.powerLabel);
  }
  result.append(this.formatter.format(calculateLog(number)));
  return result;
}


First
Previous
Clone Instance
2
Line Count
9
Source Line
159
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java

/**
 * Formats the specified number as a hexadecimal string.  The decimal 
 * fraction is ignored.
 * 
 * @param number  the number to format.
 * @param toAppendTo  the buffer to append to (ignored here).
 * @param pos  the field position (ignored here).
 * 
 * @return The string buffer.
 */
public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos) {
  StringBuffer result = new StringBuffer();
  if (this.showBase) {
    result.append(this.baseLabel);
    result.append("^");
  }
  result.append(this.formatter.format(calculateLog(number)));
  return result;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Formats the specified number as a hexadecimal string.  The decimal 
     * fraction is ignored.
     * 
     * @param number  the number to format.
     * @param toAppendTo  the buffer to append to (ignored here).
     * @param pos  the field position (ignored here).
     * 
     * @return The string buffer.
     */
/**
     * Returns a formatted representation of the specified number.
     * 
     * @param number  the number.
     * @param toAppendTo  the string buffer to append to.
     * @param pos  the position.
     * 
     * @return A string buffer containing the formatted value.
     */
public StringBuffer format( [[#variable18cb7ee0]] number, StringBuffer toAppendTo, FieldPosition pos) {
  StringBuffer result = new StringBuffer();
  if (this.showBase) {
    result.append(this.baseLabel);
    result.append( [[#variable18cb7e40]]);
  }
  result.append(this.formatter.format(calculateLog(number)));
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18cb7ee0]]
double 
12[[#18cb7ee0]]
long 
21[[#18cb7e40]]
this.powerLabel 
22[[#18cb7e40]]
"^"