Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.996 | StatementList[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 268 | Closure/closure/goog/math/integer.js |
2 | 15 | 308 | Closure/closure/goog/math/long.js |
| ||||
var rem= this ; var result= ''; while ( true){ var remDiv= rem.divide(radixToPower); var intval= rem.subtract(remDiv.multiply(radixToPower)).toInt( ); var digits= intval.toString(radix); rem= remDiv; if (rem.isZero( )){ return digits+ result; } else { while (digits.length< 6) { digits= '0'+ digits; } result= ''+ digits+ result; } } |
| ||||
var rem= this ; var result= ''; while ( true){ var remDiv= rem.div(radixToPower); var intval= rem.subtract(remDiv.multiply(radixToPower)).toInt( ); var digits= intval.toString(radix); rem= remDiv; if (rem.isZero( )){ return digits+ result; } else { while (digits.length< 6) { digits= '0'+ digits; } result= ''+ digits+ result; } } |
| |||
var rem=this ; var result=''; while ( true) { var remDiv=rem. [[#variable57498320]](radixToPower); var intval=rem.subtract(remDiv.multiply(radixToPower)).toInt( ); var digits=intval.toString(radix); rem=remDiv; if (rem.isZero( )) { return digits+result; } else { while (digits.length<6) { digits='0'+digits; } result=''+digits+result; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57498320]] | div |
1 | 2 | [[#57498320]] | divide |