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.963 | IfStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 213 | Closure/closure/goog/ui/media/media.js |
2 | 7 | 222 | Closure/closure/goog/ui/media/media.js |
| ||||
// Only creates DOMs if the data is available. if (dataModel.getCaption( )){ var caption= domHelper.createElement('div'); caption.className= goog.getCssName(this.getCssClass( ),'caption'); caption.appendChild(domHelper.createDom( 'p', goog.getCssName(this.getCssClass( ),'caption-text'), dataModel.getCaption( ))); domHelper.appendChild(div, caption); } |
| ||||
if (dataModel.getDescription( )){ var description= domHelper.createElement('div'); description.className= goog.getCssName(this.getCssClass( ),'description'); description.appendChild(domHelper.createDom( 'p', goog.getCssName(this.getCssClass( ),'description-text'), dataModel.getDescription( ))); domHelper.appendChild(div, description); } |
| |||
// Only creates DOMs if the data is available. if (dataModel. [[#variable56645840]]( )) { var [[#variable566457a0]]=domHelper.createElement('div'); [[#variable566457a0]].className=goog.getCssName(this.getCssClass( ), [[#variable56645720]]); [[#variable566457a0]].appendChild(domHelper.createDom('p',goog.getCssName(this.getCssClass( ), [[#variable566456c0]]),dataModel. [[#variable56645840]]( ))); domHelper.appendChild(div, [[#variable566457a0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56645840]] | getCaption |
1 | 2 | [[#56645840]] | getDescription |
2 | 1 | [[#566457a0]] | caption |
2 | 2 | [[#566457a0]] | description |
3 | 1 | [[#56645720]] | 'caption' |
3 | 2 | [[#56645720]] | 'description' |
4 | 1 | [[#566456c0]] | 'caption-text' |
4 | 2 | [[#566456c0]] | 'description-text' |