CloneSet748


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000statement_sequence[14]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11881
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java
21884
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe2.java
Clone Instance
1
Line Count
18
Source Line
81
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java

                this.scanner = new Scanner(true, true, false
                                                            /*nls*/
                                                            ,        sourceLevel
                                                                                /*sourceLevel*/
                                                                                ,                null
                                                                                                     /*taskTags*/
                                                                                                     ,             null
                                                                                                                       /*taskPriorities*/
                                                                                                                       ,                   true
                                                                                                                                               /*taskCaseSensitive*/
                                                                                                                                               );
                this.formatter = formatter;
                this.pageWidth = formatter.preferences.page_width;
                this.tabLength = formatter.preferences.tab_size;
                this.indentationLevel = 0; // initialize properly
                this.numberOfIndentations = 0;
                this.useTabsOnlyForLeadingIndents = formatter.preferences.use_tabs_only_for_leading_indentations;
        this.indentEmptyLines = formatter.preferences.indent_empty_lines;
                this.tabChar = formatter.preferences.tab_char;
                if (this.tabChar == DefaultCodeFormatterOptions.MIXED) {
                        this.indentationSize = formatter.preferences.indentation_size;
                }
                else   {
                        this.indentationSize = this.tabLength;
                }
                this.lineSeparator = formatter.preferences.line_separator;
                this.indentationLevel = formatter.preferences.initial_indentation_level * this.indentationSize;
                this.textRegionStart = offset;
                this.textRegionEnd = offset + length - 1;


Clone Instance
2
Line Count
18
Source Line
84
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe2.java

                this.scanner = new Scanner(true, true, false
                                                            /*nls*/
                                                            ,        sourceLevel
                                                                                /*sourceLevel*/
                                                                                ,                null
                                                                                                     /*taskTags*/
                                                                                                     ,             null
                                                                                                                       /*taskPriorities*/
                                                                                                                       ,                   true
                                                                                                                                               /*taskCaseSensitive*/
                                                                                                                                               );
                this.formatter = formatter;
                this.pageWidth = formatter.preferences.page_width;
                this.tabLength = formatter.preferences.tab_size;
                this.indentationLevel = 0; // initialize properly
                this.numberOfIndentations = 0;
                this.useTabsOnlyForLeadingIndents = formatter.preferences.use_tabs_only_for_leading_indentations;
        this.indentEmptyLines = formatter.preferences.indent_empty_lines;
                this.tabChar = formatter.preferences.tab_char;
                if (this.tabChar == DefaultCodeFormatterOptions.MIXED) {
                        this.indentationSize = formatter.preferences.indentation_size;
                }
                else   {
                        this.indentationSize = this.tabLength;
                }
                this.lineSeparator = formatter.preferences.line_separator;
                this.indentationLevel = formatter.preferences.initial_indentation_level * this.indentationSize;
                this.textRegionStart = offset;
                this.textRegionEnd = offset + length - 1;


Clone AbstractionParameter Count: 0Parameter Bindings

this.scanner = new Scanner(true, true, false
                                            /*nls*/
                                            , sourceLevel
                                                         /*sourceLevel*/
                                                         , null
                                                               /*taskTags*/
                                                               , null
                                                                     /*taskPriorities*/
                                                                     , true
                                                                           /*taskCaseSensitive*/
                                                                           );
this.formatter = formatter;
this.pageWidth = formatter.preferences.page_width;
this.tabLength = formatter.preferences.tab_size;
this.indentationLevel = 0; // initialize properly
this.numberOfIndentations = 0;
this.useTabsOnlyForLeadingIndents = formatter.preferences.use_tabs_only_for_leading_indentations;
this.indentEmptyLines = formatter.preferences.indent_empty_lines;
this.tabChar = formatter.preferences.tab_char;
if (this.tabChar == DefaultCodeFormatterOptions.MIXED) {
  this.indentationSize = formatter.preferences.indentation_size;
}
else {
  this.indentationSize = this.tabLength;
}
this.lineSeparator = formatter.preferences.line_separator;
this.indentationLevel = formatter.preferences.initial_indentation_level * this.indentationSize;
this.textRegionStart = offset;
this.textRegionEnd = offset + length - 1;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None