Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.957 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 200 | Closure/closure/goog/locale/formatting.js |
2 | 4 | 231 | Closure/closure/goog/locale/formatting.js |
| ||||
/** * Format the number using given pattern. * @param {string} pattern specifies how number should be formatted. * @param {number} value The number being formatted. * @return {string} The formatted string. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale.formatNumber= function (pattern, value){ var formatter= new goog.locale.NumberFormat( ); formatter.applyPattern(pattern); return formatter.format(value); } ; |
| ||||
/** * Format the number using predefined pattern. * @param {number} patternType indentifies a predefined pattern to use. * @param {number} value the number being formatted. * @return {string} The formatted string. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale.standardFormatNumber= function (patternType, value){ var formatter= new goog.locale.NumberFormat( ); formatter.applyStandardPattern(patternType); return formatter.format(value); } ; |
| |||
/** * Format the number using predefined pattern. * @param {number} patternType indentifies a predefined pattern to use. * @param {number} value the number being formatted. * @return {string} The formatted string. * @deprecated Use goog.i18n.NumberFormat. */ /** * Format the number using given pattern. * @param {string} pattern specifies how number should be formatted. * @param {number} value The number being formatted. * @return {string} The formatted string. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale. [[#variable1eca21c0]]= function ( [[#variable1eca2160]],value) { var formatter=new goog.locale.NumberFormat( ); formatter. [[#variable1eca2100]]( [[#variable1eca2160]]); return formatter.format(value); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1eca21c0]] | standardFormatNumber |
1 | 2 | [[#1eca21c0]] | formatNumber |
2 | 1 | [[#1eca2160]] | patternType |
2 | 2 | [[#1eca2160]] | pattern |
3 | 1 | [[#1eca2100]] | applyStandardPattern |
3 | 2 | [[#1eca2100]] | applyPattern |