Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 5 | 4 | 0.951 | StatementList[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 21 | Closure/third_party/closure/goog/dojo/dom/query_test.js |
2 | 3 | 29 | Closure/third_party/closure/goog/dojo/dom/query_test.js |
3 | 3 | 58 | Closure/third_party/closure/goog/dojo/dom/query_test.js |
4 | 3 | 68 | Closure/third_party/closure/goog/dojo/dom/query_test.js |
5 | 3 | 118 | Closure/third_party/closure/goog/dojo/dom/query_test.js |
| ||||
assertQuery(1, 'h1:first-child'); assertQuery(2, 'h3:first-child'); assertQuery(1, '#t'); |
| ||||
assertQuery(1, '#t div > h3'); assertQuery(2, '.foo'); assertQuery(1, '.foo.bar'); |
| ||||
// multiple class attribute assertQuery(1, '.foo.bar'); assertQuery(2, '.foo'); assertQuery(2, '.baz'); |
| ||||
assertQuery(1, '[class = "foo bar"]'); assertQuery(2, '[foo~="bar"]'); assertQuery(2, '[ foo ~= "bar" ]'); |
| ||||
assertQuery(1, '#t h3:nth-child(2n+3)'); assertQuery(2, '#t h3:nth-child(1)'); assertQuery(1, '#t > h3:nth-child(1)'); |
| |||
// multiple class attribute assertQuery(1, [[#variable5d371aa0]]); assertQuery(2, [[#variable5d371a60]]); assertQuery( [[#variable568a7c40]], [[#variable59ea8a00]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5d371aa0]] | '.foo.bar' |
1 | 2 | [[#5d371aa0]] | '#t h3:nth-child(2n+3)' |
1 | 3 | [[#5d371aa0]] | '[class = "foo bar"]' |
1 | 4 | [[#5d371aa0]] | '#t div > h3' |
1 | 5 | [[#5d371aa0]] | 'h1:first-child' |
2 | 1 | [[#5d371a60]] | '.foo' |
2 | 2 | [[#5d371a60]] | '#t h3:nth-child(1)' |
2 | 3 | [[#5d371a60]] | '[foo~="bar"]' |
2 | 4 | [[#5d371a60]] | '.foo' |
2 | 5 | [[#5d371a60]] | 'h3:first-child' |
3 | 1 | [[#568a7c40]] | 2 |
3 | 2 | [[#568a7c40]] | 1 |
3 | 3 | [[#568a7c40]] | 2 |
3 | 4 | [[#568a7c40]] | 1 |
3 | 5 | [[#568a7c40]] | 1 |
4 | 1 | [[#59ea8a00]] | '.baz' |
4 | 2 | [[#59ea8a00]] | '#t > h3:nth-child(1)' |
4 | 3 | [[#59ea8a00]] | '[ foo ~= "bar" ]' |
4 | 4 | [[#59ea8a00]] | '.foo.bar' |
4 | 5 | [[#59ea8a00]] | '#t' |