Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.980 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 281 | Closure/closure/goog/dom/multirange.js |
2 | 13 | 295 | Closure/closure/goog/dom/multirange.js |
| ||||
/** @inheritDoc */ goog.dom.MultiRange.prototype.getText= function ( ) { return goog.array.map(this.getTextRanges( ), function (range){ return range.getText( ); } ).join(''); } ; /** @inheritDoc */ goog.dom.MultiRange.prototype.getHtmlFragment= function ( ) { return this.getValidHtml( ); } ; |
| ||||
/** @inheritDoc */ goog.dom.MultiRange.prototype.getValidHtml= function ( ) { // NOTE: This does not behave well if the sub-ranges overlap. return goog.array.map(this.getTextRanges( ), function (range){ return range.getValidHtml( ); } ).join(''); } ; /** @inheritDoc */ goog.dom.MultiRange.prototype.getPastableHtml= function ( ) { // TODO: This should probably do something smart like group TR and TD // selections in to the same table. return this.getValidHtml( ); } ; |
| |||
/** @inheritDoc */ goog.dom.MultiRange.prototype. [[#variable20aa82c0]]= function ( ) { // NOTE: This does not behave well if the sub-ranges overlap. return goog.array.map(this.getTextRanges( ), function (range) { return range. [[#variable20aa82c0]]( ); } ).join(''); } ; /** @inheritDoc */ goog.dom.MultiRange.prototype. [[#variable20aa82e0]]= function ( ) { // TODO: This should probably do something smart like group TR and TD // selections in to the same table. return this.getValidHtml( ); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20aa82c0]] | getText |
1 | 2 | [[#20aa82c0]] | getValidHtml |
2 | 1 | [[#20aa82e0]] | getHtmlFragment |
2 | 2 | [[#20aa82e0]] | getPastableHtml |