Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.950 | IfStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 207 | Closure/closure/goog/dom/range.js |
2 | 7 | 218 | Closure/closure/goog/dom/range.js |
| ||||
if (child) { anchorNode= child; anchorOffset= 0; } else if (goog.dom.contains(anchorNode, focusNode)) { // If focus node is contained in anchorNode, it must be before the // end of the node. Hence we are reversed. return true; } |
| ||||
if (child) { focusNode= child; focusOffset= 0; } else if (goog.dom.contains(focusNode, anchorNode)) { // If anchor node is contained in focusNode, it must be before the // end of the node. Hence we are not reversed. return false; } |
| |||
if (child) { [[#variable4410ac00]]=child; [[#variable4410aba0]]=0; } else if (goog.dom.contains( [[#variable4410ac00]], [[#variable4410ab40]])) { // If focus node is contained in anchorNode, it must be before the // end of the node. Hence we are reversed. // If anchor node is contained in focusNode, it must be before the // end of the node. Hence we are not reversed. return [[#variable4410aae0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4410ac00]] | anchorNode |
1 | 2 | [[#4410ac00]] | focusNode |
2 | 1 | [[#4410aba0]] | anchorOffset |
2 | 2 | [[#4410aba0]] | focusOffset |
3 | 1 | [[#4410ab40]] | focusNode |
3 | 2 | [[#4410ab40]] | anchorNode |
4 | 1 | [[#4410aae0]] | true |
4 | 2 | [[#4410aae0]] | false |