Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.982 | Block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 155 | Closure/closure/goog/dom/browserrange/abstractrange.js |
2 | 4 | 163 | Closure/closure/goog/dom/browserrange/abstractrange.js |
| ||||
{ // There are two ways to not overlap. Being before, and being after. // Before is represented by this.end before range.start: comparison < 0. // After is represented by this.start after range.end: comparison > 0. // The below is the negation of not overlapping. return this.compareBrowserRangeEndpoints(range, end, start)>= 0 &&this.compareBrowserRangeEndpoints(range, start, end)<= 0; } |
| ||||
{ // Return true if this range bounds the parameter range from both sides. return this.compareBrowserRangeEndpoints(range, end, end)>= 0 &&this.compareBrowserRangeEndpoints(range, start, start)<= 0; } |
| |||
{ // There are two ways to not overlap. Being before, and being after. // Before is represented by this.end before range.start: comparison < 0. // After is represented by this.start after range.end: comparison > 0. // The below is the negation of not overlapping. // Return true if this range bounds the parameter range from both sides. return this.compareBrowserRangeEndpoints(range,end, [[#variable63119ca0]])>=0 && this.compareBrowserRangeEndpoints(range,start, [[#variable63119c40]])<=0; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63119ca0]] | start |
1 | 2 | [[#63119ca0]] | end |
2 | 1 | [[#63119c40]] | end |
2 | 2 | [[#63119c40]] | start |